summaryrefslogtreecommitdiff
path: root/pkgtools
diff options
context:
space:
mode:
authorrh <rh>2000-07-20 13:53:41 +0000
committerrh <rh>2000-07-20 13:53:41 +0000
commitdab1dd7d45602fdc3613bae53d4bd1e60ea4d1d4 (patch)
tree9bf8c96d6adf7754f3cea7b93f8eee6823ac0258 /pkgtools
parentb46acbf589cb22024a60560928ce2cd1ea7a6b2e (diff)
downloadpkgsrc-dab1dd7d45602fdc3613bae53d4bd1e60ea4d1d4.tar.gz
Warn about NO_CDROM and NO_PACKAGE.
Diffstat (limited to 'pkgtools')
-rw-r--r--pkgtools/pkglint/files/pkglint.pl12
1 files changed, 11 insertions, 1 deletions
diff --git a/pkgtools/pkglint/files/pkglint.pl b/pkgtools/pkglint/files/pkglint.pl
index c59ef4a5a96..ed6bf45b2c0 100644
--- a/pkgtools/pkglint/files/pkglint.pl
+++ b/pkgtools/pkglint/files/pkglint.pl
@@ -12,7 +12,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.32 2000/07/14 16:09:26 hubertf Exp $
+# $NetBSD: pkglint.pl,v 1.33 2000/07/20 13:53:41 rh Exp $
#
# This version contains some changes necessary for NetBSD packages
# done by Hubert Feyrer <hubertf@netbsd.org> and
@@ -699,6 +699,16 @@ sub checkmakefile {
&perror("WARN: use of USE_PKGLIBTOOL discouraged, ".
"use USE_LIBTOOL instead.");
}
+ print "OK: checking NO_CDROM.\n" if ($verbose);
+ if ($whole =~ /\nNO_CDROM/) {
+ &perror("WARN: use of NO_CDROM discouraged, ".
+ "use NO_BIN_ON_CDROM and/or NO_SRC_ON_CDROM instead.");
+ }
+ print "OK: checking NO_PACKAGE.\n" if ($verbose);
+ if ($whole =~ /\nNO_PACKAGE/) {
+ &perror("WARN: use of NO_PACKAGE to enforce license restrictions ".
+ "is deprecated.");
+ }
#
# whole file: direct use of command names