Makefile revision 114780
11195Srgrimes#	from: @(#)Makefile	5.11 (Berkeley) 5/21/91
250472Speter# $FreeBSD: head/etc/Makefile 114780 2003-05-06 07:25:17Z dougb $
337Srgrimes
473251Sgshapiro.if !defined(NO_SENDMAIL)
538103SpeterSUBDIR=	sendmail
673251Sgshapiro.endif
738103Speter
899451SruBIN1=	amd.map apmd.conf auth.conf \
9114780Sdougb	crontab csh.cshrc csh.login csh.logout devd.conf devfs.conf \
10114780Sdougb	dhclient.conf disktab fbtab ftpusers gettytab group \
1165532Snectar	hosts hosts.allow hosts.equiv hosts.lpd \
1255230Speter	inetd.conf login.access login.conf \
13113674Smtm	mac.conf motd netconfig network.subr networks newsyslog.conf \
1489364Sdes	phones printcap profile protocols \
15114555Sdougb	rc rc.firewall rc.firewall6 rc.sendmail rc.shutdown \
16114492Sdougb	rc.subr remote rpc services \
1798187Sgordon	shells sysctl.conf syslog.conf usbd.conf \
1855230Speter	etc.${MACHINE_ARCH}/ttys \
191734Sjkh	${.CURDIR}/../gnu/usr.bin/man/manpath/manpath.config \
2017639Swosch	${.CURDIR}/../usr.bin/mail/misc/mail.rc \
2117639Swosch	${.CURDIR}/../usr.bin/locate/locate/locate.rc
2237Srgrimes
2398548Sru.if exists(${.CURDIR}/../crypto) && !defined(NO_OPENSSL)
2498548Sru.if !defined(NO_OPENSSH)
2557488SpeterSSH=	${.CURDIR}/../crypto/openssh/ssh_config \
2674837Sgreen	${.CURDIR}/../crypto/openssh/sshd_config \
2792898Sdes	moduli
2857459Smarkm.endif
2960677SkrisSSL=	${.CURDIR}/../crypto/openssl/apps/openssl.cnf
3060677Skris.endif
3160677Skris
3282521Salex# -rwxr-xr-x root:wheel, for the new cron root:wheel
33108002SgreenBIN2=	netstart pccard_ether rc.suspend rc.resume
34147Srgrimes
3599449SruDEFAULTS= rc.conf pccard.conf periodic.conf
3699449Sru
3727487SasamiMTREE=	BSD.include.dist BSD.local.dist BSD.root.dist BSD.usr.dist \
3865168Sasami	BSD.var.dist BSD.x11.dist BSD.x11-4.dist
3995144Sgshapiro.if !defined(NO_SENDMAIL)
4095144SgshapiroMTREE+=	BSD.sendmail.dist
4195144Sgshapiro.endif
4299451Sru
4399451SruNAMEDB=	PROTO.localhost.rev PROTO.localhost-v6.rev named.conf named.root \
4490281Sume	make-localhost
4599451Sru
4699451SruPPPCNF=	ppp.conf
4799451Sru
4864598SgshapiroETCMAIL=Makefile README mailer.conf access.sample virtusertable.sample \
4964598Sgshapiro	mailertable.sample aliases
5037Srgrimes
51263Srgrimes# Special top level files for FreeBSD
5299449SruFREEBSD=COPYRIGHT
53263Srgrimes
544487Sphkdistribute:
5595327Sobrien	cd ${.CURDIR} ; ${MAKE} distribution DESTDIR=${DISTDIR}/${DISTRIBUTION}
56100872Sru	${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 444 \
5795509Sru	    ${.CURDIR}/../sys/${MACHINE}/conf/GENERIC.hints \
5895509Sru	    ${DISTDIR}/${DISTRIBUTION}/boot/device.hints
595948Sjkh
604487Sphkdistribution:
6199449Sru	cd ${.CURDIR}; \
62100872Sru	    ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 \
6399451Sru		${BIN1} ${DESTDIR}/etc; \
64111810Sru	    cap_mkdb ${DESTDIR}/etc/login.conf; \
65100872Sru	    ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 755 \
6699451Sru		${BIN2} ${DESTDIR}/etc; \
67100872Sru	    ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 600 \
6899451Sru		master.passwd nsmb.conf opieaccess ${DESTDIR}/etc; \
6999451Sru	    pwd_mkdb -p -d ${DESTDIR}/etc ${DESTDIR}/etc/master.passwd
70100872Sru	cd ${.CURDIR}/defaults; ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 \
7199449Sru	    ${DEFAULTS} ${DESTDIR}/etc/defaults
7299449Sru	cd ${.CURDIR}/periodic; ${MAKE} install
7399449Sru	cd ${.CURDIR}/rc.d; ${MAKE} install
7499449Sru	cd ${.CURDIR}/../gnu/usr.bin/send-pr; ${MAKE} etc-gnats-freefall
7599449Sru	cd ${.CURDIR}/../share/termcap; ${MAKE} etc-termcap
7699449Sru	cd ${.CURDIR}/../usr.sbin/rmt; ${MAKE} etc-rmt
7799449Sru	cd ${.CURDIR}/pam.d; ${MAKE} install
7877041Sru.if !defined(NO_I4B)
7999449Sru	cd ${.CURDIR}/isdn; ${MAKE} install
8077041Sru.endif
8173251Sgshapiro.if !defined(NO_SENDMAIL)
8299449Sru	cd ${.CURDIR}/sendmail; ${MAKE} distribution
8373251Sgshapiro.endif
8498548Sru.if exists(${.CURDIR}/../crypto) && !defined(NO_OPENSSL)
8598548Sru.if !defined(NO_OPENSSH)
86100872Sru	cd ${.CURDIR}; ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 \
8799451Sru	    ${SSH} ${DESTDIR}/etc/ssh
8857488Speter.endif
89100872Sru	cd ${.CURDIR}; ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 \
9099451Sru	    ${SSL} ${DESTDIR}/etc/ssl
9160677Skris.endif
9299449Sru	cd ${.CURDIR}/root; \
93100872Sru	    ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 \
9499451Sru		dot.cshrc ${DESTDIR}/root/.cshrc; \
95100872Sru	    ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 \
96114328Smarkm		dot.k5login ${DESTDIR}/root/.k5login; \
97100872Sru	    ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 \
9899451Sru		dot.login ${DESTDIR}/root/.login; \
99100872Sru	    ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 \
10099451Sru		dot.profile ${DESTDIR}/root/.profile; \
10199451Sru	    rm -f ${DESTDIR}/.cshrc ${DESTDIR}/.profile; \
10299451Sru	    ln ${DESTDIR}/root/.cshrc ${DESTDIR}/.cshrc; \
10399451Sru	    ln ${DESTDIR}/root/.profile ${DESTDIR}/.profile
104100872Sru	cd ${.CURDIR}/mtree; ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 444 \
1051731Sjkh	    ${MTREE} ${DESTDIR}/etc/mtree
106100872Sru	cd ${.CURDIR}/namedb; ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 \
1071731Sjkh	    ${NAMEDB} ${DESTDIR}/etc/namedb
108100872Sru	cd ${.CURDIR}/ppp; ${INSTALL} -o root -g ${BINGRP} -m 600 \
1096177Samurai	    ${PPPCNF} ${DESTDIR}/etc/ppp
110100872Sru	cd ${.CURDIR}/mail; ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 \
11164598Sgshapiro	    ${ETCMAIL} ${DESTDIR}/etc/mail
11264629Sgshapiro	@if [ -d ${DESTDIR}/etc/mail -a -f ${DESTDIR}/etc/mail/aliases -a \
11364629Sgshapiro	      ! -f ${DESTDIR}/etc/aliases ]; then \
11464629Sgshapiro		set -x; \
11564629Sgshapiro		ln -s mail/aliases ${DESTDIR}/etc/aliases; \
11664629Sgshapiro	fi
117100872Sru	${INSTALL} -o ${BINOWN} -g operator -m 664 /dev/null \
11837Srgrimes	    ${DESTDIR}/etc/dumpdates
119100872Sru	${INSTALL} -o nobody -g ${BINGRP} -m 644 /dev/null \
120147Srgrimes	    ${DESTDIR}/var/db/locate.database
121100872Sru	${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 600 /dev/null \
12292100Srwatson	    ${DESTDIR}/var/log/auth.log
123100872Sru	${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 600 /dev/null \
12499449Sru	    ${DESTDIR}/var/log/cron
125103720Smarkm	${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 600 /dev/null \
126113259Sdes	    ${DESTDIR}/var/log/debug.log
127113259Sdes	${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 600 /dev/null \
128103738Smarkm	    ${DESTDIR}/var/log/xferlog
129100872Sru	${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 /dev/null \
130147Srgrimes	    ${DESTDIR}/var/log/lpd-errs
131100872Sru	${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 640 /dev/null \
13237Srgrimes	    ${DESTDIR}/var/log/maillog
133100872Sru	${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 /dev/null \
134288Srgrimes	    ${DESTDIR}/var/log/lastlog
135100872Sru	${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 /dev/null \
136147Srgrimes	    ${DESTDIR}/var/log/messages
137100872Sru	${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 600 /dev/null \
13850126Sgreen	    ${DESTDIR}/var/log/security
139100872Sru	${INSTALL} -o ${BINOWN} -g network -m 640 /dev/null \
14013378Sache	    ${DESTDIR}/var/log/slip.log
141100872Sru	${INSTALL} -o ${BINOWN} -g network -m 640 /dev/null \
14217104Spst	    ${DESTDIR}/var/log/ppp.log
143100872Sru	${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 /dev/null \
144147Srgrimes	    ${DESTDIR}/var/log/wtmp
145100872Sru	${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 /dev/null \
14637Srgrimes	    ${DESTDIR}/var/run/utmp
147100872Sru	${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 ${.CURDIR}/minfree \
1481759Sjkh	    ${DESTDIR}/var/crash
149100872Sru	cd ${.CURDIR}/..; ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 444 \
15099451Sru		${FREEBSD} ${DESTDIR}/
15161888Sasmodai.if !defined(NOMAN)
15299449Sru	cd ${.CURDIR}/../share/man; ${MAKE} makedb
15361888Sasmodai.endif
15437Srgrimes
155147Srgrimesdistrib-dirs:
15689074Sphantom	-set - `grep "^[a-zA-Z]" ${.CURDIR}/locale.deprecated`; \
15789074Sphantom	while [ $$# -gt 0 ] ; \
15889074Sphantom	do \
15989074Sphantom		for dir in /usr/share/locale \
16089074Sphantom			   /usr/share/nls \
16189074Sphantom			   /usr/local/share/nls; \
16289074Sphantom		do \
16389074Sphantom			test -d ${DESTDIR}/$${dir} && cd ${DESTDIR}/$${dir}; \
16489074Sphantom			test -L "$$2" && rm -rf "$$2"; \
16589074Sphantom			test \! -L "$$1" && test -d "$$1" && mv "$$1" "$$2"; \
16689074Sphantom		done; \
16789074Sphantom		shift; shift; \
16889074Sphantom	done
16965884Sache	mtree -deU ${MTREE_FOLLOWS_SYMLINKS} -f ${.CURDIR}/mtree/BSD.root.dist -p ${DESTDIR}/
17065884Sache	mtree -deU ${MTREE_FOLLOWS_SYMLINKS} -f ${.CURDIR}/mtree/BSD.var.dist -p ${DESTDIR}/var
17165884Sache	mtree -deU ${MTREE_FOLLOWS_SYMLINKS} -f ${.CURDIR}/mtree/BSD.usr.dist -p ${DESTDIR}/usr
17265884Sache	mtree -deU ${MTREE_FOLLOWS_SYMLINKS} -f ${.CURDIR}/mtree/BSD.include.dist \
1737129Srgrimes		-p ${DESTDIR}/usr/include
17495144Sgshapiro.if !defined(NO_SENDMAIL)
17595144Sgshapiro	mtree -deU ${MTREE_FOLLOWS_SYMLINKS} -f ${.CURDIR}/mtree/BSD.sendmail.dist -p ${DESTDIR}/
17695144Sgshapiro.endif
177410Srgrimes	cd ${DESTDIR}/; rm -f ${DESTDIR}/sys; ln -s usr/src/sys sys
17877993Sache	cd ${DESTDIR}/usr/share/man/en.ISO8859-1; ln -sf ../man* .
17977993Sache	cd ${DESTDIR}/usr/share/man; \
18077993Sache	set - `grep "^[a-zA-Z]" ${.CURDIR}/man.alias`; \
18177993Sache	while [ $$# -gt 0 ] ; \
18277993Sache	do \
18377993Sache		rm -rf "$$1"; \
18477993Sache		ln -s "$$2" "$$1"; \
18577993Sache		shift; shift; \
18677993Sache	done
187110663Sache	cd ${DESTDIR}/usr/share/openssl/man; \
188110663Sache	set - `grep "^[a-zA-Z]" ${.CURDIR}/man.alias`; \
189110663Sache	while [ $$# -gt 0 ] ; \
190110663Sache	do \
191110663Sache		rm -rf "$$1"; \
192110663Sache		ln -s "$$2" "$$1"; \
193110663Sache		shift; shift; \
194110663Sache	done
1957129Srgrimes	cd ${DESTDIR}/usr/share/locale; \
19677976Sache	set - `grep "^[a-zA-Z]" ${.CURDIR}/locale.alias`; \
19711635Sache	while [ $$# -gt 0 ] ; \
19811635Sache	do \
19911635Sache		rm -rf "$$1"; \
20011635Sache		ln -s "$$2" "$$1"; \
20111635Sache		shift; shift; \
2027129Srgrimes	done
203110655Snectar	cd ${DESTDIR}/usr/share/openssl/man/en.ISO8859-1; ln -sf ../man* .
20411635Sache	cd ${DESTDIR}/usr/share/nls; \
20577999Sache	set - `grep "^[a-zA-Z]" ${.CURDIR}/nls.alias`; \
20611635Sache	while [ $$# -gt 0 ] ; \
20711635Sache	do \
20811635Sache		rm -rf "$$1"; \
20911635Sache		ln -s "$$2" "$$1"; \
21011635Sache		shift; shift; \
21177999Sache	done
212147Srgrimes
21348185Ssheldonhetc-examples:
214100872Sru	cd ${.CURDIR}; ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 444 \
21599451Sru	    ${BIN1} ${BIN2} nsmb.conf opieaccess \
21699451Sru	    ${DESTDIR}/usr/share/examples/etc
217100872Sru	cd ${.CURDIR}/defaults; ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 444 \
21899451Sru	    ${DEFAULTS} ${DESTDIR}/usr/share/examples/etc/defaults
21948185Ssheldonh
22037Srgrimes.include <bsd.prog.mk>
221