summaryrefslogtreecommitdiff
path: root/pkgtools/pkglint/files/pkglint.pl
diff options
context:
space:
mode:
Diffstat (limited to 'pkgtools/pkglint/files/pkglint.pl')
-rw-r--r--pkgtools/pkglint/files/pkglint.pl7
1 files changed, 6 insertions, 1 deletions
diff --git a/pkgtools/pkglint/files/pkglint.pl b/pkgtools/pkglint/files/pkglint.pl
index ba65e142a4b..dd884d5746d 100644
--- a/pkgtools/pkglint/files/pkglint.pl
+++ b/pkgtools/pkglint/files/pkglint.pl
@@ -1,5 +1,5 @@
#! @PERL@
-# $NetBSD: pkglint.pl,v 1.569 2006/05/01 18:08:00 rillig Exp $
+# $NetBSD: pkglint.pl,v 1.570 2006/05/01 20:19:04 rillig Exp $
#
# pkglint - static analyzer and checker for pkgsrc packages
@@ -3312,6 +3312,11 @@ sub checkline_mk_vartype_basic($$$$$$$) {
} elsif ($type eq "RelativePkgPath") {
checkline_relative_path($line, $value);
+ } elsif ($type eq "Restricted") {
+ if ($value ne "\${RESTRICTED}") {
+ $line->log_warning("This variable should be set to \${RESTRICTED}.");
+ }
+
} elsif ($type eq "SVR4PkgName") {
if ($value =~ regex_unresolved) {
$line->log_error("SVR4_PKGNAME must not contain references to other variables.");