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