void-packages/srcpkgs/dcron/template

48 lines
1.3 KiB
Bash
Raw Normal View History

2010-11-26 15:23:47 +00:00
# Template file for 'dcron'
pkgname=dcron
2011-05-02 05:16:18 +00:00
version=4.5
2015-05-13 05:38:38 +00:00
revision=27
build_pie=yes
conf_files="/var/spool/cron/root"
replaces="cron-daemon>=0"
provides="cron-daemon-1_1"
2010-11-26 15:23:47 +00:00
short_desc="Dillon's lightweight cron daemon"
maintainer="Juan RP <xtraeme@voidlinux.eu>"
2012-11-13 09:39:41 +00:00
homepage="http://www.jimpryor.net/linux/dcron.html"
license="GPL-2"
distfiles="http://www.jimpryor.net/linux/releases/dcron-${version}.tar.gz"
2011-05-02 05:16:18 +00:00
checksum=9e50edb6f5bd8153b16bad05087d985e5153ce45cc01ae77e7f842213fb4a824
2010-11-26 15:23:47 +00:00
build_options="systemd"
make_dirs="
/etc/cron.d 0755 root root
/etc/cron.hourly 0755 root root
/etc/cron.weekly 0755 root root
/etc/cron.monthly 0755 root root
/etc/cron.yearly 0755 root root
/var/spool/cronstamps 0755 root root"
do_configure() {
sed -i 's,-[og] root,,g' Makefile
}
2012-01-23 09:59:27 +00:00
do_build() {
make CFLAGS="$CFLAGS" LDFLAGS="$LDFLAGS" \
PREFIX=/usr CRONTAB_GROUP=$(whoami) CRONTABS=/var/spool/cron \
2011-05-02 05:16:18 +00:00
CRONSTAMPS=/var/spool/cronstamps ${makejobs}
2010-11-26 15:23:47 +00:00
}
2012-01-23 09:59:27 +00:00
do_install() {
2011-05-02 05:16:18 +00:00
make DESTDIR=${DESTDIR} install
2010-11-26 15:23:47 +00:00
install -Dm755 extra/run-cron ${DESTDIR}/usr/sbin/run-cron
install -Dm600 extra/root.crontab ${DESTDIR}/var/spool/cron/root
2010-11-26 15:23:47 +00:00
# crontab must be setuid for all users to work!
chmod 4755 ${DESTDIR}/usr/bin/crontab
if [ "$build_option_systemd" ]; then
vinstall ${FILESDIR}/dcron.service 644 usr/lib/systemd/system
fi
2014-10-13 11:46:01 +00:00
vsv dcron
2010-11-26 15:23:47 +00:00
}