a7b5a3d486
All of them are needed to be able to boot to single user and be able to repair a existing FreeBSD installation so put them directly into FreeBSD-runtime. Reviewed by: bapt, gjb Differential Revision: https://reviews.freebsd.org/D21503
24 lines
535 B
Makefile
24 lines
535 B
Makefile
# $FreeBSD$
|
|
|
|
PACKAGE= runtime
|
|
|
|
CONFS= services
|
|
PROG= services_mkdb
|
|
MAN= services_mkdb.8
|
|
SRCS= services_mkdb.c uniq.c extern.h
|
|
SERVICES_MKDB_CMD?= ${PROG}
|
|
|
|
.include <bsd.endian.mk>
|
|
.include <src.opts.mk>
|
|
.if ${MK_SERVICESDB} != "no"
|
|
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>
|