wok-6.x annotate ddclient/receipt @ rev 24699

Add some current_version
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Mar 13 19:47:29 2022 +0000 (2022-03-13)
parents e3c504384cac
children
rev   line source
pascal@4563 1 # SliTaz package receipt.
pascal@4563 2
pascal@4563 3 PACKAGE="ddclient"
Hans-G?nter@22730 4 VERSION="3.9.1"
pascal@4563 5 CATEGORY="network"
Hans-G?nter@20817 6 TAGS="DNS"
pascal@4563 7 SHORT_DESC="Dynamic DNS update tool."
pascal@4563 8 MAINTAINER="pascal.bellard@slitaz.org"
pascal@15579 9 LICENSE="GPL2"
Hans-G?nter@22730 10 WEB_SITE="https://github.com/ddclient/ddclient/"
Hans-G?nter@20817 11
pascal@4563 12 TARBALL="$PACKAGE-$VERSION.tar.gz"
Hans-G?nter@22730 13 WGET_URL="https://github.com/$PACKAGE/$PACKAGE/archive/v$VERSION.tar.gz"
Hans-G?nter@22730 14
Hans-G?nter@22730 15 DEPENDS="perl"
Hans-G?nter@20817 16
pascal@4563 17 CONFIG_FILES="/etc/ddclient"
pascal@4563 18
pascal@24055 19 current_version()
pascal@24055 20 {
pascal@24055 21 wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \
pascal@24055 22 sed '/archive.*tar/!d;s|.*/v\(.*\).tar.*|\1|;q'
pascal@24055 23 }
pascal@24055 24
pascal@4563 25 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@4563 26 genpkg_rules()
pascal@4563 27 {
Hans-G?nter@22730 28 mkdir -p $fs/usr/sbin
Hans-G?nter@22730 29 mkdir -p $fs/etc/ddclient
Hans-G?nter@22730 30 mkdir -p $fs/var/cache/ddclient
Hans-G?nter@22730 31 mkdir -p $fs/etc/init.d
Hans-G?nter@22730 32
Hans-G?nter@22730 33 cp $src/ddclient $fs/usr/sbin
Hans-G?nter@22730 34 cp $src/sample-etc_ddclient.conf $fs/etc/ddclient/ddclient.conf
Hans-G?nter@22730 35 cp $stuff/ddclient $fs/etc/init.d
pascal@4563 36 }