wok-next view bind/receipt @ rev 21527
updated bootchart (0.9 -> 1.20)
author | Hans-G?nter Theisgen |
---|---|
date | Fri Jun 19 15:06:45 2020 +0100 (2020-06-19) |
parents | 8459b1de4897 |
children |
line source
1 # SliTaz package receipt v2.
3 PACKAGE="bind"
4 VERSION="9.12.3"
5 CATEGORY="network"
6 SHORT_DESC="BIND DNS server"
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="MPL2"
9 WEB_SITE="http://www.isc.org/downloads/BIND/"
11 TARBALL="$PACKAGE-$VERSION.tar.gz"
12 WGET_URL="http://ftp.isc.org/isc/bind9/$VERSION/$TARBALL"
14 BUILD_DEPENDS="libtool libcap-dev openssl-dev perl krb5-dev readline-dev"
15 SPLIT="$PACKAGE-client $PACKAGE-lib $PACKAGE-dev"
17 COOKOPTS="force-arch" # different configs, .h
19 compile_rules() {
20 mkdir -p $install/etc/bind
22 ./configure \
23 --sysconfdir=/etc/bind \
24 --enable-threads \
25 --disable-static \
26 --with-libtool \
27 --with-openssl \
28 --with-randomdev=/dev/urandom \
29 $CONFIGURE_ARGS &&
30 fix libtool &&
31 make &&
32 make DESTDIR=$install install || return 1
34 LD_LIBRARY_PATH=$install/usr/lib \
35 $install/usr/bin/dig ns . @a.root-servers.net. > $install/etc/bind/db.root
37 cp -a $stuff/etc $install
38 chown -R root:root $install/etc
40 docdir=$install/usr/share/doc/bind-$VERSION
41 mkdir -p $docdir/arm $docdir/misc
42 cp doc/arm/*.html $docdir/arm
43 cd doc/misc
44 cp dnssec ipv6 migrat* options rfc-compliance roadmap sdb $docdir/misc
45 }
47 genpkg_rules() {
48 case $PACKAGE in
49 bind)
50 CONFIG_FILES="/etc/bind/"
51 copy etc/ sbin/
52 DEPENDS="bind-lib libcap openssl"
53 TAZPANEL_DAEMON="edit::/etc/bind/named.conf|man|options|web::$WEB_SITE"
54 TAGS="DNS daemon"
55 ;;
56 *-client)
57 copy bin/; rm $fs/usr/bin/bind9-config
58 CAT="network|client"
59 DEPENDS="bind-lib libkrb5 readline"
60 ;;
61 *-lib)
62 copy *.so*
63 CAT="libdevel|shared libraries"
64 DEPENDS="libkrb5 openssl"
65 PROVIDE="libbind"
66 ;;
67 *-dev)
68 copy @dev
69 ;;
70 esac
71 }
73 post_install_bind() {
74 mkdir -p "$1/var/cache/bind"
76 localnets="192.168.0.0/16; 127.0.0.1;"
77 grep -qs allow-recursion "$1/etc/bind/named.conf.options" ||
78 sed -i "s/.*directory.*/\\tallow-recursion { $localnets };\\n&/" \
79 "$1/etc/bind/named.conf.options"
80 #[ -x "$1/usr/bin/ssh-keygen" ] &&
81 #chroot "$1/" "hostname -f | xargs ssh-keygen -r" | \
82 # sed 's/^/update add /;s/ IN / 3600&/;/ SSHFP . 1 /d;' \
83 #chroot "$1/" nsupdate
84 }