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