diff options
author | agc <agc@pkgsrc.org> | 1998-03-18 13:54:23 +0000 |
---|---|---|
committer | agc <agc@pkgsrc.org> | 1998-03-18 13:54:23 +0000 |
commit | 8e1671c0c11db8e243535aefb0c91eb8b696f581 (patch) | |
tree | da0159f80983acb45f65a5a6fc4b22bd69ba3357 /security/rsaref/Makefile | |
parent | 868c6db9c6c2a5fa0d8f834c9a4383c4ed97b75b (diff) | |
download | pkgsrc-8e1671c0c11db8e243535aefb0c91eb8b696f581.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/Makefile | 17 |
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 |