wok-current view ddclient/receipt @ rev 25685
Add checkspace / fetchall feature for tazpkg
author | Stanislas Leduc <shann@slitaz.org> |
---|---|
date | Thu Mar 14 20:28:39 2024 +0000 (8 months ago) |
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 }