[arch-commits] Commit in open-iscsi/repos (4 files)

Christian Hesse eworm at archlinux.org
Thu Sep 12 20:55:59 UTC 2019


    Date: Thursday, September 12, 2019 @ 20:55:59
  Author: eworm
Revision: 509846

archrelease: copy trunk to community-testing-x86_64

Added:
  open-iscsi/repos/community-testing-x86_64/
  open-iscsi/repos/community-testing-x86_64/0001-libkmod.patch
    (from rev 509845, open-iscsi/trunk/0001-libkmod.patch)
  open-iscsi/repos/community-testing-x86_64/PKGBUILD
    (from rev 509845, open-iscsi/trunk/PKGBUILD)
  open-iscsi/repos/community-testing-x86_64/open-iscsi.install
    (from rev 509845, open-iscsi/trunk/open-iscsi.install)

--------------------+
 0001-libkmod.patch |   35 +++++++++++++++++++++++++++++++++++
 PKGBUILD           |   39 +++++++++++++++++++++++++++++++++++++++
 open-iscsi.install |   12 ++++++++++++
 3 files changed, 86 insertions(+)

Copied: open-iscsi/repos/community-testing-x86_64/0001-libkmod.patch (from rev 509845, open-iscsi/trunk/0001-libkmod.patch)
===================================================================
--- community-testing-x86_64/0001-libkmod.patch	                        (rev 0)
+++ community-testing-x86_64/0001-libkmod.patch	2019-09-12 20:55:59 UTC (rev 509846)
@@ -0,0 +1,35 @@
+diff --git a/libopeniscsiusr/Makefile b/libopeniscsiusr/Makefile
+index bf7c96c..589c69b 100644
+--- a/libopeniscsiusr/Makefile
++++ b/libopeniscsiusr/Makefile
+@@ -44,7 +44,7 @@ OBJS = context.o misc.o session.o sysfs.o iface.o idbm.o node.o default.o
+ CFLAGS ?= -O2 -g
+ CFLAGS += -Wall -Werror -Wextra -fvisibility=hidden -fPIC
+ 
+-LIBADD =
++LIBADD = -lkmod
+ 
+ all: $(LIBS) $(LIBS_MAJOR) $(TESTS) doc
+ 
+diff --git a/usr/Makefile b/usr/Makefile
+index f9445ad..13a719d 100644
+--- a/usr/Makefile
++++ b/usr/Makefile
+@@ -36,7 +36,7 @@ CFLAGS ?= -O2 -g
+ WARNFLAGS ?= -Wall -Wstrict-prototypes
+ CFLAGS += $(WARNFLAGS) -I../include -I. -D_GNU_SOURCE \
+ 	  -I$(TOPDIR)/libopeniscsiusr
+-ISCSI_LIB = -L$(TOPDIR)/libopeniscsiusr -lopeniscsiusr
++ISCSI_LIB = -L$(TOPDIR)/libopeniscsiusr -lopeniscsiusr -lkmod
+ PROGRAMS = iscsid iscsiadm iscsistart
+ 
+ # libc compat files
+@@ -60,7 +60,7 @@ all: $(PROGRAMS)
+ 
+ iscsid: $(ISCSI_LIB_SRCS) $(INITIATOR_SRCS) $(DISCOVERY_SRCS) \
+ 	iscsid.o session_mgmt.o discoveryd.o mntcheck.o
+-	$(CC) $(CFLAGS) $(LDFLAGS) $^ -o $@  -lisns -lcrypto -lrt -lmount $(ISCSI_LIB)
++	$(CC) $(CFLAGS) $(LDFLAGS) $^ -o $@  -lisns -lcrypto -lrt -lmount -lsystemd $(ISCSI_LIB)
+ 
+ iscsiadm: $(ISCSI_LIB_SRCS) $(DISCOVERY_SRCS) iscsiadm.o session_mgmt.o mntcheck.o
+ 	$(CC) $(CFLAGS) $(LDFLAGS) $^ -o $@ -lisns -lcrypto -lmount $(ISCSI_LIB)

Copied: open-iscsi/repos/community-testing-x86_64/PKGBUILD (from rev 509845, open-iscsi/trunk/PKGBUILD)
===================================================================
--- community-testing-x86_64/PKGBUILD	                        (rev 0)
+++ community-testing-x86_64/PKGBUILD	2019-09-12 20:55:59 UTC (rev 509846)
@@ -0,0 +1,39 @@
+# Maintainer: Sergej Pupykin <pupykin.s+arch at gmail.com>
+# Maintainer: Stefan Kirrmann <stefan.kirrmann at gmail dot com>
+
+pkgname=open-iscsi
+pkgver=2.0.878
+pkgrel=1
+pkgdesc='iSCSI userland tools'
+arch=('x86_64')
+url='https://www.open-iscsi.com/'
+license=('GPL')
+depends=('systemd-libs' 'libutil-linux' 'kmod' 'openssl' 'open-isns')
+install=$pkgname.install
+backup=('etc/iscsi/iscsid.conf'
+	'etc/iscsi/initiatorname.iscsi')
+options=('docs')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/open-iscsi/open-iscsi/archive/$pkgver.tar.gz")
+sha256sums=('5aeef0069c4a9d7f288269bcf56588d09a3c529a35f865f16dd8119ab8672208')
+
+build() {
+  cd "$srcdir"/${pkgname}-${pkgver}
+
+  make user LIB_DIR=/usr/lib
+}
+
+package() {
+  cd "$srcdir"/${pkgname}-${pkgver}
+
+  make DESTDIR="$pkgdir" LIB_DIR=/usr/lib install install_systemd
+
+  install -D -m0644 "$srcdir"/${pkgname}-${pkgver}/etc/iscsid.conf "$pkgdir"/etc/iscsi
+  echo -n > "$pkgdir"/etc/iscsi/initiatorname.iscsi
+
+  # copy docs
+  mkdir -p "$pkgdir"/usr/share/doc/${pkgname}
+  install -m0644 Changelog "$pkgdir"/usr/share/doc/${pkgname}/
+  install -m0644 README "$pkgdir"/usr/share/doc/${pkgname}/
+
+  mv "$pkgdir"/sbin "$pkgdir"/usr/bin
+}

Copied: open-iscsi/repos/community-testing-x86_64/open-iscsi.install (from rev 509845, open-iscsi/trunk/open-iscsi.install)
===================================================================
--- community-testing-x86_64/open-iscsi.install	                        (rev 0)
+++ community-testing-x86_64/open-iscsi.install	2019-09-12 20:55:59 UTC (rev 509846)
@@ -0,0 +1,12 @@
+post_install() {
+	if [ -z $(<etc/iscsi/initiatorname.iscsi) ]; then
+	  name=$(iscsi-iname)
+	  echo
+	  echo ">>> Setting Initiatorname '$name'"
+	  echo "InitiatorName=$name" >etc/iscsi/initiatorname.iscsi
+	fi
+}
+
+post_upgrade() {
+	post_install
+}


More information about the arch-commits mailing list