12311Sjkh/* Copyright 1993,1994 by Paul Vixie
22311Sjkh * All rights reserved
32311Sjkh *
42311Sjkh * Distribute freely, except: don't remove my name from the source or
52311Sjkh * documentation (don't take credit for my work), mark your changes (don't
62311Sjkh * get me blamed for your possible bugs), don't alter or remove this
72311Sjkh * notice.  May be sold if buildable source is provided to buyer.  No
82311Sjkh * warrantee of any kind, express or implied, is included with this
92311Sjkh * software; use at your own risk, responsibility for damages (if any) to
102311Sjkh * anyone resulting from the use of this software rests entirely with the
112311Sjkh * user.
122311Sjkh *
132311Sjkh * Send bug reports, bug fixes, enhancements, requests, flames, etc., and
142311Sjkh * I'll try to keep a version up to date.  I can be reached as follows:
152311Sjkh * Paul Vixie          <paul@vix.com>          uunet!decwrl!vixie!paul
162311Sjkh */
172311Sjkh
1850479Speter$FreeBSD$
192311Sjkh
202311SjkhRead the comments at the top of the Makefile, then edit the area marked
212311Sjkh'configurable stuff'.
222311Sjkh
232311SjkhEdit config.h.  The stuff I expect you to change is down a bit from the
242311Sjkhtop of the file, but it's clearly marked.  Also look at pathnames.h.
252311Sjkh
262311SjkhYou don't have to create the /var/cron or /var/cron/tabs directories, since
272311Sjkhboth the daemon and the `crontab' program will do this the first time they
282311Sjkhrun if they don't exist.  You do need to have a /var, though -- just "mkdir
292311Sjkh/var" if you don't have one, or you can "mkdir /usr/var; ln -s /usr/var /var"
302311Sjkhif you expect your /var to have a lot of stuff in it.
312311Sjkh
322311SjkhYou will also need /usr/local/etc and /usr/local/bin directories unless you
332311Sjkhchange the Makefile.  These will have to be created by hand, but if you are
342311Sjkha long-time Usenet user you probably have them already.  /usr/local/man is
352311Sjkhwhere I keep my man pages, but I have the source for `man' and you probably
362311Sjkhdo not.  Therefore you may have to put the man pages into /usr/man/manl,
372311Sjkhwhich will be hard since there will be name collisions.  (Note that the man
382311Sjkhcommand was originally written by Bill Joy before he left Berkeley, and it
392311Sjkhcontains no AT&T code, so it is in UUNET's archive of freely-distributable
402311SjkhBSD code.)
412311Sjkh
422311SjkhLINUX note: /usr/include/paths.h on some linux systems shows _PATH_SENDMAIL
432311Sjkh	to be /usr/bin/sendmail even though sendmail is installed in /usr/lib.
442311Sjkh	you should check this out.
452311Sjkh
462311Sjkhsay:
472311Sjkh	make all
482311Sjkh
492311Sjkhsu and say:
502311Sjkh	make install
512311Sjkh
522311SjkhNote that if I can get you to "su and say" something just by asking, you have
532311Sjkha very serious security problem on your system and you should look into it.
542311Sjkh
552311SjkhEdit your /usr/lib/crontab file into little pieces -- see the CONVERSION file
562311Sjkhfor help on this.
572311Sjkh
582311SjkhUse the `crontab' command to install all the little pieces you just created.
592311SjkhSome examples (see below before trying any of these!)
602311Sjkh
612311Sjkh	crontab -u uucp -r /usr/lib/uucp/crontab.src
622311Sjkh	crontab -u news -r /usr/lib/news/crontab.src
632311Sjkh	crontab -u root -r /usr/adm/crontab.src
642311Sjkh
652311SjkhNotes on above examples: (1) the .src files are copied at the time the
662311Sjkhcommand is issued; changing the source files later will have no effect until
672311Sjkhthey are reinstalled with another `crontab -r' command.  (2) The crontab
682311Sjkhcommand will affect the crontab of the person using the command unless `-u
692311SjkhUSER' is given; `-u' only works for root.  When using most `su' commands
702311Sjkhunder most BSD's, `crontab' will still think of you as yourself even though
712311Sjkhyou may think of yourself as root -- so use `-u' liberally.  (3) the `-r'
722311Sjkhoption stands for `replace'; check the man page for crontab(1) for other
732311Sjkhpossibilities.
742311Sjkh
752311SjkhKill your existing cron daemon -- do `ps aux' and look for /etc/cron.
762311Sjkh
772311SjkhEdit your /etc/rc or /etc/rc.local, looking for the line that starts up
782311Sjkh/etc/cron.  Comment it out and add a line to start the new cron daemon
792311Sjkh-- usually /usr/local/etc/cron, unless you changed it in the Makefile.
802311Sjkh
812311SjkhStart up this cron daemon yourself as root.  Just type /usr/local/etc/cron
822311Sjkh(or whatever); no '&' is needed since the daemon forks itself and the
832311Sjkhprocess you executed returns immediately.
842311Sjkh
852311SjkhATT notes: for those people unfortunate enough to be stuck on a AT&T UNIX,
862311Sjkhyou will need the public-domain "libndir", found in the B News source and in
872311Sjkhany comp.sources.unix archive.  You will also need to hack the code some.
88