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