diff options
author | markm <markm@FreeBSD.org> | 1998-09-15 03:23:42 +0800 |
---|---|---|
committer | markm <markm@FreeBSD.org> | 1998-09-15 03:23:42 +0800 |
commit | 85bf026b85c865a8a7a17c2b3f18bf4a70dd48f0 (patch) | |
tree | 8addfa5207bf78fc1b6611515d275312fae11d1d /security/krb5-17 | |
parent | 0b7ec234f085ed7bb47a959547e534a590d04278 (diff) | |
download | freebsd-ports-gnome-85bf026b85c865a8a7a17c2b3f18bf4a70dd48f0.tar.gz freebsd-ports-gnome-85bf026b85c865a8a7a17c2b3f18bf4a70dd48f0.tar.zst freebsd-ports-gnome-85bf026b85c865a8a7a17c2b3f18bf4a70dd48f0.zip |
Generalise the fetch process, and allow those outside the USA to
fetch as well.
Diffstat (limited to 'security/krb5-17')
-rw-r--r-- | security/krb5-17/Makefile | 42 |
1 files changed, 34 insertions, 8 deletions
diff --git a/security/krb5-17/Makefile b/security/krb5-17/Makefile index efc2bc82a4fb..32a3680eefe2 100644 --- a/security/krb5-17/Makefile +++ b/security/krb5-17/Makefile @@ -3,12 +3,12 @@ # Date created: 6/5/1998 # Whom: n@nectar.com # -# $Id: Makefile,v 1.3 1998/07/27 22:45:10 dima Exp $ +# $Id: Makefile,v 1.4 1998/08/01 19:47:54 dima Exp $ # DISTNAME= krb5-1.0.5 CATEGORIES= security -MASTER_SITES= ftp://athena-dist.mit.edu/pub/kerberos/ +MASTER_SITES= # empty here. See below for real setting. DISTFILES= krb5-1.0.5.src.tar.gz \ krb5-1.0.5.doc.tar.gz \ krb5-1.0.5.crypto.tar.gz @@ -19,6 +19,24 @@ BUILD_DEPENDS= gm4:${PORTSDIR}/devel/m4 DIST_SUBDIR= krb5 +# Deal with "secret" subdirectory on the canonical MASTER_SITE. +# If USA_RESIDENT=YES then: +# we fetch from the canonical MASTER_SITE in the USA, +# and deal with a "secret" subdirectory whose name +# we obtain by using an awk script to search a README file. +# If USA_RESIDENT=NO then: +# we fetch from a MASTER_SITE outside the USA, +# and we don't need to deal with any "secret" subdirectory, +# so we use an empty awk script. +README_KRB5= README.KRB5-1.0.5 +.if defined(USA_RESIDENT) && ${USA_RESIDENT} == "YES" +MASTER_SITES= ftp://athena-dist.mit.edu/pub/kerberos/ +AWK_SCRIPT= '(/1\) Change into the directory/) { if (match($$0, "dist/[0-9]+")) print substr($$0, RSTART, RLENGTH) }' +.else +MASTER_SITES= ftp://ftp.internat.freebsd.org/pub/FreeBSD/distfiles/ +AWK_SCRIPT= '' +.endif + USE_GMAKE= yes GNU_CONFIGURE= yes CONFIGURE_ARGS?= --enable-shared @@ -32,7 +50,6 @@ CONFIGURE_ARGS+= --without-krb4 PREFIX= ${KRB5_HOME} .endif - RESTRICTED= "Crypto; export-controlled" # Set USA_RESIDENT appropriately in /etc/make.conf if you like @@ -47,7 +64,19 @@ pre-fetch: @${ECHO} "the KerberosIV compatibility libraries. " @${ECHO} "------------------------------------------------------" .endif -.if !defined(USA_RESIDENT) || ${USA_RESIDENT} != "YES" +.if defined(USA_RESIDENT) && ${USA_RESIDENT} == "YES" + @${ECHO} + @${ECHO} ">> If you are a US resident, understand that this software" + @${ECHO} " may be export restricted." +.elif defined(USA_RESIDENT) && ${USA_RESIDENT} == "NO" + @${ECHO} + @${ECHO} ">> If you are not a US resident, then you cannot obtain" + @${ECHO} " Kerberos V source from a server within the United" + @${ECHO} " States. If automatic fetching of the sources from" + @${ECHO} " a server outside the US fails then you will have to" + @${ECHO} " find the sources elsewhere yourself, and put them" + @${ECHO} " in ${_DISTDIR}." +.else @${ECHO} @${ECHO} ">> You must set the variable USA_RESIDENT to YES if you are" @${ECHO} " a United States resident, otherwise NO." @@ -55,8 +84,7 @@ pre-fetch: @${ECHO} " may be export restricted." @${ECHO} " If you are not a US resident, then you cannot obtain" @${ECHO} " Kerberos V source from a server within the United" - @${ECHO} " States. You will have to find the source elsewhere," - @${ECHO} " and put them in ${_DISTDIR}." + @${ECHO} " States." @${FALSE} .endif @@ -70,8 +98,6 @@ MAN8= krb5kdc.8 kadmin.8 kadmin.local.8 kdb5_util.8 \ WRKSRC= ${WRKDIR}/${DISTNAME}/src RECONF_COOKIE= ${WRKDIR}/.reconf_done -README_KRB5= README.KRB5-1.0.5 -AWK_SCRIPT= '(/1\) Change into the directory/) { if (match($$0, "dist/[0-9]+")) print substr($$0, RSTART, RLENGTH) }' WANT_HTML?= YES HTML_DOC_DIR= ${WRKDIR}/${DISTNAME}/doc |