summaryrefslogtreecommitdiffstats
path: root/bind-utils/Pkgfile
blob: a9e2bed57cd608fbb4c6f3c3827207f4946c907e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
# Description: Outils de resolution de nom DNS
# URL:  http://www.isc.org/software/bind
# Maintainer: NuTyX core team
# Packager: fredjo

name=bind-utils
version=9.9.1-P2
release=1
source=(http://ftp.isc.org/isc/bind9/$version/bind-$version.tar.gz)

build(){
	cd bind-$version

	cd contrib/queryperf
		./configure
		make CFLAGS="$CFLAGS"
	cd ../..

	cd contrib/query-loc-*
		sed "s|-lnsl|-lnsl -lresolv|g" -i configure*
		rm configure && autoconf
		./configure
		make CFLAGS="$CFLAGS"
	cd ../..

	./configure --prefix=/usr \
		--mandir=/usr/share/man 

	make -C lib/dns
	make -C lib/isc
	make -C lib/bind9
	make -C lib/isccfg
	make -C lib/lwres
	make -C bin/dig
	make -C bin/dig DESTDIR=$PKG install

	install -m0755 contrib/queryperf/queryperf $PKG/usr/bin
	install -m0755 contrib/query-loc-*/query-loc $PKG/usr/bin
	install -m0644 contrib/query-loc-*/query-loc.1 $PKG/usr/share/man/man1
}