FreeBSD Bugzilla – Attachment 153135 Details for
Bug 197779
[UPDATE] security/polarssl13: update to 1.3.10
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
PolarSSL13.patch
polarssl13 (text/plain), 8.17 KB, created by
takefu
on 2015-02-18 04:09:29 UTC
(
hide
)
Description:
PolarSSL13.patch
Filename:
MIME Type:
Creator:
takefu
Created:
2015-02-18 04:09:29 UTC
Size:
8.17 KB
patch
obsolete
>diff -ruN /usr/ports/security/polarssl13/Makefile ./Makefile >--- /usr/ports/security/polarssl13/Makefile 2015-01-23 02:28:10.000000000 +0900 >+++ ./Makefile 2015-02-18 13:00:16.000000000 +0900 >@@ -1,12 +1,13 @@ > # $FreeBSD: head/security/polarssl13/Makefile 377673 2015-01-22 17:28:10Z jase $ > > PORTNAME= polarssl >-PORTVERSION= 1.3.9 >-PORTREVISION= 1 >+PORTVERSION= 1.3.10 > DISTVERSIONSUFFIX= -gpl >+#PORTREVISION= 1 > CATEGORIES= security devel >-MASTER_SITES= http://polarssl.org/download/ >+MASTER_SITES= https://polarssl.org/download/ > PKGNAMESUFFIX= 13 >+DISTNAME= mbedtls-${DISTVERSIONPREFIX}${DISTVERSION}${DISTVERSIONSUFFIX} > > MAINTAINER= chris@bsdjunk.com > COMMENT= Open Source embedded SSL/TLS cryptographic library >@@ -15,10 +16,10 @@ > > ALL_TARGET= no_test > >-USES= cpe gmake tar:tgz >+USES= cpe gmake tar:tgz > USE_LDCONFIG= yes > >-WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION} >+WRKSRC= ${WRKDIR}/mbedtls-${PORTVERSION} > > CONFLICTS= polarssl-[0-9]* > >@@ -28,13 +29,20 @@ > sha1sum sha2sum ssl_cert_test ssl_client1 ssl_client2 \ > ssl_server ssl_test > >+pre-patch: >+ @${REINPLACE_CMD} \ >+ 's|//#define POLARSSL_HAVEGE_C|#define POLARSSL_HAVEGE_C|' \ >+ ${WRKSRC}/include/polarssl/config.h >+ > # cmake install is broken, so we do it by hand > do-install: > @cd ${WRKSRC}/include && ${COPYTREE_SHARE} ${PORTNAME} ${STAGEDIR}${PREFIX}/include "! -name *.orig" > ${INSTALL_DATA} ${WRKSRC}/library/libpolarssl.a ${STAGEDIR}${PREFIX}/lib/ >- ${INSTALL_DATA} ${WRKSRC}/library/libpolarssl.so ${STAGEDIR}${PREFIX}/lib/libpolarssl.so.7 >- ${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libpolarssl.so.7 >- cd ${STAGEDIR}${PREFIX}/lib/ && ${LN} -sf libpolarssl.so.7 libpolarssl.so >+ ${INSTALL_DATA} ${WRKSRC}/library/libpolarssl.so ${STAGEDIR}${PREFIX}/lib/libpolarssl.so.8 >+ ${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libpolarssl.so.8 >+ (cd ${STAGEDIR}${PREFIX}/lib/ && ${LN} -sf libpolarssl.so.8 libpolarssl.so) >+ (cd ${STAGEDIR}${PREFIX}/lib/ && ${LN} -sf libpolarssl.so.8 libmbedtls.so.8) >+ (cd ${STAGEDIR}${PREFIX}/lib/ && ${LN} -sf libmbedtls.so.8 libmbedtls.so) > .for i in ${BINFILES} > ${INSTALL_PROGRAM} ${WRKSRC}/programs/*/${i} ${STAGEDIR}${PREFIX}/bin/polarssl_${i} > .endfor >diff -ruN /usr/ports/security/polarssl13/distinfo ./distinfo >--- /usr/ports/security/polarssl13/distinfo 2014-12-04 23:42:07.000000000 +0900 >+++ ./distinfo 2015-02-18 12:37:31.000000000 +0900 >@@ -1,2 +1,2 @@ >-SHA256 (polarssl-1.3.9-gpl.tgz) = d3605afc28ed4b7d1d9e3142d72e42855e4a23c07c951bbb0299556b02d36755 >-SIZE (polarssl-1.3.9-gpl.tgz) = 1741396 >+SHA256 (mbedtls-1.3.10-gpl.tgz) = 746fd88e0c6623691fc56c4eed52e40a57b2da0ac80f6dd8995094aa6adb407e >+SIZE (mbedtls-1.3.10-gpl.tgz) = 1709888 >diff -ruN /usr/ports/security/polarssl13/files/patch-include-polarssl-config_h ./files/patch-include-polarssl-config_h >--- /usr/ports/security/polarssl13/files/patch-include-polarssl-config_h 2014-12-04 23:42:07.000000000 +0900 >+++ ./files/patch-include-polarssl-config_h 1970-01-01 09:00:00.000000000 +0900 >@@ -1,11 +0,0 @@ >---- include/polarssl/config.h.old 2014-11-28 15:57:37.000000000 +0000 >-+++ include/polarssl/config.h 2014-11-28 16:00:32.000000000 +0000 >-@@ -1518,7 +1518,7 @@ >- * >- * Uncomment to enable the HAVEGE random generator. >- */ >--//#define POLARSSL_HAVEGE_C >-+#define POLARSSL_HAVEGE_C >- >- /** >- * \def POLARSSL_HMAC_DRBG_C >diff -ruN /usr/ports/security/polarssl13/files/patch-include_polarssl_config.h ./files/patch-include_polarssl_config.h >--- /usr/ports/security/polarssl13/files/patch-include_polarssl_config.h 1970-01-01 09:00:00.000000000 +0900 >+++ ./files/patch-include_polarssl_config.h 2014-07-17 14:11:13.000000000 +0900 >@@ -0,0 +1,9 @@ >+--- include/polarssl/config.h.bak 2014-04-11 22:33:59.000000000 +0900 >++++ include/polarssl/config.h 2014-04-30 17:36:41.000000000 +0900 >+@@ -2383,4 +2383,6 @@ >+ #error "POLARSSL_X509_CSR_WRITE_C defined, but not all prerequisites" >+ #endif >+ >++#define SHOW_PROTOTYPE_CHANGE_WARNINGS >++ >+ #endif /* config.h */ >diff -ruN /usr/ports/security/polarssl13/files/patch-library-Makefile ./files/patch-library-Makefile >--- /usr/ports/security/polarssl13/files/patch-library-Makefile 2014-12-04 23:42:07.000000000 +0900 >+++ ./files/patch-library-Makefile 2015-02-18 12:47:45.000000000 +0900 >@@ -1,5 +1,5 @@ >---- library/Makefile.old 2014-11-28 16:02:22.000000000 +0000 >-+++ library/Makefile 2014-11-28 16:03:01.000000000 +0000 >+--- library/Makefile.orig 2015-02-11 01:00:42.000000000 +0900 >++++ library/Makefile 2015-02-18 12:47:25.000000000 +0900 > @@ -18,9 +18,7 @@ > # CFLAGS += -D_BSD_EXTENSION > >@@ -8,7 +8,7 @@ > CFLAGS += -fPIC > -endif > >- SONAME=libpolarssl.so.7 >+ SONAME=libmbedtls.so.8 > > @@ -65,11 +63,7 @@ > >@@ -17,9 +17,8 @@ > -ifndef SHARED > -all: static > -else >--all: shared >+ all: shared static > -endif >-+all: shared static > > static: libpolarssl.a > >diff -ruN /usr/ports/security/polarssl13/files/patch-library-asn1parse_c ./files/patch-library-asn1parse_c >--- /usr/ports/security/polarssl13/files/patch-library-asn1parse_c 2015-01-23 02:28:10.000000000 +0900 >+++ ./files/patch-library-asn1parse_c 1970-01-01 09:00:00.000000000 +0900 >@@ -1,11 +0,0 @@ >---- library/asn1parse.c.orig 2015-01-20 10:12:00.469677333 +0000 >-+++ library/asn1parse.c 2015-01-20 10:14:00.764667419 +0000 >-@@ -278,6 +278,8 @@ >- if( cur->next == NULL ) >- return( POLARSSL_ERR_ASN1_MALLOC_FAILED ); >- >-+ memset( cur->next, 0, sizeof( asn1_sequence ) ); >-+ >- cur = cur->next; >- } >- } >diff -ruN /usr/ports/security/polarssl13/pkg-plist ./pkg-plist >--- /usr/ports/security/polarssl13/pkg-plist 2014-12-04 23:42:07.000000000 +0900 >+++ ./pkg-plist 2015-02-18 13:00:31.000000000 +0900 >@@ -17,30 +17,8 @@ > bin/polarssl_ssl_client2 > bin/polarssl_ssl_server > bin/polarssl_ssl_test >-include/polarssl/aesni.h >-include/polarssl/ccm.h >-include/polarssl/check_config.h >-include/polarssl/compat-1.2.h >-include/polarssl/ecdh.h >-include/polarssl/ecdsa.h >-include/polarssl/ecp.h >-include/polarssl/hmac_drbg.h >-include/polarssl/memory.h >-include/polarssl/memory_buffer_alloc.h >-include/polarssl/oid.h >-include/polarssl/pk.h >-include/polarssl/pk_wrap.h >-include/polarssl/platform.h >-include/polarssl/ripemd160.h >-include/polarssl/sha256.h >-include/polarssl/sha512.h >-include/polarssl/ssl_ciphersuites.h >-include/polarssl/threading.h >-include/polarssl/x509_crl.h >-include/polarssl/x509_crt.h >-include/polarssl/x509_csr.h >-lib/libpolarssl.so.7 > include/polarssl/aes.h >+include/polarssl/aesni.h > include/polarssl/arc4.h > include/polarssl/asn1.h > include/polarssl/asn1write.h >@@ -49,42 +27,66 @@ > include/polarssl/blowfish.h > include/polarssl/bn_mul.h > include/polarssl/camellia.h >+include/polarssl/ccm.h > include/polarssl/certs.h >+include/polarssl/check_config.h > include/polarssl/cipher.h > include/polarssl/cipher_wrap.h >+include/polarssl/compat-1.2.h > include/polarssl/config.h > include/polarssl/ctr_drbg.h > include/polarssl/debug.h > include/polarssl/des.h > include/polarssl/dhm.h >+include/polarssl/ecdh.h >+include/polarssl/ecdsa.h >+include/polarssl/ecp.h > include/polarssl/entropy.h > include/polarssl/entropy_poll.h > include/polarssl/error.h > include/polarssl/gcm.h > include/polarssl/havege.h >+include/polarssl/hmac_drbg.h > include/polarssl/md.h > include/polarssl/md2.h > include/polarssl/md4.h > include/polarssl/md5.h > include/polarssl/md_wrap.h >+include/polarssl/memory.h >+include/polarssl/memory_buffer_alloc.h > include/polarssl/net.h >+include/polarssl/oid.h > include/polarssl/openssl.h > include/polarssl/padlock.h >-include/polarssl/pem.h > include/polarssl/pbkdf2.h >+include/polarssl/pem.h >+include/polarssl/pk.h >+include/polarssl/pk_wrap.h > include/polarssl/pkcs11.h > include/polarssl/pkcs12.h > include/polarssl/pkcs5.h >+include/polarssl/platform.h >+include/polarssl/ripemd160.h > include/polarssl/rsa.h > include/polarssl/sha1.h >+include/polarssl/sha256.h >+include/polarssl/sha512.h > include/polarssl/ssl.h > include/polarssl/ssl_cache.h >+include/polarssl/ssl_ciphersuites.h >+include/polarssl/threading.h > include/polarssl/timing.h > include/polarssl/version.h > include/polarssl/x509.h >+include/polarssl/x509_crl.h >+include/polarssl/x509_crt.h >+include/polarssl/x509_csr.h > include/polarssl/xtea.h > lib/libpolarssl.a > lib/libpolarssl.so >+lib/libpolarssl.so.8 >+lib/libmbedtls.so >+lib/libmbedtls.so.8 > %%PORTDOCS%%%%DOCSDIR%%/ChangeLog > %%PORTDOCS%%%%DOCSDIR%%/README.rst > %%PORTDOCS%%%%DOCSDIR%%/LICENSE
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 197779
: 153135 |
153613