Makefile revision 38160
11195Srgrimes#	from: @(#)Makefile	5.11 (Berkeley) 5/21/91
238160Sjb#	$Id: Makefile,v 1.168 1998/08/04 15:54:27 peter Exp $
337Srgrimes
438103SpeterSUBDIR=	sendmail
538103Speter
637Srgrimes# -rw-r--r--
7147SrgrimesBINOWN= root
8147SrgrimesBINGRP= wheel
928205SjkhBIN1=   aliases amd.map crontab csh.cshrc csh.login csh.logout dm.conf \
103017Srgrimes	ftpusers gettytab group hosts host.conf hosts.equiv hosts.lpd \
1125184Sjkh	inetd.conf login.conf login.access motd modems networks \
1214662Sphk	newsyslog.conf phones pccard.conf.sample printcap profile protocols \
1325184Sjkh	rc rc.conf rc.firewall rc.local rc.network rc.pccard rc.serial \
1427837Sdavidn	rc.shutdown etc.${MACHINE}/rc.${MACHINE} \
1525184Sjkh	remote security services shells \
1636106Sjb	syslog.conf etc.${MACHINE}/ttys etc.${MACHINE}/disktab rpc make.conf \
171734Sjkh	${.CURDIR}/../gnu/usr.bin/man/manpath/manpath.config \
1817639Swosch	${.CURDIR}/../usr.bin/mail/misc/mail.rc \
1917639Swosch	${.CURDIR}/../usr.bin/locate/locate/locate.rc
2037Srgrimes
211773Sjkh# -rwxr-xr-x root.wheel, for the new cron root.wheel
2236902SguidoBIN2=	netstart pccard_ether
23147Srgrimes
2427487SasamiMTREE=	BSD.include.dist BSD.local.dist BSD.root.dist BSD.usr.dist \
2527487Sasami	BSD.var.dist BSD.x11.dist
2635832SacheNAMEDB= PROTO.localhost.rev named.conf named.root make-localhost
2731071SbrianPPPCNF= ppp.conf.sample ppp.linkup.sample ppp.linkdown.sample \
2831071Sbrian	ppp.secret.sample ppp.deny ppp.shells.sample
2930589SjmbNOSPAM=	Makefile README sendmail.cf.additions
3037Srgrimes
3117639Swosch
32263Srgrimes# Special top level files for FreeBSD
332779SrgrimesCOPYRIGHT=	COPYRIGHT
348857SrgrimesFREEBSD=
35993SrgrimesFREEBSD+=	${COPYRIGHT}
36263Srgrimes
3711635Sache# Compatibility stuff, remove those links
386744SacheLATIN1LINKS = \
396744Sache	da_DK de_AT de_CH de_DE en_AU en_CA en_GB en_US es_ES fi_FI \
406744Sache	fr_BE fr_CA fr_CH fr_FR is_IS it_CH it_IT nl_BE nl_NL no_NO \
416744Sache	pt_PT sv_SE
426744Sache
4338103Speteretc:
4437Srgrimes
454487Sphkdistribute:
466717Sphk	cd ${.CURDIR} ; ${MAKE} distribution DESTDIR=${DISTDIR}/bin
475948Sjkh
484487Sphkdistribution:
491759Sjkh	(cd ${.CURDIR}; \
509970Sbde	${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 ${BIN1} ${DESTDIR}/etc; \
5136902Sguido	${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 755 ${BIN2} ${DESTDIR}/etc; \
529970Sbde	${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 600 /dev/null \
531759Sjkh	    ${DESTDIR}/var/cron/log; \
549970Sbde	${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 600 \
551759Sjkh	    master.passwd ${DESTDIR}/etc; \
5628266Spst	( cd ${.CURDIR}/periodic; ${MAKE} install );\
5717639Swosch	( cd ${.CURDIR}/../gnu/usr.bin/send-pr; ${MAKE} etc-gnats-freefall );\
5817639Swosch	( cd ${.CURDIR}/../gnu/libexec/uucp/sample; ${MAKE} install ); \
5917639Swosch	( cd ${.CURDIR}/../share/termcap; ${MAKE} etc-termcap ); \
6017645Swosch	( cd ${.CURDIR}/../usr.sbin/rmt; ${MAKE} etc-rmt ); \
6138160Sjb	( cd ${.CURDIR}/sendmail; ${MAKE} etc-sendmail.cf ); \
6236415Sjkoshy	( cd ${.CURDIR}/../sys/i386/boot/biosboot; ${MAKE} install-boothelp ); \
631759Sjkh	pwd_mkdb -p -d ${DESTDIR}/etc ${DESTDIR}/etc/master.passwd; \
649970Sbde	${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 555 \
651759Sjkh	     MAKEDEV.local etc.${MACHINE}/MAKEDEV ${DESTDIR}/dev )
661759Sjkh	(cd ${DESTDIR}/dev; sh MAKEDEV all) ;
671731Sjkh	(cd ${.CURDIR}/root; \
689970Sbde		${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 dot.cshrc \
6937Srgrimes		    ${DESTDIR}/root/.cshrc; \
709970Sbde		${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 dot.klogin \
7137Srgrimes		    ${DESTDIR}/root/.klogin; \
729970Sbde		${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 dot.login \
7337Srgrimes		    ${DESTDIR}/root/.login; \
749970Sbde		${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 dot.profile \
7537Srgrimes		    ${DESTDIR}/root/.profile; \
7637Srgrimes		rm -f ${DESTDIR}/.cshrc ${DESTDIR}/.profile; \
7737Srgrimes		ln ${DESTDIR}/root/.cshrc ${DESTDIR}/.cshrc; \
7837Srgrimes		ln ${DESTDIR}/root/.profile ${DESTDIR}/.profile)
799970Sbde	cd ${.CURDIR}/mtree; ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 \
801731Sjkh	    ${MTREE} ${DESTDIR}/etc/mtree
819970Sbde	cd ${.CURDIR}/namedb; ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 \
821731Sjkh	    ${NAMEDB} ${DESTDIR}/etc/namedb
839970Sbde	cd ${.CURDIR}/ppp; ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 \
846177Samurai	    ${PPPCNF} ${DESTDIR}/etc/ppp
8530589Sjmb	cd ${.CURDIR}/mail; ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 \
8630589Sjmb	    ${NOSPAM} ${DESTDIR}/etc/mail
879970Sbde	${INSTALL} -c -o ${BINOWN} -g operator -m 664 /dev/null \
8837Srgrimes	    ${DESTDIR}/etc/dumpdates
899970Sbde	${INSTALL} -c -o nobody -g ${BINGRP} -m 664 /dev/null \
90147Srgrimes	    ${DESTDIR}/var/db/locate.database
919970Sbde	${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 664 /dev/null \
92147Srgrimes	    ${DESTDIR}/var/log/lpd-errs
939970Sbde	${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 664 /dev/null \
9437Srgrimes	    ${DESTDIR}/var/log/maillog
959970Sbde	${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 664 /dev/null \
96288Srgrimes	    ${DESTDIR}/var/log/lastlog
979970Sbde	${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 664 /dev/null \
98147Srgrimes	    ${DESTDIR}/var/log/messages
9913378Sache	${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 600 /dev/null \
10013378Sache	    ${DESTDIR}/var/log/slip.log
10117104Spst	${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 600 /dev/null \
10217104Spst	    ${DESTDIR}/var/log/ppp.log
1039970Sbde	${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 664 /dev/null \
104147Srgrimes	    ${DESTDIR}/var/log/wtmp
1059970Sbde	${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 664 /dev/null \
10637Srgrimes	    ${DESTDIR}/var/run/utmp
1079970Sbde	${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 664 ${.CURDIR}/minfree \
1081759Sjkh	    ${DESTDIR}/var/crash
1091759Sjkh	(cd ${.CURDIR}/..; \
1109970Sbde	    ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 ${FREEBSD} \
1119970Sbde		${DESTDIR}/)
1121759Sjkh	(cd ${.CURDIR}/../share/man; ${MAKE} makedb; )
11337Srgrimes
114147Srgrimesdistrib-dirs:
1153654Sphk	mtree -deU -f ${.CURDIR}/mtree/BSD.root.dist -p ${DESTDIR}/
1163654Sphk	mtree -deU -f ${.CURDIR}/mtree/BSD.var.dist -p ${DESTDIR}/var
11711635Sache# Compatibility stuff, remove obsoleted links, if exists
11811849Sache	if [ -d	${DESTDIR}/usr/share/locale ] ;	\
11911635Sache	then \
12011635Sache		cd ${DESTDIR}/usr/share/locale;	\
12111635Sache		for l in ${LATIN1LINKS}	; do \
12211853Speter			if [ -h $$l.ISO_8859-1 ]; then \
12311853Speter				rm $$l.ISO_8859-1; \
12411853Speter			fi ; \
12511635Sache		done; \
12611635Sache	fi
1273654Sphk	mtree -deU -f ${.CURDIR}/mtree/BSD.usr.dist -p ${DESTDIR}/usr
1287129Srgrimes	mtree -deU -f ${.CURDIR}/mtree/BSD.include.dist \
1297129Srgrimes		-p ${DESTDIR}/usr/include
130410Srgrimes	cd ${DESTDIR}/; rm -f ${DESTDIR}/sys; ln -s usr/src/sys sys
1317129Srgrimes	cd ${DESTDIR}/usr/share/locale; \
13211635Sache	set - `cat ${.CURDIR}/locale.alias`; \
13311635Sache	while [ $$# -gt 0 ] ; \
13411635Sache	do \
13511635Sache		rm -rf "$$1"; \
13611635Sache		ln -s "$$2" "$$1"; \
13711635Sache		shift; shift; \
1387129Srgrimes	done
13911635Sache	cd ${DESTDIR}/usr/share/nls; \
14011635Sache	set - `cat ${.CURDIR}/locale.alias`; \
14111635Sache	while [ $$# -gt 0 ] ; \
14211635Sache	do \
14311635Sache		rm -rf "$$1"; \
14411635Sache		ln -s "$$2" "$$1"; \
14511635Sache		shift; shift; \
14611635Sache	done; \
14711635Sache	rm -rf POSIX; \
14811635Sache	ln -s C POSIX
149147Srgrimes
15037Srgrimes.include <bsd.prog.mk>
151