aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorJack Nagel2014-03-21 20:19:35 -0500
committerJack Nagel2014-03-21 20:24:30 -0500
commitc3279cf4dc991b999238aa266e89c2af3bc52194 (patch)
treed8aa0721f7c28b40df9e23d120d7979ad6694c4d /Library/Formula
parentd2540e16eca0b64184114d7a6fadcf094b09202d (diff)
downloadhomebrew-c3279cf4dc991b999238aa266e89c2af3bc52194.tar.bz2
libiscsi 1.10.0
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/libiscsi.rb76
1 files changed, 2 insertions, 74 deletions
diff --git a/Library/Formula/libiscsi.rb b/Library/Formula/libiscsi.rb
index 7eb7fd030..b7ce151c6 100644
--- a/Library/Formula/libiscsi.rb
+++ b/Library/Formula/libiscsi.rb
@@ -2,8 +2,8 @@ require 'formula'
class Libiscsi < Formula
homepage 'https://github.com/sahlberg/libiscsi'
- url 'https://sites.google.com/site/libiscsitarballs/libiscsitarballs/libiscsi-1.9.0.tar.gz'
- sha1 'b3d079cbafab68fe39a8061c4ed5094353094e3b'
+ url 'https://sites.google.com/site/libiscsitarballs/libiscsitarballs/libiscsi-1.10.0.tar.gz'
+ sha1 'b65de46e9a688078211c1ef8f8a5af2a828d71a6'
head 'https://github.com/sahlberg/libiscsi.git'
option 'with-noinst', 'Install the noinst binaries (e.g. iscsi-test-cu)'
@@ -14,87 +14,15 @@ class Libiscsi < Formula
depends_on :automake
depends_on :libtool
- # Fix version number being too large for clang's linker (fixed upstream)
- # Workaround Silent Rules complaint with automake 1.10 from XCode 3.2.6 on
- # 10.6
- # Fix typo in libiscsi.syms (fixed upstream)
- # Fix SOL_TCP not being defined on OSX (fixed upstream)
- patch :DATA
-
def install
if build.with? 'noinst'
# Install the noinst binaries
inreplace 'Makefile.am', 'noinst_PROGRAMS +=', 'bin_PROGRAMS +='
end
- # inline usage requires gnu89 semantics
- ENV.append 'CFLAGS', '-std=gnu89 -g -O2' if ENV.compiler == :clang
-
system "./autogen.sh"
system "./configure", "--disable-dependency-tracking",
"--prefix=#{prefix}"
system "make install"
end
end
-
-__END__
-diff --git a/Makefile.am b/Makefile.am
-index 1797ddf..1cf0732 100644
---- a/Makefile.am
-+++ b/Makefile.am
-@@ -34,8 +34,12 @@ lib_libiscsi_la_SOURCES = \
- lib/logging.c
-
- SONAME=$(firstword $(subst ., ,$(VERSION)))
--SOREL=$(shell printf "%d%02d%02d" $(subst ., ,$(VERSION)))
--lib_libiscsi_la_LDFLAGS = \
-+version_split = $(subst ., ,$(VERSION))
-+SOMAJOR = $(firstword $(version_split))
-+SOMINOR = $(word 2, $(version_split))
-+SOREVISION = $(word 3, $(version_split))
-+SOREL = $(shell echo $(SOMINOR) + $(SOREVISION) | bc)
-+ lib_libiscsi_la_LDFLAGS = \
- -version-info $(SONAME):$(SOREL):0 -bindir $(bindir) -no-undefined \
- -export-symbols $(srcdir)/lib/libiscsi.syms
-
-diff --git a/configure.ac b/configure.ac
-index 7995d06..bbdabe9 100644
---- a/configure.ac
-+++ b/configure.ac
-@@ -3,8 +3,8 @@ AC_INIT(libiscsi, m4_esyscmd([grep 'Version:' ./packaging/RPM/libiscsi.spec.in 2
- AC_CONFIG_SRCDIR([lib/init.c])
- AC_CONFIG_MACRO_DIR([m4])
-
--AM_INIT_AUTOMAKE
--AM_SILENT_RULES
-+AM_INIT_AUTOMAKE([foreign])
-+m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES])
- LT_INIT
-
- AC_CANONICAL_HOST
-diff --git a/lib/libiscsi.syms b/lib/libiscsi.syms
-index 80673f5..35e06d1 100644
---- a/lib/libiscsi.syms
-+++ b/lib/libiscsi.syms
-@@ -87,7 +87,7 @@ iscsi_set_tcp_keepidle
- iscsi_set_tcp_keepcnt
- iscsi_set_tcp_keepintvl
- iscsi_set_tcp_syncnt
--iscsi_set_bind_interface
-+iscsi_set_bind_interfaces
- iscsi_startstopunit_sync
- iscsi_startstopunit_task
- iscsi_synchronizecache10_sync
-diff --git a/lib/socket.c b/lib/socket.c
-index 54d6234..53c9581 100644
---- a/lib/socket.c
-+++ b/lib/socket.c
-@@ -103,7 +103,7 @@ int set_tcp_sockopt(int sockfd, int optname, int value)
- {
- int level;
-
-- #if defined(__FreeBSD__) || defined(__sun)
-+ #if defined(__FreeBSD__) || defined(__sun) || (defined(__APPLE__) && defined(__MACH__))
- struct protoent *buf;
-
- if ((buf = getprotobyname("tcp")) != NULL)