wok view rsnapshot/receipt @ rev 24445

Add some current_version
author Pascal Bellard <pascal.bellard@slitaz.org>
date Mon Feb 14 14:14:23 2022 +0000 (2022-02-14)
parents 290e737cb4f9
children 51e40ddb3d8c
line source
1 # SliTaz package receipt.
3 PACKAGE="rsnapshot"
4 VERSION="1.4.3"
5 CATEGORY="system-tools"
6 SHORT_DESC="A remote filesystem snapshot utility."
7 MAINTAINER="slaxemulator@gmail.com"
8 LICENSE="GPL2"
9 WEB_SITE="https://rsnapshot.org/"
11 TARBALL="$PACKAGE-$VERSION.tar.gz"
12 WGET_URL="${WEB_SITE}downloads/$TARBALL"
14 DEPENDS="perl rsync"
15 BUILD_DEPENDS="perl rsync"
17 CONFIG_FILES="/etc/rsnapshot.conf"
19 # What is the latest version available today?
20 current_version()
21 {
22 wget -O - ${WGET_URL%/*} 2>/dev/null | \
23 sed "/latest/d;/$PACKAGE-/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q
24 }
26 # Rules to configure and make the package.
27 compile_rules()
28 {
29 ./configure \
30 --prefix=/usr \
31 --infodir=/usr/share/info \
32 --mandir=/usr/share/man \
33 --sysconfdir=/etc \
34 $CONFIGURE_ARGS &&
35 make &&
36 make DESTDIR=$DESTDIR install
37 }
39 # Rules to gen a SliTaz package suitable for Tazpkg.
40 genpkg_rules()
41 {
42 mkdir -p $fs/usr
43 mkdir -p $fs/etc
45 cp -a $install/usr/bin $fs/usr
46 cp -a $install/etc/rsnapshot.conf.default $fs/etc/rsnapshot.conf
47 }