2003-07-30 12:41:22 +02:00
|
|
|
# $NetBSD: Makefile,v 1.4 2003/07/30 10:41:25 jmmv Exp $
|
2003-07-13 18:15:34 +02:00
|
|
|
#
|
|
|
|
|
|
|
|
DISTNAME= pkg_filecheck-0.1
|
|
|
|
WRKSRC= ${WRKDIR}
|
|
|
|
CATEGORIES= pkgtools devel
|
|
|
|
MASTER_SITES= # empty
|
|
|
|
DISTFILES= # empty
|
|
|
|
|
2003-07-18 00:50:55 +02:00
|
|
|
MAINTAINER= dillo@NetBSD.org
|
|
|
|
#HOMEPAGE= http://www.NetBSD.org/Documentation/netbsd/Packages.txt
|
2003-07-21 19:10:16 +02:00
|
|
|
COMMENT= Check for files not owned by any package
|
2003-07-13 18:15:34 +02:00
|
|
|
|
|
|
|
USE_PERL5= run
|
2003-07-30 12:41:22 +02:00
|
|
|
USE_PKGINSTALL= yes
|
2003-07-13 18:15:34 +02:00
|
|
|
|
|
|
|
EXTRACT_ONLY= # empty
|
|
|
|
NO_CHECKSUM= yes
|
|
|
|
NO_CONFIGURE= yes
|
|
|
|
|
|
|
|
CONF_FILES= ${PREFIX}/share/examples/pkg_filecheck/pkg_filecheck.conf \
|
|
|
|
${PKG_SYSCONFDIR}/pkg_filecheck.conf
|
|
|
|
|
|
|
|
do-build:
|
|
|
|
.for f in builddb.pl builddb.1 pkg_filecheck.conf pkg_filecheck.conf.5 \
|
|
|
|
pkg_filecheck.c pkg_filecheck.1
|
|
|
|
${SED} -e 's|@PREFIX@|${PREFIX}|g' \
|
|
|
|
-e 's|@PKG_SYSCONFDIR@|${PKG_SYSCONFDIR}|g' \
|
|
|
|
-e 's|@X11PREFIX@|${X11PREFIX}|g' \
|
|
|
|
< ${FILESDIR}/${f} \
|
|
|
|
> ${WRKSRC}/${f}
|
|
|
|
.endfor
|
|
|
|
cd ${WRKSRC} && ${MAKE} pkg_filecheck
|
|
|
|
|
|
|
|
do-install:
|
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/builddb.pl ${PREFIX}/bin/builddb
|
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/pkg_filecheck ${PREFIX}/bin/pkg_filecheck
|
|
|
|
${INSTALL_MAN} ${WRKSRC}/builddb.1 ${PREFIX}/man/man1
|
|
|
|
${INSTALL_MAN} ${WRKSRC}/pkg_filecheck.1 ${PREFIX}/man/man1
|
|
|
|
${INSTALL_MAN} ${WRKSRC}/pkg_filecheck.conf.5 ${PREFIX}/man/man5
|
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/pkg_filecheck
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/pkg_filecheck.conf \
|
|
|
|
${PREFIX}/share/examples/pkg_filecheck/pkg_filecheck.conf
|
|
|
|
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|