summaryrefslogtreecommitdiff
path: root/ports-mgmt/portlint
diff options
context:
space:
mode:
authorAkinori MUSHA <knu@FreeBSD.org>2003-01-11 08:18:48 +0000
committerAkinori MUSHA <knu@FreeBSD.org>2003-01-11 08:18:48 +0000
commit27754b5c4eef471d5b44982b4c7b01299e9e983d (patch)
tree9d76b0c1683e7a4eb9c4b0ab29319344fc3869e3 /ports-mgmt/portlint
parentUpdate to 2.1.9. (Still 5.x is not supported yet) (diff)
Add a simple check for MAINTAINER not to include multiple addresses or
comments. Approved by: portmgr
Notes
Notes: svn path=/head/; revision=72877
Diffstat (limited to 'ports-mgmt/portlint')
-rw-r--r--ports-mgmt/portlint/Makefile2
-rw-r--r--ports-mgmt/portlint/src/portlint.pl8
2 files changed, 8 insertions, 2 deletions
diff --git a/ports-mgmt/portlint/Makefile b/ports-mgmt/portlint/Makefile
index 5ea72aca047a..151e11c06857 100644
--- a/ports-mgmt/portlint/Makefile
+++ b/ports-mgmt/portlint/Makefile
@@ -9,7 +9,7 @@
PORTNAME= portlint
PORTVERSION= 2.3.3
-PORTREVISION= 1
+PORTREVISION= 2
CATEGORIES= devel
MASTER_SITES= # none
DISTFILES= # none
diff --git a/ports-mgmt/portlint/src/portlint.pl b/ports-mgmt/portlint/src/portlint.pl
index 16521143c593..08b13be587c8 100644
--- a/ports-mgmt/portlint/src/portlint.pl
+++ b/ports-mgmt/portlint/src/portlint.pl
@@ -1199,7 +1199,13 @@ PATCH_SITES PATCHFILES PATCH_DIST_STRIP
&checkearlier($file, $tmp, @varnames);
$tmp = "\n" . $tmp;
- if ($tmp =~ /\nMAINTAINER\??=[^\n]+/) {
+ if ($tmp =~ /\nMAINTAINER\??=([^\n]+)/) {
+ my $addr = $1;
+ $addr =~ s/^\s*//;
+ $addr =~ s/\s*$//;
+ if ($addr =~ /[\s,<>()]/) {
+ &perror("FATAL: MAINTAINER should be a single address without comment.");
+ }
$tmp =~ s/\nMAINTAINER\??=[^\n]+//;
} elsif ($whole !~ /\nMAINTAINER[?]?=/) {
&perror("FATAL: no MAINTAINER listed in $file.") unless ($slaveport && $makevar{MAINTAINER} ne '');