wok-6.x view ddclient/receipt @ rev 24453

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