diff options
Diffstat (limited to 'net-libs/nacl')
-rw-r--r-- | net-libs/nacl/ChangeLog | 9 | ||||
-rw-r--r-- | net-libs/nacl/Manifest | 3 | ||||
-rw-r--r-- | net-libs/nacl/metadata.xml | 8 | ||||
-rw-r--r-- | net-libs/nacl/nacl-0_p20110221.ebuild | 74 |
4 files changed, 94 insertions, 0 deletions
diff --git a/net-libs/nacl/ChangeLog b/net-libs/nacl/ChangeLog new file mode 100644 index 000000000000..0aeb60cedc98 --- /dev/null +++ b/net-libs/nacl/ChangeLog @@ -0,0 +1,9 @@ +# ChangeLog for net-libs/nacl +# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/net-libs/nacl/ChangeLog,v 1.1 2013/05/31 07:59:22 xmw Exp $ + +*nacl-0_p20110221 (31 May 2013) + + 31 May 2013; Michael Weber <xmw@gentoo.org> +metadata.xml, + +nacl-0_p20110221.ebuild: + Initial import, dep of net-analyzer/netsniff-ng diff --git a/net-libs/nacl/Manifest b/net-libs/nacl/Manifest new file mode 100644 index 000000000000..797d4849d440 --- /dev/null +++ b/net-libs/nacl/Manifest @@ -0,0 +1,3 @@ +DIST nacl-20110221.tar.bz2 163415 SHA256 4f277f89735c8b0b8a6bbd043b3efb3fa1cc68a9a5da6a076507d067fc3b3bf8 SHA512 4c031ceffe6a28dc74b46ac003d485531f78de467c802df73c8b22ca53644dabb7d2e3080b7bdd6583f0d07ad76b6d95bc0ffdce319ca2f80ee041e6fe618656 WHIRLPOOL 6fd80c68cf7c644189aba0e2cc72fd382149fc10fc69a208eaf5d51b45c3fbcc9a4a0284bf6dcfd05d34f1ef77ef7f3e735c68ce38dc3c4ca9f0412ac825a98a +EBUILD nacl-0_p20110221.ebuild 1912 SHA256 e9cd166bde007d72615b228eca33935155e2ee0f67134175f98256ab478086f3 SHA512 192a5bfb9ba4d8bad936769ed4b77fdcc33a6a34e8dbe3e36df130415216b99eecbfab962ccb1f9eeb564f0dc3d6f88a998599fe889521958a0b39ef290e370e WHIRLPOOL aaa5bd276ddefca52e2350c97f56d2a957ee5b8d76842dbe1dffba96cd39aae3fe79a78ee059168d3acb9288c5be4a574ed7951be6b4dbe9692cace285a5918b +MISC metadata.xml 223 SHA256 89097f936927d56068988263e382edb683f359b27293955708e9ade4d256220d SHA512 c9f6a48b2aa05afdf73b8bd824c65480d76e54b659ca39928398c66f764d34faf186255d8aea034737424a962cf35151b610d078a01f8193b027c63e1e3c51b5 WHIRLPOOL 1ce20c98a7e177b8f510ef41f3935b0db5e04b2ecf465a683b2f2515f6a3043c33e6e9efc87f5aaaf59b2ed9be376d9d16bc8beff66b11aaa50ea899bfdc1f62 diff --git a/net-libs/nacl/metadata.xml b/net-libs/nacl/metadata.xml new file mode 100644 index 000000000000..5b80fb94c393 --- /dev/null +++ b/net-libs/nacl/metadata.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<maintainer> +<email>xmw@gentoo.org</email> +<name>Michael Weber</name> +</maintainer> +</pkgmetadata> diff --git a/net-libs/nacl/nacl-0_p20110221.ebuild b/net-libs/nacl/nacl-0_p20110221.ebuild new file mode 100644 index 000000000000..72e48139b335 --- /dev/null +++ b/net-libs/nacl/nacl-0_p20110221.ebuild @@ -0,0 +1,74 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-libs/nacl/nacl-0_p20110221.ebuild,v 1.1 2013/05/31 07:59:22 xmw Exp $ + +EAPI=5 + +inherit flag-o-matic toolchain-funcs multilib-minimal + +DESCRIPTION="high-speed software library for network communication, encryption, decryption, signatures" +HOMEPAGE="http://nacl.cr.yp.to/" +SRC_URI="http://hyperelliptic.org/nacl/${P/0_p}.tar.bz2" + +LICENSE="public-domain" +SLOT="0" +KEYWORDS="~amd64" +IUSE="test" + +DEPEND="" +RDEPEND="${DEPEND}" + +S=${WORKDIR}/${P/0_p} + +MULTILIB_WRAPPED_HEADERS=( + /usr/include/nacl/cpucycles.h + /usr/include/nacl/crypto_core_hsalsa20.h + /usr/include/nacl/crypto_hashblocks_sha256.h + /usr/include/nacl/crypto_hashblocks_sha512.h + /usr/include/nacl/crypto_onetimeauth_poly1305.h + /usr/include/nacl/crypto_scalarmult_curve25519.h + /usr/include/nacl/crypto_stream_aes128ctr.h + /usr/include/nacl/crypto_stream_salsa20.h + /usr/include/nacl/crypto_stream_salsa2012.h + /usr/include/nacl/crypto_stream_salsa208.h ) + +src_prepare() { + #drop useless path elements, verbose output, predictable include dir + sed -e '/^export/d' \ + -e '/^PATH/d' \ + -e '/^LD_LIBRARY_PATH/d' \ + -e '/^DYLD_LIBRARY_PATH/d' \ + -e '/^exec >/d' \ + -e '/^shorthostname/s:=.*:=gentoo:' \ + -i do || die + sed -e 's:=== `date` === ::' \ + -i $(find . -name do) || die + rm -r tests + + multilib_copy_sources + + filter-flags "-O*" + append-cflags -O3 -fomit-frame-pointer -funroll-loops + append-cxxflags -O3 -fomit-frame-pointer -funroll-loops +} + +multilib_src_configure() { + echo "$(tc-getCC) ${CFLAGS}" > okcompilers/c + echo "$(tc-getCXX) ${CXXFLAGS}" > okcompilers/cpp + echo "$(tc-getAR)" > okcompilers/archivers + + sed -e "1aexport PATH=\"${BUILD_DIR}/build/gentoo/bin:${PATH}\"" \ + -i do || die +} + +multilib_src_compile() { + ./do || die +} + +multilib_src_install() { + insinto /usr/$(get_libdir)/${PN} + doins build/gentoo/lib/*/* + + insinto /usr/include/${PN} + doins build/gentoo/include/*/* +} |