app-crypt/openssl-af_alg-engine: new ebuild for user-space crypto
authorStephen L Arnold <nerdboy@gentoo.org>
Wed, 29 Jun 2016 05:18:54 +0000 (22:18 -0700)
committerStephen L Arnold <nerdboy@gentoo.org>
Wed, 29 Jun 2016 05:18:54 +0000 (22:18 -0700)
This partly fills a hole in available ssl engine plugins.  Use with any
recent kernel, tested (for real) on mips, arm, amd64, and x86. I am also
the upstream maintainer for the current packaged version.

Package-Manager: portage-2.2.28

app-crypt/openssl-af_alg-engine/Manifest [new file with mode: 0644]
app-crypt/openssl-af_alg-engine/metadata.xml [new file with mode: 0644]
app-crypt/openssl-af_alg-engine/openssl-af_alg-engine-0.0.1.ebuild [new file with mode: 0644]

diff --git a/app-crypt/openssl-af_alg-engine/Manifest b/app-crypt/openssl-af_alg-engine/Manifest
new file mode 100644 (file)
index 0000000..360d3b5
--- /dev/null
@@ -0,0 +1 @@
+DIST af_alg-0.0.1.tar.gz 332007 SHA256 aeeef47027b06208207553ffc477758d6d4b8334c26b2b233af5127ef7e0a5d9 SHA512 10860268dbff65e20d78c7d251b5ac4e63342e01c30af72894baa63a625f11900a77a8d0cca29d93bd3a06ae29c16c5fc4d71843e7379b7d948ad1b6e6b58b5b WHIRLPOOL 86abc4aba4977f0c0ac83a07f7f4dff250445d6cfc7dc6112bb97f290711d3a16b7ccfb29da5b553cfe5eba08b42d0d333da92afe53fd99ce27f4eda78c35434
diff --git a/app-crypt/openssl-af_alg-engine/metadata.xml b/app-crypt/openssl-af_alg-engine/metadata.xml
new file mode 100644 (file)
index 0000000..a3e00d4
--- /dev/null
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<maintainer>
+       <email>nerdboy@gentoo.org</email>
+       <name>Steve Arnold</name>
+</maintainer>
+<upstream>
+       <remote-id type="github">sarnold/af_alg</remote-id>
+</upstream>
+</pkgmetadata>
diff --git a/app-crypt/openssl-af_alg-engine/openssl-af_alg-engine-0.0.1.ebuild b/app-crypt/openssl-af_alg-engine/openssl-af_alg-engine-0.0.1.ebuild
new file mode 100644 (file)
index 0000000..834a00e
--- /dev/null
@@ -0,0 +1,45 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="5"
+
+MY_PN="af_alg"
+
+inherit autotools eutils libtool linux-info versionator
+
+DESCRIPTION="af_alg is an openssl crypto engine kernel interface thing"
+HOMEPAGE="https://github.com/sarnold/af_alg"
+SRC_URI="mirror://gentoo/${MY_PN}-${PV}.tar.gz"
+
+LICENSE="openssl"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~arm64 ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86"
+IUSE=""
+
+DEPEND="virtual/linux-sources
+       >=dev-libs/openssl-1.0.0d"
+RDEPEND=""
+
+RESTRICT="test"
+
+S=${WORKDIR}/${MY_PN}-${PV}
+
+CONFIG_CHECK="~CRYPTO_USER_API"
+WARNING_CRYPTO_USER_API="You need to enable CONFIG_CRYPTO_USER_API in order to use this package."
+
+src_prepare() {
+       sed -i -e "s|ssl/engines|engines|" "${S}"/configure.ac
+       eautoreconf
+}
+
+src_configure() {
+       econf --with-pic
+}
+
+src_install() {
+       emake DESTDIR="${D}" install || die
+       dodoc AUTHORS NEWS README.rst
+
+       prune_libtool_files --modules
+}