wok-next view bind/receipt @ rev 21020

Cleaning is almost finished... I should proceed to upgrades.
author Aleksej Bobylev <al.bobylev@gmail.com>
date Fri Nov 02 14:15:08 2018 +0200 (2018-11-02)
parents b156aee559a7
children 8459b1de4897
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/"
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 libbind $PACKAGE-dev"
17 compile_rules() {
18 mkdir -p $install/etc/bind
20 ./configure \
21 --sysconfdir=/etc/bind \
22 --enable-threads \
23 --disable-static \
24 --with-libtool \
25 --with-openssl \
26 --with-randomdev=/dev/urandom \
27 $CONFIGURE_ARGS &&
28 fix libtool &&
29 make &&
30 make DESTDIR=$install install || return 1
32 LD_LIBRARY_PATH=$install/usr/lib \
33 $install/usr/bin/dig ns . @a.root-servers.net. > $install/etc/bind/db.root
35 cp -a $stuff/etc $install
36 chown -R root:root $install/etc
38 docdir=$install/usr/share/doc/bind-$VERSION
39 mkdir -p $docdir/arm $docdir/misc
40 cp doc/arm/*.html $docdir/arm
41 cd doc/misc
42 cp dnssec ipv6 migrat* options rfc-compliance roadmap sdb $docdir/misc
43 }
45 genpkg_rules() {
46 case $PACKAGE in
47 bind)
48 CONFIG_FILES="/etc/bind/"
49 copy etc/ sbin/
50 DEPENDS="libbind libcap openssl"
51 TAZPANEL_DAEMON="edit::/etc/bind/named.conf|man|options|web::$WEB_SITE"
52 TAGS="DNS daemon"
53 ;;
54 bind-client)
55 copy bin/; rm $fs/usr/bin/bind9-config
56 CAT="network|client"
57 DEPENDS="libbind libkrb5 readline"
58 ;;
59 libbind)
60 copy *.so*
61 CAT="libdevel|shared libraries"
62 DEPENDS="libkrb5 openssl"
63 ;;
64 bind-dev)
65 copy @dev
66 ;;
67 esac
68 }
70 post_install_bind() {
71 mkdir -p "$1/var/cache/bind"
73 localnets="192.168.0.0/16; 127.0.0.1;"
74 grep -qs allow-recursion "$1/etc/bind/named.conf.options" ||
75 sed -i "s/.*directory.*/\\tallow-recursion { $localnets };\\n&/" \
76 "$1/etc/bind/named.conf.options"
77 #[ -x "$1/usr/bin/ssh-keygen" ] &&
78 #chroot "$1/" "hostname -f | xargs ssh-keygen -r" | \
79 # sed 's/^/update add /;s/ IN / 3600&/;/ SSHFP . 1 /d;' \
80 #chroot "$1/" nsupdate
81 }