instead of sprinkling them out over many disjoint files. This is a follow-up to achieve the same goal in an incomplete rev.348521. Approved by: imp MFC after: 1 month Differential Revision: https://reviews.freebsd.org/D20520
26 lines
565 B
Makefile
26 lines
565 B
Makefile
# $FreeBSD$
|
|
|
|
PACKAGE= runtime
|
|
|
|
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"
|
|
# SERVICES_MKDB_CMD defined here
|
|
.include <src.tools.mk>
|
|
|
|
afterinstallconfig:
|
|
${SERVICES_MKDB_CMD} ${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>
|