wok-current view nsd/receipt @ rev 24944

updated n2n (2.4 -> 3.0)
author Hans-G?nter Theisgen
date Fri Apr 22 16:44:33 2022 +0100 (2022-04-22)
parents 36ec463f0113
children
line source
1 # SliTaz package receipt.
3 PACKAGE="nsd"
4 VERSION="4.3.0"
5 CATEGORY="network"
6 SHORT_DESC="An authoritative only, high performance, and simple name server."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="other"
9 WEB_SITE="https://www.nlnetlabs.nl/projects/nsd/"
11 TARBALL="$PACKAGE-$VERSION.tar.gz"
12 WGET_URL="https://www.nlnetlabs.nl/downloads/$PACKAGE/$TARBALL"
14 DEPENDS="libcrypto libssl"
15 BUILD_DEPENDS="libevent-dev openssl-dev"
17 CONFIG_FILES="/etc/nsd"
19 # What is the latest version available today?
20 current_version()
21 {
22 wget -O - ${WGET_URL%/*}/ 2>/dev/null | \
23 sed "/latest/d;/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*|\\1|" | sort -Vr | sed q
24 }
26 # Rules to configure and make the package.
27 compile_rules()
28 {
29 ./configure \
30 --prefix=/usr \
31 --sysconfdir=/etc \
32 --localstatedir=/var \
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
43 cp -a $install/usr/sbin $fs/usr
44 cp -a $install/var $fs
45 cp -a $install/etc $fs
46 }