1 # from: @(#)Makefile 5.11 (Berkeley) 5/21/91
6 BIN1= aliases amd.map apmd.conf auth.conf \
7 crontab csh.cshrc csh.login csh.logout \
8 dhclient.conf dm.conf fbtab ftpusers gettytab group \
9 hosts hosts.allow host.conf hosts.equiv hosts.lpd \
10 inetd.conf login.access login.conf \
11 motd modems networks newsyslog.conf \
12 pam.conf pccard.conf.sample phones printcap profile protocols \
13 rc rc.atm rc.devfs rc.diskless1 rc.diskless2 rc.firewall rc.isdn \
14 rc.network rc.pccard rc.serial rc.shutdown rc.sysctl \
15 remote rpc security services shells syslog.conf usbd.conf \
16 etc.${MACHINE_ARCH}/disktab \
17 etc.${MACHINE_ARCH}/rc.${MACHINE_ARCH} \
18 etc.${MACHINE_ARCH}/ttys \
19 ${.CURDIR}/../gnu/usr.bin/man/manpath/manpath.config \
20 ${.CURDIR}/../usr.bin/mail/misc/mail.rc \
21 ${.CURDIR}/../usr.bin/locate/locate/locate.rc
23 # -rwxr-xr-x root.wheel, for the new cron root.wheel
24 BIN2= netstart pccard_ether rc.suspend rc.resume
26 MTREE= BSD.include.dist BSD.local.dist BSD.root.dist BSD.usr.dist \
27 BSD.var.dist BSD.x11.dist
28 NAMEDB= PROTO.localhost.rev named.conf named.root make-localhost
29 PPPCNF= ppp.deny ppp.shells.sample
31 NOSPAM= Makefile README mailer.conf
34 # Special top level files for FreeBSD
37 FREEBSD+= ${COPYRIGHT}
42 cd ${.CURDIR} ; ${MAKE} distribution DESTDIR=${DISTDIR}/bin
43 .if defined(OBJFORMAT)
44 echo OBJFORMAT=${OBJFORMAT} > ${DISTDIR}/bin/etc/objformat
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 644 defaults/rc.conf ${DESTDIR}/etc/defaults/; \
53 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 defaults/make.conf ${DESTDIR}/etc/defaults/; \
54 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 600 /dev/null \
55 ${DESTDIR}/var/log/cron; \
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 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}/ppp; ${INSTALL} -c -o root -g ${BINGRP} -m 600 \
88 ${PPPCF2} ${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/security
105 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 600 /dev/null \
106 ${DESTDIR}/var/log/slip.log
107 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 600 /dev/null \
108 ${DESTDIR}/var/log/ppp.log
109 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 664 /dev/null \
110 ${DESTDIR}/var/log/wtmp
111 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 664 /dev/null \
112 ${DESTDIR}/var/run/utmp
113 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 664 ${.CURDIR}/minfree \
116 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 ${FREEBSD} \
118 (cd ${.CURDIR}/../share/man; ${MAKE} makedb; )
121 mtree -deU -f ${.CURDIR}/mtree/BSD.root.dist -p ${DESTDIR}/
122 mtree -deU -f ${.CURDIR}/mtree/BSD.var.dist -p ${DESTDIR}/var
123 mtree -deU -f ${.CURDIR}/mtree/BSD.usr.dist -p ${DESTDIR}/usr
124 mtree -deU -f ${.CURDIR}/mtree/BSD.include.dist \
125 -p ${DESTDIR}/usr/include
126 mtree -deU -f ${.CURDIR}/mtree/BSD.include.dist \
127 -p ${DESTDIR}/usr/libdata/perl/5.00503/mach
128 cd ${DESTDIR}/; rm -f ${DESTDIR}/sys; ln -s usr/src/sys sys
129 cd ${DESTDIR}/usr/share/locale; \
130 set - `cat ${.CURDIR}/locale.alias`; \
131 while [ $$# -gt 0 ] ; \
137 cd ${DESTDIR}/usr/share/nls; \
138 set - `cat ${.CURDIR}/locale.alias`; \
139 while [ $$# -gt 0 ] ; \
150 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 ${BIN1} ${BIN2} \
151 ${DESTDIR}/usr/share/examples/etc; \
152 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 defaults/rc.conf \
153 ${DESTDIR}/usr/share/examples/etc/defaults; \
154 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 defaults/make.conf \
155 ${DESTDIR}/usr/share/examples/etc/defaults)
157 .include <bsd.prog.mk>