Fri Mar 27 23:30:42 2015 UTC ()
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).


(rodent)
diff -r1.7 -r1.8 pkgsrc/security/polarssl/Makefile
diff -r1.2 -r1.3 pkgsrc/security/polarssl/PLIST
diff -r1.2 -r1.3 pkgsrc/security/polarssl/buildlink3.mk
diff -r1.5 -r1.6 pkgsrc/security/polarssl/distinfo

cvs diff -r1.7 -r1.8 pkgsrc/security/polarssl/Attic/Makefile (expand / switch to unified diff)

--- pkgsrc/security/polarssl/Attic/Makefile 2015/03/21 19:39:44 1.7
+++ pkgsrc/security/polarssl/Attic/Makefile 2015/03/27 23:30:42 1.8
@@ -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
4DISTNAME= polarssl-1.2.12-gpl 4DISTNAME= polarssl-1.3.9-gpl
5PKGNAME= ${DISTNAME:-gpl=} 5PKGNAME= ${DISTNAME:-gpl=}
6CATEGORIES= security devel 6CATEGORIES= security devel
7MASTER_SITES= https://polarssl.org/download/ 7MASTER_SITES= https://tls.mbed.org/download/
8EXTRACT_SUFX= .tgz 8EXTRACT_SUFX= .tgz
9 9
10MAINTAINER= pkgsrc-users@NetBSD.org 10MAINTAINER= pkgsrc-users@NetBSD.org
11HOMEPAGE= http://polarssl.org/ 11HOMEPAGE= https://tls.mbed.org/
12COMMENT= Lightweight, modular cryptographic and SSL/TLS library 12COMMENT= Lightweight, modular cryptographic and SSL/TLS library
13LICENSE= gnu-gpl-v2 13LICENSE= gnu-gpl-v2
14 14
15WRKSRC= ${WRKDIR}/${PKGNAME_NOREV} 15WRKSRC= ${WRKDIR}/${PKGNAME_NOREV}
16USE_TOOLS+= gmake perl 16USE_TOOLS+= gmake perl pkg-config
 17USE_CMAKE= yes
17REPLACE_PERL= tests/scripts/*.pl 18REPLACE_PERL= tests/scripts/*.pl
18USE_LANGUAGES= c 19USE_LANGUAGES= c
19TEST_TARGET= check 20TEST_TARGET= check
20 21
 22.include "../../mk/bsd.fast.prefs.mk"
 23
 24CMAKE_ARGS+= -DUSE_SHARED_POLARSSL_LIBRARY=ON
21MAKE_ENV+= RANLIB=${RANLIB:Q} 25MAKE_ENV+= RANLIB=${RANLIB:Q}
22 26
 27post-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"

cvs diff -r1.2 -r1.3 pkgsrc/security/polarssl/Attic/PLIST (expand / switch to unified diff)

--- pkgsrc/security/polarssl/Attic/PLIST 2013/09/11 13:17:25 1.2
+++ pkgsrc/security/polarssl/Attic/PLIST 2015/03/27 23:30:42 1.3
@@ -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 $
 2bin/aescrypt2
 3bin/benchmark
 4bin/cert_app
 5bin/cert_req
 6bin/cert_write
 7bin/crl_app
 8bin/crypt_and_hash
 9bin/dh_client
 10bin/dh_genprime
 11bin/dh_server
 12bin/gen_entropy
 13bin/gen_key
 14bin/gen_random_ctr_drbg
 15bin/gen_random_havege
 16bin/generic_sum
 17bin/hello
 18bin/key_app
 19bin/md5sum
 20bin/mpi_demo
 21bin/o_p_test
 22bin/pem2der
 23bin/pk_decrypt
 24bin/pk_encrypt
 25bin/pk_sign
 26bin/pk_verify
 27bin/req_app
 28bin/rsa_decrypt
 29bin/rsa_encrypt
 30bin/rsa_genkey
 31bin/rsa_sign
 32bin/rsa_verify
 33bin/selftest
 34bin/sha1sum
 35bin/sha2sum
 36bin/ssl_cert_test
 37bin/ssl_client1
 38bin/ssl_client2
 39bin/ssl_fork_server
 40bin/ssl_mail_client
 41bin/ssl_pthread_server
 42bin/ssl_server
 43bin/ssl_test
 44bin/strerror
2include/polarssl/aes.h 45include/polarssl/aes.h
 46include/polarssl/aesni.h
3include/polarssl/arc4.h 47include/polarssl/arc4.h
4include/polarssl/asn1.h 48include/polarssl/asn1.h
5include/polarssl/asn1write.h 49include/polarssl/asn1write.h
6include/polarssl/base64.h 50include/polarssl/base64.h
7include/polarssl/bignum.h 51include/polarssl/bignum.h
8include/polarssl/blowfish.h 52include/polarssl/blowfish.h
9include/polarssl/bn_mul.h 53include/polarssl/bn_mul.h
10include/polarssl/camellia.h 54include/polarssl/camellia.h
 55include/polarssl/ccm.h
11include/polarssl/certs.h 56include/polarssl/certs.h
 57include/polarssl/check_config.h
12include/polarssl/cipher.h 58include/polarssl/cipher.h
13include/polarssl/cipher_wrap.h 59include/polarssl/cipher_wrap.h
 60include/polarssl/compat-1.2.h
14include/polarssl/config.h 61include/polarssl/config.h
15include/polarssl/ctr_drbg.h 62include/polarssl/ctr_drbg.h
16include/polarssl/debug.h 63include/polarssl/debug.h
17include/polarssl/des.h 64include/polarssl/des.h
18include/polarssl/dhm.h 65include/polarssl/dhm.h
 66include/polarssl/ecdh.h
 67include/polarssl/ecdsa.h
 68include/polarssl/ecp.h
19include/polarssl/entropy.h 69include/polarssl/entropy.h
20include/polarssl/entropy_poll.h 70include/polarssl/entropy_poll.h
21include/polarssl/error.h 71include/polarssl/error.h
22include/polarssl/gcm.h 72include/polarssl/gcm.h
23include/polarssl/havege.h 73include/polarssl/havege.h
 74include/polarssl/hmac_drbg.h
24include/polarssl/md.h 75include/polarssl/md.h
25include/polarssl/md2.h 76include/polarssl/md2.h
26include/polarssl/md4.h 77include/polarssl/md4.h
27include/polarssl/md5.h 78include/polarssl/md5.h
28include/polarssl/md_wrap.h 79include/polarssl/md_wrap.h
 80include/polarssl/memory.h
 81include/polarssl/memory_buffer_alloc.h
29include/polarssl/net.h 82include/polarssl/net.h
 83include/polarssl/oid.h
30include/polarssl/openssl.h 84include/polarssl/openssl.h
31include/polarssl/padlock.h 85include/polarssl/padlock.h
32include/polarssl/pbkdf2.h 86include/polarssl/pbkdf2.h
33include/polarssl/pem.h 87include/polarssl/pem.h
 88include/polarssl/pk.h
 89include/polarssl/pk_wrap.h
34include/polarssl/pkcs11.h 90include/polarssl/pkcs11.h
35include/polarssl/pkcs12.h 91include/polarssl/pkcs12.h
36include/polarssl/pkcs5.h 92include/polarssl/pkcs5.h
 93include/polarssl/platform.h
 94include/polarssl/ripemd160.h
37include/polarssl/rsa.h 95include/polarssl/rsa.h
38include/polarssl/sha1.h 96include/polarssl/sha1.h
39include/polarssl/sha2.h 97include/polarssl/sha256.h
40include/polarssl/sha4.h 98include/polarssl/sha512.h
41include/polarssl/ssl.h 99include/polarssl/ssl.h
42include/polarssl/ssl_cache.h 100include/polarssl/ssl_cache.h
 101include/polarssl/ssl_ciphersuites.h
 102include/polarssl/threading.h
43include/polarssl/timing.h 103include/polarssl/timing.h
44include/polarssl/version.h 104include/polarssl/version.h
45include/polarssl/x509.h 105include/polarssl/x509.h
46include/polarssl/x509write.h 106include/polarssl/x509_crl.h
 107include/polarssl/x509_crt.h
 108include/polarssl/x509_csr.h
47include/polarssl/xtea.h 109include/polarssl/xtea.h
48lib/libpolarssl.a 110lib/libpolarssl.a
 111lib/libpolarssl.so
 112lib/libpolarssl.so.${PKGVERSION}
 113lib/libpolarssl.so.7

cvs diff -r1.2 -r1.3 pkgsrc/security/polarssl/Attic/buildlink3.mk (expand / switch to unified diff)

--- pkgsrc/security/polarssl/Attic/buildlink3.mk 2013/09/11 13:17:03 1.2
+++ pkgsrc/security/polarssl/Attic/buildlink3.mk 2015/03/27 23:30:42 1.3
@@ -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
3BUILDLINK_TREE+= polarssl 3BUILDLINK_TREE+= polarssl
4 4
5.if !defined(POLARSSL_BUILDLINK3_MK) 5.if !defined(POLARSSL_BUILDLINK3_MK)
6POLARSSL_BUILDLINK3_MK:= 6POLARSSL_BUILDLINK3_MK:=
7 7
8BUILDLINK_API_DEPENDS.polarssl+= polarssl>=0.10.0 8BUILDLINK_API_DEPENDS.polarssl+= polarssl>=0.10.0
9BUILDLINK_DEPMETHOD.polarssl?= build 
10BUILDLINK_PKGSRCDIR.polarssl?= ../../security/polarssl 9BUILDLINK_PKGSRCDIR.polarssl?= ../../security/polarssl
11 10
12.endif # POLARSSL_BUILDLINK3_MK 11.endif # POLARSSL_BUILDLINK3_MK
13 12
14BUILDLINK_TREE+= -polarssl 13BUILDLINK_TREE+= -polarssl

cvs diff -r1.5 -r1.6 pkgsrc/security/polarssl/Attic/distinfo (expand / switch to unified diff)

--- pkgsrc/security/polarssl/Attic/distinfo 2015/03/19 11:25:24 1.5
+++ pkgsrc/security/polarssl/Attic/distinfo 2015/03/27 23:30:42 1.6
@@ -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
3SHA1 (polarssl-1.2.12-gpl.tgz) = 78cb31a960e4fffaefe7b838f7869072d1e15929 3SHA1 (polarssl-1.3.9-gpl.tgz) = 3462b4455e1443ac1a1007fbd69861ebfb5c5506
4RMD160 (polarssl-1.2.12-gpl.tgz) = 1cfba1607651c008e8bca83553a0988283535a09 4RMD160 (polarssl-1.3.9-gpl.tgz) = 981e4605d36ac8dfc1269c7be281f8c7d37c93cf
5Size (polarssl-1.2.12-gpl.tgz) = 1021400 bytes 5Size (polarssl-1.3.9-gpl.tgz) = 1741396 bytes
6SHA1 (patch-Makefile) = d35397c1df60e384c2a0826844ac8765fd1fef1a 6SHA1 (patch-Makefile) = d35397c1df60e384c2a0826844ac8765fd1fef1a
7SHA1 (patch-library_Makefile) = 131158b6206c81628ef3c3d037fbe0cc6fcf2c1f 7SHA1 (patch-library_Makefile) = 131158b6206c81628ef3c3d037fbe0cc6fcf2c1f