aboutsummaryrefslogtreecommitdiff
path: root/ports-mgmt
diff options
context:
space:
mode:
authorJoe Marcus Clarke <marcus@FreeBSD.org>2004-09-01 04:13:32 +0000
committerJoe Marcus Clarke <marcus@FreeBSD.org>2004-09-01 04:13:32 +0000
commitcf8b7fbebf1ee909487c495952a906abd1132acf (patch)
treec6aeac5df5e00cde6c2ce876cac79f4bfd23d104 /ports-mgmt
parent6d2e3e28e558f9307079e09d1b7c937e30a88be9 (diff)
downloadports-cf8b7fbebf1ee909487c495952a906abd1132acf.tar.gz
ports-cf8b7fbebf1ee909487c495952a906abd1132acf.zip
Update to 2.6.7
* Switch the direct use of ``echo'' check to suggest ${ECHO_CMD} or ${ECHO_MSG} instead of ${ECHO} [1] * Tighten the check for improper GConf schema handling so that we only look in the GConf schemas directory [2] * Correct some grammar mistakes [3] * Avoid erroneous "direct use of command" warnings [4] PR: 71159 [4] Submitted by: gerald [1] pav [3] eik [4] Reported by: pav [2]
Notes
Notes: svn path=/head/; revision=117785
Diffstat (limited to 'ports-mgmt')
-rw-r--r--ports-mgmt/portlint/Makefile2
-rw-r--r--ports-mgmt/portlint/src/portlint.pl15
2 files changed, 9 insertions, 8 deletions
diff --git a/ports-mgmt/portlint/Makefile b/ports-mgmt/portlint/Makefile
index d7a728b7ff9a..4143eb148407 100644
--- a/ports-mgmt/portlint/Makefile
+++ b/ports-mgmt/portlint/Makefile
@@ -8,7 +8,7 @@
#
PORTNAME= portlint
-PORTVERSION= 2.6.6
+PORTVERSION= 2.6.7
CATEGORIES= devel
MASTER_SITES= # none
DISTFILES= # none
diff --git a/ports-mgmt/portlint/src/portlint.pl b/ports-mgmt/portlint/src/portlint.pl
index 132f27aa85d6..376c454526d0 100644
--- a/ports-mgmt/portlint/src/portlint.pl
+++ b/ports-mgmt/portlint/src/portlint.pl
@@ -17,7 +17,7 @@
# OpenBSD and NetBSD will be accepted.
#
# $FreeBSD$
-# $Id: portlint.pl,v 1.55 2004/06/25 16:03:32 marcus Exp $
+# $Id: portlint.pl,v 1.61 2004/09/01 04:08:34 marcus Exp $
#
use vars qw/ $opt_a $opt_A $opt_b $opt_C $opt_c $opt_h $opt_t $opt_v $opt_M $opt_N $opt_B $opt_V /;
@@ -40,7 +40,7 @@ $portdir = '.';
# version variables
my $major = 2;
my $minor = 6;
-my $micro = 6;
+my $micro = 7;
sub l { '[{(]'; }
sub r { '[)}]'; }
@@ -737,7 +737,7 @@ sub checkplist {
}
}
- if ($_ =~ /.*\.schemas?$/) {
+ if ($_ =~ m|^etc/gconf/schemas/.*\.schemas?$|) {
$gconfseen{$_} = $.;
$gconfafterinstall{$_}++ if ($gconfinstallseen{$_});
$gconfbeforeremove{$_}++ if (!$gconfremoveseen{$_});
@@ -1273,12 +1273,13 @@ sub checkmakefile {
my %cmdnames = ();
print "OK: checking direct use of command names.\n" if ($verbose);
foreach my $i (qw(
-awk basename brandelf cat chmod chown cp cpio dialog dirname echo egrep expr
+awk basename brandelf cat chmod chown cp cpio dialog dirname egrep expr
false file find gmake grep gzcat ldconfig ln md5 mkdir mv objcopy paste patch
pax perl printf rm rmdir ruby sed sh sort touch tr which xargs xmkmf
)) {
$cmdnames{$i} = "\$\{\U$i\E\}";
}
+ $cmdnames{'echo'} = '${ECHO_CMD} or ${ECHO_MSG}';
$cmdnames{'env'} = '${SETENV}';
$cmdnames{'gunzip'} = '${GUNZIP_CMD}';
$cmdnames{'gzip'} = '${GZIP_CMD}';
@@ -1304,7 +1305,7 @@ pax perl printf rm rmdir ruby sed sh sort touch tr which xargs xmkmf
while ($j =~ /^(.*$i.*)$/gm) {
my $curline = $1;
my $lineno = &linenumber($`);
- if ($curline =~ /(^|\s+)[\@\-]{0,2}$i\b/
+ if ($curline =~ /(?:^|\s)[\@\-]{0,2}$i(?:$|\s)/
&& $curline !~ /^[A-Z]+_TARGET[?+]?=[^\n]+$i/m
&& $curline !~ /^IGNORE(.)?=[^\n]+$i/m
&& $curline !~ /^BROKEN(.)?=[^\n]+$i/m
@@ -1761,10 +1762,10 @@ DISTFILES DIST_SUBDIR EXTRACT_ONLY
$selfconflict = ($makevar{PKGNAME} =~ /^$conflictre$/);
}
if ($conflict !~ /(?:[<>=]|[]?*]$)/) {
- &perror("WARN: Conflict \"$conflict\" specified to narrow. ".
+ &perror("WARN: Conflict \"$conflict\" specified too narrow. ".
"You should end it with a wildcard (-[0-9]*).");
} elsif ($conflict !~ /[<>=-][^-]*[0-9][^-]*$/) {
- &perror("WARN: Conflict \"$conflict\" specified to broad. ".
+ &perror("WARN: Conflict \"$conflict\" specified too broad. ".
"You should end it with a version number fragment (-[0-9]*).");
}
if ($selfconflict) {