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