wok annotate unbound/receipt @ rev 25572
BootProg: fix boot16.asm (again)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat May 13 13:34:41 2023 +0000 (15 months ago) |
parents | 922f061231c2 |
children | 96982f54e3dc |
rev | line source |
---|---|
pascal@18905 | 1 # SliTaz package receipt. |
pascal@18905 | 2 |
pascal@18905 | 3 PACKAGE="unbound" |
pascal@23835 | 4 VERSION="1.10.1" |
pascal@18905 | 5 CATEGORY="network" |
pascal@18905 | 6 SHORT_DESC="A validating, recursive, and caching DNS resolver." |
pascal@18905 | 7 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@18905 | 8 LICENSE="BSD" |
Hans-G?nter@22074 | 9 WEB_SITE="https://www.unbound.net/" |
Hans-G?nter@22074 | 10 |
pascal@18905 | 11 TARBALL="$PACKAGE-$VERSION.tar.gz" |
pascal@18905 | 12 WGET_URL="https://www.unbound.net/downloads/$TARBALL" |
pascal@18905 | 13 |
Hans-G?nter@23715 | 14 DEPENDS="expat libssl zlib" |
Hans-G?nter@23715 | 15 BUILD_DEPENDS="expat-dev openssl-dev" |
pascal@18905 | 16 |
Hans-G?nter@22074 | 17 CONFIG_FILES="/etc/unbound" |
Hans-G?nter@22074 | 18 |
pascal@24304 | 19 # What is the latest version available today? |
pascal@24304 | 20 current_version() |
pascal@24304 | 21 { |
pascal@24304 | 22 wget -O - "${WGET_URL%/*}?C=M;O=A" 2>/dev/null | \ |
pascal@24383 | 23 sed "/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-||;s|.tar.*||" | tail -n1 |
pascal@24304 | 24 } |
pascal@24304 | 25 |
pascal@18905 | 26 # Rules to configure and make the package. |
pascal@18905 | 27 compile_rules() |
pascal@18905 | 28 { |
Hans-G?nter@22074 | 29 ./configure \ |
Hans-G?nter@22074 | 30 --prefix=/usr \ |
Hans-G?nter@22074 | 31 --sysconfdir=/etc \ |
Hans-G?nter@22074 | 32 --mandir=/usr/share/man \ |
pascal@18905 | 33 $CONFIGURE_ARGS && |
pascal@18905 | 34 make && |
pascal@18905 | 35 make DESTDIR=$DESTDIR install |
pascal@18905 | 36 } |
pascal@18905 | 37 |
pascal@18905 | 38 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@18905 | 39 genpkg_rules() |
pascal@18905 | 40 { |
Hans-G?nter@22074 | 41 mkdir -p $fs/usr/lib |
Hans-G?nter@22074 | 42 mkdir -p $fs/var/lib/unbound |
Hans-G?nter@22074 | 43 |
Hans-G?nter@22074 | 44 cp -a $install/etc $fs |
Hans-G?nter@22074 | 45 cp -a $install/usr/lib/*.so* $fs/usr/lib |
Hans-G?nter@22074 | 46 cp -a $install/usr/sbin $fs/usr |
pascal@18905 | 47 } |
pascal@19008 | 48 |
pascal@19008 | 49 # Post message when installing. |
pascal@19008 | 50 post_install() |
pascal@19008 | 51 { |
pascal@19008 | 52 chroot "$1/" adduser -S -H -h /var/lib/unbound -D unbound |
pascal@19008 | 53 chroot "$1/" chown unbound /var/lib/unbound |
pascal@19008 | 54 chroot "$1/" unbound-anchor -a /var/lib/unbound/root.key |
pascal@19008 | 55 } |