1 # from: @(#)Makefile 5.11 (Berkeley) 5/21/91
2 # $Id: Makefile,v 1.190 1999/02/09 23:17:25 jkh 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.devfs rc.firewall rc.isdn rc.network rc.pccard \
12 rc.diskless rc.serial rc.shutdown \
13 etc.${MACHINE_ARCH}/rc.${MACHINE_ARCH} \
14 remote security services shells syslog.conf \
15 etc.${MACHINE_ARCH}/ttys etc.${MACHINE_ARCH}/disktab rpc make.conf \
16 ${.CURDIR}/../gnu/usr.bin/man/manpath/manpath.config \
17 ${.CURDIR}/../usr.bin/mail/misc/mail.rc \
18 ${.CURDIR}/../usr.bin/locate/locate/locate.rc
20 # -rwxr-xr-x root.wheel, for the new cron root.wheel
21 BIN2= netstart pccard_ether
23 MTREE= BSD.include.dist BSD.local.dist BSD.root.dist BSD.usr.dist \
24 BSD.var.dist BSD.x11.dist
25 NAMEDB= PROTO.localhost.rev named.conf named.root make-localhost
26 PPPCNF= ppp.conf.sample ppp.linkup.sample ppp.linkdown.sample \
27 ppp.secret.sample ppp.deny ppp.shells.sample
28 NOSPAM= Makefile README sendmail.cf.additions
31 # Special top level files for FreeBSD
34 FREEBSD+= ${COPYRIGHT}
36 # Compatibility stuff, remove those links
38 da_DK de_AT de_CH de_DE en_AU en_CA en_GB en_US es_ES fi_FI \
39 fr_BE fr_CA fr_CH fr_FR is_IS it_CH it_IT nl_BE nl_NL no_NO \
45 cd ${.CURDIR} ; ${MAKE} distribution DESTDIR=${DISTDIR}/bin
46 .if defined(OBJFORMAT)
47 echo OBJFORMAT=${OBJFORMAT} > ${DISTDIR}/bin/etc/objformat
53 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 ${BIN1} ${DESTDIR}/etc; \
54 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 755 ${BIN2} ${DESTDIR}/etc; \
55 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 defaults/rc.conf ${DESTDIR}/etc/defaults/; \
56 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 600 /dev/null \
57 ${DESTDIR}/var/cron/log; \
58 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 600 \
59 master.passwd ${DESTDIR}/etc; \
60 ( cd ${.CURDIR}/periodic; ${MAKE} install );\
61 ( cd ${.CURDIR}/../gnu/usr.bin/send-pr; ${MAKE} etc-gnats-freefall );\
62 ( cd ${.CURDIR}/../gnu/libexec/uucp/sample; ${MAKE} install ); \
63 ( cd ${.CURDIR}/../share/termcap; ${MAKE} etc-termcap ); \
64 ( cd ${.CURDIR}/../usr.sbin/rmt; ${MAKE} etc-rmt ); \
65 ( cd ${.CURDIR}/sendmail; ${MAKE} etc-sendmail.cf ); \
66 ( cd ${.CURDIR}/isdn; ${MAKE} install );\
67 pwd_mkdb -p -d ${DESTDIR}/etc ${DESTDIR}/etc/master.passwd; \
68 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 555 \
69 MAKEDEV.local etc.${MACHINE_ARCH}/MAKEDEV ${DESTDIR}/dev )
70 (cd ${DESTDIR}/dev; sh MAKEDEV all) ;
71 (cd ${.CURDIR}/root; \
72 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 dot.cshrc \
73 ${DESTDIR}/root/.cshrc; \
74 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 dot.klogin \
75 ${DESTDIR}/root/.klogin; \
76 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 dot.login \
77 ${DESTDIR}/root/.login; \
78 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 dot.profile \
79 ${DESTDIR}/root/.profile; \
80 rm -f ${DESTDIR}/.cshrc ${DESTDIR}/.profile; \
81 ln ${DESTDIR}/root/.cshrc ${DESTDIR}/.cshrc; \
82 ln ${DESTDIR}/root/.profile ${DESTDIR}/.profile)
83 cd ${.CURDIR}/mtree; ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 \
84 ${MTREE} ${DESTDIR}/etc/mtree
85 cd ${.CURDIR}/namedb; ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 \
86 ${NAMEDB} ${DESTDIR}/etc/namedb
87 cd ${.CURDIR}/ppp; ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 \
88 ${PPPCNF} ${DESTDIR}/etc/ppp
89 cd ${.CURDIR}/mail; ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 \
90 ${NOSPAM} ${DESTDIR}/etc/mail
91 ${INSTALL} -c -o ${BINOWN} -g operator -m 664 /dev/null \
92 ${DESTDIR}/etc/dumpdates
93 ${INSTALL} -c -o nobody -g ${BINGRP} -m 664 /dev/null \
94 ${DESTDIR}/var/db/locate.database
95 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 664 /dev/null \
96 ${DESTDIR}/var/log/lpd-errs
97 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 664 /dev/null \
98 ${DESTDIR}/var/log/maillog
99 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 664 /dev/null \
100 ${DESTDIR}/var/log/lastlog
101 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 664 /dev/null \
102 ${DESTDIR}/var/log/messages
103 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 600 /dev/null \
104 ${DESTDIR}/var/log/slip.log
105 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 600 /dev/null \
106 ${DESTDIR}/var/log/ppp.log
107 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 664 /dev/null \
108 ${DESTDIR}/var/log/wtmp
109 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 664 /dev/null \
110 ${DESTDIR}/var/run/utmp
111 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 664 ${.CURDIR}/minfree \
114 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 ${FREEBSD} \
116 (cd ${.CURDIR}/../share/man; ${MAKE} makedb; )
119 mtree -deU -f ${.CURDIR}/mtree/BSD.root.dist -p ${DESTDIR}/
120 mtree -deU -f ${.CURDIR}/mtree/BSD.var.dist -p ${DESTDIR}/var
121 # Compatibility stuff, remove obsoleted links, if exists
122 if [ -d ${DESTDIR}/usr/share/locale ] ; \
124 cd ${DESTDIR}/usr/share/locale; \
125 for l in ${LATIN1LINKS} ; do \
126 if [ -h $$l.ISO_8859-1 ]; then \
131 mtree -deU -f ${.CURDIR}/mtree/BSD.usr.dist -p ${DESTDIR}/usr
132 mtree -deU -f ${.CURDIR}/mtree/BSD.include.dist \
133 -p ${DESTDIR}/usr/include
134 cd ${DESTDIR}/; rm -f ${DESTDIR}/sys; ln -s usr/src/sys sys
135 cd ${DESTDIR}/usr/share/locale; \
136 set - `cat ${.CURDIR}/locale.alias`; \
137 while [ $$# -gt 0 ] ; \
143 cd ${DESTDIR}/usr/share/nls; \
144 set - `cat ${.CURDIR}/locale.alias`; \
145 while [ $$# -gt 0 ] ; \
154 .include <bsd.prog.mk>