Makefile revision 124214
11195Srgrimes#	from: @(#)Makefile	5.11 (Berkeley) 5/21/91
250472Speter# $FreeBSD: head/etc/Makefile 124214 2004-01-07 11:55:44Z des $
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 \
14120521Smarkm	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
594487Sphkdistribute:
6095327Sobrien	cd ${.CURDIR} ; ${MAKE} distribution DESTDIR=${DISTDIR}/${DISTRIBUTION}
61100872Sru	${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 444 \
6295509Sru	    ${.CURDIR}/../sys/${MACHINE}/conf/GENERIC.hints \
6395509Sru	    ${DISTDIR}/${DISTRIBUTION}/boot/device.hints
645948Sjkh
654487Sphkdistribution:
6699449Sru	cd ${.CURDIR}; \
67100872Sru	    ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 \
6899451Sru		${BIN1} ${DESTDIR}/etc; \
69111810Sru	    cap_mkdb ${DESTDIR}/etc/login.conf; \
70100872Sru	    ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 755 \
7199451Sru		${BIN2} ${DESTDIR}/etc; \
72100872Sru	    ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 600 \
7399451Sru		master.passwd nsmb.conf opieaccess ${DESTDIR}/etc; \
7499451Sru	    pwd_mkdb -p -d ${DESTDIR}/etc ${DESTDIR}/etc/master.passwd
75121580Semax	cd ${.CURDIR}/bluetooth; ${MAKE} install
76119385Smtm	cd ${.CURDIR}/defaults; ${MAKE} install
7799449Sru	cd ${.CURDIR}/periodic; ${MAKE} install
7899449Sru	cd ${.CURDIR}/rc.d; ${MAKE} install
7999449Sru	cd ${.CURDIR}/../gnu/usr.bin/send-pr; ${MAKE} etc-gnats-freefall
8099449Sru	cd ${.CURDIR}/../share/termcap; ${MAKE} etc-termcap
8199449Sru	cd ${.CURDIR}/../usr.sbin/rmt; ${MAKE} etc-rmt
8299449Sru	cd ${.CURDIR}/pam.d; ${MAKE} install
8377041Sru.if !defined(NO_I4B)
8499449Sru	cd ${.CURDIR}/isdn; ${MAKE} install
8577041Sru.endif
8673251Sgshapiro.if !defined(NO_SENDMAIL)
8799449Sru	cd ${.CURDIR}/sendmail; ${MAKE} distribution
8873251Sgshapiro.endif
89120202Smarkm.if !defined(NO_OPENSSL)
9098548Sru.if !defined(NO_OPENSSH)
91100872Sru	cd ${.CURDIR}; ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 \
9299451Sru	    ${SSH} ${DESTDIR}/etc/ssh
9357488Speter.endif
94100872Sru	cd ${.CURDIR}; ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 \
9599451Sru	    ${SSL} ${DESTDIR}/etc/ssl
9660677Skris.endif
97120709Sphk.if !defined(NO_KERBEROS)
9899449Sru	cd ${.CURDIR}/root; \
99100872Sru	    ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 \
100120709Sphk		dot.k5login ${DESTDIR}/root/.k5login;
101120709Sphk.endif
102120709Sphk	cd ${.CURDIR}/root; \
103120709Sphk	    ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 \
10499451Sru		dot.cshrc ${DESTDIR}/root/.cshrc; \
105100872Sru	    ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 \
10699451Sru		dot.login ${DESTDIR}/root/.login; \
107100872Sru	    ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 \
10899451Sru		dot.profile ${DESTDIR}/root/.profile; \
10999451Sru	    rm -f ${DESTDIR}/.cshrc ${DESTDIR}/.profile; \
11099451Sru	    ln ${DESTDIR}/root/.cshrc ${DESTDIR}/.cshrc; \
11199451Sru	    ln ${DESTDIR}/root/.profile ${DESTDIR}/.profile
112100872Sru	cd ${.CURDIR}/mtree; ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 444 \
1131731Sjkh	    ${MTREE} ${DESTDIR}/etc/mtree
114100872Sru	cd ${.CURDIR}/namedb; ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 \
1151731Sjkh	    ${NAMEDB} ${DESTDIR}/etc/namedb
116119058Sobrien	cd ${.CURDIR}/ppp; ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 600 \
1176177Samurai	    ${PPPCNF} ${DESTDIR}/etc/ppp
118100872Sru	cd ${.CURDIR}/mail; ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 \
11964598Sgshapiro	    ${ETCMAIL} ${DESTDIR}/etc/mail
12064629Sgshapiro	@if [ -d ${DESTDIR}/etc/mail -a -f ${DESTDIR}/etc/mail/aliases -a \
12164629Sgshapiro	      ! -f ${DESTDIR}/etc/aliases ]; then \
12264629Sgshapiro		set -x; \
12364629Sgshapiro		ln -s mail/aliases ${DESTDIR}/etc/aliases; \
12464629Sgshapiro	fi
125100872Sru	${INSTALL} -o ${BINOWN} -g operator -m 664 /dev/null \
12637Srgrimes	    ${DESTDIR}/etc/dumpdates
127100872Sru	${INSTALL} -o nobody -g ${BINGRP} -m 644 /dev/null \
128147Srgrimes	    ${DESTDIR}/var/db/locate.database
129100872Sru	${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 600 /dev/null \
13092100Srwatson	    ${DESTDIR}/var/log/auth.log
131100872Sru	${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 600 /dev/null \
13299449Sru	    ${DESTDIR}/var/log/cron
133103720Smarkm	${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 600 /dev/null \
134113259Sdes	    ${DESTDIR}/var/log/debug.log
135113259Sdes	${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 600 /dev/null \
136103738Smarkm	    ${DESTDIR}/var/log/xferlog
137100872Sru	${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 /dev/null \
138147Srgrimes	    ${DESTDIR}/var/log/lpd-errs
139100872Sru	${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 640 /dev/null \
14037Srgrimes	    ${DESTDIR}/var/log/maillog
141100872Sru	${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 /dev/null \
142288Srgrimes	    ${DESTDIR}/var/log/lastlog
143100872Sru	${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 /dev/null \
144147Srgrimes	    ${DESTDIR}/var/log/messages
145100872Sru	${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 600 /dev/null \
14650126Sgreen	    ${DESTDIR}/var/log/security
147100872Sru	${INSTALL} -o ${BINOWN} -g network -m 640 /dev/null \
14813378Sache	    ${DESTDIR}/var/log/slip.log
149100872Sru	${INSTALL} -o ${BINOWN} -g network -m 640 /dev/null \
15017104Spst	    ${DESTDIR}/var/log/ppp.log
151100872Sru	${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 /dev/null \
152147Srgrimes	    ${DESTDIR}/var/log/wtmp
153100872Sru	${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 /dev/null \
15437Srgrimes	    ${DESTDIR}/var/run/utmp
155100872Sru	${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 ${.CURDIR}/minfree \
1561759Sjkh	    ${DESTDIR}/var/crash
157100872Sru	cd ${.CURDIR}/..; ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 444 \
15899451Sru		${FREEBSD} ${DESTDIR}/
15961888Sasmodai.if !defined(NOMAN)
16099449Sru	cd ${.CURDIR}/../share/man; ${MAKE} makedb
16161888Sasmodai.endif
16237Srgrimes
163147Srgrimesdistrib-dirs:
16465884Sache	mtree -deU ${MTREE_FOLLOWS_SYMLINKS} -f ${.CURDIR}/mtree/BSD.root.dist -p ${DESTDIR}/
16565884Sache	mtree -deU ${MTREE_FOLLOWS_SYMLINKS} -f ${.CURDIR}/mtree/BSD.var.dist -p ${DESTDIR}/var
16665884Sache	mtree -deU ${MTREE_FOLLOWS_SYMLINKS} -f ${.CURDIR}/mtree/BSD.usr.dist -p ${DESTDIR}/usr
16765884Sache	mtree -deU ${MTREE_FOLLOWS_SYMLINKS} -f ${.CURDIR}/mtree/BSD.include.dist \
1687129Srgrimes		-p ${DESTDIR}/usr/include
16995144Sgshapiro.if !defined(NO_SENDMAIL)
17095144Sgshapiro	mtree -deU ${MTREE_FOLLOWS_SYMLINKS} -f ${.CURDIR}/mtree/BSD.sendmail.dist -p ${DESTDIR}/
17195144Sgshapiro.endif
172410Srgrimes	cd ${DESTDIR}/; rm -f ${DESTDIR}/sys; ln -s usr/src/sys sys
17377993Sache	cd ${DESTDIR}/usr/share/man/en.ISO8859-1; ln -sf ../man* .
17477993Sache	cd ${DESTDIR}/usr/share/man; \
17577993Sache	set - `grep "^[a-zA-Z]" ${.CURDIR}/man.alias`; \
17677993Sache	while [ $$# -gt 0 ] ; \
17777993Sache	do \
17877993Sache		rm -rf "$$1"; \
17977993Sache		ln -s "$$2" "$$1"; \
18077993Sache		shift; shift; \
18177993Sache	done
182110663Sache	cd ${DESTDIR}/usr/share/openssl/man; \
183110663Sache	set - `grep "^[a-zA-Z]" ${.CURDIR}/man.alias`; \
184110663Sache	while [ $$# -gt 0 ] ; \
185110663Sache	do \
186110663Sache		rm -rf "$$1"; \
187110663Sache		ln -s "$$2" "$$1"; \
188110663Sache		shift; shift; \
189110663Sache	done
190110655Snectar	cd ${DESTDIR}/usr/share/openssl/man/en.ISO8859-1; ln -sf ../man* .
19111635Sache	cd ${DESTDIR}/usr/share/nls; \
19277999Sache	set - `grep "^[a-zA-Z]" ${.CURDIR}/nls.alias`; \
19311635Sache	while [ $$# -gt 0 ] ; \
19411635Sache	do \
19511635Sache		rm -rf "$$1"; \
19611635Sache		ln -s "$$2" "$$1"; \
19711635Sache		shift; shift; \
19877999Sache	done
199147Srgrimes
20048185Ssheldonhetc-examples:
201100872Sru	cd ${.CURDIR}; ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 444 \
20299451Sru	    ${BIN1} ${BIN2} nsmb.conf opieaccess \
20399451Sru	    ${DESTDIR}/usr/share/examples/etc
204119385Smtm	cd ${.CURDIR}/defaults; ${MAKE} install \
205119385Smtm	    DESTDIR=${DESTDIR}/usr/share/examples
20648185Ssheldonh
20737Srgrimes.include <bsd.prog.mk>
208