Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.1 6/24/83; site eneevax.UUCP Path: utzoo!watmath!clyde!burl!hou3c!hocda!houxm!ihnp4!zehntel!hplabs!hao!seismo!rlgvax!cal-unix!umcp-cs!eneevax!chris From: chris@eneevax Newsgroups: net.sources Subject: Makefile for spooler Message-ID: <115@eneevax.UUCP> Date: Sun, 22-Apr-84 20:54:48 EST Article-I.D.: eneevax.115 Posted: Sun Apr 22 20:54:48 1984 Date-Received: Thu, 26-Apr-84 01:09:54 EST Organization: Univ. of Maryland, EE Dept. Lines: 70 I inadvertantly left out the Makefile for the spooler. Here it is. Note that the "install" entries change the file ownership to "root" and the mode to rwsr-xr-x; i.e., setuid to root. I don't *think* there are any security holes left in it, but... ``caveat empty'', as they never said in the first place. (This belongs in the same directory as the spooler sources.) ------------------------the dashed line------------------------ : Run this shell script with "sh" not "csh" PATH=:/bin:/usr/bin:/usr/ucb export PATH all=FALSE if [ $1x = -ax ]; then all=TRUE fi /bin/echo 'Extracting Makefile' sed 's/^X//' <<'//go.sysin dd *' >Makefile # Makefile for 4.1BSD CFLAGS= -DVMUNIX -DBSD41 -O LIBES= -ljobs SRCS= spool.c despool.c header.c readdev.c HDRS= spool.h all: spool header despool install: inst-spool inst-header inst-despool inst-spool: mv spool /usr/bin /etc/chown root /usr/bin/spool chmod 4755 /usr/bin/spool inst-header: mv header /usr/lib/std_header inst-despool: mv despool /usr/lib /etc/chown root /usr/lib/despool chmod 4755 /usr/lib/despool spool: spool.o readdev.o cc -o spool spool.o readdev.o $(LIBES) header: header.o readdev.o cc -o header header.o readdev.o despool: despool.o readdev.o cc -o despool despool.o readdev.o -lndir readdev.o: readdev.c spool.h spool.o: spool.c spool.h header.o: header.c spool.h despool.o: despool.c spool.h # the "script" entry is purely for making distributions script: $(SRCS) $(HDRS) makescript /tmp/spoolscript $(SRCS) $(HDRS) spool.1l spool.5l\ spool_devices Makefile //go.sysin dd * made=TRUE if [ $made = TRUE ]; then /bin/chmod 644 Makefile /bin/echo -n ' '; /bin/ls -ld Makefile fi -- In-Real-Life: Chris Torek, Univ of MD Comp Sci (301) 454-7690 UUCP: {seismo,allegra,brl-bmd}!umcp-cs!chris CSNet: chris@umcp-cs ARPA: chris@maryland