home *** CD-ROM | disk | FTP | other *** search
Makefile | 1989-08-07 | 1.9 KB | 69 lines |
- # Makefile for bootstrap news
- # copyright 1989 Ronald Florence (ron@mlfarm, 7/30/89)
- #
- # To build bootstrap news:
- # 1. Change READER to your favorite mail reader with the option flag
- # used to specify a spool file.
- # 2. Change HOST to the name of your news feed. If you get news
- # from more than one host, select the one to which you feed news,
- # and change FEEDER to something like Usenet_news.
- # 3. Run make.
- #
-
- READER = Mail -f
- HOST = mlfarm
- FEEDER = news@$(HOST).UUCP
-
- SPOOL = /usr/spool/news
- NEWSSPOOL = $(SPOOL)/bsnews
- NEWSDIR = /usr/lib/news
- SEQFILE = $(NEWSDIR)/seq
- BINDIR = /usr/bin
- COMPRESS = $(BINDIR)/compress
- CFLAGS = -O -s -DFeeder='"$(FEEDER)"' -DNewsspool='"$(NEWSSPOOL)"'
- PGMS = uurec pn checknews rnews readnews
- FILES = spoolfile seqfile
- SRCS = checknews.c rnews.c uurec.proto pn.proto readnews.proto
- SHELL = /bin/sh
-
- bsnews: install
-
- install: $(PGMS) $(FILES)
- cp $(PGMS) $(BINDIR)
- cd $(BINDIR)
- chgrp bin $(PGMS)
- chown bin $(PGMS)
- @echo
- @echo "Add \"rnews\" to /usr/lib/uucp/L.cmds or the equivalent for a"
- @echo "uux feed. For a mail feed, create a sendmail alias for rnews:"
- @echo "|/usr/bin/uurec or run \"uurec\" periodically from cron with"
- @echo "/usr/spool/mail/rnews as input."
- @ [ -x $(COMPRESS) ] || { echo "You need $(COMPRESS) for compressed feeds."; }
-
- spoolfile:
- [ -d $(SPOOL) ] || mkdir $(SPOOL)
- [ -f $(NEWSSPOOL) ] || > $(NEWSSPOOL)
- chmod 666 $(NEWSSPOOL)
-
- seqfile:
- [ -f $(SEQFILE) ] || { mkdir $(NEWSDIR); echo "1" > $(SEQFILE); }
- chmod 666 $(SEQFILE)
-
- uurec: uurec.proto
- sed "s|/usr/spool/news/bsnews|$(NEWSSPOOL)|" uurec.proto > uurec
- chmod +x uurec
-
- pn: pn.proto
- sed "s/BigNode/$(HOST)/" pn.proto > pn
- chmod +x pn
-
- readnews: readnews.proto
- sed "s|Mail -f /usr/spool/news/bsnews|$(READER) $(NEWSSPOOL)|" readnews.proto > readnews
- chmod +x readnews
-
- shar: Readme Makefile $(SRCS)
- shar -a Readme Makefile $(SRCS) > bsnews.shar
-
- clean:
- rm -f $(PGMS)
-