Deleted Added
sdiff udiff text old ( 98548 ) new ( 99449 )
full compact
1# from: @(#)Makefile 5.11 (Berkeley) 5/21/91
2# $FreeBSD: head/etc/Makefile 98548 2002-06-21 08:54:03Z 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
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
55COPYRIGHT= COPYRIGHT
56FREEBSD=
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:
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; \
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; \
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 )
88.if !defined(NO_I4B)
89 ( cd ${.CURDIR}/isdn; ${MAKE} install )
90.endif
91.if !defined(NO_SENDMAIL)
92 ( cd ${.CURDIR}/sendmail; ${MAKE} distribution );
93.endif
94.if exists(${.CURDIR}/../crypto) && !defined(NO_OPENSSL)
95.if !defined(NO_OPENSSH)
96 (cd ${.CURDIR}; ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 ${SSH} \
97 ${DESTDIR}/etc/ssh )
98.endif
99 (cd ${.CURDIR}; ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 ${SSL} \
100 ${DESTDIR}/etc/ssl )
101.endif
102.if !defined(NO_MAKEDEV_INSTALL)
103 ( cd ${.CURDIR}; ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 555 \
104 MAKEDEV.local MAKEDEV ${DESTDIR}/dev )
105.if !defined(NO_MAKEDEV_RUN)
106 (cd ${DESTDIR}/dev; sh MAKEDEV all)
107.endif
108.endif
109 (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; \
120 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
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
160 (cd ${.CURDIR}/..; \
161 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 ${FREEBSD} \
162 ${DESTDIR}/)
163.if !defined(NOMAN)
164 (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:
217 (cd ${.CURDIR}; \
218 ${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)
226
227.include <bsd.prog.mk>