pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/pkgtools/pkglint Update to 3.70: give errors if the pa...
details: https://anonhg.NetBSD.org/pkgsrc/rev/896a511c134b
branches: trunk
changeset: 472780:896a511c134b
user: jmmv <jmmv%pkgsrc.org@localhost>
date: Mon Apr 12 08:52:14 2004 +0000
description:
Update to 3.70: give errors if the package installs documenation files under
PREFIX/doc or if it registers configuration files in PREFIX/etc (because it
does not honour PKG_SYSCONFDIR properly).
diffstat:
pkgtools/pkglint/Makefile | 4 ++--
pkgtools/pkglint/files/pkglint.pl | 17 ++++++++++++++++-
2 files changed, 18 insertions(+), 3 deletions(-)
diffs (54 lines):
diff -r d23e06b8a1b0 -r 896a511c134b pkgtools/pkglint/Makefile
--- a/pkgtools/pkglint/Makefile Mon Apr 12 05:24:45 2004 +0000
+++ b/pkgtools/pkglint/Makefile Mon Apr 12 08:52:14 2004 +0000
@@ -1,7 +1,7 @@
-# $NetBSD: Makefile,v 1.181 2004/04/12 01:02:19 salo Exp $
+# $NetBSD: Makefile,v 1.182 2004/04/12 08:52:14 jmmv Exp $
#
-DISTNAME= pkglint-3.69
+DISTNAME= pkglint-3.70
CATEGORIES= pkgtools devel
MASTER_SITES= # empty
DISTFILES= # empty
diff -r d23e06b8a1b0 -r 896a511c134b pkgtools/pkglint/files/pkglint.pl
--- a/pkgtools/pkglint/files/pkglint.pl Mon Apr 12 05:24:45 2004 +0000
+++ b/pkgtools/pkglint/files/pkglint.pl Mon Apr 12 08:52:14 2004 +0000
@@ -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.99 2004/04/12 01:02:19 salo Exp $
+# $NetBSD: pkglint.pl,v 1.100 2004/04/12 08:52:14 jmmv Exp $
#
# This version contains lots of changes necessary for NetBSD packages
# done by Hubert Feyrer <hubertf%netbsd.org@localhost>,
@@ -394,6 +394,8 @@
local($curdir) = ($localbase);
local($installinfoseen) = 0;
local($rcsidseen) = 0;
+ local($docseen) = 0;
+ local($etcseen) = 0;
open(IN, "< $portdir/$file") || return 0;
while (<IN>) {
@@ -448,6 +450,19 @@
"disallowed.");
}
+ if ($_ =~ /^doc/ and !$docseen) {
+ &perror("FATAL: documentation must be installed under ".
+ "share/doc, not doc.");
+ $docseen = 1;
+ }
+
+ if ($_ =~ /^etc/ && $_ !~ /^etc\/rc.d/ and !$etcseen) {
+ &perror("FATAL: configuration files must not be ".
+ "registered in the PLIST (don't you use the ".
+ "PKG_SYSCONFDIR framework?)");
+ $etcseen = 1;
+ }
+
if ($_ =~ /^info\/dir$/) {
&perror("FATAL: \"info/dir\" should not be listed in ".
"$file. use install-info to add/remove ".
Home |
Main Index |
Thread Index |
Old Index