wok view unbound/receipt @ rev 24950

updated nagios-plugins and nagios-plugins-mysql (2.3.3 -> 2.4.0)
author Hans-G?nter Theisgen
date Sat Apr 23 10:03:51 2022 +0100 (2022-04-23)
parents 922f061231c2
children 96982f54e3dc
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 # What is the latest version available today?
20 current_version()
21 {
22 wget -O - "${WGET_URL%/*}?C=M;O=A" 2>/dev/null | \
23 sed "/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-||;s|.tar.*||" | tail -n1
24 }
26 # Rules to configure and make the package.
27 compile_rules()
28 {
29 ./configure \
30 --prefix=/usr \
31 --sysconfdir=/etc \
32 --mandir=/usr/share/man \
33 $CONFIGURE_ARGS &&
34 make &&
35 make DESTDIR=$DESTDIR install
36 }
38 # Rules to gen a SliTaz package suitable for Tazpkg.
39 genpkg_rules()
40 {
41 mkdir -p $fs/usr/lib
42 mkdir -p $fs/var/lib/unbound
44 cp -a $install/etc $fs
45 cp -a $install/usr/lib/*.so* $fs/usr/lib
46 cp -a $install/usr/sbin $fs/usr
47 }
49 # Post message when installing.
50 post_install()
51 {
52 chroot "$1/" adduser -S -H -h /var/lib/unbound -D unbound
53 chroot "$1/" chown unbound /var/lib/unbound
54 chroot "$1/" unbound-anchor -a /var/lib/unbound/root.key
55 }