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