wok view unbound/receipt @ rev 23216
openvpn: add make-ovpn
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun Mar 22 20:02:34 2020 +0100 (2020-03-22) |
parents | dbf4eeed945f |
children | ca57a269eb9b |
line source
1 # SliTaz package receipt.
3 PACKAGE="unbound"
4 VERSION="1.9.4"
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="libssl zlib expat"
15 BUILD_DEPENDS="openssl-dev expat-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 }