1 2PACKAGE= runtime 3 4CONFS= services 5PROG= services_mkdb 6MAN= services_mkdb.8 7SRCS= services_mkdb.c uniq.c extern.h 8 9.include <bsd.endian.mk> 10.include <src.opts.mk> 11.if ${MK_SERVICESDB} != "no" 12# SERVICES_MKDB_CMD defined here 13.include <src.tools.mk> 14 15afterinstallconfig: 16 ${SERVICES_MKDB_CMD} ${CAP_MKDB_ENDIAN} -q -o ${DESTDIR}/var/db/services.db \ 17 ${DESTDIR}/etc/services 18.if defined(NO_ROOT) && defined(METALOG) 19 echo ".${DISTBASE}/var/db/services.db type=file mode=0644 uname=root gname=wheel" | \ 20 cat -l >> ${METALOG} 21.endif 22.endif 23 24.include <bsd.prog.mk> 25