wok view ez-ipupdate/receipt @ rev 24465

Add some current_version
author Pascal Bellard <pascal.bellard@slitaz.org>
date Thu Feb 17 12:02:46 2022 +0000 (2022-02-17)
parents 8dd8bab3f0ca
children 6b33f9da53d4
line source
1 # SliTaz package receipt.
3 PACKAGE="ez-ipupdate"
4 VERSION="3.0.11b7"
5 CATEGORY="network"
6 SHORT_DESC="Update your host name for some dynamic DNS services."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="GPL2"
9 TARBALL="$PACKAGE-$VERSION.tar.gz"
10 WEB_SITE="https://web.archive.org/web/20120709060406/http://ez-ipupdate.com/"
11 WGET_URL="${WEB_SITE}dist/$TARBALL"
12 TAGS="DNS"
14 # What is the latest version available today?
15 current_version()
16 {
17 wget -O - https://sourceforge.net/projects/ez-ipupdate/files/ez-ipupdate/ 2>/dev/null | \
18 sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|' | sort -Vr | sed q | xargs wget -O - 2>/dev/null | \
19 sed '/scope="row/!d;s|.*/ez-ipupdate/||;s|/.*||;q'
20 }
22 # Rules to configure and make the package.
23 compile_rules()
24 {
25 cd $src
26 grep -q errno.h conf_file.h || echo "#include <errno.h>" >> conf_file.h
27 ./configure --prefix=/usr --infodir=/usr/share/info \
28 --enable-default-service=dyndns \
29 --mandir=/usr/share/man $CONFIGURE_ARGS &&
30 make &&
31 make DESTDIR=$DESTDIR install
32 }
34 # Rules to gen a SliTaz package suitable for Tazpkg.
35 genpkg_rules()
36 {
37 cp -a $install/usr $fs
38 }