View | Details | Raw Unified | Return to bug 144442
Collapse All | Expand All

(-)head/etc/Makefile (-2 / +42 lines)
Lines 148-158 Link Here
148
PWD_MKDB_ENDIAN?=
148
PWD_MKDB_ENDIAN?=
149
.endif
149
.endif
150
150
151
distribution:
151
${DESTDIR}/etc/group:
152
	cd ${.CURDIR}; \
153
	    ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 ${.TARGET:T} ${.TARGET}
154
.if ${MK_BIND} == "no"
155
	sed -i "" -e ';^bind:;d' ${.TARGET}
156
.endif
157
.if ${MK_GAMES} == "no"
158
	sed -i "" -e ';^games:;d' ${.TARGET}
159
.endif
160
.if ${MK_MAIL} == "no"
161
	sed -i "" -e ';^mail:;d' ${.TARGET}
162
.endif
163
.if ${MK_MAN} == "no"
164
	sed -i "" -e ';^man:;d' ${.TARGET}
165
.endif
166
.if ${MK_SENDMAIL} == "no"
167
	sed -i "" -e ';^mailnull:;d' -e ';^ssmsp:;d' ${.TARGET}
168
.endif
169
170
${DESTDIR}/etc/master.passwd:
171
	cd ${.CURDIR}; \
172
	    ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 600 ${.TARGET:T} ${.TARGET}
173
.if ${MK_BIND} == "no"
174
	sed -i "" -e ';^bind:;d' ${.TARGET}
175
.endif
176
.if ${MK_GAMES} == "no"
177
	sed -i "" -e ';^games:;d' ${.TARGET}
178
.endif
179
.if ${MK_MAIL} == "no"
180
	sed -i "" -e ';^pop:;d' ${.TARGET}
181
.endif
182
.if ${MK_MAN} == "no"
183
	sed -i "" -e ';^man:;d' ${.TARGET}
184
.endif
185
.if ${MK_SENDMAIL} == "no"
186
	sed -i "" -e ';^mailnull:;d' -e ';^ssmsp:;d' ${.TARGET}
187
.endif
188
189
distribution: 
152
.if !defined(DESTDIR)
190
.if !defined(DESTDIR)
153
	@echo "set DESTDIR before running \"make ${.TARGET}\""
191
	@echo "set DESTDIR before running \"make ${.TARGET}\""
154
	@false
192
	@false
155
.endif
193
.endif
194
	${MAKE} DESTDIR=${DESTDIR} ${DESTDIR}/etc/group
195
	${MAKE} DESTDIR=${DESTDIR} ${DESTDIR}/etc/passwd
156
	cd ${.CURDIR}; \
196
	cd ${.CURDIR}; \
157
	    ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 \
197
	    ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 \
158
		${BIN1} ${DESTDIR}/etc; \
198
		${BIN1} ${DESTDIR}/etc; \
Lines 160-166 Link Here
160
	    ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 755 \
200
	    ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 755 \
161
		${BIN2} ${DESTDIR}/etc; \
201
		${BIN2} ${DESTDIR}/etc; \
162
	    ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 600 \
202
	    ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 600 \
163
		master.passwd nsmb.conf opieaccess ${DESTDIR}/etc;
203
		nsmb.conf opieaccess ${DESTDIR}/etc;
164
.if ${MK_TCSH} == "no"
204
.if ${MK_TCSH} == "no"
165
	sed -i "" -e 's;/bin/csh;/bin/sh;' ${DESTDIR}/etc/master.passwd
205
	sed -i "" -e 's;/bin/csh;/bin/sh;' ${DESTDIR}/etc/master.passwd
166
.endif
206
.endif

Return to bug 144442