Update to last stable release under the polarssl brand. The list of changes is very long and, if you're interested, they can be found here: https://tls.mbed.org/download-archive by reading all the ChangeLogs from 1.2.12-1.3.9. The pkgsrc changes are: Use cmake for build, as that's what upstream recommends and is less likely to fail cross-platform for future releases. Needs pkg-config due to that. Build and install shared library. Remove executable permission from static library during post-install. Needs pthreads and openssl. Tested this build against the build of latest version of powerdns (update coming).diff -r1.7 -r1.8 pkgsrc/security/polarssl/Makefile
(rodent)
@@ -1,23 +1,32 @@ | @@ -1,23 +1,32 @@ | |||
1 | # $NetBSD: Makefile,v 1.7 2015/03/21 19:39:44 jperkin Exp $ | 1 | # $NetBSD: Makefile,v 1.8 2015/03/27 23:30:42 rodent Exp $ | |
2 | # | 2 | # | |
3 | 3 | |||
4 | DISTNAME= polarssl-1.2.12-gpl | 4 | DISTNAME= polarssl-1.3.9-gpl | |
5 | PKGNAME= ${DISTNAME:-gpl=} | 5 | PKGNAME= ${DISTNAME:-gpl=} | |
6 | CATEGORIES= security devel | 6 | CATEGORIES= security devel | |
7 | MASTER_SITES= https://polarssl.org/download/ | 7 | MASTER_SITES= https://tls.mbed.org/download/ | |
8 | EXTRACT_SUFX= .tgz | 8 | EXTRACT_SUFX= .tgz | |
9 | 9 | |||
10 | MAINTAINER= pkgsrc-users@NetBSD.org | 10 | MAINTAINER= pkgsrc-users@NetBSD.org | |
11 | HOMEPAGE= http://polarssl.org/ | 11 | HOMEPAGE= https://tls.mbed.org/ | |
12 | COMMENT= Lightweight, modular cryptographic and SSL/TLS library | 12 | COMMENT= Lightweight, modular cryptographic and SSL/TLS library | |
13 | LICENSE= gnu-gpl-v2 | 13 | LICENSE= gnu-gpl-v2 | |
14 | 14 | |||
15 | WRKSRC= ${WRKDIR}/${PKGNAME_NOREV} | 15 | WRKSRC= ${WRKDIR}/${PKGNAME_NOREV} | |
16 | USE_TOOLS+= gmake perl | 16 | USE_TOOLS+= gmake perl pkg-config | |
17 | USE_CMAKE= yes | |||
17 | REPLACE_PERL= tests/scripts/*.pl | 18 | REPLACE_PERL= tests/scripts/*.pl | |
18 | USE_LANGUAGES= c | 19 | USE_LANGUAGES= c | |
19 | TEST_TARGET= check | 20 | TEST_TARGET= check | |
20 | 21 | |||
22 | .include "../../mk/bsd.fast.prefs.mk" | |||
23 | ||||
24 | CMAKE_ARGS+= -DUSE_SHARED_POLARSSL_LIBRARY=ON | |||
21 | MAKE_ENV+= RANLIB=${RANLIB:Q} | 25 | MAKE_ENV+= RANLIB=${RANLIB:Q} | |
22 | 26 | |||
27 | post-install: | |||
28 | ${CHMOD} -x ${DESTDIR}${PREFIX}/lib/libpolarssl.a | |||
29 | ||||
30 | .include "../../mk/pthread.buildlink3.mk" | |||
31 | .include "../../security/openssl/buildlink3.mk" | |||
23 | .include "../../mk/bsd.pkg.mk" | 32 | .include "../../mk/bsd.pkg.mk" |
@@ -1,48 +1,113 @@ | @@ -1,48 +1,113 @@ | |||
1 | @comment $NetBSD: PLIST,v 1.2 2013/09/11 13:17:25 obache Exp $ | 1 | @comment $NetBSD: PLIST,v 1.3 2015/03/27 23:30:42 rodent Exp $ | |
2 | bin/aescrypt2 | |||
3 | bin/benchmark | |||
4 | bin/cert_app | |||
5 | bin/cert_req | |||
6 | bin/cert_write | |||
7 | bin/crl_app | |||
8 | bin/crypt_and_hash | |||
9 | bin/dh_client | |||
10 | bin/dh_genprime | |||
11 | bin/dh_server | |||
12 | bin/gen_entropy | |||
13 | bin/gen_key | |||
14 | bin/gen_random_ctr_drbg | |||
15 | bin/gen_random_havege | |||
16 | bin/generic_sum | |||
17 | bin/hello | |||
18 | bin/key_app | |||
19 | bin/md5sum | |||
20 | bin/mpi_demo | |||
21 | bin/o_p_test | |||
22 | bin/pem2der | |||
23 | bin/pk_decrypt | |||
24 | bin/pk_encrypt | |||
25 | bin/pk_sign | |||
26 | bin/pk_verify | |||
27 | bin/req_app | |||
28 | bin/rsa_decrypt | |||
29 | bin/rsa_encrypt | |||
30 | bin/rsa_genkey | |||
31 | bin/rsa_sign | |||
32 | bin/rsa_verify | |||
33 | bin/selftest | |||
34 | bin/sha1sum | |||
35 | bin/sha2sum | |||
36 | bin/ssl_cert_test | |||
37 | bin/ssl_client1 | |||
38 | bin/ssl_client2 | |||
39 | bin/ssl_fork_server | |||
40 | bin/ssl_mail_client | |||
41 | bin/ssl_pthread_server | |||
42 | bin/ssl_server | |||
43 | bin/ssl_test | |||
44 | bin/strerror | |||
2 | include/polarssl/aes.h | 45 | include/polarssl/aes.h | |
46 | include/polarssl/aesni.h | |||
3 | include/polarssl/arc4.h | 47 | include/polarssl/arc4.h | |
4 | include/polarssl/asn1.h | 48 | include/polarssl/asn1.h | |
5 | include/polarssl/asn1write.h | 49 | include/polarssl/asn1write.h | |
6 | include/polarssl/base64.h | 50 | include/polarssl/base64.h | |
7 | include/polarssl/bignum.h | 51 | include/polarssl/bignum.h | |
8 | include/polarssl/blowfish.h | 52 | include/polarssl/blowfish.h | |
9 | include/polarssl/bn_mul.h | 53 | include/polarssl/bn_mul.h | |
10 | include/polarssl/camellia.h | 54 | include/polarssl/camellia.h | |
55 | include/polarssl/ccm.h | |||
11 | include/polarssl/certs.h | 56 | include/polarssl/certs.h | |
57 | include/polarssl/check_config.h | |||
12 | include/polarssl/cipher.h | 58 | include/polarssl/cipher.h | |
13 | include/polarssl/cipher_wrap.h | 59 | include/polarssl/cipher_wrap.h | |
60 | include/polarssl/compat-1.2.h | |||
14 | include/polarssl/config.h | 61 | include/polarssl/config.h | |
15 | include/polarssl/ctr_drbg.h | 62 | include/polarssl/ctr_drbg.h | |
16 | include/polarssl/debug.h | 63 | include/polarssl/debug.h | |
17 | include/polarssl/des.h | 64 | include/polarssl/des.h | |
18 | include/polarssl/dhm.h | 65 | include/polarssl/dhm.h | |
66 | include/polarssl/ecdh.h | |||
67 | include/polarssl/ecdsa.h | |||
68 | include/polarssl/ecp.h | |||
19 | include/polarssl/entropy.h | 69 | include/polarssl/entropy.h | |
20 | include/polarssl/entropy_poll.h | 70 | include/polarssl/entropy_poll.h | |
21 | include/polarssl/error.h | 71 | include/polarssl/error.h | |
22 | include/polarssl/gcm.h | 72 | include/polarssl/gcm.h | |
23 | include/polarssl/havege.h | 73 | include/polarssl/havege.h | |
74 | include/polarssl/hmac_drbg.h | |||
24 | include/polarssl/md.h | 75 | include/polarssl/md.h | |
25 | include/polarssl/md2.h | 76 | include/polarssl/md2.h | |
26 | include/polarssl/md4.h | 77 | include/polarssl/md4.h | |
27 | include/polarssl/md5.h | 78 | include/polarssl/md5.h | |
28 | include/polarssl/md_wrap.h | 79 | include/polarssl/md_wrap.h | |
80 | include/polarssl/memory.h | |||
81 | include/polarssl/memory_buffer_alloc.h | |||
29 | include/polarssl/net.h | 82 | include/polarssl/net.h | |
83 | include/polarssl/oid.h | |||
30 | include/polarssl/openssl.h | 84 | include/polarssl/openssl.h | |
31 | include/polarssl/padlock.h | 85 | include/polarssl/padlock.h | |
32 | include/polarssl/pbkdf2.h | 86 | include/polarssl/pbkdf2.h | |
33 | include/polarssl/pem.h | 87 | include/polarssl/pem.h | |
88 | include/polarssl/pk.h | |||
89 | include/polarssl/pk_wrap.h | |||
34 | include/polarssl/pkcs11.h | 90 | include/polarssl/pkcs11.h | |
35 | include/polarssl/pkcs12.h | 91 | include/polarssl/pkcs12.h | |
36 | include/polarssl/pkcs5.h | 92 | include/polarssl/pkcs5.h | |
93 | include/polarssl/platform.h | |||
94 | include/polarssl/ripemd160.h | |||
37 | include/polarssl/rsa.h | 95 | include/polarssl/rsa.h | |
38 | include/polarssl/sha1.h | 96 | include/polarssl/sha1.h | |
39 | include/polarssl/sha2.h | 97 | include/polarssl/sha256.h | |
40 | include/polarssl/sha4.h | 98 | include/polarssl/sha512.h | |
41 | include/polarssl/ssl.h | 99 | include/polarssl/ssl.h | |
42 | include/polarssl/ssl_cache.h | 100 | include/polarssl/ssl_cache.h | |
101 | include/polarssl/ssl_ciphersuites.h | |||
102 | include/polarssl/threading.h | |||
43 | include/polarssl/timing.h | 103 | include/polarssl/timing.h | |
44 | include/polarssl/version.h | 104 | include/polarssl/version.h | |
45 | include/polarssl/x509.h | 105 | include/polarssl/x509.h | |
46 | include/polarssl/x509write.h | 106 | include/polarssl/x509_crl.h | |
107 | include/polarssl/x509_crt.h | |||
108 | include/polarssl/x509_csr.h | |||
47 | include/polarssl/xtea.h | 109 | include/polarssl/xtea.h | |
48 | lib/libpolarssl.a | 110 | lib/libpolarssl.a | |
111 | lib/libpolarssl.so | |||
112 | lib/libpolarssl.so.${PKGVERSION} | |||
113 | lib/libpolarssl.so.7 |
@@ -1,14 +1,13 @@ | @@ -1,14 +1,13 @@ | |||
1 | # $NetBSD: buildlink3.mk,v 1.2 2013/09/11 13:17:03 obache Exp $ | 1 | # $NetBSD: buildlink3.mk,v 1.3 2015/03/27 23:30:42 rodent Exp $ | |
2 | 2 | |||
3 | BUILDLINK_TREE+= polarssl | 3 | BUILDLINK_TREE+= polarssl | |
4 | 4 | |||
5 | .if !defined(POLARSSL_BUILDLINK3_MK) | 5 | .if !defined(POLARSSL_BUILDLINK3_MK) | |
6 | POLARSSL_BUILDLINK3_MK:= | 6 | POLARSSL_BUILDLINK3_MK:= | |
7 | 7 | |||
8 | BUILDLINK_API_DEPENDS.polarssl+= polarssl>=0.10.0 | 8 | BUILDLINK_API_DEPENDS.polarssl+= polarssl>=0.10.0 | |
9 | BUILDLINK_DEPMETHOD.polarssl?= build | |||
10 | BUILDLINK_PKGSRCDIR.polarssl?= ../../security/polarssl | 9 | BUILDLINK_PKGSRCDIR.polarssl?= ../../security/polarssl | |
11 | 10 | |||
12 | .endif # POLARSSL_BUILDLINK3_MK | 11 | .endif # POLARSSL_BUILDLINK3_MK | |
13 | 12 | |||
14 | BUILDLINK_TREE+= -polarssl | 13 | BUILDLINK_TREE+= -polarssl |
@@ -1,7 +1,7 @@ | @@ -1,7 +1,7 @@ | |||
1 | $NetBSD: distinfo,v 1.5 2015/03/19 11:25:24 jperkin Exp $ | 1 | $NetBSD: distinfo,v 1.6 2015/03/27 23:30:42 rodent Exp $ | |
2 | 2 | |||
3 | SHA1 (polarssl-1.2.12-gpl.tgz) = 78cb31a960e4fffaefe7b838f7869072d1e15929 | 3 | SHA1 (polarssl-1.3.9-gpl.tgz) = 3462b4455e1443ac1a1007fbd69861ebfb5c5506 | |
4 | RMD160 (polarssl-1.2.12-gpl.tgz) = 1cfba1607651c008e8bca83553a0988283535a09 | 4 | RMD160 (polarssl-1.3.9-gpl.tgz) = 981e4605d36ac8dfc1269c7be281f8c7d37c93cf | |
5 | Size (polarssl-1.2.12-gpl.tgz) = 1021400 bytes | 5 | Size (polarssl-1.3.9-gpl.tgz) = 1741396 bytes | |
6 | SHA1 (patch-Makefile) = d35397c1df60e384c2a0826844ac8765fd1fef1a | 6 | SHA1 (patch-Makefile) = d35397c1df60e384c2a0826844ac8765fd1fef1a | |
7 | SHA1 (patch-library_Makefile) = 131158b6206c81628ef3c3d037fbe0cc6fcf2c1f | 7 | SHA1 (patch-library_Makefile) = 131158b6206c81628ef3c3d037fbe0cc6fcf2c1f |