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