wok-current view bind/receipt @ rev 24804
updated liblouis and liblouis-dev (3.13.0 -> 3.21.0)
author | Hans-G?nter Theisgen |
---|---|
date | Tue Mar 22 10:57:54 2022 +0100 (2022-03-22) |
parents | a353ccd3c0fb |
children |
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 # What is the latest version available today?
23 current_version()
24 {
25 wget -O - $WEB_SITE 2>/dev/null | \
26 grep -B1 'Current-Stable' | sed 's|.*<td>||;s|</td>.*||;q'
27 }
29 # Rules to configure and make the package.
30 compile_rules()
31 {
32 mkdir -p $DESTDIR/etc/bind
34 ./configure \
35 CC=gcc-83 \
36 CXX=g++-83 \
37 --prefix=/usr \
38 --infodir=/usr/share/info \
39 --sysconfdir=/etc/bind \
40 --localstatedir=/var \
41 --with-libtool \
42 --mandir=/usr/share/man \
43 --with-openssl \
44 $CONFIGURE_ARGS &&
45 make &&
46 make DESTDIR=$DESTDIR install &&
47 LD_LIBRARY_PATH=$DESTDIR/usr/lib \
48 $DESTDIR/usr/bin/dig ns . @a.root-servers.net. > $DESTDIR/etc/bind/db.root
49 }
51 # Rules to gen a SliTaz package suitable for Tazpkg.
52 genpkg_rules()
53 {
54 mkdir -p $fs/usr
55 mkdir -p $fs/var/cache/bind
57 cp -a $install/usr/sbin $fs/usr
58 cp -a $install/etc $fs
59 cp -a $stuff/etc $fs
60 }
62 # Post message when installing.
63 post_install()
64 {
65 localnets="192.168.0.0/16; 127.0.0.1;"
66 grep -qs allow-recursion "$1/etc/bind/named.conf.options" ||
67 sed -i "s/.*directory.*/\\tallow-recursion { $localnets };\\n&/" \
68 "$1/etc/bind/named.conf.options"
70 #[ -x "$1/usr/bin/ssh-keygen" ] &&
71 #chroot "$1/" "hostname -f | xargs ssh-keygen -r" | \
72 # sed 's/^/update add /;s/ IN / 3600&/;/ SSHFP . 1 /d;' \
73 #chroot "$1/" nsupdate
74 }