summaryrefslogtreecommitdiff
path: root/security/rsaref/Makefile
diff options
context:
space:
mode:
authoragc <agc>1998-03-18 13:54:23 +0000
committeragc <agc>1998-03-18 13:54:23 +0000
commit63bbbf458279f9b455add95b8a642d4aabd04cfd (patch)
treeda0159f80983acb45f65a5a6fc4b22bd69ba3357 /security/rsaref/Makefile
parentb95a70548781efa993667a51001e1b2019efe371 (diff)
downloadpkgsrc-63bbbf458279f9b455add95b8a642d4aabd04cfd.tar.gz
Modify the do-fetch target so that USA_RESIDENT can be set in
/etc/mk.conf and "make fetch" will do the right thing.
Diffstat (limited to 'security/rsaref/Makefile')
-rw-r--r--security/rsaref/Makefile17
1 files changed, 7 insertions, 10 deletions
diff --git a/security/rsaref/Makefile b/security/rsaref/Makefile
index 04fee4f04e6..4bc2f20243b 100644
--- a/security/rsaref/Makefile
+++ b/security/rsaref/Makefile
@@ -4,7 +4,7 @@
# Date created: 17 Feb 1998
# Whom: tv@netbsd.org
#
-# $NetBSD: Makefile,v 1.1.1.1 1998/03/18 00:49:33 tv Exp $
+# $NetBSD: Makefile,v 1.2 1998/03/18 13:54:23 agc Exp $
#
PKGNAME= rsaref-2.0
@@ -22,20 +22,17 @@ MIRROR_DISTFILE=no
IS_INTERACTIVE= yes
do-fetch:
-.if !defined(USA_RESIDENT) || ${USA_RESIDENT} != YES
- @${ECHO}
- @${ECHO} This package is legal for use only within the United States.
- @${ECHO} You must set the variable USA_RESIDENT to YES to enable
- @${ECHO} use of the rsaref package.
- @${ECHO}
- @${FALSE}
-.else
+ @(if [ "X${USA_RESIDENT}" != XYES ]; then \
+ ${ECHO} "This package is legal for use only within the United States."; \
+ ${ECHO} "You must set the variable USA_RESIDENT to YES to enable"; \
+ ${ECHO} "use of the rsaref package."; \
+ ${FALSE}; \
+ fi)
@${MKDIR} ${WRKDIR} || ${TRUE}
@if [ ! -f ${DISTDIR}/${DISTFILES} ]; then \
cd ${WRKDIR} && ${FETCH_CMD} ${FETCH_BEFORE_ARGS} ${RSA_SITE}README ${FETCH_AFTER_ARGS}; \
cd ${_DISTDIR} && ${FETCH_CMD} ${FETCH_BEFORE_ARGS} ${RSA_SITE}`egrep '^dist/U\.S\.-only-' ${WRKDIR}/README`/${DISTNAME}${EXTRACT_SUFX} ${FETCH_AFTER_ARGS}; \
fi
-.endif
pre-configure:
@${RM} -f ${WRKSRC}/md5.h