wok view sheerdns/receipt @ rev 25632
Up gtklife (5.3)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Dec 23 14:06:29 2023 +0000 (8 months ago) |
parents | b7f1bd1b9ac7 |
children | c965782a38e0 |
line source
1 # SliTaz package receipt.
3 PACKAGE="sheerdns"
4 VERSION="1.0.3"
5 CATEGORY="network"
6 SHORT_DESC="master DNS server."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="GPL2"
9 TARBALL="$PACKAGE-$VERSION.tar.gz"
10 WEB_SITE="https://bsdforge.com/projects/dns/sheerdns/"
11 WGET_URL="https://download.tuxfamily.org/slitaz/sources/packages-cooking/${TARBALL:0:1}/$TARBALL"
12 CONFIG_FILES="/var/sheerdns"
14 # What is the latest version available today?
15 current_version()
16 {
17 wget -O - https://github.com/taraszka/sheerdns-ng/commits/master 2>/dev/null | \
18 sed '/Commits on/!d;s|.*on |"|;s|<.*|"|;q' | xargs date +%Y%m%d -d
19 }
21 # Rules to configure and make the package.
22 compile_rules()
23 {
24 mv $PACKAGE $src 2> /dev/null
25 cd $src
26 for i in $( cd $stuff ; ls *.u); do
27 [ -f done.$i ] && continue
28 patch -p0 < $stuff/$i
29 touch done.$i
30 done
31 make
32 }
34 # Rules to gen a SliTaz package suitable for Tazpkg.
35 genpkg_rules()
36 {
37 mkdir -p $fs/usr/bin $fs/var/sheerdns
38 cp -a $src/sheerdns $src/sheerdnshash $fs/usr/bin
39 }