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 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 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.sendmail rc.serial rc.shutdown \
17 rc.subr rc.syscons rc.sysctl remote rpc services \
18 shells sysctl.conf 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_OPENSSL)
31 .if !defined(NO_OPENSSH)
32 SSH= ${.CURDIR}/../crypto/openssh/ssh_config \
33 ${.CURDIR}/../crypto/openssh/sshd_config \
36 SSL= ${.CURDIR}/../crypto/openssl/apps/openssl.cnf
39 # -rwxr-xr-x root:wheel, for the new cron root:wheel
40 BIN2= netstart pccard_ether rc.suspend rc.resume
42 DEFAULTS= rc.conf pccard.conf periodic.conf
44 MTREE= BSD.include.dist BSD.local.dist BSD.root.dist BSD.usr.dist \
45 BSD.var.dist BSD.x11.dist BSD.x11-4.dist
46 .if !defined(NO_SENDMAIL)
47 MTREE+= BSD.sendmail.dist
50 NAMEDB= PROTO.localhost.rev PROTO.localhost-v6.rev named.conf named.root \
55 ETCMAIL=Makefile README mailer.conf access.sample virtusertable.sample \
56 mailertable.sample aliases
58 # Special top level files for FreeBSD
62 cd ${.CURDIR} ; ${MAKE} distribution DESTDIR=${DISTDIR}/${DISTRIBUTION}
63 ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 444 \
64 ${.CURDIR}/../sys/${MACHINE}/conf/GENERIC.hints \
65 ${DISTDIR}/${DISTRIBUTION}/boot/device.hints
69 ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 \
70 ${BIN1} ${DESTDIR}/etc; \
71 ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 755 \
72 ${BIN2} ${DESTDIR}/etc; \
73 ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 600 \
74 master.passwd nsmb.conf opieaccess ${DESTDIR}/etc; \
75 pwd_mkdb -p -d ${DESTDIR}/etc ${DESTDIR}/etc/master.passwd
76 cd ${.CURDIR}/defaults; ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 \
77 ${DEFAULTS} ${DESTDIR}/etc/defaults
78 cd ${.CURDIR}/periodic; ${MAKE} install
79 cd ${.CURDIR}/rc.d; ${MAKE} install
80 cd ${.CURDIR}/../gnu/usr.bin/send-pr; ${MAKE} etc-gnats-freefall
81 cd ${.CURDIR}/../share/termcap; ${MAKE} etc-termcap
82 cd ${.CURDIR}/../usr.sbin/rmt; ${MAKE} etc-rmt
83 cd ${.CURDIR}/pam.d; ${MAKE} install
85 cd ${.CURDIR}/isdn; ${MAKE} install
87 .if !defined(NO_SENDMAIL)
88 cd ${.CURDIR}/sendmail; ${MAKE} distribution
90 .if exists(${.CURDIR}/../crypto) && !defined(NO_OPENSSL)
91 .if !defined(NO_OPENSSH)
92 cd ${.CURDIR}; ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 \
93 ${SSH} ${DESTDIR}/etc/ssh
95 cd ${.CURDIR}; ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 \
96 ${SSL} ${DESTDIR}/etc/ssl
98 .if !defined(NO_MAKEDEV_INSTALL)
99 cd ${.CURDIR}; ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 555 \
100 MAKEDEV.local MAKEDEV ${DESTDIR}/dev
101 .if !defined(NO_MAKEDEV_RUN)
102 cd ${DESTDIR}/dev; sh MAKEDEV all
105 cd ${.CURDIR}/root; \
106 ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 \
107 dot.cshrc ${DESTDIR}/root/.cshrc; \
108 ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 \
109 dot.klogin ${DESTDIR}/root/.klogin; \
110 ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 \
111 dot.login ${DESTDIR}/root/.login; \
112 ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 \
113 dot.profile ${DESTDIR}/root/.profile; \
114 rm -f ${DESTDIR}/.cshrc ${DESTDIR}/.profile; \
115 ln ${DESTDIR}/root/.cshrc ${DESTDIR}/.cshrc; \
116 ln ${DESTDIR}/root/.profile ${DESTDIR}/.profile
117 cd ${.CURDIR}/mtree; ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 444 \
118 ${MTREE} ${DESTDIR}/etc/mtree
119 cd ${.CURDIR}/namedb; ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 \
120 ${NAMEDB} ${DESTDIR}/etc/namedb
121 cd ${.CURDIR}/ppp; ${INSTALL} -o root -g ${BINGRP} -m 600 \
122 ${PPPCNF} ${DESTDIR}/etc/ppp
123 cd ${.CURDIR}/mail; ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 \
124 ${ETCMAIL} ${DESTDIR}/etc/mail
125 @if [ -d ${DESTDIR}/etc/mail -a -f ${DESTDIR}/etc/mail/aliases -a \
126 ! -f ${DESTDIR}/etc/aliases ]; then \
128 ln -s mail/aliases ${DESTDIR}/etc/aliases; \
130 ${INSTALL} -o ${BINOWN} -g operator -m 664 /dev/null \
131 ${DESTDIR}/etc/dumpdates
132 ${INSTALL} -o nobody -g ${BINGRP} -m 644 /dev/null \
133 ${DESTDIR}/var/db/locate.database
134 ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 600 /dev/null \
135 ${DESTDIR}/var/log/auth.log
136 ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 600 /dev/null \
137 ${DESTDIR}/var/log/cron
138 ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 600 /dev/null \
139 ${DESTDIR}/var/log/xferlog
140 ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 /dev/null \
141 ${DESTDIR}/var/log/lpd-errs
142 ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 640 /dev/null \
143 ${DESTDIR}/var/log/maillog
144 ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 /dev/null \
145 ${DESTDIR}/var/log/lastlog
146 ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 /dev/null \
147 ${DESTDIR}/var/log/messages
148 ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 600 /dev/null \
149 ${DESTDIR}/var/log/security
150 ${INSTALL} -o ${BINOWN} -g network -m 640 /dev/null \
151 ${DESTDIR}/var/log/slip.log
152 ${INSTALL} -o ${BINOWN} -g network -m 640 /dev/null \
153 ${DESTDIR}/var/log/ppp.log
154 ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 /dev/null \
155 ${DESTDIR}/var/log/wtmp
156 ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 /dev/null \
157 ${DESTDIR}/var/run/utmp
158 ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 ${.CURDIR}/minfree \
160 cd ${.CURDIR}/..; ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 444 \
161 ${FREEBSD} ${DESTDIR}/
163 cd ${.CURDIR}/../share/man; ${MAKE} makedb
167 -set - `grep "^[a-zA-Z]" ${.CURDIR}/locale.deprecated`; \
168 while [ $$# -gt 0 ] ; \
170 for dir in /usr/share/locale \
172 /usr/local/share/nls; \
174 test -d ${DESTDIR}/$${dir} && cd ${DESTDIR}/$${dir}; \
175 test -L "$$2" && rm -rf "$$2"; \
176 test \! -L "$$1" && test -d "$$1" && mv "$$1" "$$2"; \
180 mtree -deU ${MTREE_FOLLOWS_SYMLINKS} -f ${.CURDIR}/mtree/BSD.root.dist -p ${DESTDIR}/
181 mtree -deU ${MTREE_FOLLOWS_SYMLINKS} -f ${.CURDIR}/mtree/BSD.var.dist -p ${DESTDIR}/var
182 mtree -deU ${MTREE_FOLLOWS_SYMLINKS} -f ${.CURDIR}/mtree/BSD.usr.dist -p ${DESTDIR}/usr
183 mtree -deU ${MTREE_FOLLOWS_SYMLINKS} -f ${.CURDIR}/mtree/BSD.include.dist \
184 -p ${DESTDIR}/usr/include
185 .if !defined(NO_SENDMAIL)
186 mtree -deU ${MTREE_FOLLOWS_SYMLINKS} -f ${.CURDIR}/mtree/BSD.sendmail.dist -p ${DESTDIR}/
188 cd ${DESTDIR}/; rm -f ${DESTDIR}/sys; ln -s usr/src/sys sys
189 cd ${DESTDIR}/usr/share/man/en.ISO8859-1; ln -sf ../man* .
190 cd ${DESTDIR}/usr/share/man; \
191 set - `grep "^[a-zA-Z]" ${.CURDIR}/man.alias`; \
192 while [ $$# -gt 0 ] ; \
198 cd ${DESTDIR}/usr/share/locale; \
199 set - `grep "^[a-zA-Z]" ${.CURDIR}/locale.alias`; \
200 while [ $$# -gt 0 ] ; \
206 cd ${DESTDIR}/usr/share/nls; \
207 set - `grep "^[a-zA-Z]" ${.CURDIR}/nls.alias`; \
208 while [ $$# -gt 0 ] ; \
216 cd ${.CURDIR}; ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 444 \
217 ${BIN1} ${BIN2} nsmb.conf opieaccess \
218 ${DESTDIR}/usr/share/examples/etc
219 cd ${.CURDIR}/defaults; ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 444 \
220 ${DEFAULTS} ${DESTDIR}/usr/share/examples/etc/defaults
222 .include <bsd.prog.mk>