xref: /original-bsd/etc/Makefile (revision c3511ad6)
1*c3511ad6Sbostic#	@(#)Makefile	8.7 (Berkeley) 05/25/95
2236cf0b0Sbostic
3236cf0b0SbosticNOOBJ=	oobj
40f58be5bSbostic
525211fdaSbostic# disktab may be wrong -- hcx9 is a tahoe, but gets its own.
60f58be5bSbostic# -rw-r--r--
7fc1d6c0dSbosticBIN1=	aliases amd-home amd-n changelist csh.cshrc csh.login csh.logout \
8fc1d6c0dSbostic	crontab crontab.local daily dm.conf exports ftpusers ftpwelcome \
9b606c3beSbostic	gettytab group hosts hosts.lpd inetd.conf man.conf \
10730930d2Sbostic	monthly motd netgroup networks phones printcap protocols rc \
11fc1d6c0dSbostic	rc.local remote security services shells syslog.conf ttys weekly \
1225211fdaSbostic	etc.${MACHINE}/disktab
130f58be5bSbostic
140f58be5bSbostic# -rw-rw-rw-
150f58be5bSbosticBIN2=	motd
160f58be5bSbostic
172fa056daSbosticKRB=	README krb.conf krb.realms
1870bebd60SbosticNAMEDB=	localhost.rev named.boot root.cache
19183dbc36SbosticPCS=	pcs750.bin
20183dbc36SbosticWCS1=	wcs fppwcs poc poc1 poc2 fppoc
21183dbc36SbosticWCS2=	fpevent fppwcs fppwcs_dual hdcwcs load_diags start_fpp wcs wcs_dual
22684799feSbosticRBOOTD=	rbootd.conf
230f58be5bSbostic
240f58be5bSbosticall clean cleandir depend etc install lint:
250f58be5bSbostic
260f58be5bSbosticdistribution:
27b8384c58Sbostic	# Hand-craft the password file first.
28*c3511ad6Sbostic	-mkdir ${DESTDIR}/etc ${DESTDIR}/dev ${DESTDIR}/tmp
29b8384c58Sbostic	cp master.passwd ${DESTDIR}/tmp/p
30*c3511ad6Sbostic	-pwd_mkdb -p ${DESTDIR}/tmp/p
31*c3511ad6Sbostic	rm -f ${DESTDIR}/tmp/p
32*c3511ad6Sbostic	cp group ${DESTDIR}/etc/group
33b8384c58Sbostic	# Build the tree.
34fc1d6c0dSbostic	-mtree -def mtree/4.4BSD.dist -p ${DESTDIR}/ -u
350ebdeeceSbostic	# install devices
360ebdeeceSbostic.if ${MACHINE} == "hp300"
378e815e22Sbostic	(cd etc.hp300; install -c -o root -g wheel -m 444 \
383bb62397Sbostic	    MAKEDEV.hpux ${DESTDIR}/dev)
390ebdeeceSbostic.endif
408e815e22Sbostic	install -c -o root -g wheel -m 555 \
416d998c74Sbostic	     MAKEDEV.local etc.${MACHINE}/MAKEDEV ${DESTDIR}/dev
420842ddebSbostic	(cd ${DESTDIR}/dev && ./MAKEDEV std)
438e815e22Sbostic	install -c -o root -g wheel -m 444 COPYRIGHT ${DESTDIR}/
44b8384c58Sbostic	install -c -o root -g wheel -m 600 master.passwd ${DESTDIR}/etc
45b606c3beSbostic	install -c -o root -g wheel -m 600 hosts.equiv ${DESTDIR}/etc
46b606c3beSbostic	install -c -o root -g wheel -m 744 netstart ${DESTDIR}/etc
478e815e22Sbostic	install -c -o root -g wheel -m 644 ${BIN1} ${DESTDIR}/etc
488e815e22Sbostic	install -c -o root -g wheel -m 666 ${BIN2} ${DESTDIR}/etc
49b738ad32Sbostic	(cd root; \
50b738ad32Sbostic		install -c -o root -g wheel -m 644 dot.cshrc \
51b738ad32Sbostic		    ${DESTDIR}/root/.cshrc; \
52928d7d33Sbostic		install -c -o root -g wheel -m 600 dot.klogin \
53b738ad32Sbostic		    ${DESTDIR}/root/.klogin; \
54b738ad32Sbostic		install -c -o root -g wheel -m 644 dot.login \
55b738ad32Sbostic		    ${DESTDIR}/root/.login; \
56b738ad32Sbostic		install -c -o root -g wheel -m 644 dot.profile \
57b738ad32Sbostic		    ${DESTDIR}/root/.profile; \
58928d7d33Sbostic		install -c -o root -g wheel -m 600 dot.rhosts \
59928d7d33Sbostic		    ${DESTDIR}/root/.rhosts; \
60b738ad32Sbostic		rm -f ${DESTDIR}/.cshrc ${DESTDIR}/.profile; \
61b738ad32Sbostic		ln ${DESTDIR}/root/.cshrc ${DESTDIR}/.cshrc; \
62b738ad32Sbostic		ln ${DESTDIR}/root/.profile ${DESTDIR}/.profile)
63b606c3beSbostic	(cd mtree; \
64b606c3beSbostic		install -c -o root -g wheel -m 600 special \
65b606c3beSbostic		    ${DESTDIR}/etc/mtree; \
66b606c3beSbostic		install -c -o root -g wheel -m 444 4.4BSD.dist \
67b8384c58Sbostic		    ${DESTDIR}/etc/mtree)
688e815e22Sbostic	(cd namedb; install -c -o root -g wheel -m 644 ${NAMEDB} \
69b8384c58Sbostic	    ${DESTDIR}/etc/namedb)
708e815e22Sbostic	(cd kerberosIV; install -c -o root -g wheel -m 444 ${KRB} \
71b8384c58Sbostic	    ${DESTDIR}/etc/kerberosIV)
728e815e22Sbostic	install -c -o root -g operator -m 664 /dev/null \
736ff16cb8Sbostic	    ${DESTDIR}/etc/dumpdates
74fc1d6c0dSbostic	install -c -o root -g staff -m 644 /dev/null \
75fc1d6c0dSbostic	    ${DESTDIR}/var/log/lastlog
768e815e22Sbostic	install -c -o root -g wheel -m 644 /dev/null \
770f58be5bSbostic	    ${DESTDIR}/var/log/messages
788e815e22Sbostic	install -c -o root -g wheel -m 644 /dev/null \
790f58be5bSbostic	    ${DESTDIR}/var/log/maillog
808e815e22Sbostic	install -c -o root -g wheel -m 644 /dev/null \
810f58be5bSbostic	    ${DESTDIR}/var/log/lpd-errs
828e815e22Sbostic	install -c -o root -g utmp -m 664 /dev/null \
830f58be5bSbostic	    ${DESTDIR}/var/run/utmp
848e815e22Sbostic	(cd etc.${MACHINE}; install -c -o root -g wheel -m 444 \
85bbc85ca6Sbostic	    fstab.* ${DESTDIR}/etc)
86684799feSbostic.if ${MACHINE} == "hp300"
878e815e22Sbostic	(cd etc.hp300; install -c -o root -g wheel -m 444 ${RBOOTD} \
88684799feSbostic	    ${DESTDIR}/etc)
89684799feSbostic.endif
90183dbc36Sbostic.if ${MACHINE} == "tahoe"
918e815e22Sbostic	(cd etc.tahoe; install -c -o root -g wheel -m 444 ${WCS1} \
9220b02661Sbostic	    ${DESTDIR}/)
93183dbc36Sbostic.endif
94183dbc36Sbostic.if ${MACHINE} == "vax"
958e815e22Sbostic	(cd etc.vax; install -c -o root -g wheel -m 444 ${PCS} \
9620b02661Sbostic	    ${DESTDIR}/)
97183dbc36Sbostic.endif
98b8384c58Sbostic	# There are certain symbolic links we have to have, and
99b8384c58Sbostic	# no other place to have install them.
1000842ddebSbostic	(cd ${DESTDIR}/ && rm -f sys && ln -s usr/src/sys sys)
1010842ddebSbostic	(cd ${DESTDIR}/etc && rm -f rmt && ln -s /usr/sbin/rmt rmt)
1020842ddebSbostic	(cd ${DESTDIR}/etc && \
1030842ddebSbostic	    rm -f termcap && ln -s /usr/share/misc/termcap termcap)
1040842ddebSbostic	(cd ${DESTDIR}/usr && rm -f X11 && ln -s X11R5 X11)
1050842ddebSbostic	(cd ${DESTDIR}/usr && rm -f X11 && ln -s X11R6 X11)
1060842ddebSbostic	(cd ${DESTDIR}/usr/bin && rm -f X11 && ln -s /usr/X11/bin X11)
1070842ddebSbostic	(cd ${DESTDIR}/usr/lib && rm -f X && ln -s /usr/hpux/lib/X X)
1080842ddebSbostic	(cd ${DESTDIR}/usr/lib && rm -f X11 && ln -s /usr/X11/lib X11)
1090842ddebSbostic	(cd ${DESTDIR}/usr/lib && rm -f grmd && ln -s /usr/hpux/lib/grmd grmd)
1100842ddebSbostic	(cd ${DESTDIR}/usr/lib && rm -f tmac && ln -s /usr/share/tmac tmac)
1110842ddebSbostic	(cd ${DESTDIR}/usr/ucb && rm -f rdist && ln -s /usr/bin/rdist rdist)
112c7a91787Sbostic.if ${MACHINE} == "hp300"
1130842ddebSbostic	(cd ${DESTDIR}/usr/bin && rm -f X11 && ln -s /usr/X11/bin X11)
11449b0faa3Sbostic.endif
115183dbc36Sbostic
116183dbc36Sbostichcx9-distribution:
1178e815e22Sbostic	(cd etc.tahoe; install -c -o root -g wheel -m 444 ${WCS2} \
11820b02661Sbostic	    ${DESTDIR}/)
1190f58be5bSbostic
1200f58be5bSbostic.include <bsd.prog.mk>
121