opt/dnsmasq/Pkgfile

26 lines
703 B
Plaintext

# Description: Caching DNS forwarder and DHCP/TFTP server
# URL: http://www.thekelleys.org.uk/dnsmasq/doc.html
# Maintainer: Juergen Daubert, jue at crux dot nu
# Depends on: nettle
name=dnsmasq
version=2.90
release=1
source=(http://www.thekelleys.org.uk/$name/$name-$version.tar.xz \
$name-config.patch dnsmasq)
build () {
cd $name-$version
patch -p1 -i $SRC/$name-config.patch
make COPTS="-DHAVE_DNSSEC" CFLAGS="$CFLAGS -W -Wall"
make PREFIX=$PKG/usr install-common
install -d $PKG/{var/lib/dhcp,etc/rc.d,usr/share/dnsmasq}
install -m 755 $SRC/dnsmasq $PKG/etc/rc.d/
install -m 644 dnsmasq.conf.example $PKG/etc/dnsmasq.conf
install -m 644 trust-anchors.conf $PKG/usr/share/dnsmasq
}