freebsd-dev/usr.sbin/services_mkdb/Makefile

26 lines
565 B
Makefile
Raw Normal View History

# $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>