2009-12-04 07:05:13 +01:00
|
|
|
# Template file for 'dnsmasq'
|
|
|
|
pkgname=dnsmasq
|
2014-09-24 16:46:59 +02:00
|
|
|
version=2.72
|
2014-10-27 18:06:48 +01:00
|
|
|
revision=2
|
2013-11-03 07:20:30 +01:00
|
|
|
hostmakedepends="pkg-config"
|
|
|
|
makedepends="dbus-devel libcap-devel libidn-devel"
|
2014-01-01 16:10:11 +01:00
|
|
|
conf_files="/etc/dnsmasq.conf"
|
2014-10-27 18:06:48 +01:00
|
|
|
build_options="systemd"
|
2014-01-01 16:10:11 +01:00
|
|
|
system_accounts="dnsmasq"
|
2014-10-27 18:06:48 +01:00
|
|
|
dnsmasq_homedir="/var/chroot"
|
2009-12-04 07:05:13 +01:00
|
|
|
short_desc="Lightweight, easy to configure DNS forwarder and DHCP server"
|
2015-04-10 09:16:30 +02:00
|
|
|
maintainer="Juan RP <xtraeme@voidlinux.eu>"
|
2011-10-08 18:50:02 +02:00
|
|
|
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"
|
2014-09-24 16:46:59 +02:00
|
|
|
checksum=635f1b47417d17cf32e45cfcfd0213ac39fd09918479a25373ba9b2ce4adc05d
|
2009-12-04 07:05:13 +01:00
|
|
|
|
2012-05-27 20:04:01 +02:00
|
|
|
do_build() {
|
2011-10-08 18:50:02 +02:00
|
|
|
echo '#define HAVE_DBUS' >> src/config.h
|
2014-09-24 16:46:59 +02:00
|
|
|
make CC=$CC CFLAGS="$CFLAGS" LDFLAGS="$LDFLAGS" ${makejobs}
|
2011-10-08 18:50:02 +02:00
|
|
|
}
|
2012-05-27 20:04:01 +02:00
|
|
|
do_install() {
|
2011-10-08 18:50:02 +02:00
|
|
|
make PREFIX=/usr DESTDIR=${DESTDIR} install
|
|
|
|
|
2014-10-27 18:06:48 +01:00
|
|
|
vsv dnsmasq
|
|
|
|
vconf dnsmasq.conf.example dnsmasq.conf
|
2011-10-08 18:50:02 +02:00
|
|
|
vinstall dbus/dnsmasq.conf 644 etc/dbus-1/system.d
|
2014-10-27 18:06:48 +01:00
|
|
|
|
|
|
|
if [ "$build_option_systemd" ]; then
|
|
|
|
vinstall ${FILESDIR}/dnsmasq.service 644 usr/lib/systemd/system
|
|
|
|
fi
|
2009-12-04 07:05:13 +01:00
|
|
|
}
|