Deleted Added
full compact
Makefile (98548) Makefile (99449)
1# from: @(#)Makefile 5.11 (Berkeley) 5/21/91
1# from: @(#)Makefile 5.11 (Berkeley) 5/21/91
2# $FreeBSD: head/etc/Makefile 98548 2002-06-21 08:54:03Z ru $
2# $FreeBSD: head/etc/Makefile 99449 2002-07-05 13:17:24Z 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 \
10 dhclient.conf dm.conf fbtab ftpusers gettytab group \

--- 23 unchanged lines hidden (view full) ---

34 moduli
35.endif
36SSL= ${.CURDIR}/../crypto/openssl/apps/openssl.cnf
37.endif
38
39# -rwxr-xr-x root:wheel, for the new cron root:wheel
40BIN2= netstart pccard_ether rc.suspend rc.resume
41
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 \
10 dhclient.conf dm.conf fbtab ftpusers gettytab group \

--- 23 unchanged lines hidden (view full) ---

34 moduli
35.endif
36SSL= ${.CURDIR}/../crypto/openssl/apps/openssl.cnf
37.endif
38
39# -rwxr-xr-x root:wheel, for the new cron root:wheel
40BIN2= netstart pccard_ether rc.suspend rc.resume
41
42DEFAULTS= rc.conf pccard.conf periodic.conf
43
42MTREE= BSD.include.dist BSD.local.dist BSD.root.dist BSD.usr.dist \
43 BSD.var.dist BSD.x11.dist BSD.x11-4.dist
44.if !defined(NO_SENDMAIL)
45MTREE+= BSD.sendmail.dist
46.endif
47NAMEDB= PROTO.localhost.rev PROTO.localhost-v6.rev named.conf named.root \
48 make-localhost
49PPPCNF= ppp.conf
50ETCMAIL=Makefile README mailer.conf access.sample virtusertable.sample \
51 mailertable.sample aliases
52
53
54# Special top level files for FreeBSD
44MTREE= 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)
47MTREE+= BSD.sendmail.dist
48.endif
49NAMEDB= PROTO.localhost.rev PROTO.localhost-v6.rev named.conf named.root \
50 make-localhost
51PPPCNF= ppp.conf
52ETCMAIL=Makefile README mailer.conf access.sample virtusertable.sample \
53 mailertable.sample aliases
54
55
56# Special top level files for FreeBSD
55COPYRIGHT= COPYRIGHT
56FREEBSD=
57FREEBSD+= ${COPYRIGHT}
57FREEBSD=COPYRIGHT
58
59etc:
60
61distribute:
62 cd ${.CURDIR} ; ${MAKE} distribution DESTDIR=${DISTDIR}/${DISTRIBUTION}
63.if defined(OBJFORMAT)
64 echo OBJFORMAT=${OBJFORMAT} > ${DISTDIR}/${DISTRIBUTION}/etc/objformat
65.endif
66 ${INSTALL} ${COPY} -o ${BINOWN} -g ${BINGRP} -m 444 \
67 ${.CURDIR}/../sys/${MACHINE}/conf/GENERIC.hints \
68 ${DISTDIR}/${DISTRIBUTION}/boot/device.hints
69
70distribution:
58
59etc:
60
61distribute:
62 cd ${.CURDIR} ; ${MAKE} distribution DESTDIR=${DISTDIR}/${DISTRIBUTION}
63.if defined(OBJFORMAT)
64 echo OBJFORMAT=${OBJFORMAT} > ${DISTDIR}/${DISTRIBUTION}/etc/objformat
65.endif
66 ${INSTALL} ${COPY} -o ${BINOWN} -g ${BINGRP} -m 444 \
67 ${.CURDIR}/../sys/${MACHINE}/conf/GENERIC.hints \
68 ${DISTDIR}/${DISTRIBUTION}/boot/device.hints
69
70distribution:
71 (cd ${.CURDIR}; \
71 cd ${.CURDIR}; \
72 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 ${BIN1} ${DESTDIR}/etc; \
73 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 755 ${BIN2} ${DESTDIR}/etc; \
72 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 ${BIN1} ${DESTDIR}/etc; \
73 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 755 ${BIN2} ${DESTDIR}/etc; \
74 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 defaults/rc.conf ${DESTDIR}/etc/defaults/; \
75 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 defaults/pccard.conf ${DESTDIR}/etc/defaults/; \
76 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 defaults/periodic.conf ${DESTDIR}/etc/defaults/; \
77 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 600 /dev/null \
78 ${DESTDIR}/var/log/cron; \
79 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 600 \
80 master.passwd nsmb.conf opieaccess ${DESTDIR}/etc; \
74 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 600 \
75 master.passwd nsmb.conf opieaccess ${DESTDIR}/etc; \
81 ( cd ${.CURDIR}/periodic; ${MAKE} install ); \
82 ( cd ${.CURDIR}/rc.d; ${MAKE} install ); \
83 ( cd ${.CURDIR}/../gnu/usr.bin/send-pr; ${MAKE} etc-gnats-freefall ); \
84 ( cd ${.CURDIR}/../share/termcap; ${MAKE} etc-termcap ); \
85 ( cd ${.CURDIR}/../usr.sbin/rmt; ${MAKE} etc-rmt ); \
86 pwd_mkdb -p -d ${DESTDIR}/etc ${DESTDIR}/etc/master.passwd; )
87 ( cd ${.CURDIR}/pam.d; ${MAKE} install )
76 pwd_mkdb -p -d ${DESTDIR}/etc ${DESTDIR}/etc/master.passwd
77 cd ${.CURDIR}/defaults; ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 \
78 ${DEFAULTS} ${DESTDIR}/etc/defaults
79 cd ${.CURDIR}/periodic; ${MAKE} install
80 cd ${.CURDIR}/rc.d; ${MAKE} install
81 cd ${.CURDIR}/../gnu/usr.bin/send-pr; ${MAKE} etc-gnats-freefall
82 cd ${.CURDIR}/../share/termcap; ${MAKE} etc-termcap
83 cd ${.CURDIR}/../usr.sbin/rmt; ${MAKE} etc-rmt
84 cd ${.CURDIR}/pam.d; ${MAKE} install
88.if !defined(NO_I4B)
85.if !defined(NO_I4B)
89 ( cd ${.CURDIR}/isdn; ${MAKE} install )
86 cd ${.CURDIR}/isdn; ${MAKE} install
90.endif
91.if !defined(NO_SENDMAIL)
87.endif
88.if !defined(NO_SENDMAIL)
92 ( cd ${.CURDIR}/sendmail; ${MAKE} distribution );
89 cd ${.CURDIR}/sendmail; ${MAKE} distribution
93.endif
94.if exists(${.CURDIR}/../crypto) && !defined(NO_OPENSSL)
95.if !defined(NO_OPENSSH)
90.endif
91.if exists(${.CURDIR}/../crypto) && !defined(NO_OPENSSL)
92.if !defined(NO_OPENSSH)
96 (cd ${.CURDIR}; ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 ${SSH} \
97 ${DESTDIR}/etc/ssh )
93 cd ${.CURDIR}; ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 ${SSH} \
94 ${DESTDIR}/etc/ssh
98.endif
95.endif
99 (cd ${.CURDIR}; ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 ${SSL} \
100 ${DESTDIR}/etc/ssl )
96 cd ${.CURDIR}; ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 ${SSL} \
97 ${DESTDIR}/etc/ssl
101.endif
102.if !defined(NO_MAKEDEV_INSTALL)
98.endif
99.if !defined(NO_MAKEDEV_INSTALL)
103 ( cd ${.CURDIR}; ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 555 \
104 MAKEDEV.local MAKEDEV ${DESTDIR}/dev )
100 cd ${.CURDIR}; ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 555 \
101 MAKEDEV.local MAKEDEV ${DESTDIR}/dev
105.if !defined(NO_MAKEDEV_RUN)
102.if !defined(NO_MAKEDEV_RUN)
106 (cd ${DESTDIR}/dev; sh MAKEDEV all)
103 cd ${DESTDIR}/dev; sh MAKEDEV all
107.endif
108.endif
104.endif
105.endif
109 (cd ${.CURDIR}/root; \
106 cd ${.CURDIR}/root; \
110 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 dot.cshrc \
111 ${DESTDIR}/root/.cshrc; \
112 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 dot.klogin \
113 ${DESTDIR}/root/.klogin; \
114 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 dot.login \
115 ${DESTDIR}/root/.login; \
116 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 dot.profile \
117 ${DESTDIR}/root/.profile; \
118 rm -f ${DESTDIR}/.cshrc ${DESTDIR}/.profile; \
119 ln ${DESTDIR}/root/.cshrc ${DESTDIR}/.cshrc; \
107 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 dot.cshrc \
108 ${DESTDIR}/root/.cshrc; \
109 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 dot.klogin \
110 ${DESTDIR}/root/.klogin; \
111 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 dot.login \
112 ${DESTDIR}/root/.login; \
113 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 dot.profile \
114 ${DESTDIR}/root/.profile; \
115 rm -f ${DESTDIR}/.cshrc ${DESTDIR}/.profile; \
116 ln ${DESTDIR}/root/.cshrc ${DESTDIR}/.cshrc; \
120 ln ${DESTDIR}/root/.profile ${DESTDIR}/.profile)
117 ln ${DESTDIR}/root/.profile ${DESTDIR}/.profile
121 cd ${.CURDIR}/mtree; ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 \
122 ${MTREE} ${DESTDIR}/etc/mtree
123 cd ${.CURDIR}/namedb; ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 \
124 ${NAMEDB} ${DESTDIR}/etc/namedb
125 cd ${.CURDIR}/ppp; ${INSTALL} -c -o root -g ${BINGRP} -m 600 \
126 ${PPPCNF} ${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 \
131 set -x; \
132 ln -s mail/aliases ${DESTDIR}/etc/aliases; \
133 fi
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 600 /dev/null \
139 ${DESTDIR}/var/log/auth.log
118 cd ${.CURDIR}/mtree; ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 \
119 ${MTREE} ${DESTDIR}/etc/mtree
120 cd ${.CURDIR}/namedb; ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 \
121 ${NAMEDB} ${DESTDIR}/etc/namedb
122 cd ${.CURDIR}/ppp; ${INSTALL} -c -o root -g ${BINGRP} -m 600 \
123 ${PPPCNF} ${DESTDIR}/etc/ppp
124 cd ${.CURDIR}/mail; ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 \
125 ${ETCMAIL} ${DESTDIR}/etc/mail
126 @if [ -d ${DESTDIR}/etc/mail -a -f ${DESTDIR}/etc/mail/aliases -a \
127 ! -f ${DESTDIR}/etc/aliases ]; then \
128 set -x; \
129 ln -s mail/aliases ${DESTDIR}/etc/aliases; \
130 fi
131 ${INSTALL} -c -o ${BINOWN} -g operator -m 664 /dev/null \
132 ${DESTDIR}/etc/dumpdates
133 ${INSTALL} -c -o nobody -g ${BINGRP} -m 644 /dev/null \
134 ${DESTDIR}/var/db/locate.database
135 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 600 /dev/null \
136 ${DESTDIR}/var/log/auth.log
137 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 600 /dev/null \
138 ${DESTDIR}/var/log/cron
140 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 /dev/null \
141 ${DESTDIR}/var/log/lpd-errs
142 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 640 /dev/null \
143 ${DESTDIR}/var/log/maillog
144 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 /dev/null \
145 ${DESTDIR}/var/log/lastlog
146 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 /dev/null \
147 ${DESTDIR}/var/log/messages

--- 4 unchanged lines hidden (view full) ---

152 ${INSTALL} -c -o ${BINOWN} -g network -m 640 /dev/null \
153 ${DESTDIR}/var/log/ppp.log
154 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 /dev/null \
155 ${DESTDIR}/var/log/wtmp
156 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 /dev/null \
157 ${DESTDIR}/var/run/utmp
158 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 ${.CURDIR}/minfree \
159 ${DESTDIR}/var/crash
139 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 /dev/null \
140 ${DESTDIR}/var/log/lpd-errs
141 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 640 /dev/null \
142 ${DESTDIR}/var/log/maillog
143 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 /dev/null \
144 ${DESTDIR}/var/log/lastlog
145 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 /dev/null \
146 ${DESTDIR}/var/log/messages

--- 4 unchanged lines hidden (view full) ---

151 ${INSTALL} -c -o ${BINOWN} -g network -m 640 /dev/null \
152 ${DESTDIR}/var/log/ppp.log
153 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 /dev/null \
154 ${DESTDIR}/var/log/wtmp
155 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 /dev/null \
156 ${DESTDIR}/var/run/utmp
157 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 ${.CURDIR}/minfree \
158 ${DESTDIR}/var/crash
160 (cd ${.CURDIR}/..; \
159 cd ${.CURDIR}/..; \
161 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 ${FREEBSD} \
160 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 ${FREEBSD} \
162 ${DESTDIR}/)
161 ${DESTDIR}/
163.if !defined(NOMAN)
162.if !defined(NOMAN)
164 (cd ${.CURDIR}/../share/man; ${MAKE} makedb; )
163 cd ${.CURDIR}/../share/man; ${MAKE} makedb
165.endif
166
167distrib-dirs:
168 -set - `grep "^[a-zA-Z]" ${.CURDIR}/locale.deprecated`; \
169 while [ $$# -gt 0 ] ; \
170 do \
171 for dir in /usr/share/locale \
172 /usr/share/nls \

--- 36 unchanged lines hidden (view full) ---

209 while [ $$# -gt 0 ] ; \
210 do \
211 rm -rf "$$1"; \
212 ln -s "$$2" "$$1"; \
213 shift; shift; \
214 done
215
216etc-examples:
164.endif
165
166distrib-dirs:
167 -set - `grep "^[a-zA-Z]" ${.CURDIR}/locale.deprecated`; \
168 while [ $$# -gt 0 ] ; \
169 do \
170 for dir in /usr/share/locale \
171 /usr/share/nls \

--- 36 unchanged lines hidden (view full) ---

208 while [ $$# -gt 0 ] ; \
209 do \
210 rm -rf "$$1"; \
211 ln -s "$$2" "$$1"; \
212 shift; shift; \
213 done
214
215etc-examples:
217 (cd ${.CURDIR}; \
216 cd ${.CURDIR}; \
218 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 ${BIN1} ${BIN2} \
217 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 ${BIN1} ${BIN2} \
219 opieaccess ${DESTDIR}/usr/share/examples/etc; \
220 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 defaults/rc.conf \
221 ${DESTDIR}/usr/share/examples/etc/defaults; \
222 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 defaults/pccard.conf \
223 ${DESTDIR}/usr/share/examples/etc/defaults; \
224 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 defaults/periodic.conf \
225 ${DESTDIR}/usr/share/examples/etc/defaults)
218 nsmb.conf opieaccess ${DESTDIR}/usr/share/examples/etc
219 cd ${.CURDIR}/defaults; \
220 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 ${DEFAULTS} \
221 ${DESTDIR}/usr/share/examples/etc/defaults
226
227.include <bsd.prog.mk>
222
223.include <bsd.prog.mk>