wok-next view bind/receipt @ rev 20452
liblzma-dev is absent -> xz-dev
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Wed Feb 28 14:43:56 2018 +0200 (2018-02-28) |
parents | 3af6a1c93f35 |
children | e6615350078d |
line source
1 # SliTaz package receipt v2.
3 PACKAGE="bind"
4 VERSION="9.11.1"
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/"
10 TAZPANEL_DAEMON="edit::/etc/bind/named.conf|man|options|web::$WEB_SITE"
11 TAGS="DNS daemon"
13 TARBALL="$PACKAGE-$VERSION.tar.gz"
14 WGET_URL="http://ftp.isc.org/isc/bind9/$VERSION/$TARBALL"
16 BUILD_DEPENDS="libtool libcap-dev openssl-dev perl krb5-dev readline-dev"
17 SPLIT="bind-client libbind bind-dev"
19 # Rules to configure and make the package.
20 compile_rules()
21 {
22 mkdir -p $DESTDIR/etc/bind
23 ./configure \
24 --sysconfdir=/etc/bind \
25 --localstatedir=/var \
26 --enable-threads \
27 --disable-static \
28 --with-libtool \
29 --with-openssl \
30 --with-randomdev=/dev/urandom \
31 $CONFIGURE_ARGS &&
32 make && make DESTDIR=$DESTDIR install &&
34 LD_LIBRARY_PATH=$DESTDIR/usr/lib \
35 $DESTDIR/usr/bin/dig ns . @a.root-servers.net. > $DESTDIR/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 # Rules to gen a SliTaz package suitable for Tazpkg.
48 genpkg_rules()
49 {
50 case $PACKAGE in
51 bind)
52 CONFIG_FILES="/etc/bind/"
53 copy etc/ sbin/
54 DEPENDS="libbind libcrypto attr openssl perl"
55 ;;
56 bind-client)
57 copy bin/; rm $fs/usr/bin/bind9-config
58 CAT="network|client"
59 DEPENDS="libbind libcrypto attr libpcap"
60 ;;
61 libbind)
62 copy *.so*
63 CAT="libdevel|shared libraries"
64 DEPENDS="libcrypto libcap libxml2 zlib attr libkrb5"
65 ;;
66 bind-dev)
67 copy @dev
68 ;;
69 esac
70 }
72 # Post message when installing.
73 post_install_bind()
74 {
75 mkdir -p "$1/var/cache/bind"
77 localnets="192.168.0.0/16; 127.0.0.1;"
78 grep -qs allow-recursion "$1/etc/bind/named.conf.options" ||
79 sed -i "s/.*directory.*/\\tallow-recursion { $localnets };\\n&/" \
80 "$1/etc/bind/named.conf.options"
81 #[ -x "$1/usr/bin/ssh-keygen" ] &&
82 #chroot "$1/" "hostname -f | xargs ssh-keygen -r" | \
83 # sed 's/^/update add /;s/ IN / 3600&/;/ SSHFP . 1 /d;' \
84 #chroot "$1/" nsupdate
85 }