36 lines
1.2 KiB
Bash
36 lines
1.2 KiB
Bash
# Template file for 'dnsmasq'
|
|
pkgname=dnsmasq
|
|
version=2.83
|
|
revision=1
|
|
conf_files="/etc/dnsmasq.conf"
|
|
hostmakedepends="pkg-config"
|
|
makedepends="dbus-devel libcap-devel libidn2-devel $(vopt_if dnssec nettle-devel)"
|
|
short_desc="Lightweight, easy to configure DNS forwarder and DHCP server"
|
|
maintainer="Orphaned <orphan@voidlinux.org>"
|
|
license="GPL-2.0-or-later"
|
|
homepage="http://www.thekelleys.org.uk/dnsmasq/doc.html"
|
|
changelog="http://www.thekelleys.org.uk/dnsmasq/CHANGELOG"
|
|
distfiles="http://www.thekelleys.org.uk/dnsmasq/dnsmasq-${version}.tar.gz"
|
|
checksum=6b67955873acc931bfff61a0a1e0dc239f8b52e31df50e9164d3a4537571342f
|
|
system_accounts="dnsmasq"
|
|
dnsmasq_homedir="/var/chroot"
|
|
|
|
build_options="dnssec"
|
|
desc_option_dnssec="Enable DNSSEC support via nettle"
|
|
|
|
do_build() {
|
|
echo '#define HAVE_DBUS' >> src/config.h
|
|
echo '#define HAVE_LIBIDN2' >> src/config.h
|
|
if [ "$build_option_dnssec" ]; then
|
|
echo '#define HAVE_DNSSEC' >> src/config.h
|
|
fi
|
|
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 ${FILESDIR}/dbus.conf 644 etc/dbus-1/system.d
|
|
}
|