dragora-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Dragora-users] First try at D3 recipe


From: Alan Beadle
Subject: [Dragora-users] First try at D3 recipe
Date: Sun, 30 Apr 2017 19:05:28 -0400

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, address@hidden.
#
# 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

[Prev in Thread] Current Thread [Next in Thread]