diff options
author | Robin H. Johnson <robbat2@gentoo.org> | 2015-08-08 13:49:04 -0700 |
---|---|---|
committer | Robin H. Johnson <robbat2@gentoo.org> | 2015-08-08 17:38:18 -0700 |
commit | 56bd759df1d0c750a065b8c845e93d5dfa6b549d (patch) | |
tree | 3f91093cdb475e565ae857f1c5a7fd339e2d781e /sys-apps/hbaapi | |
download | gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.gz gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.bz2 gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.zip |
proj/gentoo: Initial commit
This commit represents a new era for Gentoo:
Storing the gentoo-x86 tree in Git, as converted from CVS.
This commit is the start of the NEW history.
Any historical data is intended to be grafted onto this point.
Creation process:
1. Take final CVS checkout snapshot
2. Remove ALL ChangeLog* files
3. Transform all Manifests to thin
4. Remove empty Manifests
5. Convert all stale $Header$/$Id$ CVS keywords to non-expanded Git $Id$
5.1. Do not touch files with -kb/-ko keyword flags.
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
X-Thanks: Alec Warner <antarus@gentoo.org> - did the GSoC 2006 migration tests
X-Thanks: Robin H. Johnson <robbat2@gentoo.org> - infra guy, herding this project
X-Thanks: Nguyen Thai Ngoc Duy <pclouds@gentoo.org> - Former Gentoo developer, wrote Git features for the migration
X-Thanks: Brian Harring <ferringb@gentoo.org> - wrote much python to improve cvs2svn
X-Thanks: Rich Freeman <rich0@gentoo.org> - validation scripts
X-Thanks: Patrick Lauer <patrick@gentoo.org> - Gentoo dev, running new 2014 work in migration
X-Thanks: Michał Górny <mgorny@gentoo.org> - scripts, QA, nagging
X-Thanks: All of other Gentoo developers - many ideas and lots of paint on the bikeshed
Diffstat (limited to 'sys-apps/hbaapi')
-rw-r--r-- | sys-apps/hbaapi/Manifest | 2 | ||||
-rw-r--r-- | sys-apps/hbaapi/files/hba.conf | 43 | ||||
-rw-r--r-- | sys-apps/hbaapi/files/hbaapi-2.2-qa.patch | 37 | ||||
-rw-r--r-- | sys-apps/hbaapi/hbaapi-2.2.ebuild | 47 | ||||
-rw-r--r-- | sys-apps/hbaapi/metadata.xml | 8 |
5 files changed, 137 insertions, 0 deletions
diff --git a/sys-apps/hbaapi/Manifest b/sys-apps/hbaapi/Manifest new file mode 100644 index 000000000000..f609b7b7c345 --- /dev/null +++ b/sys-apps/hbaapi/Manifest @@ -0,0 +1,2 @@ +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 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..faad2eb0c5bf --- /dev/null +++ b/sys-apps/hbaapi/hbaapi-2.2.ebuild @@ -0,0 +1,47 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +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..290c474f4b48 --- /dev/null +++ b/sys-apps/hbaapi/metadata.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>base-system</herd> + <upstream> + <remote-id type="sourceforge">hbaapi</remote-id> + </upstream> +</pkgmetadata> |