diff options
Diffstat (limited to 'pkgtools')
-rw-r--r-- | pkgtools/pkglint/Makefile | 4 | ||||
-rw-r--r-- | pkgtools/pkglint/files/pkglint.pl | 14 |
2 files changed, 15 insertions, 3 deletions
diff --git a/pkgtools/pkglint/Makefile b/pkgtools/pkglint/Makefile index 7480a5ed92f..f4050b489d4 100644 --- a/pkgtools/pkglint/Makefile +++ b/pkgtools/pkglint/Makefile @@ -1,7 +1,7 @@ -# $NetBSD: Makefile,v 1.147 2003/01/11 04:42:57 rh Exp $ +# $NetBSD: Makefile,v 1.148 2003/01/15 23:41:31 rh Exp $ # -DISTNAME= pkglint-3.42 +DISTNAME= pkglint-3.43 CATEGORIES= pkgtools devel MASTER_SITES= # empty DISTFILES= # empty diff --git a/pkgtools/pkglint/files/pkglint.pl b/pkgtools/pkglint/files/pkglint.pl index 8e7eb7ca921..96888c3755d 100644 --- a/pkgtools/pkglint/files/pkglint.pl +++ b/pkgtools/pkglint/files/pkglint.pl @@ -12,7 +12,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.78 2003/01/11 04:42:57 rh Exp $ +# $NetBSD: pkglint.pl,v 1.79 2003/01/15 23:41:32 rh Exp $ # # This version contains lots of changes necessary for NetBSD packages # done by Hubert Feyrer <hubertf@netbsd.org>, @@ -461,6 +461,18 @@ sub checkplist { $infooverwrite++; } + if ($_ =~ /^lib\/locale/) { + &perror("FATAL: \"lib/locale\" should not be listed ". + "in $file. Use \${PKGLOCALEDIR}/locale and ". + "set USE_PKGLOCALEDIR instead."); + } + + if ($_ =~ /^share\/locale/) { + &perror("WARN: use of \"share/locale\" in $file is ". + "deprecated. Use \${PKGLOCALEDIR}/locale and ". + "set USE_PKGLOCALEDIR instead."); + } + if ($_ =~ /\${PKGLOCALEDIR}/ && $seen_USE_BUILDLINK2 && ! $seen_USE_PKGLOCALEDIR) { &perror("WARN: PLIST contains \${PKGLOCALEDIR}, ". "but USE_PKGLOCALEDIR was not found."); |