wok view at/receipt @ rev 25503

f3: include extra programs
author Hans-G?nter Theisgen
date Fri Jan 27 10:37:43 2023 +0100 (15 months ago)
parents 00e3b45c063b
children
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://software.calhariz.com/at/$TARBALL"
13 WGET_URL="http://sources.buildroot.net/at/$TARBALL"
15 DEPENDS="flex"
16 BUILD_DEPENDS="bison flex ssmtp"
18 # What is the latest version available today?
19 current_version()
20 {
21 wget -O - http://software.calhariz.com/at/ 2>/dev/null | \
22 sed "/${PACKAGE}_[0-9]/!d;/orig.tar/!d;s|.*${PACKAGE}_\\(.*\\).orig.tar.*\".*|\\1|" | sort -Vr | sed q
23 }
25 # Rules to configure and make the package.
26 compile_rules()
27 {
28 sed -i 's|/doc|/share/doc|' Makefile*
30 ./configure \
31 --with-daemon_username=nobody \
32 --with-daemon_groupname=nogroup \
33 --with-atspool=/var/spool/atd \
34 --with-jobdir=/var/spool/atd \
35 $CONFIGURE_ARGS &&
36 make -j 1 &&
37 make install IROOT=$DESTDIR
38 # do not remove "-j 1"
39 }
41 # Rules to gen a SliTaz package suitable for Tazpkg.
42 genpkg_rules()
43 {
44 mkdir -p $fs/usr
45 mkdir -p $fs/etc/init.d
47 cp -a $install/usr/bin $fs/usr
48 cp -a $install/usr/sbin $fs/usr
49 cp -a $install/etc $fs
50 cp -a $install/var $fs
51 cp -a $stuff/atd $fs/etc/init.d
52 chmod 6755 $fs/usr/bin/at
53 }