summaryrefslogtreecommitdiff
path: root/pkgtools/pkglint/files/pkglint.pl
diff options
context:
space:
mode:
Diffstat (limited to 'pkgtools/pkglint/files/pkglint.pl')
-rw-r--r--pkgtools/pkglint/files/pkglint.pl23
1 files changed, 22 insertions, 1 deletions
diff --git a/pkgtools/pkglint/files/pkglint.pl b/pkgtools/pkglint/files/pkglint.pl
index 3c53c0193f8..7ed0fd20cfe 100644
--- a/pkgtools/pkglint/files/pkglint.pl
+++ b/pkgtools/pkglint/files/pkglint.pl
@@ -11,7 +11,7 @@
# Freely redistributable. Absolutely no warranty.
#
# From Id: portlint.pl,v 1.64 1998/02/28 02:34:05 itojun Exp
-# $NetBSD: pkglint.pl,v 1.98 2004/02/23 12:33:29 wiz Exp $
+# $NetBSD: pkglint.pl,v 1.99 2004/04/12 01:02:19 salo Exp $
#
# This version contains lots of changes necessary for NetBSD packages
# done by Hubert Feyrer <hubertf@netbsd.org>,
@@ -82,6 +82,14 @@ if (-e <$portdir/../Packages.txt>) {
exit 0;
}
+if (-e <$portdir/../../Packages.txt>) {
+ if ($portdir eq ".") {
+ $category = basename(dirname($ENV{'PWD'}));
+ } else {
+ $category = basename(dirname($portdir));
+ }
+}
+
#
# variables for global checks.
#
@@ -902,6 +910,13 @@ EOF
" (BUILD_)DEPENDS, use (BUILD_)DEPENDS+= instead.");
}
+ # whole file: check for pkgsrc-wip remnants
+ #
+ if ($whole =~ /\/wip\//
+ && $category ne "wip") {
+ &perror("FATAL: possible pkgsrc-wip pathname detected.");
+ }
+
#
# whole file: full path name
#
@@ -984,6 +999,12 @@ EOF
}
}
+ # check for pkgsrc-wip remnants in CATEGORIES
+ if ($tmp =~ /\nCATEGORIES=[ \t]*.*wip.*\n/
+ && $category ne "wip") {
+ &perror("FATAL: don't forget to remove \"wip\" from CATEGORIES.");
+ }
+
# check the URL
if ($tmp =~ /\nMASTER_SITES[+?]?=[ \t]*([^\n]*)\n/
&& $1 !~ /^[ \t]*$/) {