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 13:32:58 +01:00
|
|
|
# New ports collection makefile for: polarssl
|
|
|
|
# Date created: 10 Dec 2009
|
|
|
|
# Whom: dirk.meyer@dinoex.sub.org
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= polarssl
|
2010-08-17 21:41:18 +02:00
|
|
|
PORTVERSION= 0.14.0
|
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 13:32:58 +01:00
|
|
|
DISTVERSIONSUFFIX= -gpl
|
|
|
|
CATEGORIES= security devel
|
|
|
|
MASTER_SITES= http://polarssl.org/code/download/
|
|
|
|
EXTRACT_SUFX= .tgz
|
|
|
|
|
|
|
|
MAINTAINER= dinoex@FreeBSD.org
|
|
|
|
COMMENT= Open Source embedded SSL/TLS cryptographic library
|
|
|
|
|
2010-06-05 21:53:32 +02:00
|
|
|
LICENSE= GPLv2
|
|
|
|
|
2010-03-23 22:01:52 +01:00
|
|
|
USE_PERL5_BUILD= yes
|
|
|
|
|
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 13:32:58 +01:00
|
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
|
|
|
|
PORTDOCS= ChangeLog LICENSE README
|
|
|
|
|
2010-03-23 22:01:52 +01: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:
|
|
|
|
@${TAR} -C ${WRKSRC}/include -cf - polarssl | ${TAR} -C ${PREFIX}/include -xf -
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/library/libpolarssl.a ${PREFIX}/lib/
|
2010-08-04 16:26:57 +02:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/library/libpolarssl.so ${PREFIX}/lib/libpolarssl.so.0
|
|
|
|
cd ${PREFIX}/lib/ && ${LN} -sf libpolarssl.so.0 libpolarssl.so
|
2010-03-23 22:01:52 +01:00
|
|
|
.for i in ${BINFILES}
|
2010-07-18 13:38:06 +02:00
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/programs/*/${i} ${PREFIX}/bin/polarssl_${i}
|
2010-03-23 22:01:52 +01:00
|
|
|
.endfor
|
|
|
|
|
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 13:32:58 +01:00
|
|
|
post-install:
|
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
${MKDIR} ${DOCSDIR}
|
|
|
|
.for i in ${PORTDOCS}
|
|
|
|
${INSTALL_MAN} ${WRKSRC}/${i} ${DOCSDIR}/
|
|
|
|
.endfor
|
|
|
|
.endif
|
|
|
|
|
2010-06-03 07:24:00 +02:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
|
|
|
.if ${ARCH} == "powerpc"
|
|
|
|
BROKEN= Does not compile on powerpc
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.include <bsd.port.post.mk>
|