Implement periodic hammer2 snapshots.
[dragonfly.git] / etc / Makefile
CommitLineData
984263bc
MD
1# from: @(#)Makefile 5.11 (Berkeley) 5/21/91
2# $FreeBSD: src/etc/Makefile,v 1.219.2.38 2003/03/04 09:49:00 ru Exp $
3
984263bc 4SUBDIR= sendmail
984263bc 5
e75ceb5b
MD
6# Files that should be installed read-only (444)
7#
2352f0a1 8BINUPDATE= devd.conf fbtab gettytab network.subr \
95cc27f0 9 pf.os \
e50c8f0c 10 protocols \
af0aa052 11 rc rc.firewall rc.firewall6 \
9c600e7d 12 rc.sendmail rc.shutdown \
e88b0399 13 rc.subr rpc \
5417d53e
CP
14 etc.${MACHINE_ARCH}/disktab
15.if defined(BINARY_UPGRADE) # location of these depends on upgrade method
16BINUPDATE+=mail.rc locate.rc
17.else
18BINUPDATE+=${.CURDIR}/../usr.bin/mail/misc/mail.rc \
d9a1074a 19 ${.CURDIR}/../usr.bin/locate/locate/locate.rc \
5d669bfa
AL
20 ${.CURDIR}/../contrib/openresolv/resolvconf.conf \
21 ${.CURDIR}/../contrib/dhcpcd/src/dhcpcd.conf
5417d53e 22.endif
984263bc 23
e75ceb5b
MD
24# Initial distribution files are installed read-write (644)
25#
335b9e93 26BIN1= auth.conf \
e50c8f0c 27 crontab csh.cshrc csh.login csh.logout \
48edb429 28 devtab dhclient.conf dntpd.conf \
4b8c406a 29 ftpusers group \
ed5d5720 30 hosts hosts.allow hosts.equiv hosts.lpd \
e50c8f0c 31 inetd.conf login.access login.conf \
ce0e08e2 32 motd modems netconfig networks newsyslog.conf \
ed5d5720 33 nscd.conf pf.conf phones printcap profile \
e88b0399 34 regdomain.xml remote sensorsd.conf services \
2a617999 35 shells sysctl.conf syslog.conf \
e191bdcb 36 wpa_supplicant.conf \
5417d53e 37 etc.${MACHINE_ARCH}/ttys
e50c8f0c 38
fef7d5c7 39DIRS+= lib/libssh usr.bin/openssl usr.bin/ssh usr.sbin/sshd
984263bc 40
e75ceb5b
MD
41# Files that should be installed read-only-executable (555) root:wheel
42#
af0aa052 43BIN2= pccard_ether rc.suspend rc.resume
984263bc 44
e79a303f 45DEFAULTS= compilers.conf devfs.conf make.conf periodic.conf \
1e877de9 46 pfi.conf rc.conf uuids
984263bc 47
50fc8ef1 48MTREE= BSD.include.dist BSD.root.dist BSD.usr.dist BSD.var.dist
9758d73a
SW
49.if !defined(NOFSCHG)
50MTREE_FSCHG= -i
51.endif
984263bc 52
984263bc
MD
53PPPCNF= ppp.conf
54
545f1377
JM
55ETCMAIL=aliases mailer.conf access.sample virtusertable.sample \
56 mailertable.sample
984263bc 57
9c85993e
CP
58# Use this directory as the source for new configuration files when upgrading
59UPGRADE_SRCDIR?=${.CURDIR}
60
6aa3516d 61# Include file which contains obsolete files
06c196ce
MS
62.if exists(${DESTDIR}/etc/upgrade/Makefile_upgrade.inc)
63.include "${DESTDIR}/etc/upgrade/Makefile_upgrade.inc"
6aa3516d
MS
64.endif
65
66remove-obsolete-files:
5cccfb7b
SW
67 @if [ -z "${TO_REMOVE}" ]; then \
68 echo "Please do a 'make installworld' first."; \
69 echo "See build(7) for further information."; \
b3badcb0 70 /usr/bin/false; \
5cccfb7b 71 fi;
06c196ce 72 @echo "===> Remove now obsolete files"
6aa3516d 73 @for item in ${TO_REMOVE}; do \
fbad3fd2 74 if [ -e ${DESTDIR}$${item} -o -L ${DESTDIR}$${item} ]; then \
d33566e4 75 echo "${DESTDIR}$${item}"; \
ca1740ee 76 chflags -Rf noschg "${DESTDIR}$${item}"; \
6aa3516d
MS
77 rm -rf "${DESTDIR}$${item}"; \
78 fi; \
1f4fed00 79 done;
6aa3516d 80
45f54b1a 81remove-deprecated-files:
82.if defined(REMOVE_DEPRECATED)
83 @echo "===> Remove now deprecated files"
84 @for item in ${TO_REMOVE_LATE}; do \
85 if [ -e ${DESTDIR}$${item} -o -L ${DESTDIR}$${item} ]; then \
86 echo "${DESTDIR}$${item}"; \
87 chflags -Rf noschg "${DESTDIR}$${item}"; \
88 rm -rf "${DESTDIR}$${item}"; \
89 fi; \
90 done;
91.else
92 @echo "===> Checking for deprecated files"
93 @count=0; for item in ${TO_REMOVE_LATE}; do \
94 if [ -e ${DESTDIR}$${item} -o -L ${DESTDIR}$${item} ]; then \
95 echo "${DESTDIR}$${item} is deprecated"; \
96 count=`expr $$count + 1`; \
97 fi; \
98 done; \
99 if [ "$$count" -gt 0 ]; then \
100 echo "==================================================================" ; \
101 echo "= You have $$count now deprecated files." ; \
102 echo "= Once you are sure that none of your third party (ports or local)" ; \
d39b3444 103 echo "= software are still using them, rerun with:" ; \
104 echo "= make upgrade -DREMOVE_DEPRECATED" ; \
45f54b1a 105 echo "==================================================================" ; \
106 fi;
107.endif
108
f35282e3 109preupgrade:
05201199
SW
110 (pw -V ${DESTDIR}/etc usershow mail -q > /dev/null) || \
111 pw -V ${DESTDIR}/etc useradd mail -u 6 -g 6 \
112 -c "Mail user" \
113 -d /nonexistent -s /sbin/nologin
4ae2f111
CP
114 (pw -V ${DESTDIR}/etc usershow _pflogd -q > /dev/null) || \
115 pw -V ${DESTDIR}/etc useradd _pflogd -u 64 \
116 -c "pflogd privsep user" \
f35282e3 117 -d /var/empty -s /sbin/nologin
5dcc9b01
HT
118 (pw -V ${DESTDIR}/etc usershow _sdpd -q > /dev/null) || \
119 pw -V ${DESTDIR}/etc useradd _sdpd -u 70 \
120 -c "sdpd privsep user" \
121 -d /var/empty -s /sbin/nologin
33399434
HT
122 (pw -V ${DESTDIR}/etc usershow _dhcp -q > /dev/null) || \
123 pw -V ${DESTDIR}/etc useradd _dhcp -u 77 \
124 -c "DHCP programs" \
3f2d797e 125 -d /var/empty -s /sbin/nologin
97cff456
PM
126 (pw -V ${DESTDIR}/etc groupshow input -q > /dev/null) || \
127 pw -V ${DESTDIR}/etc groupadd input -g 43
82aec1d3
FT
128 (pw -V ${DESTDIR}/etc groupshow video -q > /dev/null) || \
129 pw -V ${DESTDIR}/etc groupadd video -g 44
4ae2f111
CP
130 (pw -V ${DESTDIR}/etc groupshow authpf -q > /dev/null) || \
131 pw -V ${DESTDIR}/etc groupadd authpf -g 63
132 (pw -V ${DESTDIR}/etc groupshow _pflogd -q > /dev/null) || \
133 pw -V ${DESTDIR}/etc groupadd _pflogd -g 64
5dcc9b01
HT
134 (pw -V ${DESTDIR}/etc groupshow _sdpd -q > /dev/null) || \
135 pw -V ${DESTDIR}/etc groupadd _sdpd -g 70
33399434
HT
136 (pw -V ${DESTDIR}/etc groupshow _dhcp -q > /dev/null) || \
137 pw -V ${DESTDIR}/etc groupadd _dhcp -g 77
f35282e3 138
7d7c9684
JM
139upgrade_check:
140 @if [ -n "`grep '^sendmail.*/usr/libexec/sendmail/sendmail' ${DESTDIR}/etc/mail/mailer.conf`" ]; then \
141 echo "==================================================================" ; \
142 echo "= sendmail is being removed from the base system." ; \
143 echo "= /etc/mail/mailer.conf is still configured to use sendmail." ; \
144 echo "= See http://www.dragonflybsd.com/docs/docs/newhandbook/mta/" ; \
7f72bdff
JM
145 echo "= Quick: cp /usr/src/libexec/dma/mailer-conf/mailer.conf.dma " ; \
146 echo "= ${DESTDIR}/etc/mail/mailer.conf ; make upgrade" ; \
7d7c9684
JM
147 echo "==================================================================" ; \
148 /usr/bin/false ; \
149 fi
150
45f54b1a 151upgrade_base: upgrade_check preupgrade remove-obsolete-files
5bf6962f 152 # files that should be dirs (not possible with Makefile_upgrade.inc)
589d9f9d 153.for f in usr/include/dev/misc/ppi usr/share/initrd/sbin var/db/entropy
5bf6962f
SW
154 [ -d ${DESTDIR}/${f} ] || rm -f ${DESTDIR}/${f}
155.endfor
5417d53e 156.if !defined(BINARY_UPGRADE) # binary upgrade just copies these files
9c85993e 157 cd ${UPGRADE_SRCDIR}/../share/mk; ${MAKE} install
5417d53e 158.endif
9c85993e 159 cd ${UPGRADE_SRCDIR}; \
e75ceb5b 160 ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 444 \
e50c8f0c 161 ${BINUPDATE} ${DESTDIR}/etc; \
200563ea
SS
162 cap_mkdb ${DESTDIR}/etc/login.conf; \
163 for f in ${BIN1}; do \
164 [ -e "${DESTDIR}/etc/$${f##*/}" ] || \
165 ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 \
166 $$f ${DESTDIR}/etc; \
167 done; \
e75ceb5b 168 ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 555 \
e50c8f0c 169 ${BIN2} ${DESTDIR}/etc;
9c85993e 170 cd ${UPGRADE_SRCDIR}/defaults; ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 444 \
e50c8f0c 171 ${DEFAULTS} ${DESTDIR}/etc/defaults
9c85993e 172 cd ${UPGRADE_SRCDIR}/periodic; ${MAKE} install
52d59648
DF
173 ${LN} -fs /etc/periodic/daily/220.snapshot-hammer2 ${DESTDIR}/etc/periodic/weekly/220.snapshot-hammer2
174 ${LN} -fs /etc/periodic/daily/220.snapshot-hammer2 ${DESTDIR}/etc/periodic/monthly/220.snapshot-hammer2
ffbb93bb 175 mkdir -p ${DESTDIR}/etc/rc.d
ed5666c1 176 cd ${UPGRADE_SRCDIR}/rc.d; ${MAKE} install
e348c2ad 177 cd ${UPGRADE_SRCDIR}/devd; ${MAKE} install
793d540b 178 # "../share/termcap/make etc-termcap" expanded inline here:
4caecbcf 179 ${LN} -fs /usr/share/misc/termcap ${DESTDIR}/etc/termcap
074b248d 180 # "../usr.sbin/rmt/make etc-rmt" expanded inline here:
4caecbcf 181 ${LN} -fs /usr/sbin/rmt ${DESTDIR}/etc/rmt
9c85993e 182 cd ${UPGRADE_SRCDIR}/mtree; ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 444 \
e50c8f0c 183 ${MTREE} ${DESTDIR}/etc/mtree
faf56202 184 cd ${UPGRADE_SRCDIR}/bluetooth; ${MAKE} install
4e387b1a 185 cd ${UPGRADE_SRCDIR}; ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 444 Makefile.usr ${DESTDIR}/usr/Makefile
ffbb93bb
CP
186.if !exists(${DESTDIR}/etc/pam.d)
187 mkdir -p ${DESTDIR}/etc/pam.d
8424467a 188 cd ${UPGRADE_SRCDIR}/pam.d; ${MAKE} install
ffbb93bb
CP
189 sh ${DESTDIR}/etc/pam.d/convert.sh ${DESTDIR}/etc/pam.d ${DESTDIR}/etc/pam.conf
190.else
ed5666c1 191.for pamconf in README convert.sh atrun cron passwd su system
0cd78118
JS
192.if !exists(${DESTDIR}/etc/pam.d/${pamconf})
193 ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 ${UPGRADE_SRCDIR}/pam.d/${pamconf} ${DESTDIR}/etc/pam.d
194.endif
195.endfor
ffbb93bb 196.endif
5417d53e 197.if !defined(BINARY_UPGRADE) # binary upgrade just copies these files
9c85993e 198 cd ${UPGRADE_SRCDIR}/..; ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 444 \
c5a69a2a 199 COPYRIGHT ${DESTDIR}/
e50c8f0c 200.endif
a8f70ff2
MD
201 rm -f ${DESTDIR}/usr/include/machine/ioctl_meteor.h
202 rm -f ${DESTDIR}/usr/include/machine/ioctl_bt848.h
062db326
SS
203 ${LN} -s "../dev/video/bktr/ioctl_bt848.h" ${DESTDIR}/usr/include/machine/ioctl_bt848.h
204 ${LN} -s "../dev/video/meteor/ioctl_meteor.h" ${DESTDIR}/usr/include/machine/ioctl_meteor.h
6483d723 205.if exists(${DESTDIR}/usr/lib/gcc2)
5fb65e14 206 ldconfig -m ${DESTDIR}/usr/lib/gcc2
6483d723 207.endif
3aa9387e
MD
208.for lib in ${COMPAT_LIBS:M*.so.*}
209.if exists(${DESTDIR}/usr/lib/${lib})
2f41aadd 210 chflags noschg ${DESTDIR}/usr/lib/${lib}
3aa9387e
MD
211 rm -f ${DESTDIR}/usr/lib/${lib}
212.endif
213.endfor
0fe46dc6 214 cd ${.CURDIR}/../lib/libssh; ${MAKE} -f Makefile.etc install
f4e821f3
MD
215.if exists(${DESTDIR}/boot)
216.if exists(${DESTDIR}/kernel)
217 chflags noschg ${DESTDIR}/kernel
218 mv ${DESTDIR}/kernel ${DESTDIR}/boot/kernel
219 chflags schg ${DESTDIR}/boot/kernel
220.endif
221.if exists(${DESTDIR}/modules)
222 mv ${DESTDIR}/modules ${DESTDIR}/boot/modules
223 rm -rf ${DESTDIR}/boot/modules/modules
224.endif
225.if exists(${DESTDIR}/kernel.old)
226 mv ${DESTDIR}/kernel.old ${DESTDIR}/boot/kernel.old
227.endif
228.if exists(${DESTDIR}/modules.old)
229 mv ${DESTDIR}/modules.old ${DESTDIR}/boot/modules.old
230 rm -rf ${DESTDIR}/boot/modules.old/modules.old
231.endif
0e0cde4e
SW
232.endif
233.if exists(${DESTDIR}/etc/settings.conf)
234 mv ${DESTDIR}/etc/settings.conf ${DESTDIR}/etc/pkg_radd.conf
8d907485 235.endif
383ea937
SS
236 for ext in a so.0; do \
237 f=${DESTDIR}/usr/lib/libpthread.$$ext; \
238 dest=$$(readlink "$$f"); \
239 case "$$dest" in \
78897f0b 240 libthread_xu.*) \
383ea937
SS
241 ln -fs thread/$$dest $$f ;; \
242 esac; \
243 done
990b98c0 244 ldconfig -R
45e80934 245 mkdir -p ${DESTDIR}/dev
d4c25c30
SW
246 mkdir -p ${DESTDIR}/var/run/sem
247 chmod 1777 ${DESTDIR}/var/run/sem
e50c8f0c 248
8424467a 249# The existence of cleartext_pass_ok means pam config files are out of date.
ed5666c1 250 @set - `fgrep -e cleartext_pass_ok -e pam_opie ${DESTDIR}/etc/pam.d/*`; \
8424467a
PA
251 if [ $$# -gt 0 ] ; \
252 then \
253 echo "It appears your PAM configuration files need to be updated"; \
254 echo "This can be done by manually editing the files or:"; \
255 echo " cd ${UPGRADE_SRCDIR}/pam.d"; \
256 echo " make install"; \
257 fi
258
e497da30
RM
259# Move the dhcpcd duid, secret and lease files back outside the chroot.
260# Then ensure the chroot is empty.
261 DHCPCD_DB="${DESTDIR}/var/db/dhcpcd"; \
262 DHCPCD_CHROOT=`pw -V ${DESTDIR}/etc usershow _dhcp | cut -d: -f9`; \
263 DHCPCD_CHROOT_DB="${DESTDIR}$$DHCPCD_CHROOT/var/db/dhcpcd"; \
264 if [ -f "$$DHCPCD_CHROOT_DB/duid" ] && \
265 [ ! -f "$$DHCPCD_DB/duid" ]; then \
266 mkdir -p "$$DHCPCD_DB" && \
267 mv "$$DHCPCD_CHROOT_DB"/* "$$DHCPCD_DB"; \
268 chown -R root:wheel "$$DHCPCD_DB"; \
269 rm -rf "$$DHCPCD_CHROOT"/*; \
3f2d797e
RM
270 fi; \
271 if [ "$$DHCPCD_CHROOT" != /var/empty ]; then \
272 pw -V ${DESTDIR}/etc usermod _dhcp -d /var/empty; \
273 rm -rf "$$DHCPCD_CHROOT"; \
e497da30
RM
274 fi
275
45f54b1a 276upgrade_etc: upgrade_base remove-deprecated-files
277 @echo "Upgrade was successful"
278
984263bc
MD
279distribution:
280 cd ${.CURDIR}; \
e75ceb5b
MD
281 ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 444 \
282 ${BINUPDATE} ${DESTDIR}/etc; \
984263bc
MD
283 ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 \
284 ${BIN1} ${DESTDIR}/etc; \
285 cap_mkdb ${DESTDIR}/etc/login.conf; \
e75ceb5b 286 ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 555 \
984263bc
MD
287 ${BIN2} ${DESTDIR}/etc; \
288 ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 600 \
d04cfa35 289 master.passwd nsmb.conf ${DESTDIR}/etc; \
984263bc
MD
290 pwd_mkdb -p -d ${DESTDIR}/etc ${DESTDIR}/etc/master.passwd
291 cd ${.CURDIR}/defaults; ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 \
292 ${DEFAULTS} ${DESTDIR}/etc/defaults
be70158d 293 cd ${.CURDIR}/pam.d; ${MAKE} install
c45f7891 294 cd ${.CURDIR}/bluetooth; ${MAKE} install
984263bc 295 cd ${.CURDIR}/periodic; ${MAKE} install
ed5666c1 296 cd ${.CURDIR}/rc.d; ${MAKE} install
e348c2ad 297 cd ${.CURDIR}/devd; ${MAKE} install
984263bc
MD
298 cd ${.CURDIR}/../share/termcap; ${MAKE} etc-termcap
299 cd ${.CURDIR}/../usr.sbin/rmt; ${MAKE} etc-rmt
809ae383
MD
300 cd ${.CURDIR}; \
301 ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 444 \
302 Makefile.usr ${DESTDIR}/usr/Makefile
db2efc88
SS
303.for dir in ${DIRS}
304.if exists(${.CURDIR}/../${dir}/Makefile.etc)
305 cd ${.CURDIR}/../${dir}; ${MAKE} -f Makefile.etc obj
306 cd ${.CURDIR}/../${dir}; ${MAKE} -f Makefile.etc install
984263bc 307.endif
db2efc88 308.endfor
45e80934 309 mkdir -p ${DESTDIR}/dev
984263bc
MD
310 cd ${.CURDIR}/root; \
311 ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 \
312 dot.cshrc ${DESTDIR}/root/.cshrc; \
313 ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 \
314 dot.klogin ${DESTDIR}/root/.klogin; \
315 ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 \
316 dot.login ${DESTDIR}/root/.login; \
317 ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 \
318 dot.profile ${DESTDIR}/root/.profile; \
319 rm -f ${DESTDIR}/.cshrc ${DESTDIR}/.profile; \
984263bc
MD
320 cd ${.CURDIR}/mtree; ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 444 \
321 ${MTREE} ${DESTDIR}/etc/mtree
984263bc
MD
322 cd ${.CURDIR}/ppp; ${INSTALL} -o root -g ${BINGRP} -m 600 \
323 ${PPPCNF} ${DESTDIR}/etc/ppp
324 cd ${.CURDIR}/mail; ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 \
325 ${ETCMAIL} ${DESTDIR}/etc/mail
326 @if [ -d ${DESTDIR}/etc/mail -a -f ${DESTDIR}/etc/mail/aliases -a \
327 ! -f ${DESTDIR}/etc/aliases ]; then \
328 set -x; \
062db326 329 ${LN} -s mail/aliases ${DESTDIR}/etc/aliases; \
984263bc
MD
330 fi
331 ${INSTALL} -o ${BINOWN} -g operator -m 664 /dev/null \
332 ${DESTDIR}/etc/dumpdates
333 ${INSTALL} -o nobody -g ${BINGRP} -m 644 /dev/null \
334 ${DESTDIR}/var/db/locate.database
335 ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 600 /dev/null \
336 ${DESTDIR}/var/log/auth.log
337 ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 600 /dev/null \
338 ${DESTDIR}/var/log/cron
510bc832
CM
339 ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 640 /dev/null \
340 ${DESTDIR}/var/log/daemon
984263bc
MD
341 ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 /dev/null \
342 ${DESTDIR}/var/log/lpd-errs
343 ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 640 /dev/null \
344 ${DESTDIR}/var/log/maillog
59a92d18
AH
345 ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 /dev/null \
346 ${DESTDIR}/var/log/lastlogx
984263bc
MD
347 ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 /dev/null \
348 ${DESTDIR}/var/log/messages
349 ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 600 /dev/null \
350 ${DESTDIR}/var/log/security
351 ${INSTALL} -o ${BINOWN} -g network -m 640 /dev/null \
352 ${DESTDIR}/var/log/slip.log
353 ${INSTALL} -o ${BINOWN} -g network -m 640 /dev/null \
354 ${DESTDIR}/var/log/ppp.log
59a92d18
AH
355 ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 /dev/null \
356 ${DESTDIR}/var/log/wtmpx
59a92d18
AH
357 ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 /dev/null \
358 ${DESTDIR}/var/run/utmpx
984263bc
MD
359 ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 ${.CURDIR}/minfree \
360 ${DESTDIR}/var/crash
361 cd ${.CURDIR}/..; ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 444 \
c5a69a2a 362 COPYRIGHT ${DESTDIR}/
b4a441a1
SW
363 rm -f ${DESTDIR}/usr/include/machine/ioctl_bt848.h
364 rm -f ${DESTDIR}/usr/include/machine/ioctl_meteor.h
37ebbf5c
SW
365 ${LN} -s "../dev/video/bktr/ioctl_bt848.h" ${DESTDIR}/usr/include/machine/ioctl_bt848.h
366 ${LN} -s "../dev/video/meteor/ioctl_meteor.h" ${DESTDIR}/usr/include/machine/ioctl_meteor.h
984263bc
MD
367.if !defined(NOMAN)
368 cd ${.CURDIR}/../share/man; ${MAKE} makedb
369.endif
370
b6222364
MD
371#
372#
984263bc 373distrib-dirs:
9758d73a
SW
374 mtree ${MTREE_FSCHG} -deU -f ${.CURDIR}/mtree/BSD.root.dist \
375 -p ${DESTDIR}/
376 mtree ${MTREE_FSCHG} -deU -f ${.CURDIR}/mtree/BSD.var.dist \
377 -p ${DESTDIR}/var
378 mtree ${MTREE_FSCHG} -deU -f ${.CURDIR}/mtree/BSD.usr.dist \
379 -p ${DESTDIR}/usr
380 mtree ${MTREE_FSCHG} -deU -f ${.CURDIR}/mtree/BSD.include.dist \
984263bc 381 -p ${DESTDIR}/usr/include
b6222364
MD
382 -chflags xlink ${DESTDIR}/* ${DESTDIR}/usr/* ${DESTDIR}/var/* \
383 ${DESTDIR}/home/*
5dfe6aeb 384 cd ${DESTDIR}/; test -e sys || (rm -f sys; ${LN} -s usr/src/sys sys)
bf31779e 385.if !defined(NO_SHARE)
984263bc 386 cd ${DESTDIR}/usr/share/nls; \
0992592e 387 rm -rf "POSIX"; \
388 rm -rf "en_US.US-ASCII"; \
389 ${LN} -s "C" "POSIX"; \
390 ${LN} -s "C" "en_US.US-ASCII"
bf31779e 391.endif
984263bc
MD
392
393etc-examples:
394 cd ${.CURDIR}; ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 444 \
d04cfa35 395 ${BINUPDATE} ${BIN1} ${BIN2} nsmb.conf \
984263bc
MD
396 ${DESTDIR}/usr/share/examples/etc
397 cd ${.CURDIR}/defaults; ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 444 \
398 ${DEFAULTS} ${DESTDIR}/usr/share/examples/etc/defaults
399
400.include <bsd.prog.mk>