Hi Dragorians,

I made a recipe for dcron. I'm pasting it below. This is my first try at
writing one of these. Please let me know if you have suggestions about
style or notice a problem.

This recipe is missing anything having to do with init scripts for now
since there is more work to do in that area.

-Alan "mechaniputer" Beadle


# Build recipe for dcron.
#
# Copyright (C) 2016-2017 Matias A. Fonzo, [email protected].
#
# This recipe is free software: you have unlimited permission
# to copy, distribute and modify it.

program=dcron
version=4.5
release=1

tarname=${program}-${version}.tar.gz

# Remote source(s)
fetch=http://www.jimpryor.net/linux/releases/$tarname

description="
A minimalist cron daemon.

This lightweight cron daemon aims to be simple and secure, with just enough
features to stay useful. It was written from scratch by Matt Dillon in 1994.
It's now developed and maintained by Jim Pryor.
"

homepage=http://www.jimpryor.net/linux/dcron.html
license="GPL, any version"

# Source documentation
docs="CHANGELOG CHANGELOG.working README"
docsdir="${docdir}/${program}-${version}"

build()
{
    set -e

    unpack "${tardir}/$tarname"

    cd "$srcdir"


    make PREFIX=/usr
    make DESTDIR="$destdir" CRONTAB_GROUP=users install

    make -j${jobs} V=1
    make -j${jobs} DESTDIR="$destdir" install

    install -m 600 extra/root.crontab $destdir/var/spool/cron/crontabs/root
    ln -s ../var/spool/cron/crontabs/root $destdir/etc/crontab
    #install -D -m 755 extra/crond.rc $destdir/etc/rc.d/crond
    install -D -m 755 extra/run-cron $destdir/usr/sbin/run-cron
    install -d $destdir/etc/cron/hourly
    install -d $destdir/etc/cron/daily
    install -d $destdir/etc/cron/weekly
    install -d $destdir/etc/cron/monthly

    # Compress man pages
    lzip -9 "${destdir}/${mandir}"/man?/*

    # Copy documentation
    mkdir -p "${destdir}${docsdir}"

    for file in $docs
    do
        cp -p $file "${destdir}${docsdir}"
    done

}

Reply via email to