sys/vfs/hammer2: Fix hammer2_get_vtype() for unsupported objtype
[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#
6951437f 8BINUPDATE= devd.conf fbtab 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 \
6951437f 29 ftpusers gettytab 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
d5d36918
DF
61CHECK_DEPRECATED_DIRS+= /usr/local
62
6aa3516d 63# Include file which contains obsolete files
06c196ce
MS
64.if exists(${DESTDIR}/etc/upgrade/Makefile_upgrade.inc)
65.include "${DESTDIR}/etc/upgrade/Makefile_upgrade.inc"
6aa3516d
MS
66.endif
67
68remove-obsolete-files:
5cccfb7b
SW
69 @if [ -z "${TO_REMOVE}" ]; then \
70 echo "Please do a 'make installworld' first."; \
71 echo "See build(7) for further information."; \
b3badcb0 72 /usr/bin/false; \
5cccfb7b 73 fi;
06c196ce 74 @echo "===> Remove now obsolete files"
6aa3516d 75 @for item in ${TO_REMOVE}; do \
fbad3fd2 76 if [ -e ${DESTDIR}$${item} -o -L ${DESTDIR}$${item} ]; then \
d33566e4 77 echo "${DESTDIR}$${item}"; \
ca1740ee 78 chflags -Rf noschg "${DESTDIR}$${item}"; \
6aa3516d
MS
79 rm -rf "${DESTDIR}$${item}"; \
80 fi; \
1f4fed00 81 done;
6aa3516d 82
45f54b1a 83remove-deprecated-files:
84.if defined(REMOVE_DEPRECATED)
85 @echo "===> Remove now deprecated files"
86 @for item in ${TO_REMOVE_LATE}; do \
87 if [ -e ${DESTDIR}$${item} -o -L ${DESTDIR}$${item} ]; then \
88 echo "${DESTDIR}$${item}"; \
89 chflags -Rf noschg "${DESTDIR}$${item}"; \
90 rm -rf "${DESTDIR}$${item}"; \
91 fi; \
92 done;
93.else
d5d36918
DF
94 @make check-deprecated-files
95.endif
96
97check-deprecated-files:
45f54b1a 98 @echo "===> Checking for deprecated files"
92d555e2 99 @echo " (harmless ELF linker warnings may appear here)"
d5d36918
DF
100 @tmpldd=`mktemp -t chkldd`; \
101 chroot ${DESTDIR}/ find ${CHECK_DEPRECATED_DIRS:O:u} \
102 -type f \( -name '*.so*' -o -perm +111 \) | \
103 chroot ${DESTDIR}/ xargs ldd 2>/dev/null > $${tmpldd}; \
104 count=0; for item in ${TO_REMOVE_LATE}; do \
45f54b1a 105 if [ -e ${DESTDIR}$${item} -o -L ${DESTDIR}$${item} ]; then \
106 echo "${DESTDIR}$${item} is deprecated"; \
d5d36918
DF
107 deps=""; \
108 for object in `cat $${tmpldd} | awk -v library=$${item} \
109 -f ${.CURDIR}/../tools/tools/chkldd/chkldd.awk`; do \
110 echo "${TO_REMOVE_LATE}" | grep -q "$${object}" \
111 || deps="$${deps} $${object}"; \
112 done; \
113 if [ -n "$${deps}" ]; then \
114 echo " but it's still linked from these objects:"; \
115 echo " " $${deps}; \
116 echo ""; \
117 fi; \
45f54b1a 118 count=`expr $$count + 1`; \
119 fi; \
120 done; \
d5d36918 121 rm $${tmpldd}; \
45f54b1a 122 if [ "$$count" -gt 0 ]; then \
123 echo "==================================================================" ; \
124 echo "= You have $$count now deprecated files." ; \
125 echo "= Once you are sure that none of your third party (ports or local)" ; \
d39b3444 126 echo "= software are still using them, rerun with:" ; \
127 echo "= make upgrade -DREMOVE_DEPRECATED" ; \
45f54b1a 128 echo "==================================================================" ; \
129 fi;
45f54b1a 130
f35282e3 131preupgrade:
05201199
SW
132 (pw -V ${DESTDIR}/etc usershow mail -q > /dev/null) || \
133 pw -V ${DESTDIR}/etc useradd mail -u 6 -g 6 \
134 -c "Mail user" \
135 -d /nonexistent -s /sbin/nologin
4ae2f111
CP
136 (pw -V ${DESTDIR}/etc usershow _pflogd -q > /dev/null) || \
137 pw -V ${DESTDIR}/etc useradd _pflogd -u 64 \
138 -c "pflogd privsep user" \
f35282e3 139 -d /var/empty -s /sbin/nologin
5dcc9b01
HT
140 (pw -V ${DESTDIR}/etc usershow _sdpd -q > /dev/null) || \
141 pw -V ${DESTDIR}/etc useradd _sdpd -u 70 \
142 -c "sdpd privsep user" \
143 -d /var/empty -s /sbin/nologin
33399434
HT
144 (pw -V ${DESTDIR}/etc usershow _dhcp -q > /dev/null) || \
145 pw -V ${DESTDIR}/etc useradd _dhcp -u 77 \
146 -c "DHCP programs" \
3f2d797e 147 -d /var/empty -s /sbin/nologin
97cff456
PM
148 (pw -V ${DESTDIR}/etc groupshow input -q > /dev/null) || \
149 pw -V ${DESTDIR}/etc groupadd input -g 43
82aec1d3
FT
150 (pw -V ${DESTDIR}/etc groupshow video -q > /dev/null) || \
151 pw -V ${DESTDIR}/etc groupadd video -g 44
4ae2f111
CP
152 (pw -V ${DESTDIR}/etc groupshow authpf -q > /dev/null) || \
153 pw -V ${DESTDIR}/etc groupadd authpf -g 63
154 (pw -V ${DESTDIR}/etc groupshow _pflogd -q > /dev/null) || \
155 pw -V ${DESTDIR}/etc groupadd _pflogd -g 64
5dcc9b01
HT
156 (pw -V ${DESTDIR}/etc groupshow _sdpd -q > /dev/null) || \
157 pw -V ${DESTDIR}/etc groupadd _sdpd -g 70
33399434
HT
158 (pw -V ${DESTDIR}/etc groupshow _dhcp -q > /dev/null) || \
159 pw -V ${DESTDIR}/etc groupadd _dhcp -g 77
f35282e3 160
7d7c9684
JM
161upgrade_check:
162 @if [ -n "`grep '^sendmail.*/usr/libexec/sendmail/sendmail' ${DESTDIR}/etc/mail/mailer.conf`" ]; then \
163 echo "==================================================================" ; \
164 echo "= sendmail is being removed from the base system." ; \
165 echo "= /etc/mail/mailer.conf is still configured to use sendmail." ; \
166 echo "= See http://www.dragonflybsd.com/docs/docs/newhandbook/mta/" ; \
7f72bdff
JM
167 echo "= Quick: cp /usr/src/libexec/dma/mailer-conf/mailer.conf.dma " ; \
168 echo "= ${DESTDIR}/etc/mail/mailer.conf ; make upgrade" ; \
7d7c9684
JM
169 echo "==================================================================" ; \
170 /usr/bin/false ; \
171 fi
172
45f54b1a 173upgrade_base: upgrade_check preupgrade remove-obsolete-files
5bf6962f 174 # files that should be dirs (not possible with Makefile_upgrade.inc)
589d9f9d 175.for f in usr/include/dev/misc/ppi usr/share/initrd/sbin var/db/entropy
5bf6962f
SW
176 [ -d ${DESTDIR}/${f} ] || rm -f ${DESTDIR}/${f}
177.endfor
5417d53e 178.if !defined(BINARY_UPGRADE) # binary upgrade just copies these files
9c85993e 179 cd ${UPGRADE_SRCDIR}/../share/mk; ${MAKE} install
5417d53e 180.endif
9c85993e 181 cd ${UPGRADE_SRCDIR}; \
e75ceb5b 182 ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 444 \
e50c8f0c 183 ${BINUPDATE} ${DESTDIR}/etc; \
200563ea
SS
184 cap_mkdb ${DESTDIR}/etc/login.conf; \
185 for f in ${BIN1}; do \
186 [ -e "${DESTDIR}/etc/$${f##*/}" ] || \
187 ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 \
188 $$f ${DESTDIR}/etc; \
189 done; \
e75ceb5b 190 ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 555 \
e50c8f0c 191 ${BIN2} ${DESTDIR}/etc;
9c85993e 192 cd ${UPGRADE_SRCDIR}/defaults; ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 444 \
e50c8f0c 193 ${DEFAULTS} ${DESTDIR}/etc/defaults
9c85993e 194 cd ${UPGRADE_SRCDIR}/periodic; ${MAKE} install
ffbb93bb 195 mkdir -p ${DESTDIR}/etc/rc.d
ed5666c1 196 cd ${UPGRADE_SRCDIR}/rc.d; ${MAKE} install
e348c2ad 197 cd ${UPGRADE_SRCDIR}/devd; ${MAKE} install
793d540b 198 # "../share/termcap/make etc-termcap" expanded inline here:
4caecbcf 199 ${LN} -fs /usr/share/misc/termcap ${DESTDIR}/etc/termcap
074b248d 200 # "../usr.sbin/rmt/make etc-rmt" expanded inline here:
4caecbcf 201 ${LN} -fs /usr/sbin/rmt ${DESTDIR}/etc/rmt
9c85993e 202 cd ${UPGRADE_SRCDIR}/mtree; ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 444 \
e50c8f0c 203 ${MTREE} ${DESTDIR}/etc/mtree
faf56202 204 cd ${UPGRADE_SRCDIR}/bluetooth; ${MAKE} install
d19ef5a2 205 cd ${UPGRADE_SRCDIR}/calendar; ${MAKE} install
4e387b1a 206 cd ${UPGRADE_SRCDIR}; ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 444 Makefile.usr ${DESTDIR}/usr/Makefile
ffbb93bb
CP
207.if !exists(${DESTDIR}/etc/pam.d)
208 mkdir -p ${DESTDIR}/etc/pam.d
8424467a 209 cd ${UPGRADE_SRCDIR}/pam.d; ${MAKE} install
ffbb93bb
CP
210 sh ${DESTDIR}/etc/pam.d/convert.sh ${DESTDIR}/etc/pam.d ${DESTDIR}/etc/pam.conf
211.else
ed5666c1 212.for pamconf in README convert.sh atrun cron passwd su system
0cd78118
JS
213.if !exists(${DESTDIR}/etc/pam.d/${pamconf})
214 ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 ${UPGRADE_SRCDIR}/pam.d/${pamconf} ${DESTDIR}/etc/pam.d
215.endif
216.endfor
ffbb93bb 217.endif
5417d53e 218.if !defined(BINARY_UPGRADE) # binary upgrade just copies these files
9c85993e 219 cd ${UPGRADE_SRCDIR}/..; ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 444 \
c5a69a2a 220 COPYRIGHT ${DESTDIR}/
e50c8f0c 221.endif
a8f70ff2
MD
222 rm -f ${DESTDIR}/usr/include/machine/ioctl_meteor.h
223 rm -f ${DESTDIR}/usr/include/machine/ioctl_bt848.h
062db326
SS
224 ${LN} -s "../dev/video/bktr/ioctl_bt848.h" ${DESTDIR}/usr/include/machine/ioctl_bt848.h
225 ${LN} -s "../dev/video/meteor/ioctl_meteor.h" ${DESTDIR}/usr/include/machine/ioctl_meteor.h
6483d723 226.if exists(${DESTDIR}/usr/lib/gcc2)
5fb65e14 227 ldconfig -m ${DESTDIR}/usr/lib/gcc2
6483d723 228.endif
3aa9387e
MD
229.for lib in ${COMPAT_LIBS:M*.so.*}
230.if exists(${DESTDIR}/usr/lib/${lib})
2f41aadd 231 chflags noschg ${DESTDIR}/usr/lib/${lib}
3aa9387e
MD
232 rm -f ${DESTDIR}/usr/lib/${lib}
233.endif
234.endfor
0fe46dc6 235 cd ${.CURDIR}/../lib/libssh; ${MAKE} -f Makefile.etc install
f4e821f3
MD
236.if exists(${DESTDIR}/boot)
237.if exists(${DESTDIR}/kernel)
238 chflags noschg ${DESTDIR}/kernel
239 mv ${DESTDIR}/kernel ${DESTDIR}/boot/kernel
240 chflags schg ${DESTDIR}/boot/kernel
241.endif
242.if exists(${DESTDIR}/modules)
243 mv ${DESTDIR}/modules ${DESTDIR}/boot/modules
244 rm -rf ${DESTDIR}/boot/modules/modules
245.endif
246.if exists(${DESTDIR}/kernel.old)
247 mv ${DESTDIR}/kernel.old ${DESTDIR}/boot/kernel.old
248.endif
249.if exists(${DESTDIR}/modules.old)
250 mv ${DESTDIR}/modules.old ${DESTDIR}/boot/modules.old
251 rm -rf ${DESTDIR}/boot/modules.old/modules.old
252.endif
0e0cde4e
SW
253.endif
254.if exists(${DESTDIR}/etc/settings.conf)
255 mv ${DESTDIR}/etc/settings.conf ${DESTDIR}/etc/pkg_radd.conf
8d907485 256.endif
383ea937
SS
257 for ext in a so.0; do \
258 f=${DESTDIR}/usr/lib/libpthread.$$ext; \
259 dest=$$(readlink "$$f"); \
260 case "$$dest" in \
78897f0b 261 libthread_xu.*) \
383ea937
SS
262 ln -fs thread/$$dest $$f ;; \
263 esac; \
264 done
990b98c0 265 ldconfig -R
45e80934 266 mkdir -p ${DESTDIR}/dev
d4c25c30
SW
267 mkdir -p ${DESTDIR}/var/run/sem
268 chmod 1777 ${DESTDIR}/var/run/sem
e50c8f0c 269
8424467a 270# The existence of cleartext_pass_ok means pam config files are out of date.
ed5666c1 271 @set - `fgrep -e cleartext_pass_ok -e pam_opie ${DESTDIR}/etc/pam.d/*`; \
8424467a
PA
272 if [ $$# -gt 0 ] ; \
273 then \
274 echo "It appears your PAM configuration files need to be updated"; \
275 echo "This can be done by manually editing the files or:"; \
276 echo " cd ${UPGRADE_SRCDIR}/pam.d"; \
277 echo " make install"; \
278 fi
279
e497da30
RM
280# Move the dhcpcd duid, secret and lease files back outside the chroot.
281# Then ensure the chroot is empty.
282 DHCPCD_DB="${DESTDIR}/var/db/dhcpcd"; \
283 DHCPCD_CHROOT=`pw -V ${DESTDIR}/etc usershow _dhcp | cut -d: -f9`; \
284 DHCPCD_CHROOT_DB="${DESTDIR}$$DHCPCD_CHROOT/var/db/dhcpcd"; \
285 if [ -f "$$DHCPCD_CHROOT_DB/duid" ] && \
286 [ ! -f "$$DHCPCD_DB/duid" ]; then \
287 mkdir -p "$$DHCPCD_DB" && \
288 mv "$$DHCPCD_CHROOT_DB"/* "$$DHCPCD_DB"; \
289 chown -R root:wheel "$$DHCPCD_DB"; \
290 rm -rf "$$DHCPCD_CHROOT"/*; \
3f2d797e
RM
291 fi; \
292 if [ "$$DHCPCD_CHROOT" != /var/empty ]; then \
293 pw -V ${DESTDIR}/etc usermod _dhcp -d /var/empty; \
294 rm -rf "$$DHCPCD_CHROOT"; \
e497da30
RM
295 fi
296
45f54b1a 297upgrade_etc: upgrade_base remove-deprecated-files
298 @echo "Upgrade was successful"
299
984263bc
MD
300distribution:
301 cd ${.CURDIR}; \
e75ceb5b
MD
302 ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 444 \
303 ${BINUPDATE} ${DESTDIR}/etc; \
984263bc
MD
304 ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 \
305 ${BIN1} ${DESTDIR}/etc; \
306 cap_mkdb ${DESTDIR}/etc/login.conf; \
e75ceb5b 307 ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 555 \
984263bc
MD
308 ${BIN2} ${DESTDIR}/etc; \
309 ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 600 \
d04cfa35 310 master.passwd nsmb.conf ${DESTDIR}/etc; \
984263bc
MD
311 pwd_mkdb -p -d ${DESTDIR}/etc ${DESTDIR}/etc/master.passwd
312 cd ${.CURDIR}/defaults; ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 \
313 ${DEFAULTS} ${DESTDIR}/etc/defaults
be70158d 314 cd ${.CURDIR}/pam.d; ${MAKE} install
c45f7891 315 cd ${.CURDIR}/bluetooth; ${MAKE} install
d19ef5a2 316 cd ${.CURDIR}/calendar; ${MAKE} install
984263bc 317 cd ${.CURDIR}/periodic; ${MAKE} install
ed5666c1 318 cd ${.CURDIR}/rc.d; ${MAKE} install
e348c2ad 319 cd ${.CURDIR}/devd; ${MAKE} install
984263bc
MD
320 cd ${.CURDIR}/../share/termcap; ${MAKE} etc-termcap
321 cd ${.CURDIR}/../usr.sbin/rmt; ${MAKE} etc-rmt
809ae383
MD
322 cd ${.CURDIR}; \
323 ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 444 \
324 Makefile.usr ${DESTDIR}/usr/Makefile
db2efc88
SS
325.for dir in ${DIRS}
326.if exists(${.CURDIR}/../${dir}/Makefile.etc)
327 cd ${.CURDIR}/../${dir}; ${MAKE} -f Makefile.etc obj
328 cd ${.CURDIR}/../${dir}; ${MAKE} -f Makefile.etc install
984263bc 329.endif
db2efc88 330.endfor
45e80934 331 mkdir -p ${DESTDIR}/dev
fbed7187 332 cd ${.CURDIR}/../share/skel; \
984263bc
MD
333 ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 \
334 dot.cshrc ${DESTDIR}/root/.cshrc; \
984263bc
MD
335 ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 \
336 dot.login ${DESTDIR}/root/.login; \
337 ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 \
338 dot.profile ${DESTDIR}/root/.profile; \
339 rm -f ${DESTDIR}/.cshrc ${DESTDIR}/.profile; \
984263bc
MD
340 cd ${.CURDIR}/mtree; ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 444 \
341 ${MTREE} ${DESTDIR}/etc/mtree
984263bc
MD
342 cd ${.CURDIR}/ppp; ${INSTALL} -o root -g ${BINGRP} -m 600 \
343 ${PPPCNF} ${DESTDIR}/etc/ppp
344 cd ${.CURDIR}/mail; ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 \
345 ${ETCMAIL} ${DESTDIR}/etc/mail
346 @if [ -d ${DESTDIR}/etc/mail -a -f ${DESTDIR}/etc/mail/aliases -a \
347 ! -f ${DESTDIR}/etc/aliases ]; then \
348 set -x; \
062db326 349 ${LN} -s mail/aliases ${DESTDIR}/etc/aliases; \
984263bc
MD
350 fi
351 ${INSTALL} -o ${BINOWN} -g operator -m 664 /dev/null \
352 ${DESTDIR}/etc/dumpdates
353 ${INSTALL} -o nobody -g ${BINGRP} -m 644 /dev/null \
354 ${DESTDIR}/var/db/locate.database
355 ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 600 /dev/null \
356 ${DESTDIR}/var/log/auth.log
357 ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 600 /dev/null \
358 ${DESTDIR}/var/log/cron
510bc832
CM
359 ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 640 /dev/null \
360 ${DESTDIR}/var/log/daemon
984263bc
MD
361 ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 /dev/null \
362 ${DESTDIR}/var/log/lpd-errs
363 ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 640 /dev/null \
364 ${DESTDIR}/var/log/maillog
59a92d18
AH
365 ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 /dev/null \
366 ${DESTDIR}/var/log/lastlogx
984263bc
MD
367 ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 /dev/null \
368 ${DESTDIR}/var/log/messages
369 ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 600 /dev/null \
370 ${DESTDIR}/var/log/security
371 ${INSTALL} -o ${BINOWN} -g network -m 640 /dev/null \
372 ${DESTDIR}/var/log/slip.log
373 ${INSTALL} -o ${BINOWN} -g network -m 640 /dev/null \
374 ${DESTDIR}/var/log/ppp.log
59a92d18
AH
375 ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 /dev/null \
376 ${DESTDIR}/var/log/wtmpx
59a92d18
AH
377 ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 /dev/null \
378 ${DESTDIR}/var/run/utmpx
984263bc
MD
379 ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 ${.CURDIR}/minfree \
380 ${DESTDIR}/var/crash
381 cd ${.CURDIR}/..; ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 444 \
c5a69a2a 382 COPYRIGHT ${DESTDIR}/
b4a441a1
SW
383 rm -f ${DESTDIR}/usr/include/machine/ioctl_bt848.h
384 rm -f ${DESTDIR}/usr/include/machine/ioctl_meteor.h
37ebbf5c
SW
385 ${LN} -s "../dev/video/bktr/ioctl_bt848.h" ${DESTDIR}/usr/include/machine/ioctl_bt848.h
386 ${LN} -s "../dev/video/meteor/ioctl_meteor.h" ${DESTDIR}/usr/include/machine/ioctl_meteor.h
984263bc
MD
387.if !defined(NOMAN)
388 cd ${.CURDIR}/../share/man; ${MAKE} makedb
389.endif
390
b6222364
MD
391#
392#
984263bc 393distrib-dirs:
9758d73a
SW
394 mtree ${MTREE_FSCHG} -deU -f ${.CURDIR}/mtree/BSD.root.dist \
395 -p ${DESTDIR}/
396 mtree ${MTREE_FSCHG} -deU -f ${.CURDIR}/mtree/BSD.var.dist \
397 -p ${DESTDIR}/var
398 mtree ${MTREE_FSCHG} -deU -f ${.CURDIR}/mtree/BSD.usr.dist \
399 -p ${DESTDIR}/usr
400 mtree ${MTREE_FSCHG} -deU -f ${.CURDIR}/mtree/BSD.include.dist \
984263bc 401 -p ${DESTDIR}/usr/include
b6222364
MD
402 -chflags xlink ${DESTDIR}/* ${DESTDIR}/usr/* ${DESTDIR}/var/* \
403 ${DESTDIR}/home/*
5dfe6aeb 404 cd ${DESTDIR}/; test -e sys || (rm -f sys; ${LN} -s usr/src/sys sys)
bf31779e 405.if !defined(NO_SHARE)
984263bc 406 cd ${DESTDIR}/usr/share/nls; \
0992592e 407 rm -rf "POSIX"; \
408 rm -rf "en_US.US-ASCII"; \
409 ${LN} -s "C" "POSIX"; \
410 ${LN} -s "C" "en_US.US-ASCII"
bf31779e 411.endif
984263bc
MD
412
413etc-examples:
414 cd ${.CURDIR}; ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 444 \
d04cfa35 415 ${BINUPDATE} ${BIN1} ${BIN2} nsmb.conf \
984263bc
MD
416 ${DESTDIR}/usr/share/examples/etc
417 cd ${.CURDIR}/defaults; ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 444 \
418 ${DEFAULTS} ${DESTDIR}/usr/share/examples/etc/defaults
419
420.include <bsd.prog.mk>