summaryrefslogtreecommitdiff
path: root/ports-mgmt/portlint/src
diff options
context:
space:
mode:
authorJoe Marcus Clarke <marcus@FreeBSD.org>2014-06-21 19:24:50 +0000
committerJoe Marcus Clarke <marcus@FreeBSD.org>2014-06-21 19:24:50 +0000
commitb999e167320a7162365c35404e9ed1cb342d56b2 (patch)
treef8c3f5d195ae88a409f3df19d3ffca85440beb87 /ports-mgmt/portlint/src
parentReset maintainership to ports@. (diff)
Update to 2.15.2.
* Add s3.amazonaws.com to the list of whitelist master sites. [1] * Correct a typo. [2] * Add support for the @sample directive. [3] * Check for USE_AUTOTOOLS=libtool and suggest USES=libtool instead. PR: 183864 [3] Submitted by: skreuzer [1] culot [2]
Notes
Notes: svn path=/head/; revision=358739
Diffstat (limited to 'ports-mgmt/portlint/src')
-rw-r--r--ports-mgmt/portlint/src/portlint.pl26
1 files changed, 19 insertions, 7 deletions
diff --git a/ports-mgmt/portlint/src/portlint.pl b/ports-mgmt/portlint/src/portlint.pl
index 640c40c4e580..2d35e85266a3 100644
--- a/ports-mgmt/portlint/src/portlint.pl
+++ b/ports-mgmt/portlint/src/portlint.pl
@@ -15,7 +15,7 @@
# was removed.
#
# $FreeBSD$
-# $MCom: portlint/portlint.pl,v 1.314 2014/04/19 18:36:43 marcus Exp $
+# $MCom: portlint/portlint.pl,v 1.319 2014/06/21 19:21:54 marcus Exp $
#
use strict;
@@ -45,12 +45,12 @@ $contblank = 1;
$portdir = '.';
@ALLOWED_FULL_PATHS = qw(/boot/loader.conf /compat/ /dev/null /etc/inetd.conf);
-@MASTERSITES_WHITELIST = qw(googlecode.com nodeload.github.com);
+@MASTERSITES_WHITELIST = qw(googlecode.com nodeload.github.com s3.amazonaws.com);
# version variables
my $major = 2;
my $minor = 15;
-my $micro = 1;
+my $micro = 2;
sub l { '[{(]'; }
sub r { '[)}]'; }
@@ -700,6 +700,13 @@ sub checkplist {
} elsif ($_ eq "\@cwd") {
; # @cwd by itself means change directory back to the original
# PREFIX.
+ } elsif ($_ =~ /^\@sample\s+(\S*)/) {
+ my $sl = $.;
+ if ($1 !~ /\.sample$/) {
+ &perror("WARN", $file, $sl, "\@sample directive references".
+ " file that does not end in ``.sample''. Sample".
+ " files must end in ``.sample''.");
+ }
} else {
&perror("WARN", $file, $.,
"unknown pkg-plist directive \"$_\"");
@@ -1578,8 +1585,8 @@ sub checkmakefile {
if (!grep(/^$i$/, @opt, @aopt)) {
# skip global options
next if ($i eq 'DOCS' or $i eq 'NLS' or $i eq 'EXAMPLES' or $i eq 'IPV6' or $i eq 'X11');
- &perror("WARN", $file, -1, "$i is appears in PORT_OPTIONS:M, ".
- "but not listed in OPTIONS_DEFINE.");
+ &perror("WARN", $file, -1, "$i appears in PORT_OPTIONS:M, ".
+ "but is not listed in OPTIONS_DEFINE.");
}
}
@@ -1857,8 +1864,8 @@ ruby sed sdl-config sh sort sysctl touch tr which xargs xmkmf
$cmdnames{'strip'} = '${STRIP_CMD}';
$cmdnames{'unzip'} = '${UNZIP_CMD}';
$cmdnames{'pkg_create'} = '${PKG_CMD}';
- foreach my $i (qw(aclocal autoconf autoheader automake autoreconf autoupdate autoscan ifnames libtool libtoolize)) {
- $autocmdnames{$i} = "\$\{" . ( ( $i !~ /auto|aclocal|libtool/ ) ? "AUTO" : "" ) . "\U$i\E\}";
+ foreach my $i (qw(aclocal autoconf autoheader automake autoreconf autoupdate autoscan ifnames libtoolize)) {
+ $autocmdnames{$i} = "\$\{" . ( ( $i !~ /auto|aclocal/ ) ? "AUTO" : "" ) . "\U$i\E\}";
}
#
# ignore parameter string to echo command.
@@ -1930,6 +1937,11 @@ ruby sed sdl-config sh sort sysctl touch tr which xargs xmkmf
}
}
+ if ($makevar{'USE_AUTOTOOLS'} =~ /\blibtool\b/) {
+ &perror("WARN", $file, -1, "USE_AUTOTOOLS=libtool is deprecated. ".
+ "Use USES=libtool instead.");
+ }
+
#
# whole file: check for use of paths that have macro replacements
#