2010-04-04 08:38:14 +00:00
|
|
|
# $FreeBSD$
|
|
|
|
|
2019-09-05 14:13:08 +00:00
|
|
|
PACKAGE= runtime
|
|
|
|
|
2018-08-22 21:22:40 +00:00
|
|
|
CONFS= services
|
2010-04-04 08:38:14 +00:00
|
|
|
PROG= services_mkdb
|
|
|
|
MAN= services_mkdb.8
|
2012-10-20 10:33:15 +00:00
|
|
|
SRCS= services_mkdb.c uniq.c extern.h
|
2010-04-04 08:38:14 +00:00
|
|
|
|
2018-08-22 21:22:40 +00:00
|
|
|
.include <bsd.endian.mk>
|
|
|
|
.include <src.opts.mk>
|
|
|
|
.if ${MK_SERVICESDB} != "no"
|
2020-04-07 02:46:22 +00:00
|
|
|
# SERVICES_MKDB_CMD defined here
|
|
|
|
.include <src.tools.mk>
|
|
|
|
|
2018-08-22 21:22:40 +00:00
|
|
|
afterinstallconfig:
|
2019-06-02 23:38:19 +00:00
|
|
|
${SERVICES_MKDB_CMD} ${CAP_MKDB_ENDIAN} -q -o ${DESTDIR}/var/db/services.db \
|
2018-08-22 21:22:40 +00:00
|
|
|
${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
|
|
|
|
|
2010-04-04 08:38:14 +00:00
|
|
|
.include <bsd.prog.mk>
|