summaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
authorfredb <fredb@pkgsrc.org>2000-09-06 20:28:32 +0000
committerfredb <fredb@pkgsrc.org>2000-09-06 20:28:32 +0000
commitb2fd29e9541f0db2f58865d6dba6070bd9f7e1bb (patch)
treea260f67cbd732755e86342ee6d99bac48881259f /mk
parenta4783f72333ce94aad383db217904ed311f1c383 (diff)
downloadpkgsrc-b2fd29e9541f0db2f58865d6dba6070bd9f7e1bb.tar.gz
Introduce a new category, "crypto", with a special property: If the user
sets MKCRYPTO=no, packages in this category won't be fetched, installed, built, or packaged. Also, binary package users forbidden, by law, from using strong cryptography would presumably find the list on the category's automatically generated web page useful for ensuring compliance.
Diffstat (limited to 'mk')
-rw-r--r--mk/bsd.pkg.mk31
-rw-r--r--mk/mk.conf.example7
2 files changed, 26 insertions, 12 deletions
diff --git a/mk/bsd.pkg.mk b/mk/bsd.pkg.mk
index 243c3232588..345a4b5f4bc 100644
--- a/mk/bsd.pkg.mk
+++ b/mk/bsd.pkg.mk
@@ -1,4 +1,4 @@
-# $NetBSD: bsd.pkg.mk,v 1.563 2000/09/06 03:58:23 jlam Exp $
+# $NetBSD: bsd.pkg.mk,v 1.564 2000/09/06 20:28:32 fredb Exp $
#
# This file is in the public domain.
#
@@ -956,21 +956,24 @@ ACCEPTABLE_LICENSES= ${ACCEPTABLE_LICENCES}
# Many ways to disable a package.
#
# If we're in BATCH mode and the package is interactive, or we're
-# in interactive mode and the package is non-interactive, skip all
-# the important targets. The reason we have two modes is that
-# one might want to leave a build in BATCH mode running
-# overnight, then come back in the morning and do _only_ the
-# interactive ones that required your intervention.
-#
-# Don't attempt to build packages that require Motif if you don't
-# have Motif.
+# in interactive mode and the package is non-interactive, skip
+# all the important targets. The reason we have two modes is that
+# one might want to leave a build in BATCH mode running overnight,
+# then come back in the morning and do _only_ the interactive ones
+# that required your intervention.
#
# Ignore packages that can't be resold if building for a CDROM.
#
-# Don't build a package if it's restricted and we don't want to get
-# into that.
+# Don't build a package if it's restricted and we don't want to
+# get into that.
+#
+# Don't attempt to build packages against X if we don't have X.
#
# Don't build a package if it's broken.
+#
+# If so specified, for whatever reason, don't build any packages
+# from the "crypto" category
+#
################################################################
.if !defined(NO_IGNORE)
@@ -1000,6 +1003,12 @@ IGNORE+= "${PKGNAME} uses X11, but ${X11BASE} not found"
.if defined(BROKEN)
IGNORE+= "${PKGNAME} is marked as broken:" ${BROKEN:Q}
.endif
+.if defined(MKCRYPTO) && ${MKCRYPTO} != "YES"
+_crypto:= ${CATEGORIES:Mcrypto}
+. if defined(_crypto)
+IGNORE+= "${PKGNAME} may not be built, because it contains strong cryptography"
+. endif
+.endif # MKCRYPTO != YES
.if defined(LICENSE)
. ifdef ACCEPTABLE_LICENSES
diff --git a/mk/mk.conf.example b/mk/mk.conf.example
index 05e037de728..dea41c9d667 100644
--- a/mk/mk.conf.example
+++ b/mk/mk.conf.example
@@ -1,4 +1,4 @@
-# $NetBSD: mk.conf.example,v 1.150 2000/09/06 18:39:24 fredb Exp $
+# $NetBSD: mk.conf.example,v 1.151 2000/09/06 20:28:33 fredb Exp $
#
# Sample /etc/mk.conf file, which can be used to set specific values
@@ -30,6 +30,11 @@
# Possible: defined, not defined
# Default: not defined
+#MKCRYPTO= no
+# Don't fetch, build or install any package in the "crypto" category.
+# Possible: not defined, YES, defined
+# Default: not defined (same as YES)
+
#OBJMACHINE=
# use machine-specific object directories, e.g. work.i386, work.sparc
# Possible: defined, not defined