Makefile revision 103720
11195Srgrimes#	from: @(#)Makefile	5.11 (Berkeley) 5/21/91
250472Speter# $FreeBSD: head/etc/Makefile 103720 2002-09-20 22:12:27Z markm $
337Srgrimes
473251Sgshapiro.if !defined(NO_SENDMAIL)
538103SpeterSUBDIR=	sendmail
673251Sgshapiro.endif
738103Speter
899451SruBIN1=	amd.map apmd.conf auth.conf \
955230Speter	crontab csh.cshrc csh.login csh.logout \
1082480Sbrian	dhclient.conf dm.conf fbtab ftpusers gettytab group \
1165532Snectar	hosts hosts.allow hosts.equiv hosts.lpd \
1255230Speter	inetd.conf login.access login.conf \
1388878Ssheldonh	motd modems netconfig networks newsyslog.conf \
1489364Sdes	phones printcap profile protocols \
1567929Sume	rc rc.atm rc.devfs rc.diskless1 rc.diskless2 rc.firewall rc.firewall6 \
1695227Sgshapiro	rc.network rc.network6 rc.pccard rc.sendmail rc.serial rc.shutdown \
1798187Sgordon	rc.subr rc.syscons rc.sysctl remote rpc services \
1898187Sgordon	shells sysctl.conf syslog.conf usbd.conf \
1955230Speter	etc.${MACHINE_ARCH}/disktab \
2055230Speter	etc.${MACHINE_ARCH}/rc.${MACHINE_ARCH} \
2155230Speter	etc.${MACHINE_ARCH}/ttys \
221734Sjkh	${.CURDIR}/../gnu/usr.bin/man/manpath/manpath.config \
2317639Swosch	${.CURDIR}/../usr.bin/mail/misc/mail.rc \
2417639Swosch	${.CURDIR}/../usr.bin/locate/locate/locate.rc
2537Srgrimes
2677041Sru.if !defined(NO_I4B)
2777041SruBIN1+=	rc.isdn
2877041Sru.endif
2977041Sru
3098548Sru.if exists(${.CURDIR}/../crypto) && !defined(NO_OPENSSL)
3198548Sru.if !defined(NO_OPENSSH)
3257488SpeterSSH=	${.CURDIR}/../crypto/openssh/ssh_config \
3374837Sgreen	${.CURDIR}/../crypto/openssh/sshd_config \
3492898Sdes	moduli
3557459Smarkm.endif
3660677SkrisSSL=	${.CURDIR}/../crypto/openssl/apps/openssl.cnf
3760677Skris.endif
3860677Skris
3982521Salex# -rwxr-xr-x root:wheel, for the new cron root:wheel
4048734SiwasakiBIN2=	netstart pccard_ether rc.suspend rc.resume
41147Srgrimes
4299449SruDEFAULTS= rc.conf pccard.conf periodic.conf
4399449Sru
4427487SasamiMTREE=	BSD.include.dist BSD.local.dist BSD.root.dist BSD.usr.dist \
4565168Sasami	BSD.var.dist BSD.x11.dist BSD.x11-4.dist
4695144Sgshapiro.if !defined(NO_SENDMAIL)
4795144SgshapiroMTREE+=	BSD.sendmail.dist
4895144Sgshapiro.endif
4999451Sru
5099451SruNAMEDB=	PROTO.localhost.rev PROTO.localhost-v6.rev named.conf named.root \
5190281Sume	make-localhost
5299451Sru
5399451SruPPPCNF=	ppp.conf
5499451Sru
5564598SgshapiroETCMAIL=Makefile README mailer.conf access.sample virtusertable.sample \
5664598Sgshapiro	mailertable.sample aliases
5737Srgrimes
58263Srgrimes# Special top level files for FreeBSD
5999449SruFREEBSD=COPYRIGHT
60263Srgrimes
614487Sphkdistribute:
6295327Sobrien	cd ${.CURDIR} ; ${MAKE} distribution DESTDIR=${DISTDIR}/${DISTRIBUTION}
63100872Sru	${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 444 \
6495509Sru	    ${.CURDIR}/../sys/${MACHINE}/conf/GENERIC.hints \
6595509Sru	    ${DISTDIR}/${DISTRIBUTION}/boot/device.hints
665948Sjkh
674487Sphkdistribution:
6899449Sru	cd ${.CURDIR}; \
69100872Sru	    ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 \
7099451Sru		${BIN1} ${DESTDIR}/etc; \
71100872Sru	    ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 755 \
7299451Sru		${BIN2} ${DESTDIR}/etc; \
73100872Sru	    ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 600 \
7499451Sru		master.passwd nsmb.conf opieaccess ${DESTDIR}/etc; \
7599451Sru	    pwd_mkdb -p -d ${DESTDIR}/etc ${DESTDIR}/etc/master.passwd
76100872Sru	cd ${.CURDIR}/defaults; ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 \
7799449Sru	    ${DEFAULTS} ${DESTDIR}/etc/defaults
7899449Sru	cd ${.CURDIR}/periodic; ${MAKE} install
7999449Sru	cd ${.CURDIR}/rc.d; ${MAKE} install
8099449Sru	cd ${.CURDIR}/../gnu/usr.bin/send-pr; ${MAKE} etc-gnats-freefall
8199449Sru	cd ${.CURDIR}/../share/termcap; ${MAKE} etc-termcap
8299449Sru	cd ${.CURDIR}/../usr.sbin/rmt; ${MAKE} etc-rmt
8399449Sru	cd ${.CURDIR}/pam.d; ${MAKE} install
8477041Sru.if !defined(NO_I4B)
8599449Sru	cd ${.CURDIR}/isdn; ${MAKE} install
8677041Sru.endif
8773251Sgshapiro.if !defined(NO_SENDMAIL)
8899449Sru	cd ${.CURDIR}/sendmail; ${MAKE} distribution
8973251Sgshapiro.endif
9098548Sru.if exists(${.CURDIR}/../crypto) && !defined(NO_OPENSSL)
9198548Sru.if !defined(NO_OPENSSH)
92100872Sru	cd ${.CURDIR}; ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 \
9399451Sru	    ${SSH} ${DESTDIR}/etc/ssh
9457488Speter.endif
95100872Sru	cd ${.CURDIR}; ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 \
9699451Sru	    ${SSL} ${DESTDIR}/etc/ssl
9760677Skris.endif
9874990Sasmodai.if !defined(NO_MAKEDEV_INSTALL)
99100872Sru	cd ${.CURDIR}; ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 555 \
10099451Sru	    MAKEDEV.local MAKEDEV ${DESTDIR}/dev
10174990Sasmodai.if !defined(NO_MAKEDEV_RUN)
10299449Sru	cd ${DESTDIR}/dev; sh MAKEDEV all
10357071Srwatson.endif
10474990Sasmodai.endif
10599449Sru	cd ${.CURDIR}/root; \
106100872Sru	    ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 \
10799451Sru		dot.cshrc ${DESTDIR}/root/.cshrc; \
108100872Sru	    ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 \
10999451Sru		dot.klogin ${DESTDIR}/root/.klogin; \
110100872Sru	    ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 \
11199451Sru		dot.login ${DESTDIR}/root/.login; \
112100872Sru	    ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 \
11399451Sru		dot.profile ${DESTDIR}/root/.profile; \
11499451Sru	    rm -f ${DESTDIR}/.cshrc ${DESTDIR}/.profile; \
11599451Sru	    ln ${DESTDIR}/root/.cshrc ${DESTDIR}/.cshrc; \
11699451Sru	    ln ${DESTDIR}/root/.profile ${DESTDIR}/.profile
117100872Sru	cd ${.CURDIR}/mtree; ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 444 \
1181731Sjkh	    ${MTREE} ${DESTDIR}/etc/mtree
119100872Sru	cd ${.CURDIR}/namedb; ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 \
1201731Sjkh	    ${NAMEDB} ${DESTDIR}/etc/namedb
121100872Sru	cd ${.CURDIR}/ppp; ${INSTALL} -o root -g ${BINGRP} -m 600 \
1226177Samurai	    ${PPPCNF} ${DESTDIR}/etc/ppp
123100872Sru	cd ${.CURDIR}/mail; ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 \
12464598Sgshapiro	    ${ETCMAIL} ${DESTDIR}/etc/mail
12564629Sgshapiro	@if [ -d ${DESTDIR}/etc/mail -a -f ${DESTDIR}/etc/mail/aliases -a \
12664629Sgshapiro	      ! -f ${DESTDIR}/etc/aliases ]; then \
12764629Sgshapiro		set -x; \
12864629Sgshapiro		ln -s mail/aliases ${DESTDIR}/etc/aliases; \
12964629Sgshapiro	fi
130100872Sru	${INSTALL} -o ${BINOWN} -g operator -m 664 /dev/null \
13137Srgrimes	    ${DESTDIR}/etc/dumpdates
132100872Sru	${INSTALL} -o nobody -g ${BINGRP} -m 644 /dev/null \
133147Srgrimes	    ${DESTDIR}/var/db/locate.database
134100872Sru	${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 600 /dev/null \
13592100Srwatson	    ${DESTDIR}/var/log/auth.log
136100872Sru	${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 600 /dev/null \
13799449Sru	    ${DESTDIR}/var/log/cron
138103720Smarkm	${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 600 /dev/null \
139103720Smarkm	    ${DESTDIR}/var/log/ftp.log
140100872Sru	${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 /dev/null \
141147Srgrimes	    ${DESTDIR}/var/log/lpd-errs
142100872Sru	${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 640 /dev/null \
14337Srgrimes	    ${DESTDIR}/var/log/maillog
144100872Sru	${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 /dev/null \
145288Srgrimes	    ${DESTDIR}/var/log/lastlog
146100872Sru	${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 /dev/null \
147147Srgrimes	    ${DESTDIR}/var/log/messages
148100872Sru	${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 600 /dev/null \
14950126Sgreen	    ${DESTDIR}/var/log/security
150100872Sru	${INSTALL} -o ${BINOWN} -g network -m 640 /dev/null \
15113378Sache	    ${DESTDIR}/var/log/slip.log
152100872Sru	${INSTALL} -o ${BINOWN} -g network -m 640 /dev/null \
15317104Spst	    ${DESTDIR}/var/log/ppp.log
154100872Sru	${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 /dev/null \
155147Srgrimes	    ${DESTDIR}/var/log/wtmp
156100872Sru	${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 /dev/null \
15737Srgrimes	    ${DESTDIR}/var/run/utmp
158100872Sru	${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 ${.CURDIR}/minfree \
1591759Sjkh	    ${DESTDIR}/var/crash
160100872Sru	cd ${.CURDIR}/..; ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 444 \
16199451Sru		${FREEBSD} ${DESTDIR}/
16261888Sasmodai.if !defined(NOMAN)
16399449Sru	cd ${.CURDIR}/../share/man; ${MAKE} makedb
16461888Sasmodai.endif
16537Srgrimes
166147Srgrimesdistrib-dirs:
16789074Sphantom	-set - `grep "^[a-zA-Z]" ${.CURDIR}/locale.deprecated`; \
16889074Sphantom	while [ $$# -gt 0 ] ; \
16989074Sphantom	do \
17089074Sphantom		for dir in /usr/share/locale \
17189074Sphantom			   /usr/share/nls \
17289074Sphantom			   /usr/local/share/nls; \
17389074Sphantom		do \
17489074Sphantom			test -d ${DESTDIR}/$${dir} && cd ${DESTDIR}/$${dir}; \
17589074Sphantom			test -L "$$2" && rm -rf "$$2"; \
17689074Sphantom			test \! -L "$$1" && test -d "$$1" && mv "$$1" "$$2"; \
17789074Sphantom		done; \
17889074Sphantom		shift; shift; \
17989074Sphantom	done
18065884Sache	mtree -deU ${MTREE_FOLLOWS_SYMLINKS} -f ${.CURDIR}/mtree/BSD.root.dist -p ${DESTDIR}/
18165884Sache	mtree -deU ${MTREE_FOLLOWS_SYMLINKS} -f ${.CURDIR}/mtree/BSD.var.dist -p ${DESTDIR}/var
18265884Sache	mtree -deU ${MTREE_FOLLOWS_SYMLINKS} -f ${.CURDIR}/mtree/BSD.usr.dist -p ${DESTDIR}/usr
18365884Sache	mtree -deU ${MTREE_FOLLOWS_SYMLINKS} -f ${.CURDIR}/mtree/BSD.include.dist \
1847129Srgrimes		-p ${DESTDIR}/usr/include
18595144Sgshapiro.if !defined(NO_SENDMAIL)
18695144Sgshapiro	mtree -deU ${MTREE_FOLLOWS_SYMLINKS} -f ${.CURDIR}/mtree/BSD.sendmail.dist -p ${DESTDIR}/
18795144Sgshapiro.endif
188410Srgrimes	cd ${DESTDIR}/; rm -f ${DESTDIR}/sys; ln -s usr/src/sys sys
18977993Sache	cd ${DESTDIR}/usr/share/man/en.ISO8859-1; ln -sf ../man* .
19077993Sache	cd ${DESTDIR}/usr/share/man; \
19177993Sache	set - `grep "^[a-zA-Z]" ${.CURDIR}/man.alias`; \
19277993Sache	while [ $$# -gt 0 ] ; \
19377993Sache	do \
19477993Sache		rm -rf "$$1"; \
19577993Sache		ln -s "$$2" "$$1"; \
19677993Sache		shift; shift; \
19777993Sache	done
1987129Srgrimes	cd ${DESTDIR}/usr/share/locale; \
19977976Sache	set - `grep "^[a-zA-Z]" ${.CURDIR}/locale.alias`; \
20011635Sache	while [ $$# -gt 0 ] ; \
20111635Sache	do \
20211635Sache		rm -rf "$$1"; \
20311635Sache		ln -s "$$2" "$$1"; \
20411635Sache		shift; shift; \
2057129Srgrimes	done
20611635Sache	cd ${DESTDIR}/usr/share/nls; \
20777999Sache	set - `grep "^[a-zA-Z]" ${.CURDIR}/nls.alias`; \
20811635Sache	while [ $$# -gt 0 ] ; \
20911635Sache	do \
21011635Sache		rm -rf "$$1"; \
21111635Sache		ln -s "$$2" "$$1"; \
21211635Sache		shift; shift; \
21377999Sache	done
214147Srgrimes
21548185Ssheldonhetc-examples:
216100872Sru	cd ${.CURDIR}; ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 444 \
21799451Sru	    ${BIN1} ${BIN2} nsmb.conf opieaccess \
21899451Sru	    ${DESTDIR}/usr/share/examples/etc
219100872Sru	cd ${.CURDIR}/defaults; ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 444 \
22099451Sru	    ${DEFAULTS} ${DESTDIR}/usr/share/examples/etc/defaults
22148185Ssheldonh
22237Srgrimes.include <bsd.prog.mk>
223