Revert "Rename libiscsi to libiscsiclient to avoid clash with obscure linux library"

We dont need to change name anymore so witch back to original libiscsi name

This reverts commit c4386dfb87.
This commit is contained in:
Ronnie Sahlberg
2012-03-07 14:30:37 +11:00
parent 367f490edf
commit add1ce67e4
4 changed files with 38 additions and 40 deletions

View File

@@ -4,10 +4,10 @@ ACLOCAL_AMFLAGS =-I m4
AUTOMAKE_OPTIONS = foreign subdir-objects AUTOMAKE_OPTIONS = foreign subdir-objects
AM_CPPFLAGS=-I. -I$(srcdir)/include "-D_U_=__attribute__((unused))" AM_CPPFLAGS=-I. -I$(srcdir)/include "-D_U_=__attribute__((unused))"
AM_CFLAGS=$(WARN_CFLAGS) AM_CFLAGS=$(WARN_CFLAGS)
LDADD = lib/libiscsiclient.la -lpopt LDADD = lib/libiscsi.la -lpopt
EXTRA_DIST = autogen.sh COPYING.LESSER \ EXTRA_DIST = autogen.sh COPYING.LESSER \
packaging/RPM/libiscsiclient.spec.in packaging/RPM/makerpms.sh packaging/RPM/libiscsi.spec.in packaging/RPM/makerpms.sh
# Simplify conditions below by declaring variables as empty # Simplify conditions below by declaring variables as empty
@@ -15,24 +15,24 @@ bin_PROGRAMS =
noinst_PROGRAMS = noinst_PROGRAMS =
EXTRA_PROGRAMS = EXTRA_PROGRAMS =
# libiscsiclient shared library # libiscsi shared library
iscsi_includedir = $(includedir)/iscsi iscsi_includedir = $(includedir)/iscsi
dist_iscsi_include_HEADERS = include/iscsi.h include/scsi-lowlevel.h dist_iscsi_include_HEADERS = include/iscsi.h include/scsi-lowlevel.h
dist_noinst_HEADERS = include/iscsi-private.h include/md5.h include/slist.h dist_noinst_HEADERS = include/iscsi-private.h include/md5.h include/slist.h
lib_LTLIBRARIES = lib/libiscsiclient.la lib_LTLIBRARIES = lib/libiscsi.la
lib_libiscsiclient_la_SOURCES = \ lib_libiscsi_la_SOURCES = \
lib/connect.c lib/crc32c.c lib/discovery.c lib/init.c \ lib/connect.c lib/crc32c.c lib/discovery.c lib/init.c \
lib/login.c lib/md5.c lib/nop.c lib/pdu.c lib/scsi-command.c \ lib/login.c lib/md5.c lib/nop.c lib/pdu.c lib/scsi-command.c \
lib/scsi-lowlevel.c lib/socket.c lib/sync.c lib/task_mgmt.c lib/scsi-lowlevel.c lib/socket.c lib/sync.c lib/task_mgmt.c
SONAME=$(firstword $(subst ., ,$(VERSION))) SONAME=$(firstword $(subst ., ,$(VERSION)))
SOREL=$(shell printf "%d%02d%02d" $(subst ., ,$(VERSION))) SOREL=$(shell printf "%d%02d%02d" $(subst ., ,$(VERSION)))
lib_libiscsiclient_la_LDFLAGS = \ lib_libiscsi_la_LDFLAGS = \
-version-info $(SONAME):$(SOREL):0 -bindir $(bindir) -no-undefined -version-info $(SONAME):$(SOREL):0 -bindir $(bindir) -no-undefined
# libiscsiclient utilities # libiscsi utilities
if PROGRAMS if PROGRAMS
bin_PROGRAMS += bin/iscsi-inq bin/iscsi-ls bin_PROGRAMS += bin/iscsi-inq bin/iscsi-ls
@@ -47,7 +47,7 @@ bin_iscsiclient_SOURCES = examples/iscsiclient.c
EXTRA_PROGRAMS += bin/iscsi-dd EXTRA_PROGRAMS += bin/iscsi-dd
bin_iscsi_dd_SOURCES = examples/iscsi-dd.c bin_iscsi_dd_SOURCES = examples/iscsi-dd.c
# libiscsiclient test tool # libiscsi test tool
noinst_PROGRAMS += bin/iscsi-test noinst_PROGRAMS += bin/iscsi-test
dist_noinst_HEADERS += test-tool/iscsi-test.h dist_noinst_HEADERS += test-tool/iscsi-test.h
@@ -78,9 +78,9 @@ bin_ld_iscsi_SOURCES = src/ld_iscsi.c
bin_ld_iscsi_CFLAGS = $(AM_CFLAGS) -fPIC bin_ld_iscsi_CFLAGS = $(AM_CFLAGS) -fPIC
# 2) let libtool link in the static version of the library # 2) let libtool link in the static version of the library
noinst_LTLIBRARIES = lib/libiscsiclient_convenience.la noinst_LTLIBRARIES = lib/libiscsi_convenience.la
lib_libiscsiclient_convenience_la_SOURCES = $(lib_libiscsiclient_la_SOURCES) lib_libiscsi_convenience_la_SOURCES = $(lib_libiscsi_la_SOURCES)
bin/ld_iscsi.o: src/bin_ld_iscsi-ld_iscsi.o lib/libiscsiclient_convenience.la bin/ld_iscsi.o: src/bin_ld_iscsi-ld_iscsi.o lib/libiscsi_convenience.la
$(LIBTOOL) --mode=link $(CC) -o $@ $^ $(LIBTOOL) --mode=link $(CC) -o $@ $^
# 3) Manually create the .so file. # 3) Manually create the .so file.

View File

@@ -1,5 +1,5 @@
AC_PREREQ(2.50) AC_PREREQ(2.50)
AC_INIT(libiscsiclient, m4_esyscmd([grep 'Version:' ./packaging/RPM/libiscsiclient.spec.in 2>/dev/null | head -1 | sed -e 's/[ \t]*Version:[ \t]*\([^ \t]*\)[ \t]*.*/\1/' | tr -d '\n'])) AC_INIT(libiscsi, m4_esyscmd([grep 'Version:' ./packaging/RPM/libiscsi.spec.in 2>/dev/null | head -1 | sed -e 's/[ \t]*Version:[ \t]*\([^ \t]*\)[ \t]*.*/\1/' | tr -d '\n']))
AC_CONFIG_SRCDIR([lib/init.c]) AC_CONFIG_SRCDIR([lib/init.c])
AC_CONFIG_MACRO_DIR([m4]) AC_CONFIG_MACRO_DIR([m4])
@@ -28,32 +28,32 @@ AC_SUBST(WARN_CFLAGS)
AC_CONFIG_HEADER(config.h) AC_CONFIG_HEADER(config.h)
AC_CACHE_CHECK([for sin_len in sock],libiscsiclient_cv_HAVE_SOCK_SIN_LEN,[ AC_CACHE_CHECK([for sin_len in sock],libiscsi_cv_HAVE_SOCK_SIN_LEN,[
AC_TRY_COMPILE([#include <sys/types.h> AC_TRY_COMPILE([#include <sys/types.h>
#include <sys/socket.h> #include <sys/socket.h>
#include <netinet/in.h>], #include <netinet/in.h>],
[struct sockaddr_in sock; sock.sin_len = sizeof(sock);], [struct sockaddr_in sock; sock.sin_len = sizeof(sock);],
libiscsiclient_cv_HAVE_SOCK_SIN_LEN=yes,libiscsiclient_cv_HAVE_SOCK_SIN_LEN=no)]) libiscsi_cv_HAVE_SOCK_SIN_LEN=yes,libiscsi_cv_HAVE_SOCK_SIN_LEN=no)])
if test x"$libiscsiclient_cv_HAVE_SOCK_SIN_LEN" = x"yes"; then if test x"$libiscsi_cv_HAVE_SOCK_SIN_LEN" = x"yes"; then
AC_DEFINE(HAVE_SOCK_SIN_LEN,1,[Whether the sockaddr_in struct has a sin_len property]) AC_DEFINE(HAVE_SOCK_SIN_LEN,1,[Whether the sockaddr_in struct has a sin_len property])
fi fi
AC_CACHE_CHECK([for tcp keepalive],libiscsiclient_cv_HAVE_TCP_KEEPALIVE,[ AC_CACHE_CHECK([for tcp keepalive],libiscsi_cv_HAVE_TCP_KEEPALIVE,[
AC_TRY_COMPILE([#include <sys/socket.h> AC_TRY_COMPILE([#include <sys/socket.h>
#include <netinet/in.h> #include <netinet/in.h>
#include <netinet/tcp.h>], #include <netinet/tcp.h>],
[int foo = TCP_KEEPCNT + TCP_KEEPIDLE + TCP_KEEPINTVL], [int foo = TCP_KEEPCNT + TCP_KEEPIDLE + TCP_KEEPINTVL],
libiscsiclient_cv_HAVE_TCP_KEEPALIVE=yes,libiscsiclient_cv_HAVE_TCP_KEEPALIVE=no)]) libiscsi_cv_HAVE_TCP_KEEPALIVE=yes,libiscsi_cv_HAVE_TCP_KEEPALIVE=no)])
if test x"$libiscsiclient_cv_HAVE_TCP_KEEPALIVE" = x"yes"; then if test x"$libiscsi_cv_HAVE_TCP_KEEPALIVE" = x"yes"; then
AC_DEFINE(HAVE_TCP_KEEPALIVE,1,[Whether we have support for tcp keepalive socket options]) AC_DEFINE(HAVE_TCP_KEEPALIVE,1,[Whether we have support for tcp keepalive socket options])
fi fi
AC_CACHE_CHECK([for sys filio.h],libiscsiclient_cv_NEED_SYS_FILIO_H,[ AC_CACHE_CHECK([for sys filio.h],libiscsi_cv_NEED_SYS_FILIO_H,[
AC_TRY_COMPILE([#include <stdint.h> AC_TRY_COMPILE([#include <stdint.h>
#include <sys/filio.h>], #include <sys/filio.h>],
[int foo = FIONREAD], [int foo = FIONREAD],
libiscsiclient_cv_NEED_SYS_FILIO_H=yes,libiscsiclient_cv_NEED_SYS_FILIO_H=no)]) libiscsi_cv_NEED_SYS_FILIO_H=yes,libiscsi_cv_NEED_SYS_FILIO_H=no)])
if test x"$libiscsiclient_cv_NEED_SYS_FILIO_H" = x"yes"; then if test x"$libiscsi_cv_NEED_SYS_FILIO_H" = x"yes"; then
AC_DEFINE(NEED_SYS_FILIO_H,1,[Whether we need sys/filio.h]) AC_DEFINE(NEED_SYS_FILIO_H,1,[Whether we need sys/filio.h])
fi fi
@@ -86,7 +86,7 @@ if test "$ac_cv_have_popt" = yes ; then
AC_MSG_RESULT(yes) AC_MSG_RESULT(yes)
else else
AC_MSG_RESULT(no) AC_MSG_RESULT(no)
AC_MSG_NOTICE(You need libpopt to compile the sample libiscsiclient clients.) AC_MSG_NOTICE(You need libpopt to compile the sample libiscsi clients.)
AC_MSG_NOTICE(Only the library will be compiled and installed.) AC_MSG_NOTICE(Only the library will be compiled and installed.)
fi fi
AM_CONDITIONAL(PROGRAMS, [test "$ac_cv_have_popt" = yes]) AM_CONDITIONAL(PROGRAMS, [test "$ac_cv_have_popt" = yes])

View File

@@ -1,12 +1,12 @@
Name: libiscsiclient Name: libiscsi
Summary: iSCSI client library Summary: iSCSI client library
Version: 2.0.0 Version: 1.1.0
Release: 1GITHASH%{?dist} Release: 1GITHASH%{?dist}
License: LGPLv2+ License: LGPLv2+
Group: System Environment/Libraries Group: System Environment/Libraries
URL: https://github.com/sahlberg/libiscsi URL: https://github.com/sahlberg/libiscsi
Source: libiscsiclient-%{version}.tar.gz Source: libiscsi-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-root BuildRoot: %{_tmppath}/%{name}-%{version}-root
BuildRequires: autoconf BuildRequires: autoconf
@@ -15,7 +15,7 @@ BuildRequires: libtool
BuildRequires: popt-devel BuildRequires: popt-devel
%description %description
libiscsiclient is a library for attaching to iSCSI resources across libiscsi is a library for attaching to iSCSI resources across
a network. a network.
@@ -26,7 +26,7 @@ a network.
%prep %prep
%setup -q %setup -q
# setup the init script and sysconfig file # setup the init script and sysconfig file
%setup -T -D -n libiscsiclient-%{version} -q %setup -T -D -n libiscsi-%{version} -q
%build %build
@@ -43,8 +43,8 @@ make %{?_smp_mflags}
# Clean up in case there is trash left from a previous build # Clean up in case there is trash left from a previous build
rm -rf $RPM_BUILD_ROOT rm -rf $RPM_BUILD_ROOT
make DESTDIR=$RPM_BUILD_ROOT install %{?_smp_mflags} make DESTDIR=$RPM_BUILD_ROOT install %{?_smp_mflags}
rm $RPM_BUILD_ROOT/%{_libdir}/libiscsiclient.a rm $RPM_BUILD_ROOT/%{_libdir}/libiscsi.a
rm $RPM_BUILD_ROOT/%{_libdir}/libiscsiclient.la rm $RPM_BUILD_ROOT/%{_libdir}/libiscsi.la
# Remove "*.old" files # Remove "*.old" files
find $RPM_BUILD_ROOT -name "*.old" -exec rm -f {} \; find $RPM_BUILD_ROOT -name "*.old" -exec rm -f {} \;
@@ -59,14 +59,14 @@ rm -rf $RPM_BUILD_ROOT
%files %files
%defattr(-,root,root) %defattr(-,root,root)
%doc COPYING.LESSER README TODO %doc COPYING.LESSER README TODO
%{_libdir}/libiscsiclient.so.* %{_libdir}/libiscsi.so.*
%package utils %package utils
Summary: iSCSI Client Utilities Summary: iSCSI Client Utilities
Group: Applications/System Group: Applications/System
%description utils %description utils
The libiscsiclient-utils package provides a set of assorted utilities to connect The libiscsi-utils package provides a set of assorted utilities to connect
to iSCSI servers without having to set up the Linux iSCSI initiator. to iSCSI servers without having to set up the Linux iSCSI initiator.
%files utils %files utils
@@ -78,21 +78,19 @@ to iSCSI servers without having to set up the Linux iSCSI initiator.
%package devel %package devel
Summary: iSCSI client development libraries Summary: iSCSI client development libraries
Group: Development/Libraries Group: Development/Libraries
Requires: libiscsiclient = %{version}-%{release} Requires: libiscsi = %{version}-%{release}
%description devel %description devel
The libiscsiclient-devel package includes the header files for libiscsiclient. The libiscsi-devel package includes the header files for libiscsi.
%files devel %files devel
%defattr(-,root,root) %defattr(-,root,root)
%doc COPYING.LESSER README TODO %doc COPYING.LESSER README TODO
%{_includedir}/iscsi/iscsi.h %{_includedir}/iscsi/iscsi.h
%{_includedir}/iscsi/scsi-lowlevel.h %{_includedir}/iscsi/scsi-lowlevel.h
%{_libdir}/libiscsiclient.so %{_libdir}/libiscsi.so
%changelog %changelog
* Sat Mar 3 2012 : 2.0.0
- Rename to libiscsiclient to avoid collission with obscure linux library
* Sun Dec 25 2011 : 1.1.0 * Sun Dec 25 2011 : 1.1.0
- Fix TaskManagement AbortTask/AbortTaskSet to send to correct LUN - Fix TaskManagement AbortTask/AbortTaskSet to send to correct LUN

View File

@@ -40,8 +40,8 @@ TOPDIR=${DIRNAME}/../..
SPECDIR=`rpm --eval %_specdir` SPECDIR=`rpm --eval %_specdir`
SRCDIR=`rpm --eval %_sourcedir` SRCDIR=`rpm --eval %_sourcedir`
SPECFILE="libiscsiclient.spec" SPECFILE="libiscsi.spec"
SPECFILE_IN="libiscsiclient.spec.in" SPECFILE_IN="libiscsi.spec.in"
RPMBUILD="rpmbuild" RPMBUILD="rpmbuild"
GITHASH=".$(git log --pretty=format:%h -1)" GITHASH=".$(git log --pretty=format:%h -1)"
@@ -64,7 +64,7 @@ else
fi fi
pushd ${TOPDIR} pushd ${TOPDIR}
echo -n "Creating libiscsiclient-${VERSION}.tar.gz ... " echo -n "Creating libiscsi-${VERSION}.tar.gz ... "
sh autogen.sh sh autogen.sh
make dist GZIP_ENV="\"$GZIP_ENV\"" make dist GZIP_ENV="\"$GZIP_ENV\""
RC=$? RC=$?
@@ -80,7 +80,7 @@ fi
## ##
## copy additional source files ## copy additional source files
## ##
cp -p ${TOPDIR}/libiscsiclient-${VERSION}.tar.gz ${SRCDIR} cp -p ${TOPDIR}/libiscsi-${VERSION}.tar.gz ${SRCDIR}
cp -p ${DIRNAME}/${SPECFILE} ${SPECDIR} cp -p ${DIRNAME}/${SPECFILE} ${SPECDIR}
## ##