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

# source: 
TARBALL=WtDNS-0.010-20121016.tar.xz
MD5SUM=737e1dd4fde7e9a5ae58fffc6e2c52ed
SRC_URL=http://whatever.truls.org/wtdns/$TARBALL
BUNDLE=

SLACKREQ='' # 
SLACKDESC='wtdns: wtdns 0.010 (DNS server)  
wtdns:  
wtdns: WtDNS is a fork of sheerdns with more features (IPv6 support, DNSSEC 
wtdns: and SPF support, etc). It is meant to provide dynamic DNS service; but 
wtdns: most of the tools require perl so they are not included here.  
wtdns: 
wtdns: 
wtdns: 
wtdns: 
wtdns: 
wtdns: http://whatever.truls.org/wtdns.text.shtml
'

### default pkg_download
### default pkg_prepare
### default pkg_package
### build
pkg_build() {
	cd /tmp/WtDNS*
	make OFLAGS=-Os &&
	make -C wtdnsd install &&
		
	# manpages
	for p in wtdns wtdnsd wtdnshash wtdns.ini; do
		cp doc/man/$p.8 /usr/share/man/man8
	done &&
	
	# docs html and text
	mkdir -p /usr/share/doc/wtdns/html
	cp doc/html/style.css /usr/share/doc/wtdns
	for p in wtdns wtdnsd wtdnshash wtdns.ini; do
		cp doc/html/$p.html /usr/share/doc/wtdns/html
		cp doc/$p.txt  /usr/share/doc/wtdns
	done &&

	# samples
	mkdir /etc/wtdns &&
	cp etc/wtdns.ini /etc/wtdns/wtdns.ini.sample &&
	cp etc/TXT /usr/share/doc/wtdns &&

	pkg_build_slackdesc
}
