wok-current view dcron/receipt @ rev 24439
Add some current_version
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun Feb 13 18:01:32 2022 +0000 (2022-02-13) |
parents | 10d0f1cbf852 |
children |
line source
1 # SliTaz package receipt.
3 PACKAGE="dcron"
4 VERSION="4.5"
5 CATEGORY="utilities"
6 SHORT_DESC="Dillon's lightweight cron daemon."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="GPL"
9 TARBALL="$PACKAGE-$VERSION.tar.gz"
10 WEB_SITE="http://www.jimpryor.net/linux/dcron.html"
11 WGET_URL="http://www.jimpryor.net/linux/releases/$TARBALL"
13 # What is the latest version available today?
14 current_version()
15 {
16 wget -O - $WEB_SITE 2>/dev/null | \
17 sed "/latest/d;/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*|\\1|" | sort -Vr | sed q
18 }
20 # Rules to configure and make the package.
21 compile_rules()
22 {
23 make PREFIX=/usr CRONTAB_GROUP=users &&
24 make DESTDIR=$DESTDIR install
25 }
27 # Rules to gen a SliTaz package suitable for Tazpkg.
28 genpkg_rules()
29 {
30 mkdir -p $fs/usr
31 cp -a $install/etc $fs
32 cp -a $install/usr/bin $fs/usr
33 cp -a $install/usr/sbin $fs/usr
34 cp -a $install/var $fs
35 }