summaryrefslogtreecommitdiff
path: root/pkgtools
diff options
context:
space:
mode:
authorrillig <rillig>2005-11-05 11:02:53 +0000
committerrillig <rillig>2005-11-05 11:02:53 +0000
commit14b809b5d6e598989bba1974e3d2ee9dba2e876d (patch)
treec4686811708ed942dff379e22de3b2f723fcb527 /pkgtools
parent302b29700578a84cd0bd231b38d952911b9fc204 (diff)
downloadpkgsrc-14b809b5d6e598989bba1974e3d2ee9dba2e876d.tar.gz
Updated pkglint to 4.37.2.
- Removed the hard-coded values for valid tool names. The detection is good enough. - Make sure that the domain part NetBSD.org is written like this in mail addresses.
Diffstat (limited to 'pkgtools')
-rw-r--r--pkgtools/pkglint/Makefile4
-rw-r--r--pkgtools/pkglint/files/pkglint.pl15
2 files changed, 10 insertions, 9 deletions
diff --git a/pkgtools/pkglint/Makefile b/pkgtools/pkglint/Makefile
index 43a8dcfa886..27737514f43 100644
--- a/pkgtools/pkglint/Makefile
+++ b/pkgtools/pkglint/Makefile
@@ -1,7 +1,7 @@
-# $NetBSD: Makefile,v 1.284 2005/11/04 22:54:59 rillig Exp $
+# $NetBSD: Makefile,v 1.285 2005/11/05 11:02:53 rillig Exp $
#
-DISTNAME= pkglint-4.37.1
+DISTNAME= pkglint-4.37.2
CATEGORIES= pkgtools devel
MASTER_SITES= # empty
DISTFILES= # empty
diff --git a/pkgtools/pkglint/files/pkglint.pl b/pkgtools/pkglint/files/pkglint.pl
index 1ba01712285..48601c6ae9e 100644
--- a/pkgtools/pkglint/files/pkglint.pl
+++ b/pkgtools/pkglint/files/pkglint.pl
@@ -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.335 2005/11/04 22:54:59 rillig Exp $
+# $NetBSD: pkglint.pl,v 1.336 2005/11/05 11:02:53 rillig Exp $
#
# This version contains lots of changes necessary for NetBSD packages
# done by:
@@ -1461,11 +1461,6 @@ sub get_tool_names() {
}
log_info(NO_FILE, NO_LINE_NUMBER, "Known tools: ".join(" ", sort(keys(%{$tools}))));
- # As long as there is no reliable way to get a list of all valid
- # tool names, this is the best I can do.
- foreach my $tool (qw(autoconf autoconf213 automake automake14 bdftopcf bison flex pkg-config)) {
- $tools->{$tool} = true;
- }
$get_tool_names_value = $tools;
return $get_tool_names_value;
}
@@ -1552,7 +1547,13 @@ sub checktext_basic_vartype($$$$$) {
}
} elsif ($type eq "Mail_Address") {
- if ($value !~ qr"^[-\w\d_.]+\@[-\w\d.]+$") {
+ if ($value =~ qr"^([-\w\d_.]+)\@([-\w\d.]+)$") {
+ my (undef, $domain) = ($1, $2);
+ if ($domain =~ qr"^NetBSD.org"i && $domain ne "NetBSD.org") {
+ $line->log_warning("Please write NetBSD.org instead of ${domain}.");
+ }
+
+ } else {
$line->log_warning("\"${value}\" is not a valid mail address.");
}