Makefile revision 64598
11195Srgrimes#	from: @(#)Makefile	5.11 (Berkeley) 5/21/91
250472Speter# $FreeBSD: head/etc/Makefile 64598 2000-08-13 09:01:12Z gshapiro $
337Srgrimes
438103SpeterSUBDIR=	sendmail
538103Speter
655230SpeterBIN1=   aliases amd.map apmd.conf auth.conf \
755230Speter	crontab csh.cshrc csh.login csh.logout \
855230Speter	dhclient.conf dm.conf fbtab ftpusers gettytab group \
955230Speter	hosts hosts.allow host.conf hosts.equiv hosts.lpd \
1055230Speter	inetd.conf login.access login.conf \
1155230Speter	motd modems networks newsyslog.conf \
1259257Siwasaki	pam.conf phones pim6dd.conf pim6sd.conf \
1357954Sshin	printcap profile protocols \
1455230Speter	rc rc.atm rc.devfs rc.diskless1 rc.diskless2 rc.firewall rc.isdn \
1557407Sshin	rc.network rc.network6 rc.pccard rc.serial rc.shutdown rc.sysctl \
1655230Speter	remote rpc security services shells syslog.conf usbd.conf \
1755230Speter	etc.${MACHINE_ARCH}/disktab \
1855230Speter	etc.${MACHINE_ARCH}/rc.${MACHINE_ARCH} \
1955230Speter	etc.${MACHINE_ARCH}/ttys \
201734Sjkh	${.CURDIR}/../gnu/usr.bin/man/manpath/manpath.config \
2117639Swosch	${.CURDIR}/../usr.bin/mail/misc/mail.rc \
2217639Swosch	${.CURDIR}/../usr.bin/locate/locate/locate.rc
2337Srgrimes
2457479Speter.if exists(${.CURDIR}/../crypto) && !defined(NO_OPENSSH)
2557488SpeterSSH=	${.CURDIR}/../crypto/openssh/ssh_config \
2657459Smarkm	${.CURDIR}/../crypto/openssh/sshd_config
2757459Smarkm.endif
2857459Smarkm
2960677Skris.if exists(${.CURDIR}/../crypto) && !defined(NO_OPENSSL)
3060677SkrisSSL=	${.CURDIR}/../crypto/openssl/apps/openssl.cnf
3160677Skris.endif
3260677Skris
331773Sjkh# -rwxr-xr-x root.wheel, for the new cron root.wheel
3448734SiwasakiBIN2=	netstart pccard_ether rc.suspend rc.resume
35147Srgrimes
3627487SasamiMTREE=	BSD.include.dist BSD.local.dist BSD.root.dist BSD.usr.dist \
3727487Sasami	BSD.var.dist BSD.x11.dist
3835832SacheNAMEDB= PROTO.localhost.rev named.conf named.root make-localhost
3943901SbrianPPPCNF= ppp.deny ppp.shells.sample
4049110SbrianPPPCF2= ppp.conf
4164598SgshapiroETCMAIL=Makefile README mailer.conf access.sample virtusertable.sample \
4264598Sgshapiro	mailertable.sample aliases
4337Srgrimes
4417639Swosch
45263Srgrimes# Special top level files for FreeBSD
462779SrgrimesCOPYRIGHT=	COPYRIGHT
478857SrgrimesFREEBSD=
48993SrgrimesFREEBSD+=	${COPYRIGHT}
49263Srgrimes
5038103Speteretc:
5137Srgrimes
524487Sphkdistribute:
536717Sphk	cd ${.CURDIR} ; ${MAKE} distribution DESTDIR=${DISTDIR}/bin
5439590Sjkh.if defined(OBJFORMAT)
5539636Sdima	echo OBJFORMAT=${OBJFORMAT} > ${DISTDIR}/bin/etc/objformat
5639590Sjkh.endif
5739590Sjkh	@echo 
585948Sjkh
594487Sphkdistribution:
601759Sjkh	(cd ${.CURDIR}; \
619970Sbde	${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 ${BIN1} ${DESTDIR}/etc; \
6236902Sguido	${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 755 ${BIN2} ${DESTDIR}/etc; \
6343832Sjkh	${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 defaults/rc.conf ${DESTDIR}/etc/defaults/; \
6452609Sdillon	${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 defaults/make.conf ${DESTDIR}/etc/defaults/; \
6558979Siwasaki	${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 defaults/pccard.conf ${DESTDIR}/etc/defaults/; \
6661981Sbrian	${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 defaults/periodic.conf ${DESTDIR}/etc/defaults/; \
679970Sbde	${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 600 /dev/null \
6851033Sn_hibma	    ${DESTDIR}/var/log/cron; \
699970Sbde	${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 600 \
701759Sjkh	    master.passwd ${DESTDIR}/etc; \
7157488Speter	( cd ${.CURDIR}/periodic; ${MAKE} install ); \
7257488Speter	( cd ${.CURDIR}/../gnu/usr.bin/send-pr; ${MAKE} etc-gnats-freefall ); \
7317639Swosch	( cd ${.CURDIR}/../gnu/libexec/uucp/sample; ${MAKE} install ); \
7417639Swosch	( cd ${.CURDIR}/../share/termcap; ${MAKE} etc-termcap ); \
7517645Swosch	( cd ${.CURDIR}/../usr.sbin/rmt; ${MAKE} etc-rmt ); \
7638160Sjb	( cd ${.CURDIR}/sendmail; ${MAKE} etc-sendmail.cf ); \
7757488Speter	( cd ${.CURDIR}/isdn; ${MAKE} install ); \
781759Sjkh	pwd_mkdb -p -d ${DESTDIR}/etc ${DESTDIR}/etc/master.passwd; \
799970Sbde	${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 555 \
8053327Speter	     MAKEDEV.local MAKEDEV ${DESTDIR}/dev )
8157488Speter.if exists(${.CURDIR}/../crypto) && !defined(NO_OPENSSH)
8257488Speter	(cd ${.CURDIR}; ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 ${SSH} \
8357488Speter	    ${DESTDIR}/etc/ssh )
8457488Speter.endif
8560677Skris.if exists(${.CURDIR}/../crypto) && !defined(NO_OPENSSL)
8660677Skris	(cd ${.CURDIR}; ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 ${SSL} \
8760677Skris	    ${DESTDIR}/etc/ssl )
8860677Skris.endif
8957071Srwatson.if !defined(NO_MAKEDEV)
9057488Speter	(cd ${DESTDIR}/dev; sh MAKEDEV all)
9157071Srwatson.endif
921731Sjkh	(cd ${.CURDIR}/root; \
939970Sbde		${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 dot.cshrc \
9437Srgrimes		    ${DESTDIR}/root/.cshrc; \
959970Sbde		${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 dot.klogin \
9637Srgrimes		    ${DESTDIR}/root/.klogin; \
979970Sbde		${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 dot.login \
9837Srgrimes		    ${DESTDIR}/root/.login; \
999970Sbde		${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 dot.profile \
10037Srgrimes		    ${DESTDIR}/root/.profile; \
10137Srgrimes		rm -f ${DESTDIR}/.cshrc ${DESTDIR}/.profile; \
10237Srgrimes		ln ${DESTDIR}/root/.cshrc ${DESTDIR}/.cshrc; \
10337Srgrimes		ln ${DESTDIR}/root/.profile ${DESTDIR}/.profile)
1049970Sbde	cd ${.CURDIR}/mtree; ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 \
1051731Sjkh	    ${MTREE} ${DESTDIR}/etc/mtree
1069970Sbde	cd ${.CURDIR}/namedb; ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 \
1071731Sjkh	    ${NAMEDB} ${DESTDIR}/etc/namedb
1089970Sbde	cd ${.CURDIR}/ppp; ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 \
1096177Samurai	    ${PPPCNF} ${DESTDIR}/etc/ppp
11049110Sbrian	cd ${.CURDIR}/ppp; ${INSTALL} -c -o root -g ${BINGRP} -m 600 \
11149110Sbrian	    ${PPPCF2} ${DESTDIR}/etc/ppp
11230589Sjmb	cd ${.CURDIR}/mail; ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 \
11364598Sgshapiro	    ${ETCMAIL} ${DESTDIR}/etc/mail
1149970Sbde	${INSTALL} -c -o ${BINOWN} -g operator -m 664 /dev/null \
11537Srgrimes	    ${DESTDIR}/etc/dumpdates
11663097Speter	${INSTALL} -c -o nobody -g ${BINGRP} -m 644 /dev/null \
117147Srgrimes	    ${DESTDIR}/var/db/locate.database
11863097Speter	${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 /dev/null \
119147Srgrimes	    ${DESTDIR}/var/log/lpd-errs
12063097Speter	${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 /dev/null \
12137Srgrimes	    ${DESTDIR}/var/log/maillog
12263097Speter	${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 /dev/null \
123288Srgrimes	    ${DESTDIR}/var/log/lastlog
12463097Speter	${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 /dev/null \
125147Srgrimes	    ${DESTDIR}/var/log/messages
12613378Sache	${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 600 /dev/null \
12750126Sgreen	    ${DESTDIR}/var/log/security
12850126Sgreen	${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 600 /dev/null \
12913378Sache	    ${DESTDIR}/var/log/slip.log
13017104Spst	${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 600 /dev/null \
13117104Spst	    ${DESTDIR}/var/log/ppp.log
13263097Speter	${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 /dev/null \
133147Srgrimes	    ${DESTDIR}/var/log/wtmp
13463097Speter	${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 /dev/null \
13537Srgrimes	    ${DESTDIR}/var/run/utmp
1369970Sbde	${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 664 ${.CURDIR}/minfree \
1371759Sjkh	    ${DESTDIR}/var/crash
1381759Sjkh	(cd ${.CURDIR}/..; \
1399970Sbde	    ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 ${FREEBSD} \
1409970Sbde		${DESTDIR}/)
14161888Sasmodai.if !defined(NOMAN)
1421759Sjkh	(cd ${.CURDIR}/../share/man; ${MAKE} makedb; )
14361888Sasmodai.endif
14437Srgrimes
145147Srgrimesdistrib-dirs:
14663776Smarcel	mtree -deU -f ${.CURDIR}/mtree/BSD.root.dist -p ${DESTDIR}/
14763776Smarcel	mtree -deU -f ${.CURDIR}/mtree/BSD.var.dist -p ${DESTDIR}/var
14863776Smarcel	mtree -deU -f ${.CURDIR}/mtree/BSD.usr.dist -p ${DESTDIR}/usr
14963776Smarcel	mtree -deU -f ${.CURDIR}/mtree/BSD.include.dist \
1507129Srgrimes		-p ${DESTDIR}/usr/include
15163776Smarcel	mtree -deU -f ${.CURDIR}/mtree/BSD.include.dist \
15262416Smarkm		-p ${DESTDIR}/usr/libdata/perl/5.6.0/mach
153410Srgrimes	cd ${DESTDIR}/; rm -f ${DESTDIR}/sys; ln -s usr/src/sys sys
1547129Srgrimes	cd ${DESTDIR}/usr/share/locale; \
15511635Sache	set - `cat ${.CURDIR}/locale.alias`; \
15611635Sache	while [ $$# -gt 0 ] ; \
15711635Sache	do \
15811635Sache		rm -rf "$$1"; \
15911635Sache		ln -s "$$2" "$$1"; \
16011635Sache		shift; shift; \
1617129Srgrimes	done
16211635Sache	cd ${DESTDIR}/usr/share/nls; \
16311635Sache	set - `cat ${.CURDIR}/locale.alias`; \
16411635Sache	while [ $$# -gt 0 ] ; \
16511635Sache	do \
16611635Sache		rm -rf "$$1"; \
16711635Sache		ln -s "$$2" "$$1"; \
16811635Sache		shift; shift; \
16911635Sache	done; \
17011635Sache	rm -rf POSIX; \
17111635Sache	ln -s C POSIX
172147Srgrimes
17348185Ssheldonhetc-examples:
17448185Ssheldonh	(cd ${.CURDIR}; \
17548185Ssheldonh	${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 ${BIN1} ${BIN2} \
17648185Ssheldonh	    ${DESTDIR}/usr/share/examples/etc; \
17748185Ssheldonh	${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 defaults/rc.conf \
17852609Sdillon	    ${DESTDIR}/usr/share/examples/etc/defaults; \
17952609Sdillon	${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 defaults/make.conf \
18058979Siwasaki	    ${DESTDIR}/usr/share/examples/etc/defaults; \
18158979Siwasaki	${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 defaults/pccard.conf \
18262006Snbm	    ${DESTDIR}/usr/share/examples/etc/defaults; \
18361981Sbrian	${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 defaults/periodic.conf \
18448185Ssheldonh	    ${DESTDIR}/usr/share/examples/etc/defaults)
18548185Ssheldonh
18637Srgrimes.include <bsd.prog.mk>
187