dcron: update to 4.5.

This commit is contained in:
Juan RP 2011-05-02 07:16:18 +02:00
parent 3dd07d50bf
commit 5b036dfacf
3 changed files with 4 additions and 44 deletions

View file

@ -1,25 +0,0 @@
diff -aur dcron-4.4/chuser.c dcron-4.4.logname/chuser.c
--- dcron-4.4/chuser.c 2010-02-15 11:18:13.111967483 +0100
+++ dcron-4.4.logname/chuser.c 2010-02-15 11:18:29.615531204 +0100
@@ -25,6 +25,7 @@
return(-1);
}
setenv("USER", pas->pw_name, 1);
+ setenv("LOGNAME", pas->pw_name, 1);
setenv("HOME", pas->pw_dir, 1);
setenv("SHELL", "/bin/sh", 1);
diff -aur dcron-4.4/crontab.1 dcron-4.4.logname/crontab.1
--- dcron-4.4/crontab.1 2010-02-15 11:18:13.111967483 +0100
+++ dcron-4.4.logname/crontab.1 2010-02-15 11:19:48.295707950 +0100
@@ -57,8 +57,8 @@
.PP
Nor does it do any special environment handling.
A shell script is better-suited to doing that than a cron daemon.
-This cron daemon sets up only three environment variables: USER,
-HOME, and SHELL.
+This cron daemon sets up only four environment variables: USER,
+LOGNAME, HOME, and SHELL.
.PP
Our crontab format is roughly similar to that used by vixiecron.
Individual fields may contain a time, a time range, a time range

View file

@ -1,13 +0,0 @@
--- crond-4.4/extra/crond.logrotate 2010-11-26 16:27:29.961409375 +0100
+++ crond-4.4.new/extra/crond.logrotate 2010-11-26 16:28:29.195004589 +0100
@@ -1,8 +1,8 @@
-/var/log/crond.log {
+/var/log/cron {
sharedscripts
copytruncate
missingok
postrotate
- kill -HUP `cat /var/run/cron.pid`
+ kill -HUP $(pidof -o %PPID crond)
endscript
}

View file

@ -1,13 +1,11 @@
# Template file for 'dcron'
pkgname=dcron
version=4.4
revision=1
patch_args="-Np1"
version=4.5
distfiles="http://www.jimpryor.net/linux/releases/dcron-${version}.tar.gz"
build_style=custom-install
short_desc="Dillon's lightweight cron daemon"
maintainer="Juan RP <xtraeme@gmail.com>"
checksum=0847dee3a76ba504f2f1587038fef5193b143988c96bf3fdc511abd23099cb66
checksum=9e50edb6f5bd8153b16bad05087d985e5153ce45cc01ae77e7f842213fb4a824
long_desc="
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.
@ -27,12 +25,12 @@ Add_dependency run glibc
do_build()
{
make PREFIX=/usr CRONTAB_GROUP=users CRONTABS=/var/spool/cron \
CRONSTAMPS=/var/spool/cronstamps || return 1
CRONSTAMPS=/var/spool/cronstamps ${makejobs}
}
do_install()
{
make DESTDIR=${DESTDIR} install || return 1
make DESTDIR=${DESTDIR} install
install -d ${DESTDIR}/etc/cron.{hour,week,month}ly
install -D -m755 extra/run-cron ${DESTDIR}/usr/sbin/run-cron