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
8 -CFLAGS = -O2 -Wall -Wstrict-prototypes
9 +CFLAGS += -Wall -Wstrict-prototypes -D_GNU_SOURCE -DSENDMAIL="\"/usr/sbin/sendmail\""
11 SRCS = main.c subs.c database.c job.c
12 OBJS = main.o subs.o database.o job.o
14 all: ${PROTOS} crond crontab
17 - ${CC} ${CFLAGS} -o crond ${OBJS} ${LIB}
19 + ${CC} ${CFLAGS} -o crond ${OBJS} ${LIB} ${LDFLAGS}
22 - ${CC} ${CFLAGS} -o crontab ${D_OBJS}
24 + ${CC} ${CFLAGS} -o crontab ${D_OBJS} ${LDFLAGS}
26 protos.h: ${SRCS} ${D_SRCS}
27 fgrep -h Prototype ${SRCS} ${D_SRCS} >protos.h
29 rm -f *.o dcron.tgz ${PROTOS}
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
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
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);