wok-current view unbound/receipt @ rev 24145

ventoy: set arch
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Nov 17 10:14:59 2021 +0000 (2021-11-17)
parents ca57a269eb9b
children 922f061231c2
line source
1 # SliTaz package receipt.
3 PACKAGE="unbound"
4 VERSION="1.10.1"
5 CATEGORY="network"
6 SHORT_DESC="A validating, recursive, and caching DNS resolver."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="BSD"
9 WEB_SITE="https://www.unbound.net/"
11 TARBALL="$PACKAGE-$VERSION.tar.gz"
12 WGET_URL="https://www.unbound.net/downloads/$TARBALL"
14 DEPENDS="expat libssl zlib"
15 BUILD_DEPENDS="expat-dev openssl-dev"
17 CONFIG_FILES="/etc/unbound"
19 # Rules to configure and make the package.
20 compile_rules()
21 {
22 ./configure \
23 --prefix=/usr \
24 --sysconfdir=/etc \
25 --mandir=/usr/share/man \
26 $CONFIGURE_ARGS &&
27 make &&
28 make DESTDIR=$DESTDIR install
29 }
31 # Rules to gen a SliTaz package suitable for Tazpkg.
32 genpkg_rules()
33 {
34 mkdir -p $fs/usr/lib
35 mkdir -p $fs/var/lib/unbound
37 cp -a $install/etc $fs
38 cp -a $install/usr/lib/*.so* $fs/usr/lib
39 cp -a $install/usr/sbin $fs/usr
40 }
42 # Post message when installing.
43 post_install()
44 {
45 chroot "$1/" adduser -S -H -h /var/lib/unbound -D unbound
46 chroot "$1/" chown unbound /var/lib/unbound
47 chroot "$1/" unbound-anchor -a /var/lib/unbound/root.key
48 }