Makefile revision 57459
11195Srgrimes#	from: @(#)Makefile	5.11 (Berkeley) 5/21/91
250472Speter# $FreeBSD: head/etc/Makefile 57459 2000-02-24 23:12:04Z markm $
337Srgrimes
438103SpeterSUBDIR=	sendmail
538103Speter
655230SpeterBIN1=   aliases amd.map apmd.conf auth.conf \
755230Speter	crontab csh.cshrc csh.login csh.logout \
855230Speter	dhclient.conf dm.conf fbtab ftpusers gettytab group \
955230Speter	hosts hosts.allow host.conf hosts.equiv hosts.lpd \
1055230Speter	inetd.conf login.access login.conf \
1155230Speter	motd modems networks newsyslog.conf \
1255230Speter	pam.conf pccard.conf.sample phones printcap profile protocols \
1355230Speter	rc rc.atm rc.devfs rc.diskless1 rc.diskless2 rc.firewall rc.isdn \
1457407Sshin	rc.network rc.network6 rc.pccard rc.serial rc.shutdown rc.sysctl \
1555230Speter	remote rpc security services shells syslog.conf usbd.conf \
1655230Speter	etc.${MACHINE_ARCH}/disktab \
1755230Speter	etc.${MACHINE_ARCH}/rc.${MACHINE_ARCH} \
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
2237Srgrimes
2357459Smarkm.if !defined(NO_OPENSSH)
2457459SmarkmBIN1+=	${.CURDIR}/../crypto/openssh/ssh_config \
2557459Smarkm	${.CURDIR}/../crypto/openssh/sshd_config
2657459Smarkm.endif
2757459Smarkm
281773Sjkh# -rwxr-xr-x root.wheel, for the new cron root.wheel
2948734SiwasakiBIN2=	netstart pccard_ether rc.suspend rc.resume
30147Srgrimes
3127487SasamiMTREE=	BSD.include.dist BSD.local.dist BSD.root.dist BSD.usr.dist \
3227487Sasami	BSD.var.dist BSD.x11.dist
3335832SacheNAMEDB= PROTO.localhost.rev named.conf named.root make-localhost
3443901SbrianPPPCNF= ppp.deny ppp.shells.sample
3549110SbrianPPPCF2= ppp.conf
3655631SnyanNOSPAM=	Makefile README mailer.conf
3737Srgrimes
3817639Swosch
39263Srgrimes# Special top level files for FreeBSD
402779SrgrimesCOPYRIGHT=	COPYRIGHT
418857SrgrimesFREEBSD=
42993SrgrimesFREEBSD+=	${COPYRIGHT}
43263Srgrimes
4438103Speteretc:
4537Srgrimes
464487Sphkdistribute:
476717Sphk	cd ${.CURDIR} ; ${MAKE} distribution DESTDIR=${DISTDIR}/bin
4839590Sjkh.if defined(OBJFORMAT)
4939636Sdima	echo OBJFORMAT=${OBJFORMAT} > ${DISTDIR}/bin/etc/objformat
5039590Sjkh.endif
5139590Sjkh	@echo 
525948Sjkh
534487Sphkdistribution:
541759Sjkh	(cd ${.CURDIR}; \
559970Sbde	${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 ${BIN1} ${DESTDIR}/etc; \
5636902Sguido	${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 755 ${BIN2} ${DESTDIR}/etc; \
5743832Sjkh	${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 defaults/rc.conf ${DESTDIR}/etc/defaults/; \
5852609Sdillon	${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 defaults/make.conf ${DESTDIR}/etc/defaults/; \
599970Sbde	${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 600 /dev/null \
6051033Sn_hibma	    ${DESTDIR}/var/log/cron; \
619970Sbde	${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 600 \
621759Sjkh	    master.passwd ${DESTDIR}/etc; \
6328266Spst	( cd ${.CURDIR}/periodic; ${MAKE} install );\
6417639Swosch	( cd ${.CURDIR}/../gnu/usr.bin/send-pr; ${MAKE} etc-gnats-freefall );\
6517639Swosch	( cd ${.CURDIR}/../gnu/libexec/uucp/sample; ${MAKE} install ); \
6617639Swosch	( cd ${.CURDIR}/../share/termcap; ${MAKE} etc-termcap ); \
6717645Swosch	( cd ${.CURDIR}/../usr.sbin/rmt; ${MAKE} etc-rmt ); \
6838160Sjb	( cd ${.CURDIR}/sendmail; ${MAKE} etc-sendmail.cf ); \
6942479Shm	( cd ${.CURDIR}/isdn; ${MAKE} install );\
701759Sjkh	pwd_mkdb -p -d ${DESTDIR}/etc ${DESTDIR}/etc/master.passwd; \
719970Sbde	${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 555 \
7253327Speter	     MAKEDEV.local MAKEDEV ${DESTDIR}/dev )
7357071Srwatson.if !defined(NO_MAKEDEV)
741759Sjkh	(cd ${DESTDIR}/dev; sh MAKEDEV all) ;
7557071Srwatson.endif
761731Sjkh	(cd ${.CURDIR}/root; \
779970Sbde		${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 dot.cshrc \
7837Srgrimes		    ${DESTDIR}/root/.cshrc; \
799970Sbde		${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 dot.klogin \
8037Srgrimes		    ${DESTDIR}/root/.klogin; \
819970Sbde		${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 dot.login \
8237Srgrimes		    ${DESTDIR}/root/.login; \
839970Sbde		${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 dot.profile \
8437Srgrimes		    ${DESTDIR}/root/.profile; \
8537Srgrimes		rm -f ${DESTDIR}/.cshrc ${DESTDIR}/.profile; \
8637Srgrimes		ln ${DESTDIR}/root/.cshrc ${DESTDIR}/.cshrc; \
8737Srgrimes		ln ${DESTDIR}/root/.profile ${DESTDIR}/.profile)
889970Sbde	cd ${.CURDIR}/mtree; ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 \
891731Sjkh	    ${MTREE} ${DESTDIR}/etc/mtree
909970Sbde	cd ${.CURDIR}/namedb; ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 \
911731Sjkh	    ${NAMEDB} ${DESTDIR}/etc/namedb
929970Sbde	cd ${.CURDIR}/ppp; ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 \
936177Samurai	    ${PPPCNF} ${DESTDIR}/etc/ppp
9449110Sbrian	cd ${.CURDIR}/ppp; ${INSTALL} -c -o root -g ${BINGRP} -m 600 \
9549110Sbrian	    ${PPPCF2} ${DESTDIR}/etc/ppp
9630589Sjmb	cd ${.CURDIR}/mail; ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 \
9730589Sjmb	    ${NOSPAM} ${DESTDIR}/etc/mail
989970Sbde	${INSTALL} -c -o ${BINOWN} -g operator -m 664 /dev/null \
9937Srgrimes	    ${DESTDIR}/etc/dumpdates
1009970Sbde	${INSTALL} -c -o nobody -g ${BINGRP} -m 664 /dev/null \
101147Srgrimes	    ${DESTDIR}/var/db/locate.database
1029970Sbde	${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 664 /dev/null \
103147Srgrimes	    ${DESTDIR}/var/log/lpd-errs
1049970Sbde	${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 664 /dev/null \
10537Srgrimes	    ${DESTDIR}/var/log/maillog
1069970Sbde	${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 664 /dev/null \
107288Srgrimes	    ${DESTDIR}/var/log/lastlog
1089970Sbde	${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 664 /dev/null \
109147Srgrimes	    ${DESTDIR}/var/log/messages
11013378Sache	${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 600 /dev/null \
11150126Sgreen	    ${DESTDIR}/var/log/security
11250126Sgreen	${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 600 /dev/null \
11313378Sache	    ${DESTDIR}/var/log/slip.log
11417104Spst	${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 600 /dev/null \
11517104Spst	    ${DESTDIR}/var/log/ppp.log
1169970Sbde	${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 664 /dev/null \
117147Srgrimes	    ${DESTDIR}/var/log/wtmp
1189970Sbde	${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 664 /dev/null \
11937Srgrimes	    ${DESTDIR}/var/run/utmp
1209970Sbde	${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 664 ${.CURDIR}/minfree \
1211759Sjkh	    ${DESTDIR}/var/crash
1221759Sjkh	(cd ${.CURDIR}/..; \
1239970Sbde	    ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 ${FREEBSD} \
1249970Sbde		${DESTDIR}/)
1251759Sjkh	(cd ${.CURDIR}/../share/man; ${MAKE} makedb; )
12637Srgrimes
127147Srgrimesdistrib-dirs:
1283654Sphk	mtree -deU -f ${.CURDIR}/mtree/BSD.root.dist -p ${DESTDIR}/
1293654Sphk	mtree -deU -f ${.CURDIR}/mtree/BSD.var.dist -p ${DESTDIR}/var
1303654Sphk	mtree -deU -f ${.CURDIR}/mtree/BSD.usr.dist -p ${DESTDIR}/usr
1317129Srgrimes	mtree -deU -f ${.CURDIR}/mtree/BSD.include.dist \
1327129Srgrimes		-p ${DESTDIR}/usr/include
13346523Smarkm	mtree -deU -f ${.CURDIR}/mtree/BSD.include.dist \
13446523Smarkm		-p ${DESTDIR}/usr/libdata/perl/5.00503/mach
135410Srgrimes	cd ${DESTDIR}/; rm -f ${DESTDIR}/sys; ln -s usr/src/sys sys
1367129Srgrimes	cd ${DESTDIR}/usr/share/locale; \
13711635Sache	set - `cat ${.CURDIR}/locale.alias`; \
13811635Sache	while [ $$# -gt 0 ] ; \
13911635Sache	do \
14011635Sache		rm -rf "$$1"; \
14111635Sache		ln -s "$$2" "$$1"; \
14211635Sache		shift; shift; \
1437129Srgrimes	done
14411635Sache	cd ${DESTDIR}/usr/share/nls; \
14511635Sache	set - `cat ${.CURDIR}/locale.alias`; \
14611635Sache	while [ $$# -gt 0 ] ; \
14711635Sache	do \
14811635Sache		rm -rf "$$1"; \
14911635Sache		ln -s "$$2" "$$1"; \
15011635Sache		shift; shift; \
15111635Sache	done; \
15211635Sache	rm -rf POSIX; \
15311635Sache	ln -s C POSIX
154147Srgrimes
15548185Ssheldonhetc-examples:
15648185Ssheldonh	(cd ${.CURDIR}; \
15748185Ssheldonh	${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 ${BIN1} ${BIN2} \
15848185Ssheldonh	    ${DESTDIR}/usr/share/examples/etc; \
15948185Ssheldonh	${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 defaults/rc.conf \
16052609Sdillon	    ${DESTDIR}/usr/share/examples/etc/defaults; \
16152609Sdillon	${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 defaults/make.conf \
16248185Ssheldonh	    ${DESTDIR}/usr/share/examples/etc/defaults)
16348185Ssheldonh
16437Srgrimes.include <bsd.prog.mk>
165