1 # from: @(#)Makefile 5.11 (Berkeley) 5/21/91
4 .if !defined(NO_SENDMAIL)
8 BIN1= amd.map apmd.conf auth.conf \
9 crontab csh.cshrc csh.login csh.logout \
10 diskcheckd.conf dhclient.conf dm.conf fbtab ftpusers gettytab group \
11 hosts hosts.allow hosts.equiv hosts.lpd \
12 inetd.conf login.access login.conf \
13 motd modems netconfig networks newsyslog.conf \
14 pam.conf phones printcap profile protocols \
15 rc rc.atm rc.devfs rc.diskless1 rc.diskless2 rc.firewall rc.firewall6 \
16 rc.network rc.network6 rc.pccard rc.serial rc.shutdown \
17 rc.syscons rc.sysctl remote rpc security services shells sysctl.conf \
18 syslog.conf usbd.conf \
19 etc.${MACHINE_ARCH}/disktab \
20 etc.${MACHINE_ARCH}/rc.${MACHINE_ARCH} \
21 etc.${MACHINE_ARCH}/ttys \
22 ${.CURDIR}/../gnu/usr.bin/man/manpath/manpath.config \
23 ${.CURDIR}/../usr.bin/mail/misc/mail.rc \
24 ${.CURDIR}/../usr.bin/locate/locate/locate.rc
30 .if exists(${.CURDIR}/../crypto) && !defined(NO_OPENSSH)
31 SSH= ${.CURDIR}/../crypto/openssh/ssh_config \
32 ${.CURDIR}/../crypto/openssh/sshd_config \
36 .if exists(${.CURDIR}/../crypto) && !defined(NO_OPENSSL)
37 SSL= ${.CURDIR}/../crypto/openssl/apps/openssl.cnf
40 # -rwxr-xr-x root.wheel, for the new cron root.wheel
41 BIN2= netstart pccard_ether rc.suspend rc.resume
43 MTREE= BSD.include.dist BSD.local.dist BSD.root.dist BSD.usr.dist \
44 BSD.var.dist BSD.x11.dist BSD.x11-4.dist
45 NAMEDB= PROTO.localhost.rev named.conf named.root make-localhost
46 PPPCNF= ppp.deny ppp.shells.sample
48 ETCMAIL=Makefile README mailer.conf access.sample virtusertable.sample \
49 mailertable.sample aliases
52 # Special top level files for FreeBSD
55 FREEBSD+= ${COPYRIGHT}
60 cd ${.CURDIR} ; ${MAKE} distribution DESTDIR=${DISTDIR}/bin
61 .if defined(OBJFORMAT)
62 echo OBJFORMAT=${OBJFORMAT} > ${DISTDIR}/bin/etc/objformat
68 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 ${BIN1} ${DESTDIR}/etc; \
69 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 755 ${BIN2} ${DESTDIR}/etc; \
70 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 defaults/rc.conf ${DESTDIR}/etc/defaults/; \
71 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 defaults/make.conf ${DESTDIR}/etc/defaults/; \
72 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 defaults/pccard.conf ${DESTDIR}/etc/defaults/; \
73 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 defaults/periodic.conf ${DESTDIR}/etc/defaults/; \
74 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 600 /dev/null \
75 ${DESTDIR}/var/log/cron; \
76 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 600 \
77 master.passwd ${DESTDIR}/etc; \
78 ( cd ${.CURDIR}/periodic; ${MAKE} install ); \
79 ( cd ${.CURDIR}/../gnu/usr.bin/send-pr; ${MAKE} etc-gnats-freefall ); \
80 ( cd ${.CURDIR}/../share/termcap; ${MAKE} etc-termcap ); \
81 ( cd ${.CURDIR}/../usr.sbin/rmt; ${MAKE} etc-rmt ); \
82 pwd_mkdb -p -d ${DESTDIR}/etc ${DESTDIR}/etc/master.passwd; )
84 ( cd ${.CURDIR}/isdn; ${MAKE} install )
86 .if !defined(NO_SENDMAIL)
87 ( cd ${.CURDIR}/sendmail; ${MAKE} distribution );
90 ( cd ${.CURDIR}/../gnu/libexec/uucp/sample; ${MAKE} install )
92 .if exists(${.CURDIR}/../crypto) && !defined(NO_OPENSSH)
93 (cd ${.CURDIR}; ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 ${SSH} \
96 .if exists(${.CURDIR}/../crypto) && !defined(NO_OPENSSL)
97 (cd ${.CURDIR}; ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 ${SSL} \
100 .if !defined(NO_MAKEDEV_INSTALL)
101 ( cd ${.CURDIR}; ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 555 \
102 MAKEDEV.local MAKEDEV ${DESTDIR}/dev )
103 .if !defined(NO_MAKEDEV_RUN)
104 (cd ${DESTDIR}/dev; sh MAKEDEV all)
107 (cd ${.CURDIR}/root; \
108 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 dot.cshrc \
109 ${DESTDIR}/root/.cshrc; \
110 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 dot.klogin \
111 ${DESTDIR}/root/.klogin; \
112 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 dot.login \
113 ${DESTDIR}/root/.login; \
114 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 dot.profile \
115 ${DESTDIR}/root/.profile; \
116 rm -f ${DESTDIR}/.cshrc ${DESTDIR}/.profile; \
117 ln ${DESTDIR}/root/.cshrc ${DESTDIR}/.cshrc; \
118 ln ${DESTDIR}/root/.profile ${DESTDIR}/.profile)
119 cd ${.CURDIR}/mtree; ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 \
120 ${MTREE} ${DESTDIR}/etc/mtree
121 cd ${.CURDIR}/namedb; ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 \
122 ${NAMEDB} ${DESTDIR}/etc/namedb
123 cd ${.CURDIR}/ppp; ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 \
124 ${PPPCNF} ${DESTDIR}/etc/ppp
125 cd ${.CURDIR}/ppp; ${INSTALL} -c -o root -g ${BINGRP} -m 600 \
126 ${PPPCF2} ${DESTDIR}/etc/ppp
127 cd ${.CURDIR}/mail; ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 \
128 ${ETCMAIL} ${DESTDIR}/etc/mail
129 @if [ -d ${DESTDIR}/etc/mail -a -f ${DESTDIR}/etc/mail/aliases -a \
130 ! -f ${DESTDIR}/etc/aliases ]; then \
132 ln -s mail/aliases ${DESTDIR}/etc/aliases; \
134 ${INSTALL} -c -o ${BINOWN} -g operator -m 664 /dev/null \
135 ${DESTDIR}/etc/dumpdates
136 ${INSTALL} -c -o nobody -g ${BINGRP} -m 644 /dev/null \
137 ${DESTDIR}/var/db/locate.database
138 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 /dev/null \
139 ${DESTDIR}/var/log/lpd-errs
140 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 /dev/null \
141 ${DESTDIR}/var/log/maillog
142 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 /dev/null \
143 ${DESTDIR}/var/log/lastlog
144 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 /dev/null \
145 ${DESTDIR}/var/log/messages
146 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 600 /dev/null \
147 ${DESTDIR}/var/log/security
148 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 600 /dev/null \
149 ${DESTDIR}/var/log/slip.log
150 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 600 /dev/null \
151 ${DESTDIR}/var/log/ppp.log
152 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 /dev/null \
153 ${DESTDIR}/var/log/wtmp
154 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 /dev/null \
155 ${DESTDIR}/var/run/utmp
156 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 ${.CURDIR}/minfree \
159 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 ${FREEBSD} \
162 (cd ${.CURDIR}/../share/man; ${MAKE} makedb; )
166 mtree -deU ${MTREE_FOLLOWS_SYMLINKS} -f ${.CURDIR}/mtree/BSD.root.dist -p ${DESTDIR}/
167 mtree -deU ${MTREE_FOLLOWS_SYMLINKS} -f ${.CURDIR}/mtree/BSD.var.dist -p ${DESTDIR}/var
168 mtree -deU ${MTREE_FOLLOWS_SYMLINKS} -f ${.CURDIR}/mtree/BSD.usr.dist -p ${DESTDIR}/usr
169 mtree -deU ${MTREE_FOLLOWS_SYMLINKS} -f ${.CURDIR}/mtree/BSD.include.dist \
170 -p ${DESTDIR}/usr/include
171 mtree -deU ${MTREE_FOLLOWS_SYMLINKS} -f ${.CURDIR}/mtree/BSD.include.dist \
172 -p ${DESTDIR}/usr/libdata/perl/5.6.0/mach
173 cd ${DESTDIR}/; rm -f ${DESTDIR}/sys; ln -s usr/src/sys sys
174 cd ${DESTDIR}/usr/share/man/en.ISO8859-1; ln -sf ../man* .
175 cd ${DESTDIR}/usr/share/man; \
176 set - `grep "^[a-zA-Z]" ${.CURDIR}/man.alias`; \
177 while [ $$# -gt 0 ] ; \
183 cd ${DESTDIR}/usr/share/locale; \
184 set - `grep "^[a-zA-Z]" ${.CURDIR}/locale.alias`; \
185 while [ $$# -gt 0 ] ; \
191 cd ${DESTDIR}/usr/share/nls; \
192 set - `grep "^[a-zA-Z]" ${.CURDIR}/nls.alias`; \
193 while [ $$# -gt 0 ] ; \
202 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 ${BIN1} ${BIN2} \
203 ${DESTDIR}/usr/share/examples/etc; \
204 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 defaults/rc.conf \
205 ${DESTDIR}/usr/share/examples/etc/defaults; \
206 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 defaults/make.conf \
207 ${DESTDIR}/usr/share/examples/etc/defaults; \
208 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 defaults/pccard.conf \
209 ${DESTDIR}/usr/share/examples/etc/defaults; \
210 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 defaults/periodic.conf \
211 ${DESTDIR}/usr/share/examples/etc/defaults)
213 .include <bsd.prog.mk>