# SliTaz package receipt. PACKAGE="ddclient" VERSION="3.9.1" CATEGORY="network" TAGS="DNS" SHORT_DESC="Dynamic DNS update tool." MAINTAINER="pascal.bellard@slitaz.org" LICENSE="GPL2" WEB_SITE="https://github.com/ddclient/ddclient/" TARBALL="$PACKAGE-$VERSION.tar.gz" WGET_URL="https://github.com/$PACKAGE/$PACKAGE/archive/v$VERSION.tar.gz" DEPENDS="perl" CONFIG_FILES="/etc/ddclient" current_version() { wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \ sed '/archive.*tar/!d;s|.*/v\(.*\).tar.*|\1|;q' } # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { mkdir -p $fs/usr/sbin mkdir -p $fs/etc/ddclient mkdir -p $fs/var/cache/ddclient mkdir -p $fs/etc/init.d cp $src/ddclient $fs/usr/sbin cp $src/sample-etc_ddclient.conf $fs/etc/ddclient/ddclient.conf cp $stuff/ddclient $fs/etc/init.d }