SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "fcron"

# SliTaz package receipt.

PACKAGE="fcron"
VERSION="3.3.1"
CATEGORY="network"
TAGS="cron scheduler"
SHORT_DESC="Periodical command scheduler."
MAINTAINER="erjo@slitaz.org"
LICENSE="GPL"
WEB_SITE="http://fcron.free.fr/"

TARBALL="$PACKAGE-$VERSION.src.tar.gz"
WGET_URL="http://fcron.free.fr/archives/$TARBALL"

DEPENDS="readline"
BUILD_DEPENDS="perl readline-dev"

# What is the latest version available today?
current_version()
{
    wget -O - https://github.com/yo8192/fcron/tags 2>/dev/null | \
    sed '/archive.*tar/!d;s|.*/[a-z]*\(.*\).tar.*|\1|;s|_|.|g;q'
}

# Rules to configure and make the package.
compile_rules()
{
    ./configure                \
        LIBS="-lrt"            \
        --prefix=/usr            \
        --sysconfdir=/etc        \
        --localstatedir=/var        \
        --without-sendmail        \
        --with-answer-all=no        \
        --with-boot-install=no        \
        --with-editor=/bin/vi        \
        --with-groupname=nogroup    \
        --with-pam=no            \
        --with-selinux=no        \
        --with-sysfcrontab=yes        \
        --with-systemdsystemunitdir=no    \
        --with-username=nobody        \
        $CONFIGURE_ARGS &&
    make &&
    make install DESTDIR=$DESTDIR
}

# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
    mkdir -p $fs/usr/
    mkdir -p $fs/etc/init.d

    cp -a $install/usr/bin        $fs/usr
    cp -a $install/usr/sbin/fcron    $fs/usr/bin
    cp -a $install/var        $fs
    cp -a $install/etc        $fs

    cp -a stuff/fcron        $fs/etc/init.d
}

# Post install commands for Tazpkg
post_install()
{
    if ! grep -q ^FCRON_OPTIONS "$1/etc/daemons.conf"
      then
        echo -e '
# inserted by post_install of fcron:
# Fcron daemon options.
FCRON_OPTIONS="-b"

' >> "$1/etc/daemons.conf"
    fi
}

6047 packages and 209931 files in current database (Wed Jun 26 15:35:30 2024)