summaryrefslogtreecommitdiff
path: root/pkgtools
diff options
context:
space:
mode:
authorrillig <rillig>2005-11-14 12:51:57 +0000
committerrillig <rillig>2005-11-14 12:51:57 +0000
commit3e838bece199e99f21b1e690738756b6801828c7 (patch)
tree990a41e17f3fe8cabb2a600829eda55a2c6315bb /pkgtools
parent263dac403f4326b080c9ae5cd767c1b3740f08f7 (diff)
downloadpkgsrc-3e838bece199e99f21b1e690738756b6801828c7.tar.gz
- EXTRACT_SUFX is of type DistSuffix.
Diffstat (limited to 'pkgtools')
-rw-r--r--pkgtools/pkglint/files/makevars.map3
-rw-r--r--pkgtools/pkglint/files/pkglint.pl7
2 files changed, 8 insertions, 2 deletions
diff --git a/pkgtools/pkglint/files/makevars.map b/pkgtools/pkglint/files/makevars.map
index b5f3ae3d961..3cb051094a2 100644
--- a/pkgtools/pkglint/files/makevars.map
+++ b/pkgtools/pkglint/files/makevars.map
@@ -1,4 +1,4 @@
-# $NetBSD: makevars.map,v 1.30 2005/11/10 12:04:11 rillig Exp $
+# $NetBSD: makevars.map,v 1.31 2005/11/14 12:51:57 rillig Exp $
#
# This file contains the guessed type of some variables, according to
@@ -79,6 +79,7 @@ EMACS_USE_LEIM Yes
EMACS_VERSIONS_ACCEPTED List* of { emacs21 emacs21nox emacs20 xemacs215 xemacs214 }
EXTRACT_ELEMENTS List* of Pathmask
EXTRACT_ONLY List* of Pathname
+EXTRACT_SUFX DistSuffix
EXTRACT_USING { gtar nbtar pax }
FAMBASE Readonly
FAM_ACCEPTED List* of { fam gamin }
diff --git a/pkgtools/pkglint/files/pkglint.pl b/pkgtools/pkglint/files/pkglint.pl
index 9a523fe060c..008dd9f428d 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.355 2005/11/14 12:32:58 rillig Exp $
+# $NetBSD: pkglint.pl,v 1.356 2005/11/14 12:51:57 rillig Exp $
#
# This version contains lots of changes necessary for NetBSD packages
# done by:
@@ -1575,6 +1575,11 @@ sub checktext_basic_vartype($$$$$) {
$line->log_warning("Unknown dependency format.");
}
+ } elsif ($type eq "DistSuffix") {
+ if ($value eq ".tar.gz") {
+ $line->log_note("\"${varname} is \".tar.gz\" by default, so this definition may be redundant.");
+ }
+
} elsif ($type eq "Filename") {
if ($value_novar !~ qr"^[-0-9A-Za-z._~+%]*$") {
$line->log_warning("\"${value}\" is not a valid filename.");