app-misc/c_rehash: initial import of version 1.7 for libressl compat
authorJulian Ospald <hasufell@gentoo.org>
Sun, 20 Sep 2015 13:26:39 +0000 (15:26 +0200)
committerJulian Ospald <hasufell@gentoo.org>
Sun, 20 Sep 2015 13:26:39 +0000 (15:26 +0200)
app-misc/c_rehash/Manifest [new file with mode: 0644]
app-misc/c_rehash/c_rehash-1.7.ebuild [new file with mode: 0644]
app-misc/c_rehash/metadata.xml [new file with mode: 0644]

diff --git a/app-misc/c_rehash/Manifest b/app-misc/c_rehash/Manifest
new file mode 100644 (file)
index 0000000..f31dde2
--- /dev/null
@@ -0,0 +1 @@
+DIST openssl-c_rehash.sh.1.7 4167 SHA256 4999ee79892f52bd6a4a7baba9fac62262454d573bbffd72685d3aae9e48cee0 SHA512 55e8c2e827750a4f375cb83c86bfe2d166c01ffa5d7e9b16657b72b38b747c8985dd2c98f854c911dfbbee2ff3e92aff39fdf089d979b2e3534b7685ee8b80da WHIRLPOOL c88f06a3b8651f76b6289552cccceb64e13f6697c5f0ce3ff114c781ce1c218912b8ee308af9d087cd76a9600fdacda1953175bff07d7d3eb21b0c0b7f4f1ce1
diff --git a/app-misc/c_rehash/c_rehash-1.7.ebuild b/app-misc/c_rehash/c_rehash-1.7.ebuild
new file mode 100644 (file)
index 0000000..8b2d6b6
--- /dev/null
@@ -0,0 +1,32 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+DESCRIPTION="c_rehash script from OpenSSL"
+HOMEPAGE="http://www.openssl.org/"
+SRC_URI="http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/openssl/openssl-c_rehash.sh?rev=${PV} -> openssl-c_rehash.sh.${PV}"
+
+LICENSE="openssl"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~arm-linux ~x86-linux"
+IUSE=""
+
+RDEPEND="!dev-libs/openssl:0"
+DEPEND="${RDEPEND}"
+
+S=${WORKDIR}
+
+src_prepare() {
+       SSL_CNF_DIR="/etc/ssl"
+       sed \
+               -e "/^DIR=/s:=.*:=${EPREFIX}${SSL_CNF_DIR}:" \
+               -e "s:SSL_CMD=/usr:SSL_CMD=${EPREFIX}/usr:" \
+               "${DISTDIR}"/openssl-c_rehash.sh.${PV} \
+               > "${WORKDIR}"/c_rehash || die #416717
+}
+
+src_install() {
+       dobin "${WORKDIR}"/c_rehash
+}
diff --git a/app-misc/c_rehash/metadata.xml b/app-misc/c_rehash/metadata.xml
new file mode 100644 (file)
index 0000000..a309a9b
--- /dev/null
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+       <maintainer>
+               <email>hasufell@gentoo.org</email>
+               <name>Julian Ospald</name>
+       </maintainer>
+</pkgmetadata>