void-packages/srcpkgs/dnsmasq/template

29 lines
895 B
Bash
Raw Normal View History

# Template file for 'dnsmasq'
pkgname=dnsmasq
2015-06-15 07:46:09 +02:00
version=2.73
revision=1
build_pie=yes
2013-11-03 07:20:30 +01:00
hostmakedepends="pkg-config"
makedepends="dbus-devel libcap-devel libidn-devel"
conf_files="/etc/dnsmasq.conf"
system_accounts="dnsmasq"
2014-10-27 18:06:48 +01:00
dnsmasq_homedir="/var/chroot"
short_desc="Lightweight, easy to configure DNS forwarder and DHCP server"
maintainer="Juan RP <xtraeme@voidlinux.eu>"
license="GPL-2"
2012-07-09 23:00:38 +02:00
homepage="http://www.thekelleys.org.uk/dnsmasq/doc.html"
distfiles="http://www.thekelleys.org.uk/$pkgname/$pkgname-$version.tar.gz"
2015-06-15 07:46:09 +02:00
checksum=9f350f74ae2c7990b1c7c6c8591d274c37b674aa987f54dfee7ca856fae0d02d
do_build() {
echo '#define HAVE_DBUS' >> src/config.h
2014-09-24 16:46:59 +02:00
make CC=$CC CFLAGS="$CFLAGS" LDFLAGS="$LDFLAGS" ${makejobs}
}
do_install() {
2015-06-02 08:46:13 +02:00
make PREFIX=/usr BINDIR=/usr/bin DESTDIR=${DESTDIR} install
2014-10-27 18:06:48 +01:00
vsv dnsmasq
vconf dnsmasq.conf.example dnsmasq.conf
vinstall dbus/dnsmasq.conf 644 etc/dbus-1/system.d
}