wok view bind/receipt @ rev 21440

Up ipxe (1.0.0-20170417)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Mon Apr 29 13:02:07 2019 +0200 (2019-04-29)
parents 3af6a1c93f35
children 37dbe92b4822
line source
1 # SliTaz package receipt.
3 PACKAGE="bind"
4 VERSION="9.11.0"
5 CATEGORY="network"
6 SHORT_DESC="Domain Name System daemon."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="ISC"
9 TARBALL="$PACKAGE-$VERSION.tar.gz"
10 WEB_SITE="https://www.isc.org/"
11 WGET_URL="http://ftp.isc.org/isc/bind9/$VERSION/$TARBALL"
12 CONFIG_FILES="/etc/bind"
13 TAZPANEL_DAEMON="edit::/etc/bind/named.conf|man|options|web::$WEB_SITE"
14 TAGS="DNS daemon"
16 DEPENDS="libbind libcrypto attr openssl perl"
17 BUILD_DEPENDS="libtool libcap-dev openssl-dev perl krb5-dev readline-dev"
19 # Rules to configure and make the package.
20 compile_rules()
21 {
22 mkdir -p $DESTDIR/etc/bind
23 ./configure --prefix=/usr --infodir=/usr/share/info \
24 --sysconfdir=/etc/bind --localstatedir=/var --with-libtool \
25 --mandir=/usr/share/man --with-openssl $CONFIGURE_ARGS && \
26 make && make DESTDIR=$DESTDIR install && \
27 LD_LIBRARY_PATH=$DESTDIR/usr/lib \
28 $DESTDIR/usr/bin/dig ns . @a.root-servers.net. > $DESTDIR/etc/bind/db.root
29 }
31 # Rules to gen a SliTaz package suitable for Tazpkg.
32 genpkg_rules()
33 {
34 mkdir -p $fs/usr $fs/var/cache/bind
35 cp -a $install/usr/sbin $fs/usr
36 cp -a $install/etc $fs
37 cp -a $stuff/etc $fs
38 }
40 # Post message when installing.
41 post_install()
42 {
43 localnets="192.168.0.0/16; 127.0.0.1;"
44 grep -qs allow-recursion "$1/etc/bind/named.conf.options" ||
45 sed -i "s/.*directory.*/\\tallow-recursion { $localnets };\\n&/" \
46 "$1/etc/bind/named.conf.options"
47 #[ -x "$1/usr/bin/ssh-keygen" ] &&
48 #chroot "$1/" "hostname -f | xargs ssh-keygen -r" | \
49 # sed 's/^/update add /;s/ IN / 3600&/;/ SSHFP . 1 /d;' \
50 #chroot "$1/" nsupdate
51 }