wok-6.x annotate bind/receipt @ rev 24724

updated libcap-ng and libcap-ng-dev (0.7.9 -> 0.8.2)
author Hans-G?nter Theisgen
date Tue Mar 15 10:51:40 2022 +0100 (2022-03-15)
parents a353ccd3c0fb
children
rev   line source
pascal@1612 1 # SliTaz package receipt.
pascal@1612 2
pascal@1612 3 PACKAGE="bind"
Hans-G?nter@22536 4 VERSION="9.14.9"
pascal@1612 5 CATEGORY="network"
Hans-G?nter@22536 6 TAGS="DNS daemon"
pascal@1612 7 SHORT_DESC="Domain Name System daemon."
pascal@1612 8 MAINTAINER="pascal.bellard@slitaz.org"
pascal@15472 9 LICENSE="ISC"
Hans-G?nter@22536 10 WEB_SITE="https://www.isc.org/bind/"
Hans-G?nter@22536 11
pascal@1612 12 TARBALL="$PACKAGE-$VERSION.tar.gz"
Hans-G?nter@22536 13 WGET_URL="https://ftp.isc.org/isc/bind9/$VERSION/$TARBALL"
Hans-G?nter@22536 14
Hans-G?nter@22536 15 DEPENDS="attr gcc83-lib-base libbind libcrypto openssl perl"
Hans-G?nter@22537 16 BUILD_DEPENDS="gcc83 krb5-dev libatomic libcap-dev libtool openssl-dev
Hans-G?nter@22536 17 perl python python-ply readline-dev"
Hans-G?nter@22536 18
pascal@1612 19 CONFIG_FILES="/etc/bind"
pascal@14772 20 TAZPANEL_DAEMON="edit::/etc/bind/named.conf|man|options|web::$WEB_SITE"
slaxemulator@10709 21
pascal@24373 22 # What is the latest version available today?
pascal@24373 23 current_version()
pascal@24373 24 {
pascal@24373 25 wget -O - $WEB_SITE 2>/dev/null | \
pascal@24373 26 grep -B1 'Current-Stable' | sed 's|.*<td>||;s|</td>.*||;q'
pascal@24373 27 }
pascal@24373 28
pascal@1612 29 # Rules to configure and make the package.
pascal@1612 30 compile_rules()
pascal@1612 31 {
slaxemulator@10136 32 mkdir -p $DESTDIR/etc/bind
Hans-G?nter@22536 33
Hans-G?nter@22536 34 ./configure \
Hans-G?nter@22536 35 CC=gcc-83 \
Hans-G?nter@22536 36 CXX=g++-83 \
Hans-G?nter@22536 37 --prefix=/usr \
Hans-G?nter@22536 38 --infodir=/usr/share/info \
Hans-G?nter@22536 39 --sysconfdir=/etc/bind \
Hans-G?nter@22536 40 --localstatedir=/var \
Hans-G?nter@22536 41 --with-libtool \
Hans-G?nter@22536 42 --mandir=/usr/share/man \
Hans-G?nter@22536 43 --with-openssl \
Hans-G?nter@22536 44 $CONFIGURE_ARGS &&
Hans-G?nter@22536 45 make &&
Hans-G?nter@22536 46 make DESTDIR=$DESTDIR install &&
slaxemulator@10136 47 LD_LIBRARY_PATH=$DESTDIR/usr/lib \
slaxemulator@10136 48 $DESTDIR/usr/bin/dig ns . @a.root-servers.net. > $DESTDIR/etc/bind/db.root
pascal@1612 49 }
pascal@1612 50
pascal@1612 51 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@1612 52 genpkg_rules()
pascal@1612 53 {
Hans-G?nter@22536 54 mkdir -p $fs/usr
Hans-G?nter@22536 55 mkdir -p $fs/var/cache/bind
Hans-G?nter@22536 56
Hans-G?nter@22536 57 cp -a $install/usr/sbin $fs/usr
Hans-G?nter@22536 58 cp -a $install/etc $fs
Hans-G?nter@22536 59 cp -a $stuff/etc $fs
pascal@1612 60 }
pascal@1612 61
pascal@17283 62 # Post message when installing.
pascal@17283 63 post_install()
pascal@17283 64 {
pascal@17283 65 localnets="192.168.0.0/16; 127.0.0.1;"
pascal@18730 66 grep -qs allow-recursion "$1/etc/bind/named.conf.options" ||
pascal@17283 67 sed -i "s/.*directory.*/\\tallow-recursion { $localnets };\\n&/" \
pascal@18730 68 "$1/etc/bind/named.conf.options"
Hans-G?nter@22536 69
pascal@18898 70 #[ -x "$1/usr/bin/ssh-keygen" ] &&
pascal@18898 71 #chroot "$1/" "hostname -f | xargs ssh-keygen -r" | \
pascal@18898 72 # sed 's/^/update add /;s/ IN / 3600&/;/ SSHFP . 1 /d;' \
pascal@18898 73 #chroot "$1/" nsupdate
pascal@17283 74 }