wok-6.x annotate unbound/receipt @ rev 20547

Remove linux-mmc (again)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Dec 01 13:00:11 2018 +0100 (2018-12-01)
parents 5ec99f93b9bb
children bff282a27539
rev   line source
pascal@18905 1 # SliTaz package receipt.
pascal@18905 2
pascal@18905 3 PACKAGE="unbound"
pascal@18905 4 VERSION="1.5.7"
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"
pascal@18905 9 TARBALL="$PACKAGE-$VERSION.tar.gz"
pascal@18905 10 WEB_SITE="https://www.unbound.net/"
pascal@18905 11 WGET_URL="https://www.unbound.net/downloads/$TARBALL"
pascal@18905 12 CONFIG_FILES="/etc/unbound"
pascal@18905 13
pascal@18905 14 DEPENDS="libssl zlib expat"
pascal@18905 15 BUILD_DEPENDS="openssl-dev expat-dev"
pascal@18905 16
pascal@18905 17 # Rules to configure and make the package.
pascal@18905 18 compile_rules()
pascal@18905 19 {
pascal@18905 20 ./configure --prefix=/usr \
pascal@18905 21 --sysconfdir=/etc \
pascal@18905 22 --mandir=/usr/share/man \
pascal@18905 23 $CONFIGURE_ARGS &&
pascal@18905 24 make &&
pascal@18905 25 make DESTDIR=$DESTDIR install
pascal@18905 26 }
pascal@18905 27
pascal@18905 28 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@18905 29 genpkg_rules()
pascal@18905 30 {
pascal@19008 31 mkdir -p $fs/usr/lib $fs/var/lib/unbound
pascal@18905 32 cp -a $install/etc $fs
pascal@18905 33 cp -a $install/usr/lib/*.so* $fs/usr/lib
pascal@18905 34 cp -a $install/usr/sbin $fs/usr
pascal@18905 35 }
pascal@19008 36
pascal@19008 37 # Post message when installing.
pascal@19008 38 post_install()
pascal@19008 39 {
pascal@19008 40 chroot "$1/" adduser -S -H -h /var/lib/unbound -D unbound
pascal@19008 41 chroot "$1/" chown unbound /var/lib/unbound
pascal@19008 42 chroot "$1/" unbound-anchor -a /var/lib/unbound/root.key
pascal@19008 43 }