Makefile revision 72692
11195Srgrimes#	from: @(#)Makefile	5.11 (Berkeley) 5/21/91
250472Speter# $FreeBSD: head/etc/Makefile 72692 2001-02-19 13:08:14Z ru $
337Srgrimes
438103SpeterSUBDIR=	sendmail
538103Speter
664618SgshapiroBIN1=   amd.map apmd.conf auth.conf \
755230Speter	crontab csh.cshrc csh.login csh.logout \
855230Speter	dhclient.conf dm.conf fbtab ftpusers gettytab group \
965532Snectar	hosts hosts.allow hosts.equiv hosts.lpd \
1055230Speter	inetd.conf login.access login.conf \
1155230Speter	motd modems networks newsyslog.conf \
1259257Siwasaki	pam.conf phones pim6dd.conf pim6sd.conf \
1357954Sshin	printcap profile protocols \
1467929Sume	rc rc.atm rc.devfs rc.diskless1 rc.diskless2 rc.firewall rc.firewall6 \
1567929Sume	rc.isdn rc.network rc.network6 rc.pccard rc.serial rc.shutdown \
1670856Sjhb	rc.syscons rc.sysctl remote rpc security services shells syslog.conf \
1770856Sjhb	usbd.conf \
1855230Speter	etc.${MACHINE_ARCH}/disktab \
1955230Speter	etc.${MACHINE_ARCH}/rc.${MACHINE_ARCH} \
2055230Speter	etc.${MACHINE_ARCH}/ttys \
211734Sjkh	${.CURDIR}/../gnu/usr.bin/man/manpath/manpath.config \
2217639Swosch	${.CURDIR}/../usr.bin/mail/misc/mail.rc \
2317639Swosch	${.CURDIR}/../usr.bin/locate/locate/locate.rc
2437Srgrimes
2557479Speter.if exists(${.CURDIR}/../crypto) && !defined(NO_OPENSSH)
2657488SpeterSSH=	${.CURDIR}/../crypto/openssh/ssh_config \
2757459Smarkm	${.CURDIR}/../crypto/openssh/sshd_config
2857459Smarkm.endif
2957459Smarkm
3060677Skris.if exists(${.CURDIR}/../crypto) && !defined(NO_OPENSSL)
3160677SkrisSSL=	${.CURDIR}/../crypto/openssl/apps/openssl.cnf
3260677Skris.endif
3360677Skris
341773Sjkh# -rwxr-xr-x root.wheel, for the new cron root.wheel
3548734SiwasakiBIN2=	netstart pccard_ether rc.suspend rc.resume
36147Srgrimes
3727487SasamiMTREE=	BSD.include.dist BSD.local.dist BSD.root.dist BSD.usr.dist \
3865168Sasami	BSD.var.dist BSD.x11.dist BSD.x11-4.dist
3935832SacheNAMEDB= PROTO.localhost.rev named.conf named.root make-localhost
4043901SbrianPPPCNF= ppp.deny ppp.shells.sample
4149110SbrianPPPCF2= ppp.conf
4264598SgshapiroETCMAIL=Makefile README mailer.conf access.sample virtusertable.sample \
4364598Sgshapiro	mailertable.sample aliases
4437Srgrimes
4517639Swosch
46263Srgrimes# Special top level files for FreeBSD
472779SrgrimesCOPYRIGHT=	COPYRIGHT
488857SrgrimesFREEBSD=
49993SrgrimesFREEBSD+=	${COPYRIGHT}
50263Srgrimes
5138103Speteretc:
5237Srgrimes
534487Sphkdistribute:
546717Sphk	cd ${.CURDIR} ; ${MAKE} distribution DESTDIR=${DISTDIR}/bin
5539590Sjkh.if defined(OBJFORMAT)
5639636Sdima	echo OBJFORMAT=${OBJFORMAT} > ${DISTDIR}/bin/etc/objformat
5739590Sjkh.endif
5839590Sjkh	@echo 
595948Sjkh
604487Sphkdistribution:
611759Sjkh	(cd ${.CURDIR}; \
629970Sbde	${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 ${BIN1} ${DESTDIR}/etc; \
6336902Sguido	${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 755 ${BIN2} ${DESTDIR}/etc; \
6443832Sjkh	${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 defaults/rc.conf ${DESTDIR}/etc/defaults/; \
6552609Sdillon	${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 defaults/make.conf ${DESTDIR}/etc/defaults/; \
6658979Siwasaki	${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 defaults/pccard.conf ${DESTDIR}/etc/defaults/; \
6761981Sbrian	${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 defaults/periodic.conf ${DESTDIR}/etc/defaults/; \
689970Sbde	${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 600 /dev/null \
6951033Sn_hibma	    ${DESTDIR}/var/log/cron; \
709970Sbde	${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 600 \
711759Sjkh	    master.passwd ${DESTDIR}/etc; \
7257488Speter	( cd ${.CURDIR}/periodic; ${MAKE} install ); \
7357488Speter	( cd ${.CURDIR}/../gnu/usr.bin/send-pr; ${MAKE} etc-gnats-freefall ); \
7417639Swosch	( cd ${.CURDIR}/../share/termcap; ${MAKE} etc-termcap ); \
7517645Swosch	( cd ${.CURDIR}/../usr.sbin/rmt; ${MAKE} etc-rmt ); \
7638160Sjb	( cd ${.CURDIR}/sendmail; ${MAKE} etc-sendmail.cf ); \
7757488Speter	( cd ${.CURDIR}/isdn; ${MAKE} install ); \
781759Sjkh	pwd_mkdb -p -d ${DESTDIR}/etc ${DESTDIR}/etc/master.passwd; \
799970Sbde	${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 555 \
8053327Speter	     MAKEDEV.local MAKEDEV ${DESTDIR}/dev )
8167849Sdougb.if !defined(NOUUCP)
8267849Sdougb	( cd ${.CURDIR}/../gnu/libexec/uucp/sample; ${MAKE} install )
8367849Sdougb.endif
8457488Speter.if exists(${.CURDIR}/../crypto) && !defined(NO_OPENSSH)
8557488Speter	(cd ${.CURDIR}; ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 ${SSH} \
8657488Speter	    ${DESTDIR}/etc/ssh )
8757488Speter.endif
8860677Skris.if exists(${.CURDIR}/../crypto) && !defined(NO_OPENSSL)
8960677Skris	(cd ${.CURDIR}; ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 ${SSL} \
9060677Skris	    ${DESTDIR}/etc/ssl )
9160677Skris.endif
9257071Srwatson.if !defined(NO_MAKEDEV)
9357488Speter	(cd ${DESTDIR}/dev; sh MAKEDEV all)
9457071Srwatson.endif
951731Sjkh	(cd ${.CURDIR}/root; \
969970Sbde		${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 dot.cshrc \
9737Srgrimes		    ${DESTDIR}/root/.cshrc; \
989970Sbde		${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 dot.klogin \
9937Srgrimes		    ${DESTDIR}/root/.klogin; \
1009970Sbde		${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 dot.login \
10137Srgrimes		    ${DESTDIR}/root/.login; \
1029970Sbde		${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 dot.profile \
10337Srgrimes		    ${DESTDIR}/root/.profile; \
10437Srgrimes		rm -f ${DESTDIR}/.cshrc ${DESTDIR}/.profile; \
10537Srgrimes		ln ${DESTDIR}/root/.cshrc ${DESTDIR}/.cshrc; \
10637Srgrimes		ln ${DESTDIR}/root/.profile ${DESTDIR}/.profile)
1079970Sbde	cd ${.CURDIR}/mtree; ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 \
1081731Sjkh	    ${MTREE} ${DESTDIR}/etc/mtree
1099970Sbde	cd ${.CURDIR}/namedb; ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 \
1101731Sjkh	    ${NAMEDB} ${DESTDIR}/etc/namedb
1119970Sbde	cd ${.CURDIR}/ppp; ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 \
1126177Samurai	    ${PPPCNF} ${DESTDIR}/etc/ppp
11349110Sbrian	cd ${.CURDIR}/ppp; ${INSTALL} -c -o root -g ${BINGRP} -m 600 \
11449110Sbrian	    ${PPPCF2} ${DESTDIR}/etc/ppp
11530589Sjmb	cd ${.CURDIR}/mail; ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 \
11664598Sgshapiro	    ${ETCMAIL} ${DESTDIR}/etc/mail
11764629Sgshapiro	@if [ -d ${DESTDIR}/etc/mail -a -f ${DESTDIR}/etc/mail/aliases -a \
11864629Sgshapiro	      ! -f ${DESTDIR}/etc/aliases ]; then \
11964629Sgshapiro		set -x; \
12064629Sgshapiro		ln -s mail/aliases ${DESTDIR}/etc/aliases; \
12164629Sgshapiro	fi
1229970Sbde	${INSTALL} -c -o ${BINOWN} -g operator -m 664 /dev/null \
12337Srgrimes	    ${DESTDIR}/etc/dumpdates
12463097Speter	${INSTALL} -c -o nobody -g ${BINGRP} -m 644 /dev/null \
125147Srgrimes	    ${DESTDIR}/var/db/locate.database
12663097Speter	${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 /dev/null \
127147Srgrimes	    ${DESTDIR}/var/log/lpd-errs
12863097Speter	${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 /dev/null \
12937Srgrimes	    ${DESTDIR}/var/log/maillog
13063097Speter	${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 /dev/null \
131288Srgrimes	    ${DESTDIR}/var/log/lastlog
13263097Speter	${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 /dev/null \
133147Srgrimes	    ${DESTDIR}/var/log/messages
13413378Sache	${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 600 /dev/null \
13550126Sgreen	    ${DESTDIR}/var/log/security
13650126Sgreen	${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 600 /dev/null \
13713378Sache	    ${DESTDIR}/var/log/slip.log
13817104Spst	${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 600 /dev/null \
13917104Spst	    ${DESTDIR}/var/log/ppp.log
14063097Speter	${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 /dev/null \
141147Srgrimes	    ${DESTDIR}/var/log/wtmp
14263097Speter	${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 /dev/null \
14337Srgrimes	    ${DESTDIR}/var/run/utmp
14464665Skris	${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 ${.CURDIR}/minfree \
1451759Sjkh	    ${DESTDIR}/var/crash
1461759Sjkh	(cd ${.CURDIR}/..; \
1479970Sbde	    ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 ${FREEBSD} \
1489970Sbde		${DESTDIR}/)
14961888Sasmodai.if !defined(NOMAN)
1501759Sjkh	(cd ${.CURDIR}/../share/man; ${MAKE} makedb; )
15161888Sasmodai.endif
15237Srgrimes
153147Srgrimesdistrib-dirs:
15465884Sache	mtree -deU ${MTREE_FOLLOWS_SYMLINKS} -f ${.CURDIR}/mtree/BSD.root.dist -p ${DESTDIR}/
15565884Sache	mtree -deU ${MTREE_FOLLOWS_SYMLINKS} -f ${.CURDIR}/mtree/BSD.var.dist -p ${DESTDIR}/var
15665884Sache	mtree -deU ${MTREE_FOLLOWS_SYMLINKS} -f ${.CURDIR}/mtree/BSD.usr.dist -p ${DESTDIR}/usr
15765884Sache	mtree -deU ${MTREE_FOLLOWS_SYMLINKS} -f ${.CURDIR}/mtree/BSD.include.dist \
1587129Srgrimes		-p ${DESTDIR}/usr/include
15965884Sache	mtree -deU ${MTREE_FOLLOWS_SYMLINKS} -f ${.CURDIR}/mtree/BSD.include.dist \
16062416Smarkm		-p ${DESTDIR}/usr/libdata/perl/5.6.0/mach
161410Srgrimes	cd ${DESTDIR}/; rm -f ${DESTDIR}/sys; ln -s usr/src/sys sys
16272692Sru	cd ${DESTDIR}/usr/share/man/en.ISO_8859-1; ln -sf ../man* .
1637129Srgrimes	cd ${DESTDIR}/usr/share/locale; \
16411635Sache	set - `cat ${.CURDIR}/locale.alias`; \
16511635Sache	while [ $$# -gt 0 ] ; \
16611635Sache	do \
16711635Sache		rm -rf "$$1"; \
16811635Sache		ln -s "$$2" "$$1"; \
16911635Sache		shift; shift; \
1707129Srgrimes	done
17111635Sache	cd ${DESTDIR}/usr/share/nls; \
17211635Sache	set - `cat ${.CURDIR}/locale.alias`; \
17311635Sache	while [ $$# -gt 0 ] ; \
17411635Sache	do \
17511635Sache		rm -rf "$$1"; \
17611635Sache		ln -s "$$2" "$$1"; \
17711635Sache		shift; shift; \
17811635Sache	done; \
17911635Sache	rm -rf POSIX; \
18011635Sache	ln -s C POSIX
181147Srgrimes
18248185Ssheldonhetc-examples:
18348185Ssheldonh	(cd ${.CURDIR}; \
18448185Ssheldonh	${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 ${BIN1} ${BIN2} \
18548185Ssheldonh	    ${DESTDIR}/usr/share/examples/etc; \
18648185Ssheldonh	${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 defaults/rc.conf \
18752609Sdillon	    ${DESTDIR}/usr/share/examples/etc/defaults; \
18852609Sdillon	${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 defaults/make.conf \
18958979Siwasaki	    ${DESTDIR}/usr/share/examples/etc/defaults; \
19058979Siwasaki	${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 defaults/pccard.conf \
19162006Snbm	    ${DESTDIR}/usr/share/examples/etc/defaults; \
19261981Sbrian	${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 defaults/periodic.conf \
19348185Ssheldonh	    ${DESTDIR}/usr/share/examples/etc/defaults)
19448185Ssheldonh
19537Srgrimes.include <bsd.prog.mk>
196