1999-01-09 12:55:50 +00:00
|
|
|
# New ports collection makefile for: OpenSSL
|
|
|
|
# Date created: Sun Jan 3 19:36:27 CET 1999
|
1999-08-09 18:48:15 +00:00
|
|
|
# Whom: Dirk Froemberg <dirk@FreeBSD.org>
|
1996-03-03 21:32:35 +00:00
|
|
|
#
|
1999-08-31 01:53:22 +00:00
|
|
|
# $FreeBSD$
|
1998-08-21 22:04:29 +00:00
|
|
|
#
|
1996-03-03 21:32:35 +00:00
|
|
|
|
2000-04-09 18:34:06 +00:00
|
|
|
PORTNAME= openssl
|
2000-04-21 08:19:33 +00:00
|
|
|
PORTVERSION= 0.9.5a
|
1999-11-07 22:19:49 +00:00
|
|
|
CATEGORIES= security devel
|
1999-03-26 08:42:49 +00:00
|
|
|
MASTER_SITES= http://www.openssl.org/source/ \
|
|
|
|
ftp://ftp.openssl.org/source/ \
|
|
|
|
ftp://ftp.sunet.se/pub/security/tools/net/openssl/source/ \
|
|
|
|
ftp://ftp.cert.dfn.de/pub/tools/net/openssl/source/
|
1998-10-26 05:52:02 +00:00
|
|
|
|
1999-08-09 18:48:15 +00:00
|
|
|
MAINTAINER= dirk@FreeBSD.org
|
1999-03-06 11:36:23 +00:00
|
|
|
|
2000-01-28 22:05:15 +00:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
.if ${OSVERSION} >= 400014
|
1999-12-30 11:13:37 +00:00
|
|
|
FORBIDDEN= "OpenSSL is already in the base system"
|
|
|
|
.endif
|
2000-04-25 22:16:24 +00:00
|
|
|
.if ${PORTOBJFORMAT} == "aout"
|
|
|
|
NOSHARED= yes
|
|
|
|
.endif
|
1999-12-30 11:13:37 +00:00
|
|
|
|
1999-03-26 08:42:49 +00:00
|
|
|
RESTRICTED= "Cryptography"
|
|
|
|
USE_PERL5= yes
|
2000-04-25 22:16:24 +00:00
|
|
|
.if defined(NOSHARED)
|
|
|
|
PLIST= ${PKGDIR}/PLIST.noshared
|
|
|
|
.else
|
1999-11-07 22:19:49 +00:00
|
|
|
ALL_TARGET= freebsd-shared all
|
|
|
|
SHLIBVER= 1
|
|
|
|
MAKE_ENV+= SHLIBVER=${SHLIBVER}
|
2000-04-25 22:16:24 +00:00
|
|
|
.endif
|
1996-07-29 19:57:58 +00:00
|
|
|
|
2000-04-16 12:24:45 +00:00
|
|
|
MANPREFIX= ${PREFIX}/openssl
|
|
|
|
MAN1= CA.pl.1 asn1parse.1 ca.1 ciphers.1 crl.1 crl2pkcs7.1 dgst.1 \
|
|
|
|
dhparam.1 dsa.1 dsaparam.1 enc.1 gendsa.1 genrsa.1 nseq.1 \
|
|
|
|
openssl.1 passwd.1 pkcs12.1 pkcs7.1 pkcs8.1 rand.1 req.1 \
|
|
|
|
rsa.1 s_client.1 s_server.1 sess_id.1 smime.1 speed.1 \
|
|
|
|
spkac.1 verify.1 version.1 x509.1
|
|
|
|
MAN3= BN_CTX_new.3 BN_CTX_start.3 BN_add.3 BN_add_word.3 \
|
|
|
|
BN_bn2bin.3 BN_cmp.3 BN_copy.3 BN_generate_prime.3 \
|
|
|
|
BN_mod_inverse.3 BN_mod_mul_montgomery.3 \
|
|
|
|
BN_mod_mul_reciprocal.3 BN_new.3 BN_num_bytes.3 BN_rand.3 \
|
|
|
|
BN_set_bit.3 BN_zero.3 CRYPTO_set_ex_data.3 \
|
|
|
|
DH_generate_key.3 DH_generate_parameters.3 \
|
|
|
|
DH_get_ex_new_index.3 DH_new.3 DH_set_method.3 DH_size.3 \
|
|
|
|
DSA_SIG_new.3 DSA_do_sign.3 DSA_dup_DH.3 DSA_generate_key.3 \
|
|
|
|
DSA_generate_parameters.3 DSA_get_ex_new_index.3 DSA_new.3 \
|
|
|
|
DSA_set_method.3 DSA_sign.3 DSA_size.3 ERR_GET_LIB.3 \
|
|
|
|
ERR_clear_error.3 ERR_error_string.3 ERR_get_error.3 \
|
|
|
|
ERR_load_crypto_strings.3 ERR_load_strings.3 \
|
|
|
|
ERR_print_errors.3 ERR_put_error.3 ERR_remove_state.3 \
|
|
|
|
EVP_DigestInit.3 EVP_EncryptInit.3 EVP_OpenInit.3 \
|
|
|
|
EVP_SealInit.3 EVP_SignInit.3 EVP_VerifyInit.3 \
|
|
|
|
OPENSSL_VERSION_NUMBER.3 OpenSSL_add_all_algorithms.3 \
|
|
|
|
RAND_add.3 RAND_bytes.3 RAND_cleanup.3 RAND_egd.3 \
|
|
|
|
RAND_load_file.3 RAND_set_rand_method.3 RSA_blinding_on.3 \
|
|
|
|
RSA_check_key.3 RSA_generate_key.3 RSA_get_ex_new_index.3 \
|
|
|
|
RSA_new.3 RSA_padding_add_PKCS1_type_1.3 RSA_print.3 \
|
|
|
|
RSA_private_encrypt.3 RSA_public_encrypt.3 RSA_set_method.3 \
|
|
|
|
RSA_sign.3 RSA_sign_ASN1_OCTET_STRING.3 RSA_size.3 \
|
|
|
|
SSL_get_error.3 blowfish.3 bn.3 bn_internal.3 buffer.3 \
|
|
|
|
crypto.3 d2i_DHparams.3 d2i_RSAPublicKey.3 des.3 dh.3 dsa.3 \
|
|
|
|
err.3 hmac.3 lh_stats.3 lhash.3 md5.3 mdc2.3 rand.3 rc4.3 \
|
|
|
|
ripemd.3 rsa.3 sha.3 ssl.3 threads.3
|
|
|
|
MAN5= config.5
|
|
|
|
MAN7= des_modes.7
|
|
|
|
|
1997-08-15 15:32:11 +00:00
|
|
|
.if !defined(USA_RESIDENT) || ${USA_RESIDENT} != YES && ${USA_RESIDENT} != NO
|
|
|
|
pre-fetch:
|
1999-01-09 12:55:50 +00:00
|
|
|
@${ECHO} ""
|
|
|
|
@${ECHO} "You must set variable USA_RESIDENT to YES, if you are USA resident"
|
1999-03-06 11:36:23 +00:00
|
|
|
@${ECHO} "or to NO, if you aren't USA resident to build this package."
|
1999-08-18 00:02:55 +00:00
|
|
|
@${ECHO} "You must also have installed rsaref port if you are USA resident."
|
1999-01-09 12:55:50 +00:00
|
|
|
@${FALSE}
|
1997-08-15 15:32:11 +00:00
|
|
|
.elif defined(USA_RESIDENT)
|
1999-01-12 23:18:59 +00:00
|
|
|
.if ${USA_RESIDENT} == YES && !defined(I_HAVE_AN_RSA_LICENSE)
|
1999-03-26 08:42:49 +00:00
|
|
|
LIB_DEPENDS= rsaref.2:${PORTSDIR}/security/rsaref
|
1999-06-02 07:30:52 +00:00
|
|
|
RSAREF= rsaref
|
1997-08-15 15:32:11 +00:00
|
|
|
.endif
|
|
|
|
.endif
|
1996-12-03 11:32:53 +00:00
|
|
|
|
1999-03-26 08:42:49 +00:00
|
|
|
do-configure:
|
|
|
|
@cd ${WRKSRC} \
|
1999-06-02 07:30:52 +00:00
|
|
|
&& ${SETENV} CC="${CC}" CFLAGS="${CFLAGS}" PERL="${PERL}" \
|
|
|
|
./config --prefix=${PREFIX} --openssldir=${PREFIX}/openssl \
|
|
|
|
${RSAREF} -L${PREFIX}/lib
|
1999-03-26 08:42:49 +00:00
|
|
|
|
1996-12-03 11:32:53 +00:00
|
|
|
post-install:
|
2000-04-25 22:16:24 +00:00
|
|
|
.if !defined(NOSHARED)
|
1999-11-07 22:19:49 +00:00
|
|
|
.for i in libcrypto libssl
|
|
|
|
@${INSTALL_DATA} ${WRKSRC}/$i.so.${SHLIBVER} ${PREFIX}/lib
|
2000-04-16 12:24:45 +00:00
|
|
|
@${LN} -sf $i.so.${SHLIBVER} ${PREFIX}/lib/$i.so
|
1999-11-07 22:19:49 +00:00
|
|
|
.endfor
|
|
|
|
@${SETENV} OBJFORMAT=${PORTOBJFORMAT} ${LDCONFIG} -m ${PREFIX}/lib
|
2000-04-25 22:16:24 +00:00
|
|
|
.endif
|
1996-12-03 11:32:53 +00:00
|
|
|
.if !defined(NOPORTDOCS)
|
1999-01-09 12:55:50 +00:00
|
|
|
@${MKDIR} ${PREFIX}/share/doc/openssl
|
2000-04-16 12:24:45 +00:00
|
|
|
@${INSTALL_DATA} ${WRKSRC}/doc/openssl.txt ${PREFIX}/share/doc/openssl
|
1996-12-03 11:32:53 +00:00
|
|
|
.endif
|
1999-09-17 19:16:59 +00:00
|
|
|
@${SED} -e 's#/usr/local#${PREFIX}#g' ${PKGDIR}/MESSAGE
|
1996-12-03 11:32:53 +00:00
|
|
|
|
2000-01-28 22:05:15 +00:00
|
|
|
.include <bsd.port.post.mk>
|