wok annotate unbound/receipt @ rev 24178

created recipe for perl-file-sharedir-install
author Hans-G?nter Theisgen
date Fri Dec 31 06:33:57 2021 +0100 (2021-12-31)
parents ca57a269eb9b
children 922f061231c2
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@18905 19 # Rules to configure and make the package.
pascal@18905 20 compile_rules()
pascal@18905 21 {
Hans-G?nter@22074 22 ./configure \
Hans-G?nter@22074 23 --prefix=/usr \
Hans-G?nter@22074 24 --sysconfdir=/etc \
Hans-G?nter@22074 25 --mandir=/usr/share/man \
pascal@18905 26 $CONFIGURE_ARGS &&
pascal@18905 27 make &&
pascal@18905 28 make DESTDIR=$DESTDIR install
pascal@18905 29 }
pascal@18905 30
pascal@18905 31 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@18905 32 genpkg_rules()
pascal@18905 33 {
Hans-G?nter@22074 34 mkdir -p $fs/usr/lib
Hans-G?nter@22074 35 mkdir -p $fs/var/lib/unbound
Hans-G?nter@22074 36
Hans-G?nter@22074 37 cp -a $install/etc $fs
Hans-G?nter@22074 38 cp -a $install/usr/lib/*.so* $fs/usr/lib
Hans-G?nter@22074 39 cp -a $install/usr/sbin $fs/usr
pascal@18905 40 }
pascal@19008 41
pascal@19008 42 # Post message when installing.
pascal@19008 43 post_install()
pascal@19008 44 {
pascal@19008 45 chroot "$1/" adduser -S -H -h /var/lib/unbound -D unbound
pascal@19008 46 chroot "$1/" chown unbound /var/lib/unbound
pascal@19008 47 chroot "$1/" unbound-anchor -a /var/lib/unbound/root.key
pascal@19008 48 }