Skip to content

Commit

Permalink
Add a new mechanism for handling "crypto" packages, as discussed
Browse files Browse the repository at this point in the history
on tech-pkg. Setting either USE_SSL or CRYPTO in the package's
Makefile will permit the package to build or not, depending on the
setting of MKCRYPTO (set to yes by default).
  • Loading branch information
fredb committed Sep 9, 2000
1 parent 3a90097 commit af7d172
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 2 deletions.
13 changes: 12 additions & 1 deletion mk/bsd.pkg.mk
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# $NetBSD: bsd.pkg.mk,v 1.566 2000/09/07 15:26:52 fredb Exp $
# $NetBSD: bsd.pkg.mk,v 1.567 2000/09/09 18:45:16 fredb Exp $
#
# This file is in the public domain.
#
Expand All @@ -20,6 +20,9 @@
##### Include any preferences, if not already included, and common definitions
.include "../../mk/bsd.prefs.mk"

##### Build crypto packages by default.
MKCRYPTO?= yes

##### Some overrides of defaults below on a per-OS basis.
.if (${OPSYS} == "NetBSD")
LOCALBASE?= ${DESTDIR}/usr/pkg
Expand Down Expand Up @@ -967,6 +970,9 @@ ACCEPTABLE_LICENSES= ${ACCEPTABLE_LICENCES}
# Don't build a package if it's restricted and we don't want to
# get into that.
#
# Don't build any package that utilizes strong cryptography, for
# when the law of the land forbids it.
#
# Don't attempt to build packages against X if we don't have X.
#
# Don't build a package if it's broken.
Expand All @@ -991,6 +997,11 @@ IGNORE+= "${PKGNAME} may not be placed in source form on a CDROM:" \
IGNORE+= "${PKGNAME} is restricted:" \
" "${RESTRICTED:Q}
.endif
.if !(${MKCRYPTO} == "YES" || ${MKCRYPTO} == yes)
. if (defined(CRYPTO) || defined(USE_SSL))
IGNORE+= "${PKGNAME} may not be built, because it utilizes strong cryptography"
. endif
.endif
.if ((defined(USE_IMAKE) || defined(USE_MOTIF) || \
defined(USE_X11BASE) || defined(USE_X11)) && \
!exists(${X11BASE}))
Expand Down
7 changes: 6 additions & 1 deletion mk/mk.conf.example
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# $NetBSD: mk.conf.example,v 1.153 2000/09/09 16:34:44 veego Exp $
# $NetBSD: mk.conf.example,v 1.154 2000/09/09 18:45:16 fredb Exp $
#

# Sample /etc/mk.conf file, which can be used to set specific values
Expand Down Expand Up @@ -30,6 +30,11 @@
# Possible: defined, not defined
# Default: not defined

#MKCRYPTO= no
# If not YES or yes, don't fetch, build or install crypto packages.
# Possible: not defined, no
# Default: yes

#OBJMACHINE=
# use machine-specific object directories, e.g. work.i386, work.sparc
# Possible: defined, not defined
Expand Down

0 comments on commit af7d172

Please sign in to comment.