2007-10-07 14:59:11 +02:00
|
|
|
# $NetBSD: Makefile,v 1.28 2007/10/07 12:59:14 kano Exp $
|
2003-07-13 18:15:34 +02:00
|
|
|
#
|
|
|
|
|
2007-02-16 23:57:09 +01:00
|
|
|
DISTNAME= pkg_filecheck-0.4
|
2003-07-13 18:15:34 +02:00
|
|
|
CATEGORIES= pkgtools devel
|
|
|
|
MASTER_SITES= # empty
|
|
|
|
DISTFILES= # empty
|
|
|
|
|
2003-07-18 00:50:55 +02:00
|
|
|
MAINTAINER= dillo@NetBSD.org
|
2007-10-07 14:59:11 +02:00
|
|
|
#HOMEPAGE= http://www.NetBSD.org/docs/pkgsrc/
|
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
|
|
|
|
2004-01-20 13:18:15 +01:00
|
|
|
WRKSRC= ${WRKDIR}
|
2005-07-16 03:19:06 +02:00
|
|
|
USE_TOOLS+= perl:run
|
2007-09-08 23:57:57 +02:00
|
|
|
USE_FEATURES= fts_open
|
2003-07-13 18:15:34 +02:00
|
|
|
|
|
|
|
EXTRACT_ONLY= # empty
|
|
|
|
NO_CHECKSUM= yes
|
|
|
|
NO_CONFIGURE= yes
|
|
|
|
|
2005-12-05 21:49:47 +01:00
|
|
|
FILES_SUBST+= X11PREFIX=${X11PREFIX:Q}
|
|
|
|
FILES_SUBST+= PKG_DBDIR=${PKG_DBDIR:Q}
|
2003-07-13 18:15:34 +02:00
|
|
|
CONF_FILES= ${PREFIX}/share/examples/pkg_filecheck/pkg_filecheck.conf \
|
|
|
|
${PKG_SYSCONFDIR}/pkg_filecheck.conf
|
|
|
|
|
2006-10-24 20:19:22 +02:00
|
|
|
INSTALLATION_DIRS= bin ${PKGMANDIR}/man1 ${PKGMANDIR}/man5
|
2005-06-17 05:50:19 +02:00
|
|
|
|
2006-01-06 18:10:58 +01:00
|
|
|
SUBST_CLASSES+= paths
|
|
|
|
SUBST_FILES.paths= builddb.pl builddb.1 pkg_filecheck.conf
|
|
|
|
SUBST_FILES.paths+= pkg_filecheck.conf.5 pkg_filecheck.c pkg_filecheck.1
|
|
|
|
SUBST_SED.paths+= -e 's,@PREFIX@,${PREFIX},g'
|
|
|
|
SUBST_SED.paths+= -e 's,@PERL5@,${PERL5},g'
|
|
|
|
SUBST_SED.paths+= -e 's,@X11PREFIX@,${X11PREFIX},g'
|
|
|
|
SUBST_SED.paths+= -e 's,@PKG_DBDIR@,${PKG_DBDIR},g'
|
|
|
|
SUBST_SED.paths+= -e 's,@PKG_SYSCONFDIR@,${PKG_SYSCONFDIR},g'
|
|
|
|
SUBST_STAGE.paths= post-patch
|
|
|
|
|
|
|
|
post-extract:
|
2003-07-13 18:15:34 +02:00
|
|
|
.for f in builddb.pl builddb.1 pkg_filecheck.conf pkg_filecheck.conf.5 \
|
|
|
|
pkg_filecheck.c pkg_filecheck.1
|
2006-01-06 18:10:58 +01:00
|
|
|
${CP} ${FILESDIR}/${f} ${WRKSRC}/${f}
|
2003-07-13 18:15:34 +02:00
|
|
|
.endfor
|
2006-01-06 18:10:58 +01:00
|
|
|
|
|
|
|
do-build:
|
2003-12-14 12:45:09 +01:00
|
|
|
cd ${WRKSRC} \
|
2004-11-17 09:13:09 +01:00
|
|
|
&& ${CC} ${CPPFLAGS} ${CFLAGS} ${LDFLAGS} ${BDB_LIBS} \
|
2006-10-24 20:19:22 +02:00
|
|
|
-o pkg_filecheck pkg_filecheck.c
|
2003-07-13 18:15:34 +02:00
|
|
|
|
|
|
|
do-install:
|
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/builddb.pl ${PREFIX}/bin/builddb
|
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/pkg_filecheck ${PREFIX}/bin/pkg_filecheck
|
2006-10-24 20:19:22 +02:00
|
|
|
${INSTALL_MAN} ${WRKSRC}/builddb.1 ${PREFIX}/${PKGMANDIR}/man1
|
|
|
|
${INSTALL_MAN} ${WRKSRC}/pkg_filecheck.1 ${PREFIX}/${PKGMANDIR}/man1
|
|
|
|
${INSTALL_MAN} ${WRKSRC}/pkg_filecheck.conf.5 ${PREFIX}/${PKGMANDIR}/man5
|
2003-07-13 18:15:34 +02:00
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/pkg_filecheck
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/pkg_filecheck.conf \
|
|
|
|
${PREFIX}/share/examples/pkg_filecheck/pkg_filecheck.conf
|
|
|
|
|
2006-07-02 12:32:09 +02:00
|
|
|
|
2007-09-08 23:57:57 +02:00
|
|
|
.include "../../mk/bdb.buildlink3.mk"
|
2003-07-13 18:15:34 +02:00
|
|
|
.include "../../mk/bsd.pkg.mk"
|