summaryrefslogtreecommitdiff
path: root/sys-block/open-isns
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /sys-block/open-isns
reinit the tree, so we can have metadata
Diffstat (limited to 'sys-block/open-isns')
-rw-r--r--sys-block/open-isns/Manifest5
-rw-r--r--sys-block/open-isns/files/open-isns-0.97-musl.patch11
-rw-r--r--sys-block/open-isns/files/open-isns-0.97-ossl-1.1.patch47
-rw-r--r--sys-block/open-isns/metadata.xml11
-rw-r--r--sys-block/open-isns/open-isns-0.97.ebuild39
5 files changed, 113 insertions, 0 deletions
diff --git a/sys-block/open-isns/Manifest b/sys-block/open-isns/Manifest
new file mode 100644
index 000000000000..9c2edfb63367
--- /dev/null
+++ b/sys-block/open-isns/Manifest
@@ -0,0 +1,5 @@
+AUX open-isns-0.97-musl.patch 268 SHA256 22d1218b9e6fb6591b3608fefaa7b9f77b37d0b26ef440b645d9be36eb199d9c SHA512 c75c031e04281dbc9bcb9c9db66e274346ff3d7b5c38faa64e7271943db842a740019b2fb61d0ed0b1850fb78c678d67dd864f3c77a7554efc03bcba5e7250a1 WHIRLPOOL 82c740167aff4a7a3dc6b328bdf005494f831c611f3a8cf850afdb99b03fbe3eca4edfc3d3c53562cf9749bb64c08c150ed40fe79b6c62c3651ed0a9785ab9e8
+AUX open-isns-0.97-ossl-1.1.patch 1133 SHA256 c115bc325456fa5e11e93d50396e0c59616f4123c46c72d6384b990a390a500e SHA512 334ed03ecd2876e31f8824ad5ff004732c31211a863244d5d5439e6f6b06b85e92b43d9026379e6b151d123f8b19e6054716776c9e9cb285f3fd51fd9dd150e6 WHIRLPOOL d872177325978764c72313de5c223a9462274be37d31e90e1ca5143d5499dbac922d99dd1794ae7e9127d54cafda490706419e5556c57ccefb3fe1ccd2374882
+DIST open-isns-0.97.tar.gz 278317 SHA256 c1c9ae740172e55a1ff33bc22151ec3d916562bf5d60c8420cd64496343683a9 SHA512 78c934162d5a1d093bccd49449d4ef369b896d34309d76b4963d643a699640617c4fe064388c481c35b9be26e012f19713f3aad378af9ad88fa94c3d300e919d WHIRLPOOL b69d99e883bfcc2b4f8c2cd8aeb0b3bc113eb0d7163de0b6d614815d6979de059d3ea8bc709590a211faf7c4cdbeefe823bd6c9bb077889c201f8c044a5bb832
+EBUILD open-isns-0.97.ebuild 891 SHA256 85599f0f8ea2ff89945c3089bf43f041a4e4b334e18068c2161915253b3d221b SHA512 098c8d16bbafa1168cf1f233fdfd787b47103b103a065939fb41e447a309f7943e54dde6b45c6569c2cf19508167df4b84c40c0b8f4edbb3bd622cc495c6d0cb WHIRLPOOL 9faa9ef2bbc8c29fead91e5ea7cfe7731b6884798b5b18682cf6fce78cf887d2bcf49dce8fc014c588b4cd634396a8787b2dfcf32704e6ec6d7508e3943e96a7
+MISC metadata.xml 342 SHA256 d8f4e27d81b06072f82ade478c80e68be5c801a15e8ddc2e639200bce2fb6f42 SHA512 a056b81c2e162e8b13a54f463476fea5f203b9929aeef07629b600d8f11eda26fe0402aec5e56a411e544b39d6c38a5766f773d4a699c72680f11f8dffc4bced WHIRLPOOL 742a70e83652a532128bbd539992967010c677a4f01aa77fea0135c7bc0fdef4f254927dc21a90d16da95a88b7fec2377187d7c42f410be93f7d634ec543177a
diff --git a/sys-block/open-isns/files/open-isns-0.97-musl.patch b/sys-block/open-isns/files/open-isns-0.97-musl.patch
new file mode 100644
index 000000000000..098ade40a213
--- /dev/null
+++ b/sys-block/open-isns/files/open-isns-0.97-musl.patch
@@ -0,0 +1,11 @@
+--- ./include/libisns/util.h.orig
++++ ./include/libisns/util.h
+@@ -114,6 +114,6 @@
+ # define ntohll(x) __bswap_64(x)
+ # endif
+ # else
+-# include <sys/endian.h>
++# include <endian.h>
+ # define htonll(x) htobe64(x)
+ # define ntohll(x) be64toh(x)
+ # endif
diff --git a/sys-block/open-isns/files/open-isns-0.97-ossl-1.1.patch b/sys-block/open-isns/files/open-isns-0.97-ossl-1.1.patch
new file mode 100644
index 000000000000..ebb641af27d4
--- /dev/null
+++ b/sys-block/open-isns/files/open-isns-0.97-ossl-1.1.patch
@@ -0,0 +1,47 @@
+From 70b11a0f9c4056dc6891c2d5550c28993905f18a Mon Sep 17 00:00:00 2001
+From: eroen <open-isns@occam.eroen.eu>
+Date: Mon, 2 Jan 2017 23:15:08 +0100
+Subject: [PATCH] Disable deprecated initializations for openssl-1.1.0
+
+This fixes several undefined reference errors when linking with
+openssl-1.1.0c.
+
+X-Gentoo-Bug: 604454
+X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=604454
+---
+ pki.c | 4 ++++
+ 1 file changed, 4 insertions(+)
+
+diff --git a/pki.c b/pki.c
+index f69ddca..5fdf9f2 100644
+--- a/pki.c
++++ b/pki.c
+@@ -67,7 +67,9 @@ void BN_GENCB_free(BN_GENCB *cb)
+ #endif
+
+
++#if OPENSSL_VERSION_NUMBER < 0x10100000L
+ static int isns_openssl_init = 0;
++#endif
+
+ static int isns_dsasig_verify(isns_security_t *ctx,
+ isns_principal_t *peer,
+@@ -92,6 +94,7 @@ isns_create_dsa_context(void)
+ {
+ isns_security_t *ctx;
+
++#if OPENSSL_VERSION_NUMBER < 0x10100000L
+ if (!isns_openssl_init) {
+ ERR_load_crypto_strings();
+ OpenSSL_add_all_algorithms();
+@@ -99,6 +102,7 @@ isns_create_dsa_context(void)
+ OpenSSL_add_all_digests();
+ isns_openssl_init = 1;
+ }
++#endif
+
+ ctx = isns_calloc(1, sizeof(*ctx));
+
+--
+2.11.0
+
diff --git a/sys-block/open-isns/metadata.xml b/sys-block/open-isns/metadata.xml
new file mode 100644
index 000000000000..c3470797ff9d
--- /dev/null
+++ b/sys-block/open-isns/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version='1.0' encoding='UTF-8'?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>base-system@gentoo.org</email>
+ <name>Gentoo Base System</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="github">open-iscsi/open-isns</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/sys-block/open-isns/open-isns-0.97.ebuild b/sys-block/open-isns/open-isns-0.97.ebuild
new file mode 100644
index 000000000000..098784ba743c
--- /dev/null
+++ b/sys-block/open-isns/open-isns-0.97.ebuild
@@ -0,0 +1,39 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit flag-o-matic
+
+DESCRIPTION="iSNS server and client for Linux"
+HOMEPAGE="https://github.com/open-iscsi/open-isns"
+SRC_URI="https://github.com/open-iscsi/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="LGPL-2.1"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86"
+IUSE="debug slp ssl static"
+
+DEPEND="
+ ssl? ( dev-libs/openssl:= )
+ slp? ( net-libs/openslp )"
+RDEPEND="${DEPEND}"
+
+PATCHES=(
+ "${FILESDIR}/${P}-musl.patch"
+ "${FILESDIR}/${P}-ossl-1.1.patch"
+)
+
+src_configure() {
+ use debug && append-cppflags -DDEBUG_TCP -DDEBUG_SCSI
+ append-lfs-flags
+ econf $(use_with slp) \
+ $(use_with ssl security) \
+ $(use_enable !static shared)
+}
+
+src_install() {
+ default
+ emake DESTDIR="${D}" install_hdrs
+ emake DESTDIR="${D}" install_lib
+}