diff options
Diffstat (limited to 'devel')
-rw-r--r-- | devel/portlint/Makefile | 2 | ||||
-rw-r--r-- | devel/portlint/src/portlint.pl | 8 |
2 files changed, 8 insertions, 2 deletions
diff --git a/devel/portlint/Makefile b/devel/portlint/Makefile index 5ea72ac..151e11c 100644 --- a/devel/portlint/Makefile +++ b/devel/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/devel/portlint/src/portlint.pl b/devel/portlint/src/portlint.pl index 1652114..08b13be 100644 --- a/devel/portlint/src/portlint.pl +++ b/devel/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 ''); |