From b228462fe6733bc0519d12a0f4ee835606a11c8e Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Sat, 6 Jan 2024 08:08:57 +0100 Subject: [PATCH] package created using the webbuild interface [release 2.0_873-1mamba;Tue Jun 24 2014] --- README.md | 2 ++ open-iscsi-2.0_873-slp.patch | 30 ++++++++++++++++++ open-iscsi.spec | 61 ++++++++++++++++++++++++++++++++++++ 3 files changed, 93 insertions(+) create mode 100644 open-iscsi-2.0_873-slp.patch create mode 100644 open-iscsi.spec diff --git a/README.md b/README.md index 688a976..0202ba1 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ # open-iscsi +Open-iSCSI project is a high performance, transport independent, multi-platform implementation of RFC3720. + diff --git a/open-iscsi-2.0_873-slp.patch b/open-iscsi-2.0_873-slp.patch new file mode 100644 index 0000000..78f77c2 --- /dev/null +++ b/open-iscsi-2.0_873-slp.patch @@ -0,0 +1,30 @@ +--- open-iscsi-2.0-872.orig/utils/open-isns/configure.ac ++++ open-iscsi-2.0-872/utils/open-isns/configure.ac +@@ -79,7 +79,7 @@ AC_ARG_WITH(slp, + WITH_SLP=$withval + else + WITH_SLP=yes +- CPPFLAGS="$CPPFLAGS -I${withval}" ++ CPPFLAGS="$CPPFLAGS -I${withval} -lslp" + LDFLAGS="$LDFLAGS -L${withval}" + fi + ] +diff -Nru open-iscsi-2.0-873.orig/usr/Makefile open-iscsi-2.0-873/usr/Makefile +--- open-iscsi-2.0-873.orig/usr/Makefile 2012-05-21 02:59:24.000000000 +0200 ++++ open-iscsi-2.0-873/usr/Makefile 2014-06-24 02:32:04.121491125 +0200 +@@ -54,10 +54,10 @@ + + iscsid: $(ISCSI_LIB_SRCS) $(INITIATOR_SRCS) $(DISCOVERY_SRCS) \ + iscsid.o session_mgmt.o discoveryd.o +- $(CC) $(CFLAGS) $^ -o $@ -L../utils/open-isns -lisns ++ $(CC) $(CFLAGS) $^ -o $@ -L../utils/open-isns -lisns -lslp + + iscsiadm: $(ISCSI_LIB_SRCS) $(DISCOVERY_SRCS) iscsiadm.o session_mgmt.o +- $(CC) $(CFLAGS) $^ -o $@ -L../utils/open-isns -lisns ++ $(CC) $(CFLAGS) $^ -o $@ -L../utils/open-isns -lisns -lslp + + iscsistart: $(ISCSI_LIB_SRCS) $(INITIATOR_SRCS) $(FW_BOOT_SRCS) \ + iscsistart.o statics.o +Binary files open-iscsi-2.0-873.orig/utils/iscsi-iname and open-iscsi-2.0-873/utils/iscsi-iname differ +Binary files open-iscsi-2.0-873.orig/utils/iscsi-iname.o and open-iscsi-2.0-873/utils/iscsi-iname.o differ +Binary files open-iscsi-2.0-873.orig/utils/md5.o and open-iscsi-2.0-873/utils/md5.o differ diff --git a/open-iscsi.spec b/open-iscsi.spec new file mode 100644 index 0000000..06eda73 --- /dev/null +++ b/open-iscsi.spec @@ -0,0 +1,61 @@ +%define pkgver %(echo %version | tr _ -) +Name: open-iscsi +Version: 2.0_873 +Release: 1mamba +Summary: A high performance, transport independent, multi-platform implementation of RFC3720 +Group: System/Kernel and Hardware +Vendor: openmamba +Distribution: openmamba +Packager: Silvan Calarco +URL: http://www.open-iscsi.org/ +Source: http://www.open-iscsi.org/bits/open-iscsi-%{pkgver}.tar.gz +Patch0: open-iscsi-2.0_873-slp.patch +License: GPL +## AUTOBUILDREQ-BEGIN +BuildRequires: glibc-devel +BuildRequires: libopenslp-devel +## AUTOBUILDREQ-END +BuildRoot: %{_tmppath}/%{name}-%{version}-root + +%description +Open-iSCSI project is a high performance, transport independent, multi-platform implementation of RFC3720. + +%debug_package + +%prep +%setup -q -n %{name}-%{pkgver} +%patch0 -p1 + +%build +%make + +%install +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" +%makeinstall + +install -D -m0755 usr/iscsistart %{buildroot}/sbin/iscsistart +install -D -m0644 doc/iscsistart.8 %{buildroot}%{_mandir}/man8/iscsistart.8 +%clean +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" + +%files +%defattr(-,root,root) +%dir %{_sysconfdir}/iscsi +%dir %{_sysconfdir}/iscsi/ifaces +%{_sysconfdir}/iscsi/ifaces/iface.example +%{_sysconfdir}/iscsi/initiatorname.iscsi +%config(noreplace) %{_sysconfdir}/iscsi/iscsid.conf +/sbin/iscsi-iname +/sbin/iscsi_discovery +/sbin/iscsiadm +/sbin/iscsid +/sbin/iscsistart +%{_mandir}/man8/iscsi_discovery.8* +%{_mandir}/man8/iscsiadm.8* +%{_mandir}/man8/iscsid.8* +%{_mandir}/man8/iscsistart.8* +%doc COPYING THANKS + +%changelog +* Tue Jun 24 2014 Silvan Calarco 2.0_873-1mamba +- package created using the webbuild interface