wok-current view fcron/receipt @ rev 25297

updated scrollz (2.3 -> 2.3.1)
author Hans-G?nter Theisgen
date Wed Jul 20 06:44:28 2022 +0100 (2022-07-20)
parents d8c511e24c20
children
line source
1 # SliTaz package receipt.
3 PACKAGE="fcron"
4 VERSION="3.3.1"
5 CATEGORY="network"
6 TAGS="cron scheduler"
7 SHORT_DESC="Periodical command scheduler."
8 MAINTAINER="erjo@slitaz.org"
9 LICENSE="GPL"
10 WEB_SITE="http://fcron.free.fr/"
12 TARBALL="$PACKAGE-$VERSION.src.tar.gz"
13 WGET_URL="http://fcron.free.fr/archives/$TARBALL"
15 DEPENDS="readline"
16 BUILD_DEPENDS="perl readline-dev"
18 # What is the latest version available today?
19 current_version()
20 {
21 wget -O - https://github.com/yo8192/fcron/tags 2>/dev/null | \
22 sed '/archive.*tar/!d;s|.*/[a-z]*\(.*\).tar.*|\1|;s|_|.|g;q'
23 }
25 # Rules to configure and make the package.
26 compile_rules()
27 {
28 ./configure \
29 LIBS="-lrt" \
30 --prefix=/usr \
31 --sysconfdir=/etc \
32 --localstatedir=/var \
33 --without-sendmail \
34 --with-answer-all=no \
35 --with-boot-install=no \
36 --with-editor=/bin/vi \
37 --with-groupname=nogroup \
38 --with-pam=no \
39 --with-selinux=no \
40 --with-sysfcrontab=yes \
41 --with-systemdsystemunitdir=no \
42 --with-username=nobody \
43 $CONFIGURE_ARGS &&
44 make &&
45 make install DESTDIR=$DESTDIR
46 }
48 # Rules to gen a SliTaz package suitable for Tazpkg.
49 genpkg_rules()
50 {
51 mkdir -p $fs/usr/
52 mkdir -p $fs/etc/init.d
54 cp -a $install/usr/bin $fs/usr
55 cp -a $install/usr/sbin/fcron $fs/usr/bin
56 cp -a $install/var $fs
57 cp -a $install/etc $fs
59 cp -a stuff/fcron $fs/etc/init.d
60 }
62 # Post install commands for Tazpkg
63 post_install()
64 {
65 if ! grep -q ^FCRON_OPTIONS "$1/etc/daemons.conf"
66 then
67 echo -e '
68 # inserted by post_install of fcron:
69 # Fcron daemon options.
70 FCRON_OPTIONS="-b"
72 ' >> "$1/etc/daemons.conf"
73 fi
74 }