void-packages/srcpkgs/dnsmasq/template
2017-10-02 21:57:05 +02:00

27 lines
887 B
Bash

# Template file for 'dnsmasq'
pkgname=dnsmasq
version=2.78
revision=1
hostmakedepends="pkg-config"
makedepends="dbus-devel libcap-devel libidn-devel"
conf_files="/etc/dnsmasq.conf"
system_accounts="dnsmasq"
dnsmasq_homedir="/var/chroot"
short_desc="Lightweight, easy to configure DNS forwarder and DHCP server"
maintainer="Juan RP <xtraeme@voidlinux.eu>"
license="GPL-2"
homepage="http://www.thekelleys.org.uk/dnsmasq/doc.html"
distfiles="http://www.thekelleys.org.uk/${pkgname}/${pkgname}-${version}.tar.gz"
checksum=c92e5d78aa6353354d02aabf74590d08980bb1385d8a00b80ef9bc80430aa1dc
do_build() {
echo '#define HAVE_DBUS' >> src/config.h
make CC=$CC CFLAGS="$CFLAGS" LDFLAGS="$LDFLAGS" ${makejobs}
}
do_install() {
make PREFIX=/usr BINDIR=/usr/bin DESTDIR=${DESTDIR} install
vsv dnsmasq
vconf dnsmasq.conf.example dnsmasq.conf
vinstall dbus/dnsmasq.conf 644 etc/dbus-1/system.d
}