void-packages/srcpkgs/dnsmasq/template

33 lines
995 B
Bash

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