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).
This commit is contained in:
parent
28d471112f
commit
c763264884
2 changed files with 18 additions and 3 deletions
|
@ -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
|
||||
|
|
|
@ -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>,
|
||||
|
@ -394,6 +394,8 @@ sub checkplist {
|
|||
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 @@ sub checkplist {
|
|||
"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 ".
|
||||
|
|
Loading…
Reference in a new issue