Makefile revision 64629
11195Srgrimes#	from: @(#)Makefile	5.11 (Berkeley) 5/21/91
250472Speter# $FreeBSD: head/etc/Makefile 64629 2000-08-14 02:49:39Z gshapiro $
337Srgrimes
438103SpeterSUBDIR=	sendmail
538103Speter
664618SgshapiroBIN1=   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
11464629Sgshapiro	@if [ -d ${DESTDIR}/etc/mail -a -f ${DESTDIR}/etc/mail/aliases -a \
11564629Sgshapiro	      ! -f ${DESTDIR}/etc/aliases ]; then \
11664629Sgshapiro		set -x; \
11764629Sgshapiro		ln -s mail/aliases ${DESTDIR}/etc/aliases; \
11864629Sgshapiro	fi
1199970Sbde	${INSTALL} -c -o ${BINOWN} -g operator -m 664 /dev/null \
12037Srgrimes	    ${DESTDIR}/etc/dumpdates
12163097Speter	${INSTALL} -c -o nobody -g ${BINGRP} -m 644 /dev/null \
122147Srgrimes	    ${DESTDIR}/var/db/locate.database
12363097Speter	${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 /dev/null \
124147Srgrimes	    ${DESTDIR}/var/log/lpd-errs
12563097Speter	${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 /dev/null \
12637Srgrimes	    ${DESTDIR}/var/log/maillog
12763097Speter	${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 /dev/null \
128288Srgrimes	    ${DESTDIR}/var/log/lastlog
12963097Speter	${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 /dev/null \
130147Srgrimes	    ${DESTDIR}/var/log/messages
13113378Sache	${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 600 /dev/null \
13250126Sgreen	    ${DESTDIR}/var/log/security
13350126Sgreen	${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 600 /dev/null \
13413378Sache	    ${DESTDIR}/var/log/slip.log
13517104Spst	${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 600 /dev/null \
13617104Spst	    ${DESTDIR}/var/log/ppp.log
13763097Speter	${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 /dev/null \
138147Srgrimes	    ${DESTDIR}/var/log/wtmp
13963097Speter	${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 /dev/null \
14037Srgrimes	    ${DESTDIR}/var/run/utmp
1419970Sbde	${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 664 ${.CURDIR}/minfree \
1421759Sjkh	    ${DESTDIR}/var/crash
1431759Sjkh	(cd ${.CURDIR}/..; \
1449970Sbde	    ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 ${FREEBSD} \
1459970Sbde		${DESTDIR}/)
14661888Sasmodai.if !defined(NOMAN)
1471759Sjkh	(cd ${.CURDIR}/../share/man; ${MAKE} makedb; )
14861888Sasmodai.endif
14937Srgrimes
150147Srgrimesdistrib-dirs:
15163776Smarcel	mtree -deU -f ${.CURDIR}/mtree/BSD.root.dist -p ${DESTDIR}/
15263776Smarcel	mtree -deU -f ${.CURDIR}/mtree/BSD.var.dist -p ${DESTDIR}/var
15363776Smarcel	mtree -deU -f ${.CURDIR}/mtree/BSD.usr.dist -p ${DESTDIR}/usr
15463776Smarcel	mtree -deU -f ${.CURDIR}/mtree/BSD.include.dist \
1557129Srgrimes		-p ${DESTDIR}/usr/include
15663776Smarcel	mtree -deU -f ${.CURDIR}/mtree/BSD.include.dist \
15762416Smarkm		-p ${DESTDIR}/usr/libdata/perl/5.6.0/mach
158410Srgrimes	cd ${DESTDIR}/; rm -f ${DESTDIR}/sys; ln -s usr/src/sys sys
1597129Srgrimes	cd ${DESTDIR}/usr/share/locale; \
16011635Sache	set - `cat ${.CURDIR}/locale.alias`; \
16111635Sache	while [ $$# -gt 0 ] ; \
16211635Sache	do \
16311635Sache		rm -rf "$$1"; \
16411635Sache		ln -s "$$2" "$$1"; \
16511635Sache		shift; shift; \
1667129Srgrimes	done
16711635Sache	cd ${DESTDIR}/usr/share/nls; \
16811635Sache	set - `cat ${.CURDIR}/locale.alias`; \
16911635Sache	while [ $$# -gt 0 ] ; \
17011635Sache	do \
17111635Sache		rm -rf "$$1"; \
17211635Sache		ln -s "$$2" "$$1"; \
17311635Sache		shift; shift; \
17411635Sache	done; \
17511635Sache	rm -rf POSIX; \
17611635Sache	ln -s C POSIX
177147Srgrimes
17848185Ssheldonhetc-examples:
17948185Ssheldonh	(cd ${.CURDIR}; \
18048185Ssheldonh	${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 ${BIN1} ${BIN2} \
18148185Ssheldonh	    ${DESTDIR}/usr/share/examples/etc; \
18248185Ssheldonh	${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 defaults/rc.conf \
18352609Sdillon	    ${DESTDIR}/usr/share/examples/etc/defaults; \
18452609Sdillon	${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 defaults/make.conf \
18558979Siwasaki	    ${DESTDIR}/usr/share/examples/etc/defaults; \
18658979Siwasaki	${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 defaults/pccard.conf \
18762006Snbm	    ${DESTDIR}/usr/share/examples/etc/defaults; \
18861981Sbrian	${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 defaults/periodic.conf \
18948185Ssheldonh	    ${DESTDIR}/usr/share/examples/etc/defaults)
19048185Ssheldonh
19137Srgrimes.include <bsd.prog.mk>
192