summaryrefslogtreecommitdiff
path: root/sys-apps/hbaapi
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-apps/hbaapi
reinit the tree, so we can have metadata
Diffstat (limited to 'sys-apps/hbaapi')
-rw-r--r--sys-apps/hbaapi/Manifest8
-rw-r--r--sys-apps/hbaapi/files/hba.conf43
-rw-r--r--sys-apps/hbaapi/files/hbaapi-2.2-qa.patch37
-rw-r--r--sys-apps/hbaapi/hbaapi-2.2.ebuild46
-rw-r--r--sys-apps/hbaapi/metadata.xml11
5 files changed, 145 insertions, 0 deletions
diff --git a/sys-apps/hbaapi/Manifest b/sys-apps/hbaapi/Manifest
new file mode 100644
index 000000000000..7029fa049863
--- /dev/null
+++ b/sys-apps/hbaapi/Manifest
@@ -0,0 +1,8 @@
+AUX hba.conf 1215 SHA256 3ce301c262ac75ec932ce85c049f9f0195e87ecea0461d637a69e9da3fa45179 SHA512 5877c3a461b3d8f717d30b8ff706d31b9b607b94d9a7bfed0fabdd103400e6c0a3b2a26418f948a79d72f5ad1303123cb1af55bbc62dcc47ccc245260168a490 WHIRLPOOL c079ba40f31749c3025de4ce7b262fc76d1e8a1ed25eb7dd4081859c60c2384afe1af84670ff8a39996772b8784fe90ba0f8a31306d96f008a5e081d3effbc59
+AUX hbaapi-2.2-qa.patch 1040 SHA256 b74e85e793192f7d0cdef84f4b9e3f34d0125758ce5715ebf1b4881c0a98d710 SHA512 d920073a442e2421911eaa5cb67459f642f8c9cae0ceb987f68327614d4d6377771d2c57614cebe117abcd82c30a5bd61d3de9fb7dbd14b876e6b563fc9bafce WHIRLPOOL 979eddc07cbd4b5cb2191db482fb0d4422c589df6f9b586663760cb801c6e61009cd5c50fa6c5623a0fad211908dbc68a127b0b36075ac90463142426f90dec9
+DIST hbaapi-2.2.Makefile.gz 1356 SHA256 62a4339c732437895932873810d2b4783b9f170b5af5be402f244b0908cefeec SHA512 1d02546c0dc9143baf1538f3b57e23da4a6b9e685e125c279afac252ae6b4dcd4c8890ed888f8177b5e86c3f76dfabcc9a8d489102c6c68a5d80bf5399118545 WHIRLPOOL 1871c0b71739e2ead12d8e3bbbe2b9630c99703b4b6798aa0b1927fa78133d984aa0d349025207108fd571d0d445fedad9717d4d6c7786989bc36cf0ece00021
+DIST hbaapi_src_2.2.tgz 30232 SHA256 c1b64243666e01c82c3f58e2b032fc76cbe6ced92d894bee2ea83ab99fc90c43 SHA512 83d8d3df0208f632016acac65bc03b9610eb47d98e99565e2bdbe543382b141c0b6d148272dffc421a36f16ee511027899ee2b70a04435a6ef221e0bc559e511 WHIRLPOOL cc8089f9ff9c29f594d5bf579e66400692b0f1455547df8cb1918fd83cef0c818d382978553c210cb5762f2c97010818984eb80f2f54a9719ae456e3fd5ab8d3
+EBUILD hbaapi-2.2.ebuild 899 SHA256 71a20b2f0130c98c2d5dfd5a723fd9a4ba778e01b6b63e59b8a06581eb8c9c44 SHA512 dd067b58e6133cd4fd1f36d2621dfa1eeedba7f6d3c0f30ca9219587921e886ab18a6c0d6f154c8f3db8440d2b3b7c7cdc4cc170054bd8fdd251c0c0dcf2fbf4 WHIRLPOOL cf13d54006fbc3a7c112b048965e3119b7b93206ae73b284759b429deb1b49893af30da375a62f62d86eb2346f9a4be66574482a4c80de73c0a96c00e51c59be
+MISC ChangeLog 2964 SHA256 7dc7f720adfb1333db624dbfdc1dcc1b784f20b751712994c7a20ffec2a53e02 SHA512 c9403feea8ec55963e19df4571e398a85c041ba05a5e028bd431aea07f24d098dbf823c678eada692821c067ea09f7197576cf6b6038d8a35389f7284e851f5a WHIRLPOOL 16ed038863417c7257b8b0a4795f27b777fd1665ccb763aa099453a3c261fc2f836dfaab25029d6d2fad2c2e5c7cbbf33541660878baca16a6c82e476fd9e139
+MISC ChangeLog-2015 961 SHA256 7716a211c0568a062a7793e247f7b714028b5f6e0c0297b4d7166d2609d77314 SHA512 18617a6f8ce13cd9f277a0e9c7f1f0366f2bc5ed59853f803019c8e44275cd742e46c00acd124c1d92c5186db719a3c96a8a04eeccfdc91d12f95596f643edda WHIRLPOOL cc83e7e0a7162e2e3b18072d751f099bd3d90dde401766ccdbb81dcb63acf771de922bf61fbea3ed826bb4ddd00b534c2a5a00d348d397e387e4b0a3e6be75b8
+MISC metadata.xml 326 SHA256 011f956a823982a5109d317095c03d4b1e52131bc38732faf8db39dce2bd4e6d SHA512 e50b86ac61e46085fad0a5d2e921438fffebfcf06181088e011e16da04d4f024d6c55c1d551d20446ff20a4b639dbfb07315999b6959ae53ce3a97395761eb3e WHIRLPOOL 9a73cc8e0e50580d16805182671829f4a5f02f568ebfa577495614b7cc7629ce52f17a1e6ce52b35dfd086a8294a6246afe59e1b18968cfe8add6283d19b907f
diff --git a/sys-apps/hbaapi/files/hba.conf b/sys-apps/hbaapi/files/hba.conf
new file mode 100644
index 000000000000..347c24b80e36
--- /dev/null
+++ b/sys-apps/hbaapi/files/hba.conf
@@ -0,0 +1,43 @@
+#
+# This file contains names and references to HBA libraries
+#
+# Format:
+#
+# <library name> <library pathname>
+#
+# The library name should be prepended with the domain of
+# the manufacturer or driver author.
+#
+# 32bit/64bit implementation note:
+# If a 32bit implementation tries to load a 64 bit library,
+# the load will fail with the result that the 64 bit vendor
+# library is ignored.
+# Likewise, if a 64bit implementation tries to load a 32 bit library,
+# the load will fail with the result that the 32 bit vendor
+# library is ignored.
+
+#org.snia.sample32 /usr/lib/libsample.so
+#com.qlogic.qla32 /usr/lib/libhbaapiqla.so
+#com.emulex.lightpulse32 /usr/lib/libhbaapiemu.so
+#com.emulex.lightpulse64 /usr/lib/sparcv9/libhbaapiemu.so
+#JniHbaLib /opt/JNIsnia/Solaris/Jni/32bit/JniHbaLib.so
+#JniHbaLib /opt/JNIsnia/Solaris/Jni/64bit/JniHbaLib.so
+
+#INSERT_LIB_MARKER - Do not edit this line - Gentoo will insert items after this
+
+
+# Set a debug level (depends on compilation switches)
+#
+# Format:
+#
+# "debuglevel" <debug level>
+#
+# 0 is default, 1 show vendor library opens,
+# 2 shows function calls, 3 shows callback events
+#
+# Uncomment the next line to specify a level
+#debuglevel 3
+
+
+
+
diff --git a/sys-apps/hbaapi/files/hbaapi-2.2-qa.patch b/sys-apps/hbaapi/files/hbaapi-2.2-qa.patch
new file mode 100644
index 000000000000..240cc1d2d473
--- /dev/null
+++ b/sys-apps/hbaapi/files/hbaapi-2.2-qa.patch
@@ -0,0 +1,37 @@
+--- hbaapi_src_2.2.orig/HBAAPILIB.c
++++ hbaapi_src_2.2/HBAAPILIB.c
+@@ -30,7 +30,6 @@
+
+ #ifdef WIN32
+ #include <windows.h>
+-#include <string.h>
+ /*
+ * Next define forces entry points in the dll to be exported
+ * See hbaapi.h to see what it does.
+@@ -40,6 +39,7 @@
+ #include <dlfcn.h>
+ #include <strings.h>
+ #endif
++#include <string.h>
+ #include <stdio.h>
+ #include <time.h>
+ #include "hbaapi.h"
+@@ -395,7 +395,7 @@
+ GRAB_MUTEX(&_hbaapi_APSE_mutex);
+ GRAB_MUTEX(&_hbaapi_TE_mutex);
+ GRAB_MUTEX(&_hbaapi_LE_mutex);
+- for(listp = cb_lists_array, found = 0; found == 0, *listp != NULL; listp++) {
++ for(listp = cb_lists_array, found = 0; found == 0 && *listp != NULL; listp++) {
+ lastp = *listp;
+ for(cbp=**listp; cbp != NULL; cbp = cbp->next) {
+ if(cbhandle != (HBA_CALLBACKHANDLE)cbp) {
+--- hbaapi_src_2.2.orig/hbaapitest.c
++++ hbaapi_src_2.2/hbaapitest.c
+@@ -28,6 +28,7 @@
+
+
+ #include <stdio.h>
++#include <stdlib.h>
+ #ifndef WIN32
+ #include <dlfcn.h> /* Dynamic library support for Solaris */
+ #include <time.h>
diff --git a/sys-apps/hbaapi/hbaapi-2.2.ebuild b/sys-apps/hbaapi/hbaapi-2.2.ebuild
new file mode 100644
index 000000000000..11325810f4da
--- /dev/null
+++ b/sys-apps/hbaapi/hbaapi-2.2.ebuild
@@ -0,0 +1,46 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=4
+
+inherit eutils toolchain-funcs
+
+MY_PN="${PN}_src"
+MY_P="${MY_PN}_${PV}"
+DESCRIPTION="The Host Bus Adapter API for managing Fibre Channel Host Bus Adapters"
+HOMEPAGE="http://hbaapi.sourceforge.net/"
+SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tgz
+ mirror://gentoo/${P}.Makefile.gz"
+
+LICENSE="SNIA"
+SLOT="0"
+KEYWORDS="~ppc ~x86 ~amd64"
+IUSE=""
+
+RESTRICT="test"
+
+S="${WORKDIR}/${MY_P}"
+
+src_prepare() {
+ mv "${WORKDIR}"/${P}.Makefile "${S}"/Makefile
+
+ sed -i -e "s/-g -c/${CFLAGS} -c/" \
+ -e "s/-shared/\0 ${LDFLAGS}/" \
+ Makefile || die
+
+ epatch "${FILESDIR}"/${P}-qa.patch
+}
+
+src_compile() {
+ # not parallel safe!
+ emake -j1 CC="$(tc-getCC)" all
+}
+
+src_install() {
+ into /usr
+ dolib.so libHBAAPI.so
+ dosbin hbaapitest
+ insinto /etc
+ doins "${FILESDIR}"/hba.conf
+ dodoc readme.txt
+}
diff --git a/sys-apps/hbaapi/metadata.xml b/sys-apps/hbaapi/metadata.xml
new file mode 100644
index 000000000000..4ca0373a86f9
--- /dev/null
+++ b/sys-apps/hbaapi/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="sourceforge">hbaapi</remote-id>
+</upstream>
+</pkgmetadata>