1 # from: @(#)Makefile 5.11 (Berkeley) 5/21/91
2 # $Id: Makefile,v 1.197 1999/05/05 19:44:13 markm Exp $
6 BIN1= aliases amd.map crontab csh.cshrc csh.login csh.logout dm.conf \
7 fbtab ftpusers gettytab group hosts hosts.allow host.conf hosts.equiv \
8 hosts.lpd inetd.conf auth.conf login.conf login.access motd modems \
9 networks 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.serial rc.shutdown rc.diskless1 rc.diskless2 \
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.deny ppp.shells.sample
27 NOSPAM= Makefile README
30 # Special top level files for FreeBSD
33 FREEBSD+= ${COPYRIGHT}
38 cd ${.CURDIR} ; ${MAKE} distribution DESTDIR=${DISTDIR}/bin
39 .if defined(OBJFORMAT)
40 echo OBJFORMAT=${OBJFORMAT} > ${DISTDIR}/bin/etc/objformat
46 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 ${BIN1} ${DESTDIR}/etc; \
47 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 755 ${BIN2} ${DESTDIR}/etc; \
48 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 defaults/rc.conf ${DESTDIR}/etc/defaults/; \
49 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 600 /dev/null \
50 ${DESTDIR}/var/cron/log; \
51 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 600 \
52 master.passwd ${DESTDIR}/etc; \
53 ( cd ${.CURDIR}/periodic; ${MAKE} install );\
54 ( cd ${.CURDIR}/../gnu/usr.bin/send-pr; ${MAKE} etc-gnats-freefall );\
55 ( cd ${.CURDIR}/../gnu/libexec/uucp/sample; ${MAKE} install ); \
56 ( cd ${.CURDIR}/../share/termcap; ${MAKE} etc-termcap ); \
57 ( cd ${.CURDIR}/../usr.sbin/rmt; ${MAKE} etc-rmt ); \
58 ( cd ${.CURDIR}/sendmail; ${MAKE} etc-sendmail.cf ); \
59 ( cd ${.CURDIR}/isdn; ${MAKE} install );\
60 pwd_mkdb -p -d ${DESTDIR}/etc ${DESTDIR}/etc/master.passwd; \
61 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 555 \
62 MAKEDEV.local etc.${MACHINE_ARCH}/MAKEDEV ${DESTDIR}/dev )
63 (cd ${DESTDIR}/dev; sh MAKEDEV all) ;
64 (cd ${.CURDIR}/root; \
65 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 dot.cshrc \
66 ${DESTDIR}/root/.cshrc; \
67 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 dot.klogin \
68 ${DESTDIR}/root/.klogin; \
69 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 dot.login \
70 ${DESTDIR}/root/.login; \
71 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 dot.profile \
72 ${DESTDIR}/root/.profile; \
73 rm -f ${DESTDIR}/.cshrc ${DESTDIR}/.profile; \
74 ln ${DESTDIR}/root/.cshrc ${DESTDIR}/.cshrc; \
75 ln ${DESTDIR}/root/.profile ${DESTDIR}/.profile)
76 cd ${.CURDIR}/mtree; ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 \
77 ${MTREE} ${DESTDIR}/etc/mtree
78 cd ${.CURDIR}/namedb; ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 \
79 ${NAMEDB} ${DESTDIR}/etc/namedb
80 cd ${.CURDIR}/ppp; ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 \
81 ${PPPCNF} ${DESTDIR}/etc/ppp
82 cd ${.CURDIR}/mail; ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 \
83 ${NOSPAM} ${DESTDIR}/etc/mail
84 ${INSTALL} -c -o ${BINOWN} -g operator -m 664 /dev/null \
85 ${DESTDIR}/etc/dumpdates
86 ${INSTALL} -c -o nobody -g ${BINGRP} -m 664 /dev/null \
87 ${DESTDIR}/var/db/locate.database
88 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 664 /dev/null \
89 ${DESTDIR}/var/log/lpd-errs
90 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 664 /dev/null \
91 ${DESTDIR}/var/log/maillog
92 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 664 /dev/null \
93 ${DESTDIR}/var/log/lastlog
94 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 664 /dev/null \
95 ${DESTDIR}/var/log/messages
96 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 600 /dev/null \
97 ${DESTDIR}/var/log/slip.log
98 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 600 /dev/null \
99 ${DESTDIR}/var/log/ppp.log
100 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 664 /dev/null \
101 ${DESTDIR}/var/log/wtmp
102 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 664 /dev/null \
103 ${DESTDIR}/var/run/utmp
104 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 664 ${.CURDIR}/minfree \
107 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 ${FREEBSD} \
109 (cd ${.CURDIR}/../share/man; ${MAKE} makedb; )
112 mtree -deU -f ${.CURDIR}/mtree/BSD.root.dist -p ${DESTDIR}/
113 mtree -deU -f ${.CURDIR}/mtree/BSD.var.dist -p ${DESTDIR}/var
114 mtree -deU -f ${.CURDIR}/mtree/BSD.usr.dist -p ${DESTDIR}/usr
115 mtree -deU -f ${.CURDIR}/mtree/BSD.include.dist \
116 -p ${DESTDIR}/usr/include
117 mtree -deU -f ${.CURDIR}/mtree/BSD.include.dist \
118 -p ${DESTDIR}/usr/libdata/perl/5.00503/mach
119 cd ${DESTDIR}/; rm -f ${DESTDIR}/sys; ln -s usr/src/sys sys
120 cd ${DESTDIR}/usr/share/locale; \
121 set - `cat ${.CURDIR}/locale.alias`; \
122 while [ $$# -gt 0 ] ; \
128 cd ${DESTDIR}/usr/share/nls; \
129 set - `cat ${.CURDIR}/locale.alias`; \
130 while [ $$# -gt 0 ] ; \
139 .include <bsd.prog.mk>