PolarSSL is a light-weight open source cryptographic and SSL/TLS library
written in C. PolarSSL is written with embedded systems in mind and has
been ported on a number of architectures, including ARM, PowerPC, MIPS
and Motorola 68000.
Features include:
* Small memory footprint
* Clean and simple API for integration
* Loose coupling of cryptographic code.
* Symmetric encryption algorithms: AES, Triple-DES, DES, ARC4, Camellia, XTEA
* Hash algorithms: MD2, MD4, MD5, SHA-1, SHA-224, SHA-256, SHA-384, SHA-512
* HAVEGE random number generator
* RSA with PKCS#1 v1.5 padding
* SSL version 3 and TLS version 1 client support
* X.509 certificate and CRL reading from memory or disk in PEM and DER formats
* Over 900 regression and code coverage tests
* Example applications
LICENSE: GPL2
WWW: http://polarssl.org/
2009-12-12 12:32:58 +00:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= polarssl
|
2013-10-18 22:18:20 +00:00
|
|
|
PORTVERSION= 1.2.10
|
PolarSSL is a light-weight open source cryptographic and SSL/TLS library
written in C. PolarSSL is written with embedded systems in mind and has
been ported on a number of architectures, including ARM, PowerPC, MIPS
and Motorola 68000.
Features include:
* Small memory footprint
* Clean and simple API for integration
* Loose coupling of cryptographic code.
* Symmetric encryption algorithms: AES, Triple-DES, DES, ARC4, Camellia, XTEA
* Hash algorithms: MD2, MD4, MD5, SHA-1, SHA-224, SHA-256, SHA-384, SHA-512
* HAVEGE random number generator
* RSA with PKCS#1 v1.5 padding
* SSL version 3 and TLS version 1 client support
* X.509 certificate and CRL reading from memory or disk in PEM and DER formats
* Over 900 regression and code coverage tests
* Example applications
LICENSE: GPL2
WWW: http://polarssl.org/
2009-12-12 12:32:58 +00:00
|
|
|
DISTVERSIONSUFFIX= -gpl
|
|
|
|
CATEGORIES= security devel
|
2012-11-26 19:49:22 +00:00
|
|
|
MASTER_SITES= http://polarssl.org/download/
|
PolarSSL is a light-weight open source cryptographic and SSL/TLS library
written in C. PolarSSL is written with embedded systems in mind and has
been ported on a number of architectures, including ARM, PowerPC, MIPS
and Motorola 68000.
Features include:
* Small memory footprint
* Clean and simple API for integration
* Loose coupling of cryptographic code.
* Symmetric encryption algorithms: AES, Triple-DES, DES, ARC4, Camellia, XTEA
* Hash algorithms: MD2, MD4, MD5, SHA-1, SHA-224, SHA-256, SHA-384, SHA-512
* HAVEGE random number generator
* RSA with PKCS#1 v1.5 padding
* SSL version 3 and TLS version 1 client support
* X.509 certificate and CRL reading from memory or disk in PEM and DER formats
* Over 900 regression and code coverage tests
* Example applications
LICENSE: GPL2
WWW: http://polarssl.org/
2009-12-12 12:32:58 +00:00
|
|
|
EXTRACT_SUFX= .tgz
|
|
|
|
|
2012-11-26 19:49:22 +00:00
|
|
|
MAINTAINER= jase@FreeBSD.org
|
PolarSSL is a light-weight open source cryptographic and SSL/TLS library
written in C. PolarSSL is written with embedded systems in mind and has
been ported on a number of architectures, including ARM, PowerPC, MIPS
and Motorola 68000.
Features include:
* Small memory footprint
* Clean and simple API for integration
* Loose coupling of cryptographic code.
* Symmetric encryption algorithms: AES, Triple-DES, DES, ARC4, Camellia, XTEA
* Hash algorithms: MD2, MD4, MD5, SHA-1, SHA-224, SHA-256, SHA-384, SHA-512
* HAVEGE random number generator
* RSA with PKCS#1 v1.5 padding
* SSL version 3 and TLS version 1 client support
* X.509 certificate and CRL reading from memory or disk in PEM and DER formats
* Over 900 regression and code coverage tests
* Example applications
LICENSE: GPL2
WWW: http://polarssl.org/
2009-12-12 12:32:58 +00:00
|
|
|
COMMENT= Open Source embedded SSL/TLS cryptographic library
|
|
|
|
|
2010-06-05 19:53:32 +00:00
|
|
|
LICENSE= GPLv2
|
|
|
|
|
2013-08-13 17:17:15 +00:00
|
|
|
# bypass the HTML "now downloading..." splash site, code below
|
|
|
|
# .include <bsd.port.pre.mk>
|
|
|
|
URL_SUFFIX= ?do=yes
|
|
|
|
FETCH_ARGS= -pRro ${DISTFILES}
|
2012-11-26 19:49:22 +00:00
|
|
|
ALL_TARGET= no_test
|
|
|
|
|
2013-09-30 22:38:41 +00:00
|
|
|
USES= gmake
|
2011-03-05 11:27:08 +00:00
|
|
|
USE_LDCONFIG= yes
|
2010-03-23 21:01:52 +00:00
|
|
|
|
PolarSSL is a light-weight open source cryptographic and SSL/TLS library
written in C. PolarSSL is written with embedded systems in mind and has
been ported on a number of architectures, including ARM, PowerPC, MIPS
and Motorola 68000.
Features include:
* Small memory footprint
* Clean and simple API for integration
* Loose coupling of cryptographic code.
* Symmetric encryption algorithms: AES, Triple-DES, DES, ARC4, Camellia, XTEA
* Hash algorithms: MD2, MD4, MD5, SHA-1, SHA-224, SHA-256, SHA-384, SHA-512
* HAVEGE random number generator
* RSA with PKCS#1 v1.5 padding
* SSL version 3 and TLS version 1 client support
* X.509 certificate and CRL reading from memory or disk in PEM and DER formats
* Over 900 regression and code coverage tests
* Example applications
LICENSE: GPL2
WWW: http://polarssl.org/
2009-12-12 12:32:58 +00:00
|
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
|
|
|
|
|
2013-10-18 22:18:20 +00:00
|
|
|
# PolarSSL 1.3 branch introduces API changes that would best be served at this
|
|
|
|
# time by a new/seperate polarssl13 port. Therefore, limit Portscout to the
|
|
|
|
# 1.2 branch for this port.
|
|
|
|
PORTSCOUT= limit:^1\.2\.
|
|
|
|
|
2013-09-30 22:38:41 +00:00
|
|
|
DOCFILES= ChangeLog README
|
2010-03-23 21:01:52 +00:00
|
|
|
BINFILES= aescrypt2 benchmark dh_client dh_genprime dh_server hello \
|
|
|
|
md5sum mpi_demo rsa_genkey rsa_sign rsa_verify selftest \
|
|
|
|
sha1sum sha2sum ssl_cert_test ssl_client1 ssl_client2 \
|
|
|
|
ssl_server ssl_test
|
|
|
|
|
|
|
|
# cmake install is broken, so we do it by hand
|
|
|
|
do-install:
|
2013-10-01 23:47:13 +00:00
|
|
|
@cd ${WRKSRC}/include && ${COPYTREE_SHARE} ${PORTNAME} ${STAGEDIR}${PREFIX}/include "! -name *.orig"
|
2013-09-30 22:38:41 +00:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/library/libpolarssl.a ${STAGEDIR}${PREFIX}/lib/
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/library/libpolarssl.so ${STAGEDIR}${PREFIX}/lib/libpolarssl.so.0
|
|
|
|
cd ${STAGEDIR}${PREFIX}/lib/ && ${LN} -sf libpolarssl.so.0 libpolarssl.so
|
2010-03-23 21:01:52 +00:00
|
|
|
.for i in ${BINFILES}
|
2013-09-30 22:38:41 +00:00
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/programs/*/${i} ${STAGEDIR}${PREFIX}/bin/polarssl_${i}
|
2010-03-23 21:01:52 +00:00
|
|
|
.endfor
|
|
|
|
|
2014-02-21 13:39:24 +00:00
|
|
|
OPTIONS_DEFINE= DOCS
|
2014-02-10 13:54:26 +00:00
|
|
|
|
2012-11-26 19:49:22 +00:00
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
|
PolarSSL is a light-weight open source cryptographic and SSL/TLS library
written in C. PolarSSL is written with embedded systems in mind and has
been ported on a number of architectures, including ARM, PowerPC, MIPS
and Motorola 68000.
Features include:
* Small memory footprint
* Clean and simple API for integration
* Loose coupling of cryptographic code.
* Symmetric encryption algorithms: AES, Triple-DES, DES, ARC4, Camellia, XTEA
* Hash algorithms: MD2, MD4, MD5, SHA-1, SHA-224, SHA-256, SHA-384, SHA-512
* HAVEGE random number generator
* RSA with PKCS#1 v1.5 padding
* SSL version 3 and TLS version 1 client support
* X.509 certificate and CRL reading from memory or disk in PEM and DER formats
* Over 900 regression and code coverage tests
* Example applications
LICENSE: GPL2
WWW: http://polarssl.org/
2009-12-12 12:32:58 +00:00
|
|
|
post-install:
|
2012-11-26 19:49:22 +00:00
|
|
|
.if ${PORT_OPTIONS:MDOCS}
|
2013-09-30 22:38:41 +00:00
|
|
|
${MKDIR} ${STAGEDIR}${DOCSDIR}
|
|
|
|
.for i in ${DOCFILES}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/${i} ${STAGEDIR}${DOCSDIR}
|
PolarSSL is a light-weight open source cryptographic and SSL/TLS library
written in C. PolarSSL is written with embedded systems in mind and has
been ported on a number of architectures, including ARM, PowerPC, MIPS
and Motorola 68000.
Features include:
* Small memory footprint
* Clean and simple API for integration
* Loose coupling of cryptographic code.
* Symmetric encryption algorithms: AES, Triple-DES, DES, ARC4, Camellia, XTEA
* Hash algorithms: MD2, MD4, MD5, SHA-1, SHA-224, SHA-256, SHA-384, SHA-512
* HAVEGE random number generator
* RSA with PKCS#1 v1.5 padding
* SSL version 3 and TLS version 1 client support
* X.509 certificate and CRL reading from memory or disk in PEM and DER formats
* Over 900 regression and code coverage tests
* Example applications
LICENSE: GPL2
WWW: http://polarssl.org/
2009-12-12 12:32:58 +00:00
|
|
|
.endfor
|
|
|
|
.endif
|
|
|
|
|
2010-06-03 05:24:00 +00:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2013-08-14 17:28:32 +00:00
|
|
|
FETCH_CMD= ${SH} ${FILESDIR}/fetchwrapper.sh \
|
2013-08-13 17:17:15 +00:00
|
|
|
${URL_SUFFIX} ${FETCH_BINARY} ${FETCH_ARGS}
|
|
|
|
|
2010-06-03 05:24:00 +00:00
|
|
|
.if ${ARCH} == "powerpc"
|
|
|
|
BROKEN= Does not compile on powerpc
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.include <bsd.port.post.mk>
|