Makefile revision 39146
1#	from: @(#)Makefile	5.11 (Berkeley) 5/21/91
2#	$Id: Makefile,v 1.171 1998/09/13 23:05:46 brian Exp $
3
4SUBDIR=	sendmail
5
6# -rw-r--r--
7BINOWN= root
8BINGRP= wheel
9BIN1=   aliases amd.map crontab csh.cshrc csh.login csh.logout dm.conf \
10	ftpusers gettytab group hosts host.conf hosts.equiv hosts.lpd \
11	inetd.conf login.conf login.access motd modems networks \
12	newsyslog.conf phones pccard.conf.sample printcap profile protocols \
13	rc rc.conf rc.firewall rc.local rc.network rc.pccard rc.serial \
14	rc.shutdown etc.${MACHINE_ARCH}/rc.${MACHINE_ARCH} \
15	remote security services shells syslog.conf \
16	etc.${MACHINE_ARCH}/ttys etc.${MACHINE_ARCH}/disktab rpc make.conf \
17	${.CURDIR}/../gnu/usr.bin/man/manpath/manpath.config \
18	${.CURDIR}/../usr.bin/mail/misc/mail.rc \
19	${.CURDIR}/../usr.bin/locate/locate/locate.rc
20
21# -rwxr-xr-x root.wheel, for the new cron root.wheel
22BIN2=	netstart pccard_ether
23
24MTREE=	BSD.include.dist BSD.local.dist BSD.root.dist BSD.usr.dist \
25	BSD.var.dist BSD.x11.dist
26NAMEDB= PROTO.localhost.rev named.conf named.root make-localhost
27PPPCNF= ppp.conf.sample ppp.linkup.sample ppp.linkdown.sample \
28	ppp.secret.sample ppp.deny ppp.shells.sample
29NOSPAM=	Makefile README sendmail.cf.additions
30
31
32# Special top level files for FreeBSD
33COPYRIGHT=	COPYRIGHT
34FREEBSD=
35FREEBSD+=	${COPYRIGHT}
36
37# Compatibility stuff, remove those links
38LATIN1LINKS = \
39	da_DK de_AT de_CH de_DE en_AU en_CA en_GB en_US es_ES fi_FI \
40	fr_BE fr_CA fr_CH fr_FR is_IS it_CH it_IT nl_BE nl_NL no_NO \
41	pt_PT sv_SE
42
43etc:
44
45distribute:
46	cd ${.CURDIR} ; ${MAKE} distribution DESTDIR=${DISTDIR}/bin
47
48distribution:
49	(cd ${.CURDIR}; \
50	${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 ${BIN1} ${DESTDIR}/etc; \
51	${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 755 ${BIN2} ${DESTDIR}/etc; \
52	${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 600 /dev/null \
53	    ${DESTDIR}/var/cron/log; \
54	${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 600 \
55	    master.passwd ${DESTDIR}/etc; \
56	( cd ${.CURDIR}/periodic; ${MAKE} install );\
57	( cd ${.CURDIR}/../gnu/usr.bin/send-pr; ${MAKE} etc-gnats-freefall );\
58	( cd ${.CURDIR}/../gnu/libexec/uucp/sample; ${MAKE} install ); \
59	( cd ${.CURDIR}/../share/termcap; ${MAKE} etc-termcap ); \
60	( cd ${.CURDIR}/../usr.sbin/rmt; ${MAKE} etc-rmt ); \
61	( cd ${.CURDIR}/sendmail; ${MAKE} etc-sendmail.cf ); \
62	( cd ${.CURDIR}/../sys/i386/boot/biosboot; ${MAKE} install-boothelp ); \
63	pwd_mkdb -p -d ${DESTDIR}/etc ${DESTDIR}/etc/master.passwd; \
64	${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 555 \
65	     MAKEDEV.local etc.${MACHINE_ARCH}/MAKEDEV ${DESTDIR}/dev )
66	(cd ${DESTDIR}/dev; sh MAKEDEV all) ;
67	(cd ${.CURDIR}/root; \
68		${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 dot.cshrc \
69		    ${DESTDIR}/root/.cshrc; \
70		${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 dot.klogin \
71		    ${DESTDIR}/root/.klogin; \
72		${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 dot.login \
73		    ${DESTDIR}/root/.login; \
74		${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 dot.profile \
75		    ${DESTDIR}/root/.profile; \
76		rm -f ${DESTDIR}/.cshrc ${DESTDIR}/.profile; \
77		ln ${DESTDIR}/root/.cshrc ${DESTDIR}/.cshrc; \
78		ln ${DESTDIR}/root/.profile ${DESTDIR}/.profile)
79	cd ${.CURDIR}/mtree; ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 \
80	    ${MTREE} ${DESTDIR}/etc/mtree
81	cd ${.CURDIR}/namedb; ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 \
82	    ${NAMEDB} ${DESTDIR}/etc/namedb
83	cd ${.CURDIR}/ppp; ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 \
84	    ${PPPCNF} ${DESTDIR}/etc/ppp
85	cd ${.CURDIR}/mail; ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 \
86	    ${NOSPAM} ${DESTDIR}/etc/mail
87	${INSTALL} -c -o ${BINOWN} -g operator -m 664 /dev/null \
88	    ${DESTDIR}/etc/dumpdates
89	${INSTALL} -c -o nobody -g ${BINGRP} -m 664 /dev/null \
90	    ${DESTDIR}/var/db/locate.database
91	${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 664 /dev/null \
92	    ${DESTDIR}/var/log/lpd-errs
93	${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 664 /dev/null \
94	    ${DESTDIR}/var/log/maillog
95	${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 664 /dev/null \
96	    ${DESTDIR}/var/log/lastlog
97	${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 664 /dev/null \
98	    ${DESTDIR}/var/log/messages
99	${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 600 /dev/null \
100	    ${DESTDIR}/var/log/slip.log
101	${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 600 /dev/null \
102	    ${DESTDIR}/var/log/ppp.log
103	${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 664 /dev/null \
104	    ${DESTDIR}/var/log/wtmp
105	${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 664 /dev/null \
106	    ${DESTDIR}/var/run/utmp
107	${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 664 ${.CURDIR}/minfree \
108	    ${DESTDIR}/var/crash
109	(cd ${.CURDIR}/..; \
110	    ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 ${FREEBSD} \
111		${DESTDIR}/)
112	(cd ${.CURDIR}/../share/man; ${MAKE} makedb; )
113
114distrib-dirs:
115	mtree -deU -f ${.CURDIR}/mtree/BSD.root.dist -p ${DESTDIR}/
116	mtree -deU -f ${.CURDIR}/mtree/BSD.var.dist -p ${DESTDIR}/var
117# Compatibility stuff, remove obsoleted links, if exists
118	if [ -d	${DESTDIR}/usr/share/locale ] ;	\
119	then \
120		cd ${DESTDIR}/usr/share/locale;	\
121		for l in ${LATIN1LINKS}	; do \
122			if [ -h $$l.ISO_8859-1 ]; then \
123				rm $$l.ISO_8859-1; \
124			fi ; \
125		done; \
126	fi
127	mtree -deU -f ${.CURDIR}/mtree/BSD.usr.dist -p ${DESTDIR}/usr
128	mtree -deU -f ${.CURDIR}/mtree/BSD.include.dist \
129		-p ${DESTDIR}/usr/include
130	cd ${DESTDIR}/; rm -f ${DESTDIR}/sys; ln -s usr/src/sys sys
131	cd ${DESTDIR}/usr/share/locale; \
132	set - `cat ${.CURDIR}/locale.alias`; \
133	while [ $$# -gt 0 ] ; \
134	do \
135		rm -rf "$$1"; \
136		ln -s "$$2" "$$1"; \
137		shift; shift; \
138	done
139	cd ${DESTDIR}/usr/share/nls; \
140	set - `cat ${.CURDIR}/locale.alias`; \
141	while [ $$# -gt 0 ] ; \
142	do \
143		rm -rf "$$1"; \
144		ln -s "$$2" "$$1"; \
145		shift; shift; \
146	done; \
147	rm -rf POSIX; \
148	ln -s C POSIX
149
150.include <bsd.prog.mk>
151