blob: 198de33855fd92f9e4457db1cd207412aa218837 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
|
# New ports collection makefile for: OpenSSL
# Date created: Sun Jan 3 19:36:27 CET 1999
# Whom: Dirk Froemberg <dirk@FreeBSD.org>
#
# $FreeBSD$
#
PORTNAME= openssl
PORTVERSION= 0.9.6e
CATEGORIES= security devel
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/
MAINTAINER= dinoex@FreeBSD.org
.include <bsd.port.pre.mk>
.if ${PORTOBJFORMAT} == "aout"
MAKE_ARGS+= WHOLE_ARCHIVE_FLAG=-Bforcearchive
.else
MAKE_ARGS+= WHOLE_ARCHIVE_FLAG=--whole-archive
.endif
USE_PERL5= yes
.if defined(NOSHARED)
PLIST= ${PKGDIR}/pkg-plist.noshared
.else
ALL_TARGET= freebsd-shared all
SHLIBVER= 3
MAKE_ENV+= SHLIBVER=${SHLIBVER}
PLIST_SUB+= SHLIBVER=${SHLIBVER}
INSTALLS_SHLIB= yes
.endif
.if defined(OPENSSL_OVERWRITE_BASE)
PKGNAMESUFFIX= -overwrite-base
PREFIX= /usr
SHLIBVER= 2
.endif
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 rsautl.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 BIO_ctrl.3 BIO_f_base64.3 \
BIO_f_buffer.3 BIO_f_cipher.3 BIO_f_md.3 BIO_f_null.3 \
BIO_f_ssl.3 BIO_find_type.3 BIO_new.3 BIO_new_bio_pair.3 \
BIO_push.3 BIO_read.3 BIO_s_accept.3 BIO_s_bio.3 \
BIO_s_connect.3 BIO_s_fd.3 BIO_s_file.3 BIO_s_mem.3 \
BIO_s_null.3 BIO_s_socket.3 BIO_set_callback.3 \
BIO_should_retry.3 SSL_CIPHER_get_name.3 \
SSL_COMP_add_compression_method.3 \
SSL_CTX_add_extra_chain_cert.3 SSL_CTX_add_session.3 \
SSL_CTX_ctrl.3 SSL_CTX_flush_sessions.3 SSL_CTX_free.3 \
SSL_CTX_get_ex_new_index.3 SSL_CTX_get_verify_mode.3 \
SSL_CTX_load_verify_locations.3 SSL_CTX_new.3 \
SSL_CTX_sess_number.3 SSL_CTX_sess_set_cache_size.3 \
SSL_CTX_sess_set_get_cb.3 SSL_CTX_sessions.3 \
SSL_CTX_set_cert_store.3 SSL_CTX_set_cert_verify_callback.3 \
SSL_CTX_set_cipher_list.3 SSL_CTX_set_client_CA_list.3 \
SSL_CTX_set_client_cert_cb.3 \
SSL_CTX_set_default_passwd_cb.3 SSL_CTX_set_info_callback.3 \
SSL_CTX_set_mode.3 SSL_CTX_set_options.3 \
SSL_CTX_set_quiet_shutdown.3 SSL_CTX_set_session_cache_mode.3 \
SSL_CTX_set_session_id_context.3 SSL_CTX_set_ssl_version.3 \
SSL_CTX_set_tmp_dh_callback.3 SSL_CTX_set_tmp_rsa_callback.3 \
SSL_CTX_set_timeout.3 SSL_CTX_set_verify.3 \
SSL_CTX_use_certificate.3 SSL_SESSION_free.3 \
SSL_SESSION_get_ex_new_index.3 SSL_SESSION_get_time.3 \
SSL_accept.3 SSL_alert_type_string.3 SSL_clear.3 \
SSL_connect.3 SSL_free.3 SSL_get_SSL_CTX.3 SSL_get_ciphers.3 \
SSL_do_handshake.3 SSL_get_client_CA_list.3 \
SSL_get_current_cipher.3 SSL_get_default_timeout.3 \
SSL_get_ex_data_X509_STORE_CTX_idx.3 SSL_get_ex_new_index.3 \
SSL_get_fd.3 SSL_get_peer_cert_chain.3 \
SSL_get_peer_certificate.3 SSL_get_rbio.3 SSL_get_session.3 \
SSL_get_verify_result.3 SSL_get_version.3 SSL_library_init.3 \
SSL_load_client_CA_file.3 SSL_new.3 SSL_pending.3 SSL_read.3 \
SSL_rstate_string.3 SSL_session_reused.3 SSL_set_bio.3 \
SSL_set_connect_state.3 SSL_set_fd.3 SSL_set_session.3 \
SSL_set_shutdown.3 SSL_set_verify_result.3 SSL_shutdown.3 \
SSL_state_string.3 SSL_want.3 SSL_write.3 \
bio.3 d2i_SSL_SESSION.3 evp.3
MAN5= config.5
MAN7= des_modes.7
.if defined(BATCH) || defined(OPENSSL_WITH_386)
EXTRACONFIGURE= 386
.endif
do-configure:
@cd ${WRKSRC} \
&& ${SETENV} CC="${CC}" CFLAGS="${CFLAGS}" PERL="${PERL}" \
./config --prefix=${PREFIX} --openssldir=${PREFIX}/openssl \
-L${PREFIX}/lib ${EXTRACONFIGURE}
post-install:
.if !defined(NOSHARED)
.for i in libcrypto libssl
@${INSTALL_DATA} ${WRKSRC}/$i.so.${SHLIBVER} ${PREFIX}/lib
@${LN} -sf $i.so.${SHLIBVER} ${PREFIX}/lib/$i.so
.endfor
.endif
.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
@${INSTALL_DATA} ${WRKSRC}/doc/openssl.txt ${DOCSDIR}/
.endif
@${SED} -e 's#/usr/local#${PREFIX}#g' ${PKGMESSAGE}
.include <bsd.port.post.mk>
|