Home | History | Annotate | Line # | Download | only in etc
Makefile revision 1.1.1.2
      1 #	@(#)Makefile	8.4 (Berkeley) 1/25/94
      2 
      3 NOOBJ=	oobj
      4 
      5 # disktab may be wrong -- hcx9 is a tahoe, but gets its own.
      6 # -rw-r--r--
      7 BIN1=	aliases amd-home amd-n changelist csh.cshrc csh.login csh.logout \
      8 	crontab crontab.local daily dm.conf exports ftpusers ftpwelcome \
      9 	gettytab group hosts hosts.lpd inetd.conf man.conf \
     10 	monthly motd netgroup phones printcap protocols rc \
     11 	rc.local remote security services shells syslog.conf ttys weekly \
     12 	etc.${MACHINE}/disktab
     13 
     14 # -rw-rw-rw-
     15 BIN2=	motd
     16 
     17 KRB=	README krb.conf krb.realms
     18 NAMEDB=	localhost.rev named.boot root.cache
     19 PCS=	pcs750.bin
     20 WCS1=	wcs fppwcs poc poc1 poc2 fppoc
     21 WCS2=	fpevent fppwcs fppwcs_dual hdcwcs load_diags start_fpp wcs wcs_dual
     22 RBOOTD=	rbootd.conf
     23 
     24 all clean cleandir depend etc install lint:
     25 
     26 distribution:
     27 	# Hand-craft the password file first.
     28 	-mkdir /etc /dev
     29 	cp master.passwd ${DESTDIR}/tmp/p
     30 	pwd_mkdb -p /tmp/p
     31 	rm -f /tmp/p
     32 	cp group /etc/group
     33 	# Build the tree.
     34 	-mtree -def mtree/4.4BSD.dist -p ${DESTDIR}/ -u
     35 	# install devices
     36 .if ${MACHINE} == "hp300"
     37 	(cd etc.hp300; install -c -o root -g wheel -m 444 \
     38 	    MAKEDEV.hpux ${DESTDIR}/dev)
     39 .endif
     40 	install -c -o root -g wheel -m 555 \
     41 	     MAKEDEV.local etc.${MACHINE}/MAKEDEV ${DESTDIR}/dev
     42 	(cd /dev && ./MAKEDEV std)
     43 	install -c -o root -g wheel -m 444 COPYRIGHT ${DESTDIR}/
     44 	install -c -o root -g wheel -m 600 master.passwd ${DESTDIR}/etc
     45 	install -c -o root -g wheel -m 600 hosts.equiv ${DESTDIR}/etc
     46 	install -c -o root -g wheel -m 744 netstart ${DESTDIR}/etc
     47 	install -c -o root -g wheel -m 644 ${BIN1} ${DESTDIR}/etc
     48 	install -c -o root -g wheel -m 666 ${BIN2} ${DESTDIR}/etc
     49 	(cd root; \
     50 		install -c -o root -g wheel -m 644 dot.cshrc \
     51 		    ${DESTDIR}/root/.cshrc; \
     52 		install -c -o root -g wheel -m 600 dot.klogin \
     53 		    ${DESTDIR}/root/.klogin; \
     54 		install -c -o root -g wheel -m 644 dot.login \
     55 		    ${DESTDIR}/root/.login; \
     56 		install -c -o root -g wheel -m 644 dot.profile \
     57 		    ${DESTDIR}/root/.profile; \
     58 		install -c -o root -g wheel -m 600 dot.rhosts \
     59 		    ${DESTDIR}/root/.rhosts; \
     60 		rm -f ${DESTDIR}/.cshrc ${DESTDIR}/.profile; \
     61 		ln ${DESTDIR}/root/.cshrc ${DESTDIR}/.cshrc; \
     62 		ln ${DESTDIR}/root/.profile ${DESTDIR}/.profile)
     63 	(cd mtree; \
     64 		install -c -o root -g wheel -m 600 special \
     65 		    ${DESTDIR}/etc/mtree; \
     66 		install -c -o root -g wheel -m 444 4.4BSD.dist \
     67 		    ${DESTDIR}/etc/mtree)
     68 	(cd namedb; install -c -o root -g wheel -m 644 ${NAMEDB} \
     69 	    ${DESTDIR}/etc/namedb)
     70 	(cd kerberosIV; install -c -o root -g wheel -m 444 ${KRB} \
     71 	    ${DESTDIR}/etc/kerberosIV)
     72 	install -c -o root -g operator -m 664 /dev/null \
     73 	    ${DESTDIR}/etc/dumpdates
     74 	install -c -o root -g staff -m 644 /dev/null \
     75 	    ${DESTDIR}/var/log/lastlog
     76 	install -c -o root -g wheel -m 644 /dev/null \
     77 	    ${DESTDIR}/var/log/messages
     78 	install -c -o root -g wheel -m 644 /dev/null \
     79 	    ${DESTDIR}/var/log/maillog
     80 	install -c -o root -g wheel -m 644 /dev/null \
     81 	    ${DESTDIR}/var/log/lpd-errs
     82 	install -c -o root -g utmp -m 664 /dev/null \
     83 	    ${DESTDIR}/var/run/utmp
     84 	(cd etc.${MACHINE}; install -c -o root -g wheel -m 444 \
     85 	    fstab.* ${DESTDIR}/etc)
     86 .if ${MACHINE} == "hp300"
     87 	(cd etc.hp300; install -c -o root -g wheel -m 444 ${RBOOTD} \
     88 	    ${DESTDIR}/etc)
     89 .endif
     90 .if ${MACHINE} == "tahoe"
     91 	(cd etc.tahoe; install -c -o root -g wheel -m 444 ${WCS1} \
     92 	    ${DESTDIR}/)
     93 .endif
     94 .if ${MACHINE} == "vax"
     95 	(cd etc.vax; install -c -o root -g wheel -m 444 ${PCS} \
     96 	    ${DESTDIR}/)
     97 .endif
     98 	# There are certain symbolic links we have to have, and
     99 	# no other place to have install them.
    100 	(cd / && rm -f sys && ln -s usr/src/sys sys)
    101 	(cd /etc && rm -f rmt && ln -s /usr/sbin/rmt rmt)
    102 	(cd /etc && rm -f termcap && ln -s /usr/share/misc/termcap termcap)
    103 	(cd /usr && rm -f X11 && ln -s X11R5 X11)
    104 	(cd /usr/bin && rm -f X11 && ln -s /usr/X11/bin X11)
    105 	(cd /usr/lib && rm -f X && ln -s /usr/hpux/lib/X X)
    106 	(cd /usr/lib && rm -f X11 && ln -s /usr/X11/lib X11)
    107 	(cd /usr/lib && rm -f grmd && ln -s /usr/hpux/lib/grmd grmd)
    108 	(cd /usr/lib && rm -f tmac && ln -s /usr/share/tmac tmac)
    109 	(cd /usr/ucb && rm -f rdist && ln -s /usr/bin/rdist rdist)
    110 .if ${MACHINE} == "hp300"
    111 	(cd /usr/bin && rm -f X11 && ln -s /usr/X11/bin X11)
    112 .endif
    113 
    114 hcx9-distribution:
    115 	(cd etc.tahoe; install -c -o root -g wheel -m 444 ${WCS2} \
    116 	    ${DESTDIR}/)
    117 
    118 .include <bsd.prog.mk>
    119