void-packages/srcpkgs/dnsmasq/template

27 lines
895 B
Plaintext
Raw Normal View History

# Template file for 'dnsmasq'
pkgname=dnsmasq
2014-09-24 16:46:59 +02:00
version=2.72
2014-04-10 00:08:16 +02:00
revision=1
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"
short_desc="Lightweight, easy to configure DNS forwarder and DHCP server"
maintainer="Juan RP <xtraeme@gmail.com>"
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
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() {
make PREFIX=/usr DESTDIR=${DESTDIR} install
vinstall dnsmasq.conf.example 644 etc dnsmasq.conf
2012-07-09 23:00:38 +02:00
vinstall ${FILESDIR}/dnsmasq.service 644 usr/lib/systemd/system
vinstall dbus/dnsmasq.conf 644 etc/dbus-1/system.d
}