wok annotate sheerdns/receipt @ rev 25808

created recipe for xmenu
author Hans-G?nter Theisgen
date Thu Dec 19 16:09:37 2024 +0100 (9 days ago)
parents 4f225ad3e12e
children
rev   line source
pascal@2262 1 # SliTaz package receipt.
pascal@2262 2
pascal@2262 3 PACKAGE="sheerdns"
pascal@2262 4 VERSION="1.0.3"
pascal@2262 5 CATEGORY="network"
pascal@2262 6 SHORT_DESC="master DNS server."
pascal@2262 7 MAINTAINER="pascal.bellard@slitaz.org"
pascal@15593 8 LICENSE="GPL2"
pascal@2262 9 TARBALL="$PACKAGE-$VERSION.tar.gz"
pascal@20672 10 WEB_SITE="https://bsdforge.com/projects/dns/sheerdns/"
pascal@25118 11 WGET_URL="https://download.tuxfamily.org/slitaz/sources/packages-cooking/${TARBALL:0:1}/$TARBALL"
pascal@2269 12 CONFIG_FILES="/var/sheerdns"
pascal@2262 13
pascal@24713 14 # What is the latest version available today?
pascal@24713 15 current_version()
pascal@24713 16 {
pascal@24713 17 wget -O - https://github.com/taraszka/sheerdns-ng/commits/master 2>/dev/null | \
pascal@25676 18 sed 's|",|&\n|g' | sed '/committedDate/!d;s|.*":"||;s|T.*||;s|-||g;q'
pascal@24713 19 }
pascal@24713 20
pascal@2262 21 # Rules to configure and make the package.
pascal@2262 22 compile_rules()
pascal@2262 23 {
pascal@2262 24 mv $PACKAGE $src 2> /dev/null
pascal@2262 25 cd $src
pascal@8974 26 for i in $( cd $stuff ; ls *.u); do
pascal@2264 27 [ -f done.$i ] && continue
pascal@8974 28 patch -p0 < $stuff/$i
pascal@2264 29 touch done.$i
pascal@2264 30 done
pascal@2262 31 make
pascal@2262 32 }
pascal@2262 33
pascal@2262 34 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@2262 35 genpkg_rules()
pascal@2262 36 {
pascal@2269 37 mkdir -p $fs/usr/bin $fs/var/sheerdns
pascal@2262 38 cp -a $src/sheerdns $src/sheerdnshash $fs/usr/bin
pascal@2262 39 }
pascal@2262 40