Makefile revision 74837
11195Srgrimes#	from: @(#)Makefile	5.11 (Berkeley) 5/21/91
250472Speter# $FreeBSD: head/etc/Makefile 74837 2001-03-27 03:58:12Z green $
337Srgrimes
473251Sgshapiro.if !defined(NO_SENDMAIL)
538103SpeterSUBDIR=	sendmail
673251Sgshapiro.endif
738103Speter
864618SgshapiroBIN1=   amd.map apmd.conf auth.conf \
955230Speter	crontab csh.cshrc csh.login csh.logout \
1055230Speter	dhclient.conf dm.conf fbtab ftpusers gettytab group \
1165532Snectar	hosts hosts.allow hosts.equiv hosts.lpd \
1255230Speter	inetd.conf login.access login.conf \
1374462Salfred	motd modems netconfig networks newsyslog.conf \
1459257Siwasaki	pam.conf phones pim6dd.conf pim6sd.conf \
1557954Sshin	printcap profile protocols \
1667929Sume	rc rc.atm rc.devfs rc.diskless1 rc.diskless2 rc.firewall rc.firewall6 \
1767929Sume	rc.isdn rc.network rc.network6 rc.pccard rc.serial rc.shutdown \
1870856Sjhb	rc.syscons rc.sysctl remote rpc security services shells syslog.conf \
1970856Sjhb	usbd.conf \
2055230Speter	etc.${MACHINE_ARCH}/disktab \
2155230Speter	etc.${MACHINE_ARCH}/rc.${MACHINE_ARCH} \
2255230Speter	etc.${MACHINE_ARCH}/ttys \
231734Sjkh	${.CURDIR}/../gnu/usr.bin/man/manpath/manpath.config \
2417639Swosch	${.CURDIR}/../usr.bin/mail/misc/mail.rc \
2517639Swosch	${.CURDIR}/../usr.bin/locate/locate/locate.rc
2637Srgrimes
2757479Speter.if exists(${.CURDIR}/../crypto) && !defined(NO_OPENSSH)
2857488SpeterSSH=	${.CURDIR}/../crypto/openssh/ssh_config \
2974837Sgreen	${.CURDIR}/../crypto/openssh/sshd_config \
3074837Sgreen	primes
3157459Smarkm.endif
3257459Smarkm
3360677Skris.if exists(${.CURDIR}/../crypto) && !defined(NO_OPENSSL)
3460677SkrisSSL=	${.CURDIR}/../crypto/openssl/apps/openssl.cnf
3560677Skris.endif
3660677Skris
371773Sjkh# -rwxr-xr-x root.wheel, for the new cron root.wheel
3848734SiwasakiBIN2=	netstart pccard_ether rc.suspend rc.resume
39147Srgrimes
4027487SasamiMTREE=	BSD.include.dist BSD.local.dist BSD.root.dist BSD.usr.dist \
4165168Sasami	BSD.var.dist BSD.x11.dist BSD.x11-4.dist
4235832SacheNAMEDB= PROTO.localhost.rev named.conf named.root make-localhost
4343901SbrianPPPCNF= ppp.deny ppp.shells.sample
4449110SbrianPPPCF2= ppp.conf
4564598SgshapiroETCMAIL=Makefile README mailer.conf access.sample virtusertable.sample \
4664598Sgshapiro	mailertable.sample aliases
4737Srgrimes
4817639Swosch
49263Srgrimes# Special top level files for FreeBSD
502779SrgrimesCOPYRIGHT=	COPYRIGHT
518857SrgrimesFREEBSD=
52993SrgrimesFREEBSD+=	${COPYRIGHT}
53263Srgrimes
5438103Speteretc:
5537Srgrimes
564487Sphkdistribute:
576717Sphk	cd ${.CURDIR} ; ${MAKE} distribution DESTDIR=${DISTDIR}/bin
5839590Sjkh.if defined(OBJFORMAT)
5939636Sdima	echo OBJFORMAT=${OBJFORMAT} > ${DISTDIR}/bin/etc/objformat
6039590Sjkh.endif
6139590Sjkh	@echo 
625948Sjkh
634487Sphkdistribution:
641759Sjkh	(cd ${.CURDIR}; \
659970Sbde	${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 ${BIN1} ${DESTDIR}/etc; \
6636902Sguido	${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 755 ${BIN2} ${DESTDIR}/etc; \
6743832Sjkh	${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 defaults/rc.conf ${DESTDIR}/etc/defaults/; \
6852609Sdillon	${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 defaults/make.conf ${DESTDIR}/etc/defaults/; \
6958979Siwasaki	${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 defaults/pccard.conf ${DESTDIR}/etc/defaults/; \
7061981Sbrian	${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 defaults/periodic.conf ${DESTDIR}/etc/defaults/; \
719970Sbde	${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 600 /dev/null \
7251033Sn_hibma	    ${DESTDIR}/var/log/cron; \
739970Sbde	${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 600 \
741759Sjkh	    master.passwd ${DESTDIR}/etc; \
7557488Speter	( cd ${.CURDIR}/periodic; ${MAKE} install ); \
7657488Speter	( cd ${.CURDIR}/../gnu/usr.bin/send-pr; ${MAKE} etc-gnats-freefall ); \
7717639Swosch	( cd ${.CURDIR}/../share/termcap; ${MAKE} etc-termcap ); \
7817645Swosch	( cd ${.CURDIR}/../usr.sbin/rmt; ${MAKE} etc-rmt ); \
7957488Speter	( cd ${.CURDIR}/isdn; ${MAKE} install ); \
8074194Sdes	pwd_mkdb -p -d ${DESTDIR}/etc ${DESTDIR}/etc/master.passwd; )
8173251Sgshapiro.if !defined(NO_SENDMAIL)
8273251Sgshapiro	( cd ${.CURDIR}/sendmail; ${MAKE} distribution );
8373251Sgshapiro.endif
8467849Sdougb.if !defined(NOUUCP)
8567849Sdougb	( cd ${.CURDIR}/../gnu/libexec/uucp/sample; ${MAKE} install )
8667849Sdougb.endif
8757488Speter.if exists(${.CURDIR}/../crypto) && !defined(NO_OPENSSH)
8857488Speter	(cd ${.CURDIR}; ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 ${SSH} \
8957488Speter	    ${DESTDIR}/etc/ssh )
9057488Speter.endif
9160677Skris.if exists(${.CURDIR}/../crypto) && !defined(NO_OPENSSL)
9260677Skris	(cd ${.CURDIR}; ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 ${SSL} \
9360677Skris	    ${DESTDIR}/etc/ssl )
9460677Skris.endif
9557071Srwatson.if !defined(NO_MAKEDEV)
9674194Sdes	( cd ${.CURDIR}; ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 555 \
9774194Sdes	     MAKEDEV.local MAKEDEV ${DESTDIR}/dev )
9857488Speter	(cd ${DESTDIR}/dev; sh MAKEDEV all)
9957071Srwatson.endif
1001731Sjkh	(cd ${.CURDIR}/root; \
1019970Sbde		${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 dot.cshrc \
10237Srgrimes		    ${DESTDIR}/root/.cshrc; \
1039970Sbde		${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 dot.klogin \
10437Srgrimes		    ${DESTDIR}/root/.klogin; \
1059970Sbde		${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 dot.login \
10637Srgrimes		    ${DESTDIR}/root/.login; \
1079970Sbde		${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 dot.profile \
10837Srgrimes		    ${DESTDIR}/root/.profile; \
10937Srgrimes		rm -f ${DESTDIR}/.cshrc ${DESTDIR}/.profile; \
11037Srgrimes		ln ${DESTDIR}/root/.cshrc ${DESTDIR}/.cshrc; \
11137Srgrimes		ln ${DESTDIR}/root/.profile ${DESTDIR}/.profile)
1129970Sbde	cd ${.CURDIR}/mtree; ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 \
1131731Sjkh	    ${MTREE} ${DESTDIR}/etc/mtree
1149970Sbde	cd ${.CURDIR}/namedb; ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 \
1151731Sjkh	    ${NAMEDB} ${DESTDIR}/etc/namedb
1169970Sbde	cd ${.CURDIR}/ppp; ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 \
1176177Samurai	    ${PPPCNF} ${DESTDIR}/etc/ppp
11849110Sbrian	cd ${.CURDIR}/ppp; ${INSTALL} -c -o root -g ${BINGRP} -m 600 \
11949110Sbrian	    ${PPPCF2} ${DESTDIR}/etc/ppp
12030589Sjmb	cd ${.CURDIR}/mail; ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 \
12164598Sgshapiro	    ${ETCMAIL} ${DESTDIR}/etc/mail
12264629Sgshapiro	@if [ -d ${DESTDIR}/etc/mail -a -f ${DESTDIR}/etc/mail/aliases -a \
12364629Sgshapiro	      ! -f ${DESTDIR}/etc/aliases ]; then \
12464629Sgshapiro		set -x; \
12564629Sgshapiro		ln -s mail/aliases ${DESTDIR}/etc/aliases; \
12664629Sgshapiro	fi
1279970Sbde	${INSTALL} -c -o ${BINOWN} -g operator -m 664 /dev/null \
12837Srgrimes	    ${DESTDIR}/etc/dumpdates
12963097Speter	${INSTALL} -c -o nobody -g ${BINGRP} -m 644 /dev/null \
130147Srgrimes	    ${DESTDIR}/var/db/locate.database
13163097Speter	${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 /dev/null \
132147Srgrimes	    ${DESTDIR}/var/log/lpd-errs
13363097Speter	${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 /dev/null \
13437Srgrimes	    ${DESTDIR}/var/log/maillog
13563097Speter	${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 /dev/null \
136288Srgrimes	    ${DESTDIR}/var/log/lastlog
13763097Speter	${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 /dev/null \
138147Srgrimes	    ${DESTDIR}/var/log/messages
13913378Sache	${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 600 /dev/null \
14050126Sgreen	    ${DESTDIR}/var/log/security
14150126Sgreen	${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 600 /dev/null \
14213378Sache	    ${DESTDIR}/var/log/slip.log
14317104Spst	${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 600 /dev/null \
14417104Spst	    ${DESTDIR}/var/log/ppp.log
14563097Speter	${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 /dev/null \
146147Srgrimes	    ${DESTDIR}/var/log/wtmp
14763097Speter	${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 /dev/null \
14837Srgrimes	    ${DESTDIR}/var/run/utmp
14964665Skris	${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 ${.CURDIR}/minfree \
1501759Sjkh	    ${DESTDIR}/var/crash
1511759Sjkh	(cd ${.CURDIR}/..; \
1529970Sbde	    ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 ${FREEBSD} \
1539970Sbde		${DESTDIR}/)
15461888Sasmodai.if !defined(NOMAN)
1551759Sjkh	(cd ${.CURDIR}/../share/man; ${MAKE} makedb; )
15661888Sasmodai.endif
15737Srgrimes
158147Srgrimesdistrib-dirs:
15965884Sache	mtree -deU ${MTREE_FOLLOWS_SYMLINKS} -f ${.CURDIR}/mtree/BSD.root.dist -p ${DESTDIR}/
16065884Sache	mtree -deU ${MTREE_FOLLOWS_SYMLINKS} -f ${.CURDIR}/mtree/BSD.var.dist -p ${DESTDIR}/var
16165884Sache	mtree -deU ${MTREE_FOLLOWS_SYMLINKS} -f ${.CURDIR}/mtree/BSD.usr.dist -p ${DESTDIR}/usr
16265884Sache	mtree -deU ${MTREE_FOLLOWS_SYMLINKS} -f ${.CURDIR}/mtree/BSD.include.dist \
1637129Srgrimes		-p ${DESTDIR}/usr/include
16465884Sache	mtree -deU ${MTREE_FOLLOWS_SYMLINKS} -f ${.CURDIR}/mtree/BSD.include.dist \
16562416Smarkm		-p ${DESTDIR}/usr/libdata/perl/5.6.0/mach
166410Srgrimes	cd ${DESTDIR}/; rm -f ${DESTDIR}/sys; ln -s usr/src/sys sys
16772692Sru	cd ${DESTDIR}/usr/share/man/en.ISO_8859-1; ln -sf ../man* .
1687129Srgrimes	cd ${DESTDIR}/usr/share/locale; \
16911635Sache	set - `cat ${.CURDIR}/locale.alias`; \
17011635Sache	while [ $$# -gt 0 ] ; \
17111635Sache	do \
17211635Sache		rm -rf "$$1"; \
17311635Sache		ln -s "$$2" "$$1"; \
17411635Sache		shift; shift; \
1757129Srgrimes	done
17611635Sache	cd ${DESTDIR}/usr/share/nls; \
17711635Sache	set - `cat ${.CURDIR}/locale.alias`; \
17811635Sache	while [ $$# -gt 0 ] ; \
17911635Sache	do \
18011635Sache		rm -rf "$$1"; \
18111635Sache		ln -s "$$2" "$$1"; \
18211635Sache		shift; shift; \
18311635Sache	done; \
18411635Sache	rm -rf POSIX; \
18511635Sache	ln -s C POSIX
186147Srgrimes
18748185Ssheldonhetc-examples:
18848185Ssheldonh	(cd ${.CURDIR}; \
18948185Ssheldonh	${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 ${BIN1} ${BIN2} \
19048185Ssheldonh	    ${DESTDIR}/usr/share/examples/etc; \
19148185Ssheldonh	${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 defaults/rc.conf \
19252609Sdillon	    ${DESTDIR}/usr/share/examples/etc/defaults; \
19352609Sdillon	${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 defaults/make.conf \
19458979Siwasaki	    ${DESTDIR}/usr/share/examples/etc/defaults; \
19558979Siwasaki	${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 defaults/pccard.conf \
19662006Snbm	    ${DESTDIR}/usr/share/examples/etc/defaults; \
19761981Sbrian	${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 defaults/periodic.conf \
19848185Ssheldonh	    ${DESTDIR}/usr/share/examples/etc/defaults)
19948185Ssheldonh
20037Srgrimes.include <bsd.prog.mk>
201