diff options
author | jlam <jlam@pkgsrc.org> | 2007-09-08 21:57:57 +0000 |
---|---|---|
committer | jlam <jlam@pkgsrc.org> | 2007-09-08 21:57:57 +0000 |
commit | 1380f9cec64ce190e8f8a0296512ae18be6651f8 (patch) | |
tree | 090b4461321e87c968b099c0a26b69c4da29ff20 /pkgtools/pkg_filecheck | |
parent | faefa43a39defd33e687da9d3dc995a9fd2e90e6 (diff) | |
download | pkgsrc-1380f9cec64ce190e8f8a0296512ae18be6651f8.tar.gz |
Convert to use the features framework.
Diffstat (limited to 'pkgtools/pkg_filecheck')
-rw-r--r-- | pkgtools/pkg_filecheck/Makefile | 12 | ||||
-rw-r--r-- | pkgtools/pkg_filecheck/files/pkg_filecheck.c | 8 |
2 files changed, 4 insertions, 16 deletions
diff --git a/pkgtools/pkg_filecheck/Makefile b/pkgtools/pkg_filecheck/Makefile index 87a61cf8551..4968c5b22db 100644 --- a/pkgtools/pkg_filecheck/Makefile +++ b/pkgtools/pkg_filecheck/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.26 2007/09/06 21:51:54 jlam Exp $ +# $NetBSD: Makefile,v 1.27 2007/09/08 21:57:59 jlam Exp $ # DISTNAME= pkg_filecheck-0.4 @@ -12,6 +12,7 @@ COMMENT= Check for files not owned by any package WRKSRC= ${WRKDIR} USE_TOOLS+= perl:run +USE_FEATURES= fts_open EXTRACT_ONLY= # empty NO_CHECKSUM= yes @@ -24,8 +25,6 @@ CONF_FILES= ${PREFIX}/share/examples/pkg_filecheck/pkg_filecheck.conf \ INSTALLATION_DIRS= bin ${PKGMANDIR}/man1 ${PKGMANDIR}/man5 -.include "../../mk/bdb.buildlink3.mk" - 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 @@ -57,11 +56,6 @@ do-install: ${INSTALL_DATA} ${WRKSRC}/pkg_filecheck.conf \ ${PREFIX}/share/examples/pkg_filecheck/pkg_filecheck.conf -.include "../../mk/bsd.prefs.mk" - -.if ${OPSYS} != "NetBSD" -CPPFLAGS+= -DUSE_LIBNBCOMPAT -. include "../../pkgtools/libnbcompat/inplace.mk" -.endif +.include "../../mk/bdb.buildlink3.mk" .include "../../mk/bsd.pkg.mk" diff --git a/pkgtools/pkg_filecheck/files/pkg_filecheck.c b/pkgtools/pkg_filecheck/files/pkg_filecheck.c index 6932e45008a..149dc4f053b 100644 --- a/pkgtools/pkg_filecheck/files/pkg_filecheck.c +++ b/pkgtools/pkg_filecheck/files/pkg_filecheck.c @@ -1,5 +1,5 @@ /* - $NetBSD: pkg_filecheck.c,v 1.5 2007/02/16 22:57:09 tonio Exp $ + $NetBSD: pkg_filecheck.c,v 1.6 2007/09/08 21:57:59 jlam Exp $ pkg_filecheck.c -- check for files not owned by any package Copyright (C) 2001 Dieter Baron @@ -30,18 +30,12 @@ IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#if defined(USE_LIBNBCOMPAT) -#include <nbcompat.h> -#endif - #include <sys/types.h> #include <sys/stat.h> #include <db_185.h> #include <errno.h> #include <fcntl.h> -#if !defined(USE_LIBNBCOMPAT) || defined(HAVE_FTS_H) #include <fts.h> -#endif #include <limits.h> #include <stdio.h> #include <stdlib.h> |