### this file is sourced not run
PKGVER=2.79
PKGBUILD=1
PKGARCH=x86_64

# source: james
TARBALL=dnsmasq-$PKGVER.tar.xz
MD5SUM=64010c9734f5e275eb591374a6dad924
SRC_URL=http://www.thekelleys.org.uk/dnsmasq/$TARBALL
BUNDLE=

SLACKREQ=
SLACKDESC="dnsmasq: dnsmasq $PKGVER (DNS forwarder and DHCP server)  
dnsmasq:  
dnsmasq: Dnsmasq is a lightweight, easy to configure DNS forwarder and DHCP 
dnsmasq: server. It is designed to provide DNS and, optionally, DHCP, to a 
dnsmasq: small network. It can serve the names of local machines which are not 
dnsmasq: in the global DNS. The DHCP server integrates with the DNS server and 
dnsmasq: allows machines with DHCP-allocated addresses to appear in the DNS 
dnsmasq: with names configured either in each host or in a central 
dnsmasq: configuration file. Dnsmasq supports static and dynamic DHCP leases 
dnsmasq: and BOOTP/TFTP/PXE for network booting of diskless machines.  
dnsmasq:
"

### default pkg_download
### default pkg_prepare
### prepare
pkg_prepare() {
	pkg_prepare_default &&
	cp $CHROOT_DIR/tmp/pkg/dnsmasq.conf.netboot etc
}

### build
pkg_build() {
	cd /tmp/dnsmasq*
	make $MAKEFLAGS && make install PREFIX=/usr &&
	cp dnsmasq.conf.example /etc &&
	mkdir -p /usr/share/doc/dnsmasq-$PKGVER &&
	cp -a contrib FAQ doc.html setup.html /usr/share/doc/dnsmasq-$PKGVER &&
	pkg_build_slackdesc
}


