Move services to usr.sbin/services_mkdb/
This is pkgbase related as it switches to CONFS to properly tag this as a config file. Approved by: will (mentor) Differential Revision: https://reviews.freebsd.org/D16848
This commit is contained in:
parent
1d715a5168
commit
d4f6a8c8f4
@ -36,7 +36,6 @@ BIN1= crontab \
|
||||
rc.firewall \
|
||||
remote \
|
||||
rpc \
|
||||
services \
|
||||
termcap.small
|
||||
|
||||
.if exists(${.CURDIR}/etc.${MACHINE}/ttys)
|
||||
@ -122,12 +121,6 @@ distribution:
|
||||
${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 600 \
|
||||
master.passwd nsmb.conf opieaccess ${DESTDIR}/etc;
|
||||
|
||||
.if ${MK_SERVICESDB} != "no"
|
||||
cd ${.CURDIR}; \
|
||||
services_mkdb ${CAP_MKDB_ENDIAN} -q -o ${DESTDIR}/var/db/services.db \
|
||||
${DESTDIR}/etc/services;
|
||||
.endif
|
||||
|
||||
.if ${MK_TCSH} == "no"
|
||||
sed -i "" -e 's;/bin/csh;/bin/sh;' ${DESTDIR}/etc/master.passwd
|
||||
.endif
|
||||
@ -138,7 +131,6 @@ distribution:
|
||||
echo "./etc/passwd type=file mode=0644 uname=root gname=wheel"; \
|
||||
echo "./etc/pwd.db type=file mode=0644 uname=root gname=wheel"; \
|
||||
echo "./etc/spwd.db type=file mode=0600 uname=root gname=wheel"; \
|
||||
echo "./var/db/services.db type=file mode=0644 uname=root gname=wheel"; \
|
||||
) | ${METALOG.add}
|
||||
.endif
|
||||
${_+_}cd ${.CURDIR}/gss; ${MAKE} install
|
||||
|
@ -1,7 +1,20 @@
|
||||
# $FreeBSD$
|
||||
|
||||
CONFS= services
|
||||
PROG= services_mkdb
|
||||
MAN= services_mkdb.8
|
||||
SRCS= services_mkdb.c uniq.c extern.h
|
||||
|
||||
.include <bsd.endian.mk>
|
||||
.include <src.opts.mk>
|
||||
.if ${MK_SERVICESDB} != "no"
|
||||
afterinstallconfig:
|
||||
services_mkdb ${CAP_MKDB_ENDIAN} -q -o ${DESTDIR}/var/db/services.db \
|
||||
${DESTDIR}/etc/services
|
||||
.if defined(NO_ROOT) && defined(METALOG)
|
||||
echo "./var/db/services.db type=file mode=0644 uname=root gname=wheel" | \
|
||||
cat -l >> ${METALOG}
|
||||
.endif
|
||||
.endif
|
||||
|
||||
.include <bsd.prog.mk>
|
||||
|
Loading…
Reference in New Issue
Block a user