| 1 | diff -Nru dcron.orig/Makefile dcron/Makefile |
| 2 | --- dcron.orig/Makefile 2008-09-24 10:10:19.000000000 +0200 |
| 3 | +++ dcron/Makefile 2008-09-24 14:48:17.000000000 +0200 |
| 4 | @@ -3,7 +3,7 @@ |
| 5 | |
| 6 | DESTDIR ?= /usr/local |
| 7 | CC = gcc |
| 8 | -CFLAGS = -O2 -Wall -Wstrict-prototypes |
| 9 | +CFLAGS += -Wall -Wstrict-prototypes -D_GNU_SOURCE -DSENDMAIL="\"/usr/sbin/sendmail\"" |
| 10 | LIB = |
| 11 | SRCS = main.c subs.c database.c job.c |
| 12 | OBJS = main.o subs.o database.o job.o |
| 13 | @@ -15,12 +15,10 @@ |
| 14 | all: ${PROTOS} crond crontab |
| 15 | |
| 16 | crond: ${OBJS} |
| 17 | - ${CC} ${CFLAGS} -o crond ${OBJS} ${LIB} |
| 18 | - strip crond |
| 19 | + ${CC} ${CFLAGS} -o crond ${OBJS} ${LIB} ${LDFLAGS} |
| 20 | |
| 21 | crontab: ${D_OBJS} |
| 22 | - ${CC} ${CFLAGS} -o crontab ${D_OBJS} |
| 23 | - strip crontab |
| 24 | + ${CC} ${CFLAGS} -o crontab ${D_OBJS} ${LDFLAGS} |
| 25 | |
| 26 | protos.h: ${SRCS} ${D_SRCS} |
| 27 | fgrep -h Prototype ${SRCS} ${D_SRCS} >protos.h |
| 28 | @@ -32,10 +30,10 @@ |
| 29 | rm -f *.o dcron.tgz ${PROTOS} |
| 30 | |
| 31 | install: |
| 32 | - install -o root -g wheel -m 0755 crond ${DESTDIR}/sbin/crond |
| 33 | - install -o root -g wheel -m 4755 crontab ${DESTDIR}/bin/crontab |
| 34 | - install -o root -g wheel -m 0644 crontab.1 ${DESTDIR}/man/man1/crontab.1 |
| 35 | - install -o root -g wheel -m 0644 crond.8 ${DESTDIR}/man/man8/crond.8 |
| 36 | + install -o root -g root -m 0755 -D crond $(DESTDIR)/usr/sbin/crond |
| 37 | + install -o root -g root -m 4755 -D crontab $(DESTDIR)/usr/bin/crontab |
| 38 | + install -o root -g root -m 0644 -D crontab.1 $(DESTDIR)/usr/man/man1/crontab.1 |
| 39 | + install -o root -g root -m 0644 -D crond.8 $(DESTDIR)/usr/man/man8/crond.8 |
| 40 | |
| 41 | # dillon-specific |
| 42 | # |
| 43 | diff -Nru dcron.orig/subs.c dcron/subs.c |
| 44 | --- dcron.orig/subs.c 2008-09-24 10:10:19.000000000 +0200 |
| 45 | +++ dcron/subs.c 2008-09-24 14:44:30.000000000 +0200 |
| 46 | @@ -79,7 +79,7 @@ |
| 47 | |
| 48 | buf[0] = 0; |
| 49 | if (useDate) |
| 50 | - strftime(buf, 128, "%d-%b-%y %H:%M ", tp); |
| 51 | + strftime(buf, 128, "%d-%b-%Y %H:%M ", tp); |
| 52 | vsnprintf(buf + strlen(buf), nmax, ctl, va); |
| 53 | return(strlen(buf)); |
| 54 | } |