wok annotate bind/receipt @ rev 22827
modified get-OpenOffice3
author | Hans-G?nter Theisgen |
---|---|
date | Fri Feb 07 16:26:49 2020 +0100 (2020-02-07) |
parents | 37dbe92b4822 |
children | 9af0e03b8ad0 |
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@1612 | 22 # Rules to configure and make the package. |
pascal@1612 | 23 compile_rules() |
pascal@1612 | 24 { |
slaxemulator@10136 | 25 mkdir -p $DESTDIR/etc/bind |
Hans-G?nter@22536 | 26 |
Hans-G?nter@22536 | 27 ./configure \ |
Hans-G?nter@22536 | 28 CC=gcc-83 \ |
Hans-G?nter@22536 | 29 CXX=g++-83 \ |
Hans-G?nter@22536 | 30 --prefix=/usr \ |
Hans-G?nter@22536 | 31 --infodir=/usr/share/info \ |
Hans-G?nter@22536 | 32 --sysconfdir=/etc/bind \ |
Hans-G?nter@22536 | 33 --localstatedir=/var \ |
Hans-G?nter@22536 | 34 --with-libtool \ |
Hans-G?nter@22536 | 35 --mandir=/usr/share/man \ |
Hans-G?nter@22536 | 36 --with-openssl \ |
Hans-G?nter@22536 | 37 $CONFIGURE_ARGS && |
Hans-G?nter@22536 | 38 make && |
Hans-G?nter@22536 | 39 make DESTDIR=$DESTDIR install && |
slaxemulator@10136 | 40 LD_LIBRARY_PATH=$DESTDIR/usr/lib \ |
slaxemulator@10136 | 41 $DESTDIR/usr/bin/dig ns . @a.root-servers.net. > $DESTDIR/etc/bind/db.root |
pascal@1612 | 42 } |
pascal@1612 | 43 |
pascal@1612 | 44 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@1612 | 45 genpkg_rules() |
pascal@1612 | 46 { |
Hans-G?nter@22536 | 47 mkdir -p $fs/usr |
Hans-G?nter@22536 | 48 mkdir -p $fs/var/cache/bind |
Hans-G?nter@22536 | 49 |
Hans-G?nter@22536 | 50 cp -a $install/usr/sbin $fs/usr |
Hans-G?nter@22536 | 51 cp -a $install/etc $fs |
Hans-G?nter@22536 | 52 cp -a $stuff/etc $fs |
pascal@1612 | 53 } |
pascal@1612 | 54 |
pascal@17283 | 55 # Post message when installing. |
pascal@17283 | 56 post_install() |
pascal@17283 | 57 { |
pascal@17283 | 58 localnets="192.168.0.0/16; 127.0.0.1;" |
pascal@18730 | 59 grep -qs allow-recursion "$1/etc/bind/named.conf.options" || |
pascal@17283 | 60 sed -i "s/.*directory.*/\\tallow-recursion { $localnets };\\n&/" \ |
pascal@18730 | 61 "$1/etc/bind/named.conf.options" |
Hans-G?nter@22536 | 62 |
pascal@18898 | 63 #[ -x "$1/usr/bin/ssh-keygen" ] && |
pascal@18898 | 64 #chroot "$1/" "hostname -f | xargs ssh-keygen -r" | \ |
pascal@18898 | 65 # sed 's/^/update add /;s/ IN / 3600&/;/ SSHFP . 1 /d;' \ |
pascal@18898 | 66 #chroot "$1/" nsupdate |
pascal@17283 | 67 } |