dcron: update to 4.5
This commit is contained in:
parent
9e0346b452
commit
ba0e2eb615
@ -1,5 +1,4 @@
|
||||
59a2ec9d1fe95f2a8b16814c2efbb8e7 crond
|
||||
3596a4fa9cf63bdf130fd533ca7703d4 crontab
|
||||
02d848ba043a9df5bf2102a9f4bc04bd dcron-4.4.tar.gz
|
||||
384d0dbf3523058338ad2103114f8adc dcron.diff
|
||||
078833f3281f96944fc30392b1888326 dcron-4.5.tar.gz
|
||||
d80b27b1b9532890136c14d30e2a0d2b runjobs
|
||||
|
@ -3,16 +3,14 @@
|
||||
# Maintainer: CRUX System Team, core-ports at crux dot nu
|
||||
|
||||
name=dcron
|
||||
version=4.4
|
||||
release=2
|
||||
version=4.5
|
||||
release=1
|
||||
source=(http://www.jimpryor.net/linux/releases/$name-$version.tar.gz \
|
||||
dcron.diff crontab runjobs crond)
|
||||
crontab runjobs crond)
|
||||
|
||||
build() {
|
||||
cd $name-$version
|
||||
|
||||
patch -p1 -i $SRC/dcron.diff
|
||||
|
||||
make PREFIX=/usr
|
||||
make DESTDIR=$PKG MANDIR=/usr/man CRONTAB_GROUP=users install
|
||||
|
||||
|
@ -1,22 +0,0 @@
|
||||
diff --git a/database.c b/database.c
|
||||
--- a/database.c
|
||||
+++ b/database.c
|
||||
@@ -410,6 +410,7 @@ SynchronizeFile(const char *dpath, const char *fileName, const char *userName)
|
||||
break;
|
||||
case 5:
|
||||
line.cl_Freq = MONTHLY_FREQ;
|
||||
+ break;
|
||||
case 6:
|
||||
line.cl_Freq = YEARLY_FREQ;
|
||||
/* else line.cl_Freq will remain 0 */
|
||||
diff --git a/database.c b/database.c
|
||||
--- a/database.c
|
||||
+++ b/database.c
|
||||
@@ -258,6 +258,7 @@ ReadTimestamps(const char *user)
|
||||
if (ptr && (*ptr == 0 || *ptr == '\n'))
|
||||
/* strptime uses current seconds when seconds not specified? anyway, we don't get round minutes */
|
||||
tm.tm_sec = 0;
|
||||
+ tm.tm_isdst = -1;
|
||||
sec = mktime(&tm);
|
||||
if (sec == (time_t)-1) {
|
||||
printlogf(LOG_ERR, "failed parsing timestamp for user %s job %s\n", file->cf_UserName, line->cl_JobName);
|
Loading…
x
Reference in New Issue
Block a user