diff options
author | Thomas Sachau <tommy@gentoo.org> | 2009-08-18 12:34:06 +0000 |
---|---|---|
committer | Thomas Sachau <tommy@gentoo.org> | 2009-08-18 12:34:06 +0000 |
commit | b57ec81d975664564fe04589a2232a4ad15be7bf (patch) | |
tree | 8c9e7af5dbcd1f3b2e140a4e51bb08733f2bb4f1 /net-libs | |
parent | Removing old version (diff) | |
download | gentoo-2-b57ec81d975664564fe04589a2232a4ad15be7bf.tar.gz gentoo-2-b57ec81d975664564fe04589a2232a4ad15be7bf.tar.bz2 gentoo-2-b57ec81d975664564fe04589a2232a4ad15be7bf.zip |
Move net-libs/xyssl -> net-libs/polarssl
(Portage version: 2.2_rc38-r2/cvs/Linux x86_64)
Diffstat (limited to 'net-libs')
-rw-r--r-- | net-libs/polarssl/ChangeLog | 10 | ||||
-rw-r--r-- | net-libs/polarssl/metadata.xml | 12 | ||||
-rw-r--r-- | net-libs/polarssl/polarssl-0.12.0.ebuild | 58 |
3 files changed, 80 insertions, 0 deletions
diff --git a/net-libs/polarssl/ChangeLog b/net-libs/polarssl/ChangeLog new file mode 100644 index 000000000000..7ce342fb56d4 --- /dev/null +++ b/net-libs/polarssl/ChangeLog @@ -0,0 +1,10 @@ +# ChangeLog for net-libs/polarssl +# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/net-libs/polarssl/ChangeLog,v 1.1 2009/08/18 12:34:06 tommy Exp $ + +*polarssl-0.12.0 (18 Aug 2009) + + 18 Aug 2009; Thomas Sachau (Tommy[D]) <tommy@gentoo.org> + +polarssl-0.12.0.ebuild, +metadata.xml: + Move net-libs/xyssl -> net-libs/polarssl + diff --git a/net-libs/polarssl/metadata.xml b/net-libs/polarssl/metadata.xml new file mode 100644 index 000000000000..f2fa33cd12e9 --- /dev/null +++ b/net-libs/polarssl/metadata.xml @@ -0,0 +1,12 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>no-herd</herd> + <maintainer> + <email>tommy@gentoo.org</email> + </maintainer> + <longdescription lang="en"> + The aim of the PolarSSL project is to provide a quality, open-source + cryptographic library written in C and targeted at embedded systems. + </longdescription> +</pkgmetadata> diff --git a/net-libs/polarssl/polarssl-0.12.0.ebuild b/net-libs/polarssl/polarssl-0.12.0.ebuild new file mode 100644 index 000000000000..fa96aa5e4b3d --- /dev/null +++ b/net-libs/polarssl/polarssl-0.12.0.ebuild @@ -0,0 +1,58 @@ +# Copyright 1999-2009 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-libs/polarssl/polarssl-0.12.0.ebuild,v 1.1 2009/08/18 12:34:06 tommy Exp $ + +DESCRIPTION="Cryptographic library for embedded systems" +HOMEPAGE="http://polarssl.org/" +SRC_URI="http://polarssl.org/code/download/${P}-gpl.tgz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~sparc ~x86" +IUSE="examples sse2" + +DEPEND="virtual/libc" +RDEPEND=${DEPEND} + +src_compile() { + cd "${S}/library" + if use sse2 ; then + sed -i '15iCFLAGS += -DHAVE_SSE2 -fPIC' Makefile + else + sed -i '15iCFLAGS += -fPIC' Makefile + fi + emake libpolarssl.a || die "emake failed" + emake libpolarssl.so || die "emake failed" + + if use examples ; then + cd "${S}"/programs + emake all || die "emake failed" + fi +} + +src_test() { + cd "${S}"/programs + emake test/selftest || die "emake selftest failed" + ./test/selftest || die "selftest failed" +} + +src_install() { + insinto /usr/include/polarssl + doins include/polarssl/*.h || die + dolib.so library/libpolarssl.so || die + dolib.a library/libpolarssl.a || die + + if use examples ; then + for p in programs/*/* ; do + if [ -x "${p}" ] ; then + f=polarssl_`basename "${p}"` + newbin "${p}" "${f}" || die + fi + done + for e in aes hash pkey ssl test ; do + docinto "${e}" + dodoc programs/"${e}"/*.c || die + dodoc programs/"${e}"/*.txt || die + done + fi +} |