Makefile revision 126977
11195Srgrimes#	from: @(#)Makefile	5.11 (Berkeley) 5/21/91
250472Speter# $FreeBSD: head/etc/Makefile 126977 2004-03-14 17:18:39Z ru $
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 \
14126756Smlaier	pf.conf pf.os phones 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
22121911Smarkm.if !defined(NO_LPR)
23121911SmarkmBIN1+=	printcap
24121911Smarkm.endif
2537Srgrimes
26121911Smarkm.if !defined(NOCRYPT) && !defined(NO_OPENSSL)
2798548Sru.if !defined(NO_OPENSSH)
2857488SpeterSSH=	${.CURDIR}/../crypto/openssh/ssh_config \
2974837Sgreen	${.CURDIR}/../crypto/openssh/sshd_config \
30124214Sdes	${.CURDIR}/../crypto/openssh/moduli
3157459Smarkm.endif
3260677SkrisSSL=	${.CURDIR}/../crypto/openssl/apps/openssl.cnf
3360677Skris.endif
3460677Skris
3582521Salex# -rwxr-xr-x root:wheel, for the new cron root:wheel
36108002SgreenBIN2=	netstart pccard_ether rc.suspend rc.resume
37147Srgrimes
3827487SasamiMTREE=	BSD.include.dist BSD.local.dist BSD.root.dist BSD.usr.dist \
3965168Sasami	BSD.var.dist BSD.x11.dist BSD.x11-4.dist
4095144Sgshapiro.if !defined(NO_SENDMAIL)
4195144SgshapiroMTREE+=	BSD.sendmail.dist
4295144Sgshapiro.endif
4399451Sru
4499451SruNAMEDB=	PROTO.localhost.rev PROTO.localhost-v6.rev named.conf named.root \
4590281Sume	make-localhost
4699451Sru
4799451SruPPPCNF=	ppp.conf
4899451Sru
49117292Sgshapiro.if defined(NO_SENDMAIL)
50117292SgshapiroETCMAIL=mailer.conf aliases
51117292Sgshapiro.else
5264598SgshapiroETCMAIL=Makefile README mailer.conf access.sample virtusertable.sample \
5364598Sgshapiro	mailertable.sample aliases
54117292Sgshapiro.endif
5537Srgrimes
56263Srgrimes# Special top level files for FreeBSD
5799449SruFREEBSD=COPYRIGHT
58263Srgrimes
59124831Sruafterinstall:
60124831Sru.if !defined(NOMAN)
61124831Sru	cd ${.CURDIR}/../share/man; ${MAKE} makedb
62124831Sru.endif
63124831Sru
644487Sphkdistribute:
65124831Sru	cd ${.CURDIR} ; ${MAKE} install DESTDIR=${DISTDIR}/${DISTRIBUTION}
6695327Sobrien	cd ${.CURDIR} ; ${MAKE} distribution DESTDIR=${DISTDIR}/${DISTRIBUTION}
675948Sjkh
684487Sphkdistribution:
6999449Sru	cd ${.CURDIR}; \
70100872Sru	    ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 \
7199451Sru		${BIN1} ${DESTDIR}/etc; \
72111810Sru	    cap_mkdb ${DESTDIR}/etc/login.conf; \
73100872Sru	    ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 755 \
7499451Sru		${BIN2} ${DESTDIR}/etc; \
75100872Sru	    ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 600 \
7699451Sru		master.passwd nsmb.conf opieaccess ${DESTDIR}/etc; \
7799451Sru	    pwd_mkdb -p -d ${DESTDIR}/etc ${DESTDIR}/etc/master.passwd
78121580Semax	cd ${.CURDIR}/bluetooth; ${MAKE} install
79119385Smtm	cd ${.CURDIR}/defaults; ${MAKE} install
8099449Sru	cd ${.CURDIR}/periodic; ${MAKE} install
8199449Sru	cd ${.CURDIR}/rc.d; ${MAKE} install
8299449Sru	cd ${.CURDIR}/../gnu/usr.bin/send-pr; ${MAKE} etc-gnats-freefall
8399449Sru	cd ${.CURDIR}/../share/termcap; ${MAKE} etc-termcap
8499449Sru	cd ${.CURDIR}/../usr.sbin/rmt; ${MAKE} etc-rmt
8599449Sru	cd ${.CURDIR}/pam.d; ${MAKE} install
8677041Sru.if !defined(NO_I4B)
8799449Sru	cd ${.CURDIR}/isdn; ${MAKE} install
8877041Sru.endif
8973251Sgshapiro.if !defined(NO_SENDMAIL)
9099449Sru	cd ${.CURDIR}/sendmail; ${MAKE} distribution
9173251Sgshapiro.endif
92120202Smarkm.if !defined(NO_OPENSSL)
9398548Sru.if !defined(NO_OPENSSH)
94100872Sru	cd ${.CURDIR}; ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 \
9599451Sru	    ${SSH} ${DESTDIR}/etc/ssh
9657488Speter.endif
97100872Sru	cd ${.CURDIR}; ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 \
9899451Sru	    ${SSL} ${DESTDIR}/etc/ssl
9960677Skris.endif
100120709Sphk.if !defined(NO_KERBEROS)
10199449Sru	cd ${.CURDIR}/root; \
102100872Sru	    ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 \
103120709Sphk		dot.k5login ${DESTDIR}/root/.k5login;
104120709Sphk.endif
105120709Sphk	cd ${.CURDIR}/root; \
106120709Sphk	    ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 \
10799451Sru		dot.cshrc ${DESTDIR}/root/.cshrc; \
108100872Sru	    ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 \
10999451Sru		dot.login ${DESTDIR}/root/.login; \
110100872Sru	    ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 \
11199451Sru		dot.profile ${DESTDIR}/root/.profile; \
11299451Sru	    rm -f ${DESTDIR}/.cshrc ${DESTDIR}/.profile; \
11399451Sru	    ln ${DESTDIR}/root/.cshrc ${DESTDIR}/.cshrc; \
11499451Sru	    ln ${DESTDIR}/root/.profile ${DESTDIR}/.profile
115100872Sru	cd ${.CURDIR}/mtree; ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 444 \
1161731Sjkh	    ${MTREE} ${DESTDIR}/etc/mtree
117100872Sru	cd ${.CURDIR}/namedb; ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 \
1181731Sjkh	    ${NAMEDB} ${DESTDIR}/etc/namedb
119119058Sobrien	cd ${.CURDIR}/ppp; ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 600 \
1206177Samurai	    ${PPPCNF} ${DESTDIR}/etc/ppp
121100872Sru	cd ${.CURDIR}/mail; ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 \
12264598Sgshapiro	    ${ETCMAIL} ${DESTDIR}/etc/mail
12364629Sgshapiro	@if [ -d ${DESTDIR}/etc/mail -a -f ${DESTDIR}/etc/mail/aliases -a \
12464629Sgshapiro	      ! -f ${DESTDIR}/etc/aliases ]; then \
12564629Sgshapiro		set -x; \
12664629Sgshapiro		ln -s mail/aliases ${DESTDIR}/etc/aliases; \
12764629Sgshapiro	fi
128100872Sru	${INSTALL} -o ${BINOWN} -g operator -m 664 /dev/null \
12937Srgrimes	    ${DESTDIR}/etc/dumpdates
130100872Sru	${INSTALL} -o nobody -g ${BINGRP} -m 644 /dev/null \
131147Srgrimes	    ${DESTDIR}/var/db/locate.database
132100872Sru	${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 600 /dev/null \
13392100Srwatson	    ${DESTDIR}/var/log/auth.log
134100872Sru	${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 600 /dev/null \
13599449Sru	    ${DESTDIR}/var/log/cron
136103720Smarkm	${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 600 /dev/null \
137113259Sdes	    ${DESTDIR}/var/log/debug.log
138113259Sdes	${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 600 /dev/null \
139103738Smarkm	    ${DESTDIR}/var/log/xferlog
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}/
162126977Sru	${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 444 \
163126977Sru	    ${.CURDIR}/../sys/${MACHINE}/conf/GENERIC.hints \
164126977Sru	    ${DESTDIR}/boot/device.hints
16537Srgrimes
166147Srgrimesdistrib-dirs:
16765884Sache	mtree -deU ${MTREE_FOLLOWS_SYMLINKS} -f ${.CURDIR}/mtree/BSD.root.dist -p ${DESTDIR}/
16865884Sache	mtree -deU ${MTREE_FOLLOWS_SYMLINKS} -f ${.CURDIR}/mtree/BSD.var.dist -p ${DESTDIR}/var
16965884Sache	mtree -deU ${MTREE_FOLLOWS_SYMLINKS} -f ${.CURDIR}/mtree/BSD.usr.dist -p ${DESTDIR}/usr
17065884Sache	mtree -deU ${MTREE_FOLLOWS_SYMLINKS} -f ${.CURDIR}/mtree/BSD.include.dist \
1717129Srgrimes		-p ${DESTDIR}/usr/include
17295144Sgshapiro.if !defined(NO_SENDMAIL)
17395144Sgshapiro	mtree -deU ${MTREE_FOLLOWS_SYMLINKS} -f ${.CURDIR}/mtree/BSD.sendmail.dist -p ${DESTDIR}/
17495144Sgshapiro.endif
175410Srgrimes	cd ${DESTDIR}/; rm -f ${DESTDIR}/sys; ln -s usr/src/sys sys
17677993Sache	cd ${DESTDIR}/usr/share/man/en.ISO8859-1; ln -sf ../man* .
17777993Sache	cd ${DESTDIR}/usr/share/man; \
17877993Sache	set - `grep "^[a-zA-Z]" ${.CURDIR}/man.alias`; \
17977993Sache	while [ $$# -gt 0 ] ; \
18077993Sache	do \
18177993Sache		rm -rf "$$1"; \
18277993Sache		ln -s "$$2" "$$1"; \
18377993Sache		shift; shift; \
18477993Sache	done
185110663Sache	cd ${DESTDIR}/usr/share/openssl/man; \
186110663Sache	set - `grep "^[a-zA-Z]" ${.CURDIR}/man.alias`; \
187110663Sache	while [ $$# -gt 0 ] ; \
188110663Sache	do \
189110663Sache		rm -rf "$$1"; \
190110663Sache		ln -s "$$2" "$$1"; \
191110663Sache		shift; shift; \
192110663Sache	done
193110655Snectar	cd ${DESTDIR}/usr/share/openssl/man/en.ISO8859-1; ln -sf ../man* .
19411635Sache	cd ${DESTDIR}/usr/share/nls; \
19577999Sache	set - `grep "^[a-zA-Z]" ${.CURDIR}/nls.alias`; \
19611635Sache	while [ $$# -gt 0 ] ; \
19711635Sache	do \
19811635Sache		rm -rf "$$1"; \
19911635Sache		ln -s "$$2" "$$1"; \
20011635Sache		shift; shift; \
20177999Sache	done
202147Srgrimes
20348185Ssheldonhetc-examples:
204100872Sru	cd ${.CURDIR}; ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 444 \
20599451Sru	    ${BIN1} ${BIN2} nsmb.conf opieaccess \
20699451Sru	    ${DESTDIR}/usr/share/examples/etc
207119385Smtm	cd ${.CURDIR}/defaults; ${MAKE} install \
208119385Smtm	    DESTDIR=${DESTDIR}/usr/share/examples
20948185Ssheldonh
21037Srgrimes.include <bsd.prog.mk>
211