wok-next view bind/receipt @ rev 19500

slitaz-i18n: skip locale packages yet not created (locale-fa and locale-vi).
author Aleksej Bobylev <al.bobylev@gmail.com>
date Thu Nov 17 02:41:29 2016 +0200 (2016-11-17)
parents a5b865e166cd
children 11f96bc53c0e
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="http://www.isc.org/products/BIND/"
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 }