diff options
author | gdt <gdt> | 2012-12-11 23:29:27 +0000 |
---|---|---|
committer | gdt <gdt> | 2012-12-11 23:29:27 +0000 |
commit | c56625d7869a7c4dab0d5d9e5a374531b0f4622c (patch) | |
tree | c37a89ffd00e163a68a71ec70786c15f3cfbcaaf /security | |
parent | 1273823037c6a57f1f655962ea2443c595eb0117 (diff) | |
download | pkgsrc-c56625d7869a7c4dab0d5d9e5a374531b0f4622c.tar.gz |
Import polarssl-1.2.0 as security/polarssl.
PolarSSL is an SSL library written in ANSI C. PolarSSL makes it easy for
developers to include cryptographic and SSL/TLS capabilities in their
(embedded) products with as little hassle as possible. It is designed to be
readable, documented, tested, loosely coupled and portable.
This package includes headers/libs only, not the demo programs.
PolarSSL is GPLv2, but offers exceptions to be distributed with other works
licensed as Apache, BSD, CC0, EUPL, LGPL, ISC, WTFPL, X11, zlib/libpng.
Diffstat (limited to 'security')
-rw-r--r-- | security/polarssl/DESCR | 9 | ||||
-rw-r--r-- | security/polarssl/Makefile | 22 | ||||
-rw-r--r-- | security/polarssl/PLIST | 46 | ||||
-rw-r--r-- | security/polarssl/buildlink3.mk | 13 | ||||
-rw-r--r-- | security/polarssl/distinfo | 6 | ||||
-rw-r--r-- | security/polarssl/patches/patch-Makefile | 48 |
6 files changed, 144 insertions, 0 deletions
diff --git a/security/polarssl/DESCR b/security/polarssl/DESCR new file mode 100644 index 00000000000..c9131e1c033 --- /dev/null +++ b/security/polarssl/DESCR @@ -0,0 +1,9 @@ +PolarSSL is an SSL library written in ANSI C. PolarSSL makes it easy for +developers to include cryptographic and SSL/TLS capabilities in their +(embedded) products with as little hassle as possible. It is designed to be +readable, documented, tested, loosely coupled and portable. + +This package includes headers/libs only, not the demo programs. + +PolarSSL is GPLv2, but offers exceptions to be distributed with other works +licensed as Apache, BSD, CC0, EUPL, LGPL, ISC, WTFPL, X11, zlib/libpng. diff --git a/security/polarssl/Makefile b/security/polarssl/Makefile new file mode 100644 index 00000000000..83a0b013b25 --- /dev/null +++ b/security/polarssl/Makefile @@ -0,0 +1,22 @@ +# $NetBSD: Makefile,v 1.1 2012/12/11 23:29:27 gdt Exp $ +# + +DISTNAME= polarssl-1.2.0-gpl +PKGNAME= ${DISTNAME:-gpl=} +CATEGORIES= security devel +MASTER_SITES= http://polarssl.org/code/releases/ +EXTRACT_SUFX= .tgz +FETCH_USING= curl + +MAINTAINER= pkgsrc-users@NetBSD.org +HOMEPAGE= http://polarssl.org/ +COMMENT= Lightweight, modular cryptographic and SSL/TLS library +LICENSE= gnu-gpl-v2 + +WRKSRC= ${WRKDIR}/${PKGNAME_NOREV} +USE_TOOLS+= gmake perl +REPLACE_PERL= tests/scripts/*.pl +USE_LANGUAGES= c +TEST_TARGET= check + +.include "../../mk/bsd.pkg.mk" diff --git a/security/polarssl/PLIST b/security/polarssl/PLIST new file mode 100644 index 00000000000..5867000d2ff --- /dev/null +++ b/security/polarssl/PLIST @@ -0,0 +1,46 @@ +@comment $NetBSD: PLIST,v 1.1 2012/12/11 23:29:27 gdt Exp $ +include/polarssl/aes.h +include/polarssl/arc4.h +include/polarssl/asn1.h +include/polarssl/asn1write.h +include/polarssl/base64.h +include/polarssl/bignum.h +include/polarssl/blowfish.h +include/polarssl/bn_mul.h +include/polarssl/camellia.h +include/polarssl/certs.h +include/polarssl/cipher.h +include/polarssl/cipher_wrap.h +include/polarssl/config.h +include/polarssl/ctr_drbg.h +include/polarssl/debug.h +include/polarssl/des.h +include/polarssl/dhm.h +include/polarssl/entropy.h +include/polarssl/entropy_poll.h +include/polarssl/error.h +include/polarssl/gcm.h +include/polarssl/havege.h +include/polarssl/md.h +include/polarssl/md2.h +include/polarssl/md4.h +include/polarssl/md5.h +include/polarssl/md_wrap.h +include/polarssl/net.h +include/polarssl/openssl.h +include/polarssl/padlock.h +include/polarssl/pbkdf2.h +include/polarssl/pem.h +include/polarssl/pkcs11.h +include/polarssl/rsa.h +include/polarssl/sha1.h +include/polarssl/sha2.h +include/polarssl/sha4.h +include/polarssl/ssl.h +include/polarssl/ssl_cache.h +include/polarssl/timing.h +include/polarssl/version.h +include/polarssl/x509.h +include/polarssl/x509write.h +include/polarssl/xtea.h +lib/libpolarssl.a diff --git a/security/polarssl/buildlink3.mk b/security/polarssl/buildlink3.mk new file mode 100644 index 00000000000..0cc694c641b --- /dev/null +++ b/security/polarssl/buildlink3.mk @@ -0,0 +1,13 @@ +# $NetBSD: buildlink3.mk,v 1.1 2012/12/11 23:29:27 gdt Exp $ + +BUILDLINK_TREE+= polarssl + +.if !defined(POLARSSL_BUILDLINK3_MK) +POLARSSL_BUILDLINK3_MK:= + +BUILDLINK_API_DEPENDS.polarssl+= polarssl>=0.10.0 +BUILDLINK_PKGSRCDIR.polarssl?= ../../security/polarssl + +.endif # POLARSSL_BUILDLINK3_MK + +BUILDLINK_TREE+= -polarssl diff --git a/security/polarssl/distinfo b/security/polarssl/distinfo new file mode 100644 index 00000000000..6d5dc4b82e4 --- /dev/null +++ b/security/polarssl/distinfo @@ -0,0 +1,6 @@ +$NetBSD: distinfo,v 1.1 2012/12/11 23:29:27 gdt Exp $ + +SHA1 (polarssl-1.2.0-gpl.tgz) = e7a9d3897c656feafdd48eb1a9836ee81a58a741 +RMD160 (polarssl-1.2.0-gpl.tgz) = 74137580162a7293b61205c3dcaf4b802815b8f7 +Size (polarssl-1.2.0-gpl.tgz) = 973427 bytes +SHA1 (patch-Makefile) = c0d015a0b35d8a0394503d4e66897c14e76cfd0b diff --git a/security/polarssl/patches/patch-Makefile b/security/polarssl/patches/patch-Makefile new file mode 100644 index 00000000000..1ff853ef8d3 --- /dev/null +++ b/security/polarssl/patches/patch-Makefile @@ -0,0 +1,48 @@ +$NetBSD: patch-Makefile,v 1.1 2012/12/11 23:29:28 gdt Exp $ + +Fix DESTDIR for pkgsrc, and suppress building test programs. +--- Makefile.orig 2012-04-05 07:07:50.000000000 -0500 ++++ Makefile 2012-11-14 23:27:47.000000000 -0600 +@@ -1,37 +1,24 @@ +- +-DESTDIR=/usr/local +-PREFIX=polarssl_ ++APPNAME_PRE=polarssl_ + + .SILENT: + + all: + cd library && $(MAKE) all && cd .. +- cd programs && $(MAKE) all && cd .. + cd tests && $(MAKE) all && cd .. + + no_test: + cd library && $(MAKE) all && cd .. +- cd programs && $(MAKE) all && cd .. + + lib: + cd library && $(MAKE) all && cd .. + + install: +- mkdir -p $(DESTDIR)/include/polarssl +- cp -r include/polarssl $(DESTDIR)/include ++ mkdir -p ${DESTDIR}${PREFIX}/include/polarssl ++ cp -r include/polarssl ${DESTDIR}${PREFIX}/include + +- mkdir -p $(DESTDIR)/lib +- cp library/libpolarssl.* $(DESTDIR)/lib ++ mkdir -p ${DESTDIR}${PREFIX}/lib ++ cp library/libpolarssl.* ${DESTDIR}${PREFIX}/lib + +- mkdir -p $(DESTDIR)/bin +- for p in programs/*/* ; do \ +- if [ -x $$p ] && [ ! -d $$p ] ; \ +- then \ +- f=$(PREFIX)`basename $$p` ; \ +- cp $$p $(DESTDIR)/bin/$$f ; \ +- fi \ +- done +- + clean: + cd library && $(MAKE) clean && cd .. + cd programs && $(MAKE) clean && cd .. |