wok view at/receipt @ rev 24545

Add some current_version
author Pascal Bellard <pascal.bellard@slitaz.org>
date Thu Feb 24 19:32:16 2022 +0000 (2022-02-24)
parents 5075d5ce24d0
children 00e3b45c063b
line source
1 # SliTaz package receipt.
3 PACKAGE="at"
4 VERSION="3.2.2"
5 CATEGORY="system-tools"
6 SHORT_DESC="Schedule commands to be executed once."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="GPL2"
9 WEB_SITE="https://packages.debian.org/lenny/at"
11 TARBALL="${PACKAGE}_${VERSION}.orig.tar.gz"
12 WGET_URL="http://ftp.debian.org/debian/pool/main/${PACKAGE:0:1}/$PACKAGE/$TARBALL"
14 DEPENDS="flex"
15 BUILD_DEPENDS="bison flex ssmtp"
17 # What is the latest version available today?
18 current_version()
19 {
20 wget -O - $(dirname $WGET_URL) 2>/dev/null | \
21 sed "/${PACKAGE}_[0-9]/!d;/orig.tar/!d;s|.*${PACKAGE}_\\(.*\\).orig.tar.*\".*|\\1|" | sort -Vr | sed q
22 }
24 # Rules to configure and make the package.
25 compile_rules()
26 {
27 sed -i 's|/doc|/share/doc|' Makefile*
29 ./configure \
30 --with-daemon_username=nobody \
31 --with-daemon_groupname=nogroup \
32 --with-atspool=/var/spool/atd \
33 --with-jobdir=/var/spool/atd \
34 $CONFIGURE_ARGS &&
35 make -j 1 &&
36 make install IROOT=$DESTDIR
37 # do not remove "-j 1"
38 }
40 # Rules to gen a SliTaz package suitable for Tazpkg.
41 genpkg_rules()
42 {
43 mkdir -p $fs/usr
44 mkdir -p $fs/etc/init.d
46 cp -a $install/usr/bin $fs/usr
47 cp -a $install/usr/sbin $fs/usr
48 cp -a $install/etc $fs
49 cp -a $install/var $fs
50 cp -a $stuff/atd $fs/etc/init.d
51 chmod 6755 $fs/usr/bin/at
52 }