wok-current view bind/receipt @ rev 24107
updated adminer (4.7.5 -> 4.8.1)
author | Hans-G?nter Theisgen |
---|---|
date | Sat Sep 25 17:50:51 2021 +0100 (2021-09-25) |
parents | 37dbe92b4822 |
children | 9af0e03b8ad0 |
line source
1 # SliTaz package receipt.
3 PACKAGE="bind"
4 VERSION="9.14.9"
5 CATEGORY="network"
6 TAGS="DNS daemon"
7 SHORT_DESC="Domain Name System daemon."
8 MAINTAINER="pascal.bellard@slitaz.org"
9 LICENSE="ISC"
10 WEB_SITE="https://www.isc.org/bind/"
12 TARBALL="$PACKAGE-$VERSION.tar.gz"
13 WGET_URL="https://ftp.isc.org/isc/bind9/$VERSION/$TARBALL"
15 DEPENDS="attr gcc83-lib-base libbind libcrypto openssl perl"
16 BUILD_DEPENDS="gcc83 krb5-dev libatomic libcap-dev libtool openssl-dev
17 perl python python-ply readline-dev"
19 CONFIG_FILES="/etc/bind"
20 TAZPANEL_DAEMON="edit::/etc/bind/named.conf|man|options|web::$WEB_SITE"
22 # Rules to configure and make the package.
23 compile_rules()
24 {
25 mkdir -p $DESTDIR/etc/bind
27 ./configure \
28 CC=gcc-83 \
29 CXX=g++-83 \
30 --prefix=/usr \
31 --infodir=/usr/share/info \
32 --sysconfdir=/etc/bind \
33 --localstatedir=/var \
34 --with-libtool \
35 --mandir=/usr/share/man \
36 --with-openssl \
37 $CONFIGURE_ARGS &&
38 make &&
39 make DESTDIR=$DESTDIR install &&
40 LD_LIBRARY_PATH=$DESTDIR/usr/lib \
41 $DESTDIR/usr/bin/dig ns . @a.root-servers.net. > $DESTDIR/etc/bind/db.root
42 }
44 # Rules to gen a SliTaz package suitable for Tazpkg.
45 genpkg_rules()
46 {
47 mkdir -p $fs/usr
48 mkdir -p $fs/var/cache/bind
50 cp -a $install/usr/sbin $fs/usr
51 cp -a $install/etc $fs
52 cp -a $stuff/etc $fs
53 }
55 # Post message when installing.
56 post_install()
57 {
58 localnets="192.168.0.0/16; 127.0.0.1;"
59 grep -qs allow-recursion "$1/etc/bind/named.conf.options" ||
60 sed -i "s/.*directory.*/\\tallow-recursion { $localnets };\\n&/" \
61 "$1/etc/bind/named.conf.options"
63 #[ -x "$1/usr/bin/ssh-keygen" ] &&
64 #chroot "$1/" "hostname -f | xargs ssh-keygen -r" | \
65 # sed 's/^/update add /;s/ IN / 3600&/;/ SSHFP . 1 /d;' \
66 #chroot "$1/" nsupdate
67 }