summaryrefslogtreecommitdiff
path: root/dcron/dcron-2.3.3.patch
blob: ff512f466be2a43933447cf147f75a794f18f330 (plain)
    1 diff -ru dcron-2.3.3/Makefile dcron-2.3.3-new/Makefile
    2 --- dcron-2.3.3/Makefile	Fri Sep  5 21:42:44 1997
    3 +++ dcron-2.3.3-new/Makefile	Thu Aug  9 22:23:34 2001
    4 @@ -1,8 +1,9 @@
    5  # Makefile for dillon's cron and crontab
    6  #
    7  
    8 +DESTDIR =
    9  CC  = gcc
   10 -CFLAGS = -O2 -Wall -Wstrict-prototypes
   11 +CFLAGS += -Wall -Wstrict-prototypes
   12  LIB = 
   13  SRCS = main.c subs.c database.c job.c
   14  OBJS = main.o subs.o database.o job.o
   15 @@ -13,12 +14,10 @@
   16  all:	${PROTOS} crond crontab
   17  
   18  crond:	${OBJS}
   19 -	${CC} ${CFLAGS} -o crond ${OBJS} ${LIB}
   20 -	strip crond
   21 +	${CC} ${CFLAGS} -o crond ${OBJS} ${LIB} ${LDFLAGS}
   22  
   23  crontab:  ${D_OBJS}
   24 -	${CC} ${CFLAGS} -o crontab ${D_OBJS}
   25 -	strip crontab
   26 +	${CC} ${CFLAGS} -o crontab ${D_OBJS} ${LDFLAGS}
   27  
   28  protos.h: ${SRCS} ${D_SRCS}
   29  	fgrep -h Prototype ${SRCS} ${D_SRCS} >protos.h
   30 @@ -30,10 +29,10 @@
   31  	rm -f *.o dcron.tgz $(PROTOS)
   32  
   33  install: crond crontab
   34 -	install -o root -g root -m 0755 crond /usr/sbin
   35 -	install -o root -g root -m 4755 crontab /usr/bin
   36 -	install -o root -g root crontab.1 /usr/man/man1
   37 -	install -o root -g root  crond.8 /usr/man/man8
   38 +	install -o root -g root -m 0755 -D crond $(DESTDIR)/usr/sbin/crond
   39 +	install -o root -g root -m 4755 -D crontab $(DESTDIR)/usr/bin/crontab
   40 +	install -o root -g root -m 0644 -D crontab.1 $(DESTDIR)/usr/man/man1/crontab.1
   41 +	install -o root -g root -m 0644 -D crond.8 $(DESTDIR)/usr/man/man8/crond.8
   42  
   43  tar: cleano
   44  	(cd ..; tar cvf - dcron | gzip -9 >dcron.tgz.tmp)
   45 diff -ru dcron-2.3.3/defs.h dcron-2.3.3-new/defs.h
   46 --- dcron-2.3.3/defs.h	Fri Sep  5 21:44:32 1997
   47 +++ dcron-2.3.3-new/defs.h	Thu Aug  9 22:23:53 2001
   48 @@ -35,7 +35,7 @@
   49  #define OPEN_MAX	256
   50  #endif
   51  #ifndef SENDMAIL
   52 -#define SENDMAIL	"/usr/lib/sendmail"
   53 +#define SENDMAIL	"/usr/sbin/sendmail"
   54  #endif
   55  #ifndef SENDMAIL_ARGS
   56  #define SENDMAIL_ARGS	"-t", "-oem", "-i"
   57 diff -ru dcron-2.3.3/subs.c dcron-2.3.3-new/subs.c
   58 --- dcron-2.3.3/subs.c	Mon Feb 16 20:35:10 1998
   59 +++ dcron-2.3.3-new/subs.c	Thu Aug  9 22:23:34 2001
   60 @@ -15,7 +15,7 @@
   61  Prototype int ChangeUser(const char *user, short dochdir);
   62  Prototype void vlog(int level, int fd, const char *ctl, va_list va);
   63  Prototype int slog(char *buf, size_t sz, const char *ctl, va_list va, short useDate);
   64 -Prototype char *strdup(const char *);
   65 +/*Prototype char *strdup(const char *);*/
   66  
   67  void 
   68  log9(const char *ctl, ...)
   69 @@ -80,7 +80,7 @@
   70  
   71      buf[0] = 0;
   72      if (useDate)
   73 -	strftime(buf, 128, "%d-%b-%y %H:%M  ", tp);
   74 +	strftime(buf, 128, "%d-%b-%Y %H:%M  ", tp);
   75      vsnprintf(buf + strlen(buf), sz - strlen(buf), ctl, va);
   76      return(strlen(buf));
   77  }
   78 @@ -131,6 +131,7 @@
   79      return(pas->pw_uid);
   80  }
   81  
   82 +/*
   83  char *
   84  strdup(const char *str)
   85  {
   86 @@ -140,4 +141,4 @@
   87          strcpy(ptr, str);
   88      return(ptr);
   89  }
   90 -
   91 +*/

Generated by cgit