Deleted Added
full compact
Makefile (142794) Makefile (142838)
1# from: @(#)Makefile 5.11 (Berkeley) 5/21/91
1# from: @(#)Makefile 5.11 (Berkeley) 5/21/91
2# $FreeBSD: head/etc/Makefile 142794 2005-02-28 14:16:53Z ru $
2# $FreeBSD: head/etc/Makefile 142838 2005-02-28 22:55:43Z ru $
3
4.if !defined(NO_SENDMAIL)
5SUBDIR= sendmail
6.endif
7
8BIN1= amd.map apmd.conf auth.conf \
9 crontab csh.cshrc csh.login csh.logout devd.conf devfs.conf \
10 dhclient.conf disktab fbtab ftpusers gettytab group \
11 hosts hosts.allow hosts.equiv hosts.lpd \
12 inetd.conf login.access login.conf \
13 mac.conf motd netconfig network.subr networks newsyslog.conf \
14 pf.conf pf.os phones profile protocols \
15 rc rc.firewall rc.firewall6 rc.sendmail rc.shutdown \
16 rc.subr remote rpc services \
17 shells sysctl.conf syslog.conf usbd.conf \
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
22.if !defined(NO_LPR)
23BIN1+= printcap
24.endif
25
26.if !defined(NO_CRYPT) && !defined(NO_OPENSSL)
27.if !defined(NO_OPENSSH)
28SSH= ${.CURDIR}/../crypto/openssh/ssh_config \
29 ${.CURDIR}/../crypto/openssh/sshd_config \
30 ${.CURDIR}/../crypto/openssh/moduli
31.endif
32SSL= ${.CURDIR}/../crypto/openssl/apps/openssl.cnf
33.endif
34
35# -rwxr-xr-x root:wheel, for the new cron root:wheel
36BIN2= netstart pccard_ether rc.suspend rc.resume
37
38MTREE= BSD.include.dist BSD.local.dist BSD.root.dist BSD.usr.dist \
39 BSD.var.dist BSD.x11.dist BSD.x11-4.dist
40.if !defined(NO_SENDMAIL)
41MTREE+= BSD.sendmail.dist
42.endif
43.if !defined(NO_BIND)
44MTREE+= BIND.chroot.dist
45.if defined(WITH_BIND_LIBS)
46MTREE+= BIND.include.dist
47.endif
48.endif
49
50.if !defined(NO_BIND_ETC) && !defined(NO_BIND)
51NAMEDB= PROTO.localhost.rev PROTO.localhost-v6.rev named.conf named.root \
52 make-localhost
53.endif
54
55PPPCNF= ppp.conf
56
57.if defined(NO_SENDMAIL)
58ETCMAIL=mailer.conf aliases
59.else
60ETCMAIL=Makefile README mailer.conf access.sample virtusertable.sample \
61 mailertable.sample aliases
62.endif
63
64# Special top level files for FreeBSD
65FREEBSD=COPYRIGHT
66
67afterinstall:
68.if !defined(NO_MAN)
69 cd ${.CURDIR}/../share/man; ${MAKE} makedb
70.endif
71
72distribute:
73 cd ${.CURDIR} ; ${MAKE} install DESTDIR=${DISTDIR}/${DISTRIBUTION}
74 cd ${.CURDIR} ; ${MAKE} distribution DESTDIR=${DISTDIR}/${DISTRIBUTION}
75
76.include <bsd.endian.mk>
77.if ${TARGET_ENDIANNESS} == "1234"
78CAP_MKDB_ENDIAN= -l
3
4.if !defined(NO_SENDMAIL)
5SUBDIR= sendmail
6.endif
7
8BIN1= amd.map apmd.conf auth.conf \
9 crontab csh.cshrc csh.login csh.logout devd.conf devfs.conf \
10 dhclient.conf disktab fbtab ftpusers gettytab group \
11 hosts hosts.allow hosts.equiv hosts.lpd \
12 inetd.conf login.access login.conf \
13 mac.conf motd netconfig network.subr networks newsyslog.conf \
14 pf.conf pf.os phones profile protocols \
15 rc rc.firewall rc.firewall6 rc.sendmail rc.shutdown \
16 rc.subr remote rpc services \
17 shells sysctl.conf syslog.conf usbd.conf \
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
22.if !defined(NO_LPR)
23BIN1+= printcap
24.endif
25
26.if !defined(NO_CRYPT) && !defined(NO_OPENSSL)
27.if !defined(NO_OPENSSH)
28SSH= ${.CURDIR}/../crypto/openssh/ssh_config \
29 ${.CURDIR}/../crypto/openssh/sshd_config \
30 ${.CURDIR}/../crypto/openssh/moduli
31.endif
32SSL= ${.CURDIR}/../crypto/openssl/apps/openssl.cnf
33.endif
34
35# -rwxr-xr-x root:wheel, for the new cron root:wheel
36BIN2= netstart pccard_ether rc.suspend rc.resume
37
38MTREE= BSD.include.dist BSD.local.dist BSD.root.dist BSD.usr.dist \
39 BSD.var.dist BSD.x11.dist BSD.x11-4.dist
40.if !defined(NO_SENDMAIL)
41MTREE+= BSD.sendmail.dist
42.endif
43.if !defined(NO_BIND)
44MTREE+= BIND.chroot.dist
45.if defined(WITH_BIND_LIBS)
46MTREE+= BIND.include.dist
47.endif
48.endif
49
50.if !defined(NO_BIND_ETC) && !defined(NO_BIND)
51NAMEDB= PROTO.localhost.rev PROTO.localhost-v6.rev named.conf named.root \
52 make-localhost
53.endif
54
55PPPCNF= ppp.conf
56
57.if defined(NO_SENDMAIL)
58ETCMAIL=mailer.conf aliases
59.else
60ETCMAIL=Makefile README mailer.conf access.sample virtusertable.sample \
61 mailertable.sample aliases
62.endif
63
64# Special top level files for FreeBSD
65FREEBSD=COPYRIGHT
66
67afterinstall:
68.if !defined(NO_MAN)
69 cd ${.CURDIR}/../share/man; ${MAKE} makedb
70.endif
71
72distribute:
73 cd ${.CURDIR} ; ${MAKE} install DESTDIR=${DISTDIR}/${DISTRIBUTION}
74 cd ${.CURDIR} ; ${MAKE} distribution DESTDIR=${DISTDIR}/${DISTRIBUTION}
75
76.include <bsd.endian.mk>
77.if ${TARGET_ENDIANNESS} == "1234"
78CAP_MKDB_ENDIAN= -l
79PWD_MKDB_ENDIAN= -L
79.elif ${TARGET_ENDIANNESS} == "4321"
80CAP_MKDB_ENDIAN= -b
80.elif ${TARGET_ENDIANNESS} == "4321"
81CAP_MKDB_ENDIAN= -b
82PWD_MKDB_ENDIAN= -B
81.else
82CAP_MKDB_ENDIAN=
83.endif
84
85distribution:
86 cd ${.CURDIR}; \
87 ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 \
88 ${BIN1} ${DESTDIR}/etc; \
89 cap_mkdb ${CAP_MKDB_ENDIAN} ${DESTDIR}/etc/login.conf; \
90 ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 755 \
91 ${BIN2} ${DESTDIR}/etc; \
92 ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 600 \
93 master.passwd nsmb.conf opieaccess ${DESTDIR}/etc; \
83.else
84CAP_MKDB_ENDIAN=
85.endif
86
87distribution:
88 cd ${.CURDIR}; \
89 ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 \
90 ${BIN1} ${DESTDIR}/etc; \
91 cap_mkdb ${CAP_MKDB_ENDIAN} ${DESTDIR}/etc/login.conf; \
92 ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 755 \
93 ${BIN2} ${DESTDIR}/etc; \
94 ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 600 \
95 master.passwd nsmb.conf opieaccess ${DESTDIR}/etc; \
94 pwd_mkdb -p -d ${DESTDIR}/etc ${DESTDIR}/etc/master.passwd
96 pwd_mkdb ${PWD_MKDB_ENDIAN} -p -d ${DESTDIR}/etc \
97 ${DESTDIR}/etc/master.passwd
95 cd ${.CURDIR}/bluetooth; ${MAKE} install
96 cd ${.CURDIR}/defaults; ${MAKE} install
97 cd ${.CURDIR}/periodic; ${MAKE} install
98 cd ${.CURDIR}/rc.d; ${MAKE} install
99 cd ${.CURDIR}/../gnu/usr.bin/send-pr; ${MAKE} etc-gnats-freefall
100 cd ${.CURDIR}/../share/termcap; ${MAKE} etc-termcap
101 cd ${.CURDIR}/../usr.sbin/rmt; ${MAKE} etc-rmt
102 cd ${.CURDIR}/pam.d; ${MAKE} install
103.if !defined(NO_I4B)
104 cd ${.CURDIR}/isdn; ${MAKE} install
105.endif
106.if !defined(NO_SENDMAIL)
107 cd ${.CURDIR}/sendmail; ${MAKE} distribution
108.endif
109.if !defined(NO_OPENSSL)
110.if !defined(NO_OPENSSH)
111 cd ${.CURDIR}; ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 \
112 ${SSH} ${DESTDIR}/etc/ssh
113.endif
114 cd ${.CURDIR}; ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 \
115 ${SSL} ${DESTDIR}/etc/ssl
116.endif
117.if !defined(NO_KERBEROS)
118 cd ${.CURDIR}/root; \
119 ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 \
120 dot.k5login ${DESTDIR}/root/.k5login;
121.endif
122 cd ${.CURDIR}/root; \
123 ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 \
124 dot.cshrc ${DESTDIR}/root/.cshrc; \
125 ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 \
126 dot.login ${DESTDIR}/root/.login; \
127 ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 \
128 dot.profile ${DESTDIR}/root/.profile; \
129 rm -f ${DESTDIR}/.cshrc ${DESTDIR}/.profile; \
130 ln ${DESTDIR}/root/.cshrc ${DESTDIR}/.cshrc; \
131 ln ${DESTDIR}/root/.profile ${DESTDIR}/.profile
132 cd ${.CURDIR}/mtree; ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 444 \
133 ${MTREE} ${DESTDIR}/etc/mtree
134.if !defined(NO_BIND)
135.if !defined(NO_BIND_ETC)
136 cd ${.CURDIR}/namedb; ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 \
137 ${NAMEDB} ${DESTDIR}/var/named/etc/namedb
138.endif
139.if !defined(NO_BIND_MTREE)
140 @if [ ! -e ${DESTDIR}/etc/namedb ]; then \
141 set -x; \
142 ln -s ../var/named/etc/namedb ${DESTDIR}/etc/namedb; \
143 fi
144.endif
145.endif
146 cd ${.CURDIR}/ppp; ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 600 \
147 ${PPPCNF} ${DESTDIR}/etc/ppp
148 cd ${.CURDIR}/mail; ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 \
149 ${ETCMAIL} ${DESTDIR}/etc/mail
150 @if [ -d ${DESTDIR}/etc/mail -a -f ${DESTDIR}/etc/mail/aliases -a \
151 ! -f ${DESTDIR}/etc/aliases ]; then \
152 set -x; \
153 ln -s mail/aliases ${DESTDIR}/etc/aliases; \
154 fi
155 ${INSTALL} -o ${BINOWN} -g operator -m 664 /dev/null \
156 ${DESTDIR}/etc/dumpdates
157 ${INSTALL} -o nobody -g ${BINGRP} -m 644 /dev/null \
158 ${DESTDIR}/var/db/locate.database
159 ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 600 /dev/null \
160 ${DESTDIR}/var/log/auth.log
161 ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 600 /dev/null \
162 ${DESTDIR}/var/log/cron
163 ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 600 /dev/null \
164 ${DESTDIR}/var/log/debug.log
165 ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 600 /dev/null \
166 ${DESTDIR}/var/log/xferlog
167 ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 /dev/null \
168 ${DESTDIR}/var/log/lpd-errs
169 ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 640 /dev/null \
170 ${DESTDIR}/var/log/maillog
171 ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 /dev/null \
172 ${DESTDIR}/var/log/lastlog
173 ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 /dev/null \
174 ${DESTDIR}/var/log/messages
175 ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 600 /dev/null \
176 ${DESTDIR}/var/log/security
177 ${INSTALL} -o ${BINOWN} -g network -m 640 /dev/null \
178 ${DESTDIR}/var/log/slip.log
179 ${INSTALL} -o ${BINOWN} -g network -m 640 /dev/null \
180 ${DESTDIR}/var/log/ppp.log
181 ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 /dev/null \
182 ${DESTDIR}/var/log/wtmp
183 ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 /dev/null \
184 ${DESTDIR}/var/run/utmp
185 ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 ${.CURDIR}/minfree \
186 ${DESTDIR}/var/crash
187 cd ${.CURDIR}/..; ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 444 \
188 ${FREEBSD} ${DESTDIR}/
189 ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 444 \
190 ${.CURDIR}/../sys/${MACHINE}/conf/GENERIC.hints \
191 ${DESTDIR}/boot/device.hints
192
193distrib-dirs:
194 mtree -eU ${MTREE_FOLLOWS_SYMLINKS} -f ${.CURDIR}/mtree/BSD.root.dist -p ${DESTDIR}/
195 mtree -eU ${MTREE_FOLLOWS_SYMLINKS} -f ${.CURDIR}/mtree/BSD.var.dist -p ${DESTDIR}/var
196 mtree -eU ${MTREE_FOLLOWS_SYMLINKS} -f ${.CURDIR}/mtree/BSD.usr.dist -p ${DESTDIR}/usr
197 mtree -eU ${MTREE_FOLLOWS_SYMLINKS} -f ${.CURDIR}/mtree/BSD.include.dist \
198 -p ${DESTDIR}/usr/include
199.if !defined(NO_BIND)
200.if defined(WITH_BIND_LIBS)
201 mtree -deU ${MTREE_FOLLOWS_SYMLINKS} -f ${.CURDIR}/mtree/BIND.include.dist \
202 -p ${DESTDIR}/usr/include
203.endif
204.if !defined(NO_BIND_MTREE)
205 mtree -deU ${MTREE_FOLLOWS_SYMLINKS} -f ${.CURDIR}/mtree/BIND.chroot.dist \
206 -p ${DESTDIR}/var/named
207.endif
208.endif
209.if !defined(NO_SENDMAIL)
210 mtree -deU ${MTREE_FOLLOWS_SYMLINKS} -f ${.CURDIR}/mtree/BSD.sendmail.dist -p ${DESTDIR}/
211.endif
212 cd ${DESTDIR}/; rm -f ${DESTDIR}/sys; ln -s usr/src/sys sys
213 cd ${DESTDIR}/usr/share/man/en.ISO8859-1; ln -sf ../man* .
214 cd ${DESTDIR}/usr/share/man; \
215 set - `grep "^[a-zA-Z]" ${.CURDIR}/man.alias`; \
216 while [ $$# -gt 0 ] ; \
217 do \
218 rm -rf "$$1"; \
219 ln -s "$$2" "$$1"; \
220 shift; shift; \
221 done
222 cd ${DESTDIR}/usr/share/openssl/man; \
223 set - `grep "^[a-zA-Z]" ${.CURDIR}/man.alias`; \
224 while [ $$# -gt 0 ] ; \
225 do \
226 rm -rf "$$1"; \
227 ln -s "$$2" "$$1"; \
228 shift; shift; \
229 done
230 cd ${DESTDIR}/usr/share/openssl/man/en.ISO8859-1; ln -sf ../man* .
231 cd ${DESTDIR}/usr/share/nls; \
232 set - `grep "^[a-zA-Z]" ${.CURDIR}/nls.alias`; \
233 while [ $$# -gt 0 ] ; \
234 do \
235 rm -rf "$$1"; \
236 ln -s "$$2" "$$1"; \
237 shift; shift; \
238 done
239
240etc-examples:
241 cd ${.CURDIR}; ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 444 \
242 ${BIN1} ${BIN2} nsmb.conf opieaccess \
243 ${DESTDIR}/usr/share/examples/etc
244 cd ${.CURDIR}/defaults; ${MAKE} install \
245 DESTDIR=${DESTDIR}/usr/share/examples
246
247.include <bsd.prog.mk>
98 cd ${.CURDIR}/bluetooth; ${MAKE} install
99 cd ${.CURDIR}/defaults; ${MAKE} install
100 cd ${.CURDIR}/periodic; ${MAKE} install
101 cd ${.CURDIR}/rc.d; ${MAKE} install
102 cd ${.CURDIR}/../gnu/usr.bin/send-pr; ${MAKE} etc-gnats-freefall
103 cd ${.CURDIR}/../share/termcap; ${MAKE} etc-termcap
104 cd ${.CURDIR}/../usr.sbin/rmt; ${MAKE} etc-rmt
105 cd ${.CURDIR}/pam.d; ${MAKE} install
106.if !defined(NO_I4B)
107 cd ${.CURDIR}/isdn; ${MAKE} install
108.endif
109.if !defined(NO_SENDMAIL)
110 cd ${.CURDIR}/sendmail; ${MAKE} distribution
111.endif
112.if !defined(NO_OPENSSL)
113.if !defined(NO_OPENSSH)
114 cd ${.CURDIR}; ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 \
115 ${SSH} ${DESTDIR}/etc/ssh
116.endif
117 cd ${.CURDIR}; ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 \
118 ${SSL} ${DESTDIR}/etc/ssl
119.endif
120.if !defined(NO_KERBEROS)
121 cd ${.CURDIR}/root; \
122 ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 \
123 dot.k5login ${DESTDIR}/root/.k5login;
124.endif
125 cd ${.CURDIR}/root; \
126 ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 \
127 dot.cshrc ${DESTDIR}/root/.cshrc; \
128 ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 \
129 dot.login ${DESTDIR}/root/.login; \
130 ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 \
131 dot.profile ${DESTDIR}/root/.profile; \
132 rm -f ${DESTDIR}/.cshrc ${DESTDIR}/.profile; \
133 ln ${DESTDIR}/root/.cshrc ${DESTDIR}/.cshrc; \
134 ln ${DESTDIR}/root/.profile ${DESTDIR}/.profile
135 cd ${.CURDIR}/mtree; ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 444 \
136 ${MTREE} ${DESTDIR}/etc/mtree
137.if !defined(NO_BIND)
138.if !defined(NO_BIND_ETC)
139 cd ${.CURDIR}/namedb; ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 \
140 ${NAMEDB} ${DESTDIR}/var/named/etc/namedb
141.endif
142.if !defined(NO_BIND_MTREE)
143 @if [ ! -e ${DESTDIR}/etc/namedb ]; then \
144 set -x; \
145 ln -s ../var/named/etc/namedb ${DESTDIR}/etc/namedb; \
146 fi
147.endif
148.endif
149 cd ${.CURDIR}/ppp; ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 600 \
150 ${PPPCNF} ${DESTDIR}/etc/ppp
151 cd ${.CURDIR}/mail; ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 \
152 ${ETCMAIL} ${DESTDIR}/etc/mail
153 @if [ -d ${DESTDIR}/etc/mail -a -f ${DESTDIR}/etc/mail/aliases -a \
154 ! -f ${DESTDIR}/etc/aliases ]; then \
155 set -x; \
156 ln -s mail/aliases ${DESTDIR}/etc/aliases; \
157 fi
158 ${INSTALL} -o ${BINOWN} -g operator -m 664 /dev/null \
159 ${DESTDIR}/etc/dumpdates
160 ${INSTALL} -o nobody -g ${BINGRP} -m 644 /dev/null \
161 ${DESTDIR}/var/db/locate.database
162 ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 600 /dev/null \
163 ${DESTDIR}/var/log/auth.log
164 ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 600 /dev/null \
165 ${DESTDIR}/var/log/cron
166 ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 600 /dev/null \
167 ${DESTDIR}/var/log/debug.log
168 ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 600 /dev/null \
169 ${DESTDIR}/var/log/xferlog
170 ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 /dev/null \
171 ${DESTDIR}/var/log/lpd-errs
172 ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 640 /dev/null \
173 ${DESTDIR}/var/log/maillog
174 ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 /dev/null \
175 ${DESTDIR}/var/log/lastlog
176 ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 /dev/null \
177 ${DESTDIR}/var/log/messages
178 ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 600 /dev/null \
179 ${DESTDIR}/var/log/security
180 ${INSTALL} -o ${BINOWN} -g network -m 640 /dev/null \
181 ${DESTDIR}/var/log/slip.log
182 ${INSTALL} -o ${BINOWN} -g network -m 640 /dev/null \
183 ${DESTDIR}/var/log/ppp.log
184 ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 /dev/null \
185 ${DESTDIR}/var/log/wtmp
186 ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 /dev/null \
187 ${DESTDIR}/var/run/utmp
188 ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 ${.CURDIR}/minfree \
189 ${DESTDIR}/var/crash
190 cd ${.CURDIR}/..; ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 444 \
191 ${FREEBSD} ${DESTDIR}/
192 ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 444 \
193 ${.CURDIR}/../sys/${MACHINE}/conf/GENERIC.hints \
194 ${DESTDIR}/boot/device.hints
195
196distrib-dirs:
197 mtree -eU ${MTREE_FOLLOWS_SYMLINKS} -f ${.CURDIR}/mtree/BSD.root.dist -p ${DESTDIR}/
198 mtree -eU ${MTREE_FOLLOWS_SYMLINKS} -f ${.CURDIR}/mtree/BSD.var.dist -p ${DESTDIR}/var
199 mtree -eU ${MTREE_FOLLOWS_SYMLINKS} -f ${.CURDIR}/mtree/BSD.usr.dist -p ${DESTDIR}/usr
200 mtree -eU ${MTREE_FOLLOWS_SYMLINKS} -f ${.CURDIR}/mtree/BSD.include.dist \
201 -p ${DESTDIR}/usr/include
202.if !defined(NO_BIND)
203.if defined(WITH_BIND_LIBS)
204 mtree -deU ${MTREE_FOLLOWS_SYMLINKS} -f ${.CURDIR}/mtree/BIND.include.dist \
205 -p ${DESTDIR}/usr/include
206.endif
207.if !defined(NO_BIND_MTREE)
208 mtree -deU ${MTREE_FOLLOWS_SYMLINKS} -f ${.CURDIR}/mtree/BIND.chroot.dist \
209 -p ${DESTDIR}/var/named
210.endif
211.endif
212.if !defined(NO_SENDMAIL)
213 mtree -deU ${MTREE_FOLLOWS_SYMLINKS} -f ${.CURDIR}/mtree/BSD.sendmail.dist -p ${DESTDIR}/
214.endif
215 cd ${DESTDIR}/; rm -f ${DESTDIR}/sys; ln -s usr/src/sys sys
216 cd ${DESTDIR}/usr/share/man/en.ISO8859-1; ln -sf ../man* .
217 cd ${DESTDIR}/usr/share/man; \
218 set - `grep "^[a-zA-Z]" ${.CURDIR}/man.alias`; \
219 while [ $$# -gt 0 ] ; \
220 do \
221 rm -rf "$$1"; \
222 ln -s "$$2" "$$1"; \
223 shift; shift; \
224 done
225 cd ${DESTDIR}/usr/share/openssl/man; \
226 set - `grep "^[a-zA-Z]" ${.CURDIR}/man.alias`; \
227 while [ $$# -gt 0 ] ; \
228 do \
229 rm -rf "$$1"; \
230 ln -s "$$2" "$$1"; \
231 shift; shift; \
232 done
233 cd ${DESTDIR}/usr/share/openssl/man/en.ISO8859-1; ln -sf ../man* .
234 cd ${DESTDIR}/usr/share/nls; \
235 set - `grep "^[a-zA-Z]" ${.CURDIR}/nls.alias`; \
236 while [ $$# -gt 0 ] ; \
237 do \
238 rm -rf "$$1"; \
239 ln -s "$$2" "$$1"; \
240 shift; shift; \
241 done
242
243etc-examples:
244 cd ${.CURDIR}; ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 444 \
245 ${BIN1} ${BIN2} nsmb.conf opieaccess \
246 ${DESTDIR}/usr/share/examples/etc
247 cd ${.CURDIR}/defaults; ${MAKE} install \
248 DESTDIR=${DESTDIR}/usr/share/examples
249
250.include <bsd.prog.mk>