summaryrefslogtreecommitdiff
path: root/pkgtools/pkg_filecheck/files
diff options
context:
space:
mode:
authorrillig <rillig@pkgsrc.org>2006-07-02 10:32:09 +0000
committerrillig <rillig@pkgsrc.org>2006-07-02 10:32:09 +0000
commit77be38c0ae4c87c0cfad9498ba9f124d8f8db839 (patch)
tree716b622846ecbba5955d4c3999095a55ccf9c3df /pkgtools/pkg_filecheck/files
parenta690d0afeb1a4df0681c9fca64952bbbebbd9041 (diff)
downloadpkgsrc-77be38c0ae4c87c0cfad9498ba9f124d8f8db839.tar.gz
Updated pkg_filecheck to 0.2.
The PKGDBDIR and PKGDBDIR.refcount directories are excluded from the list of files to check, because for unprivileged pkgsrc, they are subdirectories of PKGSRCDIR. Removed the dependency on libnbcompat for NetBSD.
Diffstat (limited to 'pkgtools/pkg_filecheck/files')
-rw-r--r--pkgtools/pkg_filecheck/files/pkg_filecheck.c6
-rw-r--r--pkgtools/pkg_filecheck/files/pkg_filecheck.conf4
2 files changed, 7 insertions, 3 deletions
diff --git a/pkgtools/pkg_filecheck/files/pkg_filecheck.c b/pkgtools/pkg_filecheck/files/pkg_filecheck.c
index 0a5923f2ce2..46e45b13582 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.2 2005/11/17 17:02:04 rillig Exp $
+ $NetBSD: pkg_filecheck.c,v 1.3 2006/07/02 10:32:09 rillig Exp $
pkg_filecheck.c -- check for files not owned by any package
Copyright (C) 2001 Dieter Baron
@@ -30,14 +30,16 @@
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.h>
#include <errno.h>
#include <fcntl.h>
-#ifdef HAVE_FTS_H
+#if !defined(USE_LIBNBCOMPAT) || defined(HAVE_FTS_H)
#include <fts.h>
#endif
#include <limits.h>
diff --git a/pkgtools/pkg_filecheck/files/pkg_filecheck.conf b/pkgtools/pkg_filecheck/files/pkg_filecheck.conf
index d6f9b752851..07308a43c15 100644
--- a/pkgtools/pkg_filecheck/files/pkg_filecheck.conf
+++ b/pkgtools/pkg_filecheck/files/pkg_filecheck.conf
@@ -1,4 +1,4 @@
-# $NetBSD: pkg_filecheck.conf,v 1.2 2003/12/18 14:32:01 grant Exp $
+# $NetBSD: pkg_filecheck.conf,v 1.3 2006/07/02 10:32:09 rillig Exp $
# location of package database
dir @PKG_DBDIR@
@@ -15,3 +15,5 @@ check @PREFIX@
ignore @PREFIX@/etc
ignore @PREFIX@/var/scrollkeeper
+ignore @PKG_DBDIR@
+ignore @PKG_DBDIR@.refcount