Makefile revision 110663
11195Srgrimes#	from: @(#)Makefile	5.11 (Berkeley) 5/21/91
250472Speter# $FreeBSD: head/etc/Makefile 110663 2003-02-11 01:08:51Z ache $
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 \
10108983Simp	devd.conf dhclient.conf fbtab ftpusers gettytab group \
1165532Snectar	hosts hosts.allow hosts.equiv hosts.lpd \
1255230Speter	inetd.conf login.access login.conf \
13107318Sru	mac.conf motd netconfig networks newsyslog.conf \
1489364Sdes	phones printcap profile protocols \
15108002Sgreen	rc rc.atm rc.devfs rc.diskless1 rc.diskless2 rc.firewall rc.firewall6 \
16108002Sgreen	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
40108002SgreenBIN2=	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
9899449Sru	cd ${.CURDIR}/root; \
99100872Sru	    ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 \
10099451Sru		dot.cshrc ${DESTDIR}/root/.cshrc; \
101100872Sru	    ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 \
10299451Sru		dot.klogin ${DESTDIR}/root/.klogin; \
103100872Sru	    ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 \
10499451Sru		dot.login ${DESTDIR}/root/.login; \
105100872Sru	    ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 \
10699451Sru		dot.profile ${DESTDIR}/root/.profile; \
10799451Sru	    rm -f ${DESTDIR}/.cshrc ${DESTDIR}/.profile; \
10899451Sru	    ln ${DESTDIR}/root/.cshrc ${DESTDIR}/.cshrc; \
10999451Sru	    ln ${DESTDIR}/root/.profile ${DESTDIR}/.profile
110100872Sru	cd ${.CURDIR}/mtree; ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 444 \
1111731Sjkh	    ${MTREE} ${DESTDIR}/etc/mtree
112100872Sru	cd ${.CURDIR}/namedb; ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 \
1131731Sjkh	    ${NAMEDB} ${DESTDIR}/etc/namedb
114100872Sru	cd ${.CURDIR}/ppp; ${INSTALL} -o root -g ${BINGRP} -m 600 \
1156177Samurai	    ${PPPCNF} ${DESTDIR}/etc/ppp
116100872Sru	cd ${.CURDIR}/mail; ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 \
11764598Sgshapiro	    ${ETCMAIL} ${DESTDIR}/etc/mail
11864629Sgshapiro	@if [ -d ${DESTDIR}/etc/mail -a -f ${DESTDIR}/etc/mail/aliases -a \
11964629Sgshapiro	      ! -f ${DESTDIR}/etc/aliases ]; then \
12064629Sgshapiro		set -x; \
12164629Sgshapiro		ln -s mail/aliases ${DESTDIR}/etc/aliases; \
12264629Sgshapiro	fi
123100872Sru	${INSTALL} -o ${BINOWN} -g operator -m 664 /dev/null \
12437Srgrimes	    ${DESTDIR}/etc/dumpdates
125100872Sru	${INSTALL} -o nobody -g ${BINGRP} -m 644 /dev/null \
126147Srgrimes	    ${DESTDIR}/var/db/locate.database
127100872Sru	${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 600 /dev/null \
12892100Srwatson	    ${DESTDIR}/var/log/auth.log
129100872Sru	${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 600 /dev/null \
13099449Sru	    ${DESTDIR}/var/log/cron
131103720Smarkm	${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 600 /dev/null \
132103738Smarkm	    ${DESTDIR}/var/log/xferlog
133100872Sru	${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 /dev/null \
134147Srgrimes	    ${DESTDIR}/var/log/lpd-errs
135100872Sru	${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 640 /dev/null \
13637Srgrimes	    ${DESTDIR}/var/log/maillog
137100872Sru	${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 /dev/null \
138288Srgrimes	    ${DESTDIR}/var/log/lastlog
139100872Sru	${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 /dev/null \
140147Srgrimes	    ${DESTDIR}/var/log/messages
141100872Sru	${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 600 /dev/null \
14250126Sgreen	    ${DESTDIR}/var/log/security
143100872Sru	${INSTALL} -o ${BINOWN} -g network -m 640 /dev/null \
14413378Sache	    ${DESTDIR}/var/log/slip.log
145100872Sru	${INSTALL} -o ${BINOWN} -g network -m 640 /dev/null \
14617104Spst	    ${DESTDIR}/var/log/ppp.log
147100872Sru	${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 /dev/null \
148147Srgrimes	    ${DESTDIR}/var/log/wtmp
149100872Sru	${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 /dev/null \
15037Srgrimes	    ${DESTDIR}/var/run/utmp
151100872Sru	${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 ${.CURDIR}/minfree \
1521759Sjkh	    ${DESTDIR}/var/crash
153100872Sru	cd ${.CURDIR}/..; ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 444 \
15499451Sru		${FREEBSD} ${DESTDIR}/
15561888Sasmodai.if !defined(NOMAN)
15699449Sru	cd ${.CURDIR}/../share/man; ${MAKE} makedb
15761888Sasmodai.endif
15837Srgrimes
159147Srgrimesdistrib-dirs:
16089074Sphantom	-set - `grep "^[a-zA-Z]" ${.CURDIR}/locale.deprecated`; \
16189074Sphantom	while [ $$# -gt 0 ] ; \
16289074Sphantom	do \
16389074Sphantom		for dir in /usr/share/locale \
16489074Sphantom			   /usr/share/nls \
16589074Sphantom			   /usr/local/share/nls; \
16689074Sphantom		do \
16789074Sphantom			test -d ${DESTDIR}/$${dir} && cd ${DESTDIR}/$${dir}; \
16889074Sphantom			test -L "$$2" && rm -rf "$$2"; \
16989074Sphantom			test \! -L "$$1" && test -d "$$1" && mv "$$1" "$$2"; \
17089074Sphantom		done; \
17189074Sphantom		shift; shift; \
17289074Sphantom	done
17365884Sache	mtree -deU ${MTREE_FOLLOWS_SYMLINKS} -f ${.CURDIR}/mtree/BSD.root.dist -p ${DESTDIR}/
17465884Sache	mtree -deU ${MTREE_FOLLOWS_SYMLINKS} -f ${.CURDIR}/mtree/BSD.var.dist -p ${DESTDIR}/var
17565884Sache	mtree -deU ${MTREE_FOLLOWS_SYMLINKS} -f ${.CURDIR}/mtree/BSD.usr.dist -p ${DESTDIR}/usr
17665884Sache	mtree -deU ${MTREE_FOLLOWS_SYMLINKS} -f ${.CURDIR}/mtree/BSD.include.dist \
1777129Srgrimes		-p ${DESTDIR}/usr/include
17895144Sgshapiro.if !defined(NO_SENDMAIL)
17995144Sgshapiro	mtree -deU ${MTREE_FOLLOWS_SYMLINKS} -f ${.CURDIR}/mtree/BSD.sendmail.dist -p ${DESTDIR}/
18095144Sgshapiro.endif
181410Srgrimes	cd ${DESTDIR}/; rm -f ${DESTDIR}/sys; ln -s usr/src/sys sys
18277993Sache	cd ${DESTDIR}/usr/share/man/en.ISO8859-1; ln -sf ../man* .
18377993Sache	cd ${DESTDIR}/usr/share/man; \
18477993Sache	set - `grep "^[a-zA-Z]" ${.CURDIR}/man.alias`; \
18577993Sache	while [ $$# -gt 0 ] ; \
18677993Sache	do \
18777993Sache		rm -rf "$$1"; \
18877993Sache		ln -s "$$2" "$$1"; \
18977993Sache		shift; shift; \
19077993Sache	done
191110663Sache	cd ${DESTDIR}/usr/share/openssl/man; \
192110663Sache	set - `grep "^[a-zA-Z]" ${.CURDIR}/man.alias`; \
193110663Sache	while [ $$# -gt 0 ] ; \
194110663Sache	do \
195110663Sache		rm -rf "$$1"; \
196110663Sache		ln -s "$$2" "$$1"; \
197110663Sache		shift; shift; \
198110663Sache	done
1997129Srgrimes	cd ${DESTDIR}/usr/share/locale; \
20077976Sache	set - `grep "^[a-zA-Z]" ${.CURDIR}/locale.alias`; \
20111635Sache	while [ $$# -gt 0 ] ; \
20211635Sache	do \
20311635Sache		rm -rf "$$1"; \
20411635Sache		ln -s "$$2" "$$1"; \
20511635Sache		shift; shift; \
2067129Srgrimes	done
207110655Snectar	cd ${DESTDIR}/usr/share/openssl/man/en.ISO8859-1; ln -sf ../man* .
20811635Sache	cd ${DESTDIR}/usr/share/nls; \
20977999Sache	set - `grep "^[a-zA-Z]" ${.CURDIR}/nls.alias`; \
21011635Sache	while [ $$# -gt 0 ] ; \
21111635Sache	do \
21211635Sache		rm -rf "$$1"; \
21311635Sache		ln -s "$$2" "$$1"; \
21411635Sache		shift; shift; \
21577999Sache	done
216147Srgrimes
21748185Ssheldonhetc-examples:
218100872Sru	cd ${.CURDIR}; ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 444 \
21999451Sru	    ${BIN1} ${BIN2} nsmb.conf opieaccess \
22099451Sru	    ${DESTDIR}/usr/share/examples/etc
221100872Sru	cd ${.CURDIR}/defaults; ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 444 \
22299451Sru	    ${DEFAULTS} ${DESTDIR}/usr/share/examples/etc/defaults
22348185Ssheldonh
22437Srgrimes.include <bsd.prog.mk>
225