Skip to Content.
Sympa Menu

sm-commit - [SM-Commit] GIT changes to master grimoire by Vlad Glagolev (0e3ec0f52f52a9629c27f8b1880b6fed2c4b67a5)

sm-commit AT lists.ibiblio.org

Subject: Source Mage code commit list

List archive

Chronological Thread  
  • From: Vlad Glagolev <scm AT sourcemage.org>
  • To: sm-commit AT lists.ibiblio.org
  • Subject: [SM-Commit] GIT changes to master grimoire by Vlad Glagolev (0e3ec0f52f52a9629c27f8b1880b6fed2c4b67a5)
  • Date: Wed, 22 Jun 2011 17:10:05 -0500

GIT changes to master grimoire by Vlad Glagolev <stealth AT sourcemage.org>:

ChangeLog | 5 +++
net/iscsitarget/BUILD | 1
net/iscsitarget/DEPENDS | 1
net/iscsitarget/DETAILS | 22 +++++++++++++
net/iscsitarget/FINAL | 1
net/iscsitarget/HISTORY | 3 +
net/iscsitarget/INSTALL | 6 +++
net/iscsitarget/PRE_BUILD | 7 ++++
net/iscsitarget/init.d/iscsi-target | 29 +++++++++++++++++
net/iscsitarget/init.d/iscsi-target.conf | 3 +
net/iscsitarget/ldflags.patch | 32 +++++++++++++++++++
net/open-iscsi/BUILD | 1
net/open-iscsi/DETAILS | 23 +++++++++++++
net/open-iscsi/HISTORY | 2 +
net/open-iscsi/INSTALL | 6 +++
net/open-iscsi/init.d/iscsid | 51
+++++++++++++++++++++++++++++++
net/open-iscsi/init.d/iscsid.conf | 3 +
17 files changed, 196 insertions(+)

New commits:
commit 0e3ec0f52f52a9629c27f8b1880b6fed2c4b67a5
Author: Vlad Glagolev <stealth AT sourcemage.org>
Commit: Vlad Glagolev <stealth AT sourcemage.org>

open-iscsi: new spell, high performance, multi-platform implementation of
RFC3720 (the spell itself was created in 2010)

commit 6a1a233afdac39cc681638c0147383e34d16ca94
Author: Vlad Glagolev <stealth AT sourcemage.org>
Commit: Vlad Glagolev <stealth AT sourcemage.org>

iscsitarget: new spell, iSCSI enterprise target project

diff --git a/ChangeLog b/ChangeLog
index 477e6d5..2e641e6 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2011-06-23 Vlad Glagolev <stealth AT sourcemage.org>
+ * net/iscsitarget: new spell, iSCSI enterprise target project
+ * net/open-iscsi: new spell, high performance, multi-platform
+ implementation of RFC3720
+
2011-06-20 Vlad Glagolev <stealth AT sourcemage.org>
* utils/memtester: new spell, utility to test for memory faults
* FUNCTIONS: added function is_version_less() to compare two versions
diff --git a/net/iscsitarget/BUILD b/net/iscsitarget/BUILD
new file mode 100755
index 0000000..8f58e6d
--- /dev/null
+++ b/net/iscsitarget/BUILD
@@ -0,0 +1 @@
+make
diff --git a/net/iscsitarget/DEPENDS b/net/iscsitarget/DEPENDS
new file mode 100755
index 0000000..ed472ed
--- /dev/null
+++ b/net/iscsitarget/DEPENDS
@@ -0,0 +1 @@
+depends openssl
diff --git a/net/iscsitarget/DETAILS b/net/iscsitarget/DETAILS
new file mode 100755
index 0000000..eaf7d01
--- /dev/null
+++ b/net/iscsitarget/DETAILS
@@ -0,0 +1,22 @@
+ SPELL=iscsitarget
+ VERSION=1.4.20.2
+ SOURCE=$SPELL-$VERSION.tar.gz
+ SOURCE_DIRECTORY="$BUILD_DIRECTORY/$SPELL-$VERSION"
+ SOURCE_URL[0]=$SOURCEFORGE_URL/$SPELL/$SOURCE
+
SOURCE_HASH=sha512:e9853eb5b954f5cbb43f4ed568ac896616a845f3f9ae57841045f4ef6f6487704d94364cdf48da2c0171aef27aeffa7ca8a4653bfe956486d63578a0d4c32dc6
+ LICENSE[0]=GPL
+ WEB_SITE=http://iscsitarget.sourceforge.net/
+ ENTERED=20110622
+ KEYWORDS="net"
+ SHORT="iSCSI enterprise target project"
+cat << EOF
+The aim of the project is to develop an open source iSCSI target with
+professional features, that works well in enterprise environment under real
+workload, and is scalable and versatile enough to meet the challenge of
future
+storage needs and developments.
+
+The project was started by forking the Ardis target implementation, with
respect
+to the GPL. While the Ardis target implementation was a very good one, it
lacked
+several key needs, including SMP support, Linux 2.6 kernel support, 64bit
+architecture support, dynamic configuration, iSNS support and more.
+EOF
diff --git a/net/iscsitarget/FINAL b/net/iscsitarget/FINAL
new file mode 100755
index 0000000..ce41770
--- /dev/null
+++ b/net/iscsitarget/FINAL
@@ -0,0 +1 @@
+depmod -a
diff --git a/net/iscsitarget/HISTORY b/net/iscsitarget/HISTORY
new file mode 100644
index 0000000..e7cbce4
--- /dev/null
+++ b/net/iscsitarget/HISTORY
@@ -0,0 +1,3 @@
+2011-06-22 Vlad Glagolev <stealth AT sourcemage.org>
+ * DETAILS, DEPENDS, INSTALL, {PRE_,}BUILD, FINAL, ldflags.patch,
+ init.d/iscsi-target{,.conf}: spell created
diff --git a/net/iscsitarget/INSTALL b/net/iscsitarget/INSTALL
new file mode 100755
index 0000000..5275304
--- /dev/null
+++ b/net/iscsitarget/INSTALL
@@ -0,0 +1,6 @@
+default_install &&
+
+if [[ $INIT_INSTALLED ]]; then
+ install_config_file "$SPELL_DIRECTORY/init.d/iscsi-target.conf" \
+ "$INSTALL_ROOT/etc/sysconfig/iscsi-target"
+fi
diff --git a/net/iscsitarget/PRE_BUILD b/net/iscsitarget/PRE_BUILD
new file mode 100755
index 0000000..6bcdd5b
--- /dev/null
+++ b/net/iscsitarget/PRE_BUILD
@@ -0,0 +1,7 @@
+default_pre_build &&
+cd "$SOURCE_DIRECTORY" &&
+
+patch -p0 < "$SPELL_DIRECTORY/ldflags.patch" &&
+
+# don't install extra init script and move depmod to FINAL
+sed -i "s:etc\: install-initd:etc\::;s:install-files depmod:install-files:"
Makefile
diff --git a/net/iscsitarget/init.d/iscsi-target
b/net/iscsitarget/init.d/iscsi-target
new file mode 100755
index 0000000..d9f78ff
--- /dev/null
+++ b/net/iscsitarget/init.d/iscsi-target
@@ -0,0 +1,29 @@
+#!/bin/bash
+
+. /etc/sysconfig/iscsi-target
+
+PROGRAM=/usr/sbin/ietd
+PIDFILE=/var/run/ietd.pid
+RUNLEVEL=3
+NEEDS="+local_fs +network"
+
+. /etc/init.d/smgl_init
+
+start() {
+ echo "Starting iSCSI Enterprise Target..."
+
+ modprobe -q crc32c
+ modprobe iscsi_trgt
+
+ $PROGRAM "$OPTIONS"
+
+ evaluate_retval
+}
+
+stop() {
+ echo "Stopping $NAME..."
+
+ /usr/sbin/ietadm --op delete
+
+ killproc $PROGRAM
+}
diff --git a/net/iscsitarget/init.d/iscsi-target.conf
b/net/iscsitarget/init.d/iscsi-target.conf
new file mode 100644
index 0000000..ef1cba4
--- /dev/null
+++ b/net/iscsitarget/init.d/iscsi-target.conf
@@ -0,0 +1,3 @@
+# Specify command-line options here, for more info read ietd(8)
+
+OPTIONS=""
diff --git a/net/iscsitarget/ldflags.patch b/net/iscsitarget/ldflags.patch
new file mode 100644
index 0000000..dc4005b
--- /dev/null
+++ b/net/iscsitarget/ldflags.patch
@@ -0,0 +1,32 @@
+--- Makefile.orig
++++ Makefile
+@@ -26,7 +26,7 @@
+ endif
+ endif
+
+-KVER := $(shell $(CC) $(CFLAGS) -E -dM $(VERSION_FILE) | \
++KVER := $(shell $(CC) $(CFLAGS) $(LDFLAGS) -E -dM $(VERSION_FILE) | \
+ grep UTS_RELEASE | awk '{ print $$3 }' | sed 's/\"//g')
+
+ KMOD := /lib/modules/$(KVER)/extra
+--- usr/Makefile.orig
++++ usr/Makefile
+@@ -1,4 +1,4 @@
+-CFLAGS += -O2 -fno-inline -Wall -Wstrict-prototypes -g -I../include
++CFLAGS += -fno-inline -Wall -Wstrict-prototypes -I../include
+ CFLAGS += -D_GNU_SOURCE # required for glibc >= 2.8
+ PROGRAMS = ietd ietadm
+ LIBS =
+@@ -7,10 +7,10 @@
+
+ ietd: ietd.o iscsid.o conn.o session.o target.o message.o ctldev.o log.o
chap.o event.o param.o plain.o isns.o md5.o sha1.o
+
+- $(CC) $^ -o $@ $(LIBS)
++ $(CC) $(LDFLAGS) $^ -o $@ $(LIBS)
+
+ ietadm: ietadm.o param.o
+- $(CC) $^ -o $@
++ $(CC) $(LDFLAGS) $^ -o $@
+
+ clean:
+ rm -f *.o $(PROGRAMS)
diff --git a/net/open-iscsi/BUILD b/net/open-iscsi/BUILD
new file mode 100755
index 0000000..b4c9128
--- /dev/null
+++ b/net/open-iscsi/BUILD
@@ -0,0 +1 @@
+make user
diff --git a/net/open-iscsi/DETAILS b/net/open-iscsi/DETAILS
new file mode 100755
index 0000000..2239217
--- /dev/null
+++ b/net/open-iscsi/DETAILS
@@ -0,0 +1,23 @@
+ SPELL=open-iscsi
+ VERSION=2.0-872
+ SOURCE=$SPELL-$VERSION.tar.gz
+
SOURCE_URL[0]=$KERNEL_URL/pub/linux/kernel/people/mnc/$SPELL/releases/$SOURCE
+
SOURCE_HASH=sha512:d26c87772b0b1d13a8bd2eea9db86b3c61af83efbb788116c01ab6a914ff3de634a7b1bff56c1161b28965315543edbfc2735b6c7fbd3f7797471fde63b69cc0
+SOURCE_DIRECTORY="$BUILD_DIRECTORY/$SPELL-$VERSION"
+ WEB_SITE=http://www.open-iscsi.org/
+ LICENSE[0]=GPL
+ ENTERED=20100616
+ SHORT="high performance, multi-platform implementation of RFC3720"
+cat << EOF
+Open-iSCSI project is a high-performance, transport independent,
multi-platform
+implementation of RFC3720 iSCSI.
+
+Features:
+
+ - highly optimized and very small-footprint data path;
+ - persistent configuration database;
+ - SendTargets discovery;
+ - CHAP;
+ - PDU header Digest;
+ - multiple sessions;
+EOF
diff --git a/net/open-iscsi/HISTORY b/net/open-iscsi/HISTORY
new file mode 100644
index 0000000..42d0d9b
--- /dev/null
+++ b/net/open-iscsi/HISTORY
@@ -0,0 +1,2 @@
+2010-06-16 Vlad Glagolev <stealth AT sourcemage.org>
+ * BUILD, DETAILS, INSTALL, init.d/iscsid{,.conf}: spell created
diff --git a/net/open-iscsi/INSTALL b/net/open-iscsi/INSTALL
new file mode 100755
index 0000000..d173a35
--- /dev/null
+++ b/net/open-iscsi/INSTALL
@@ -0,0 +1,6 @@
+make install_user &&
+
+if [[ $INIT_INSTALLED ]]; then
+ install_config_file "$SPELL_DIRECTORY/init.d/iscsid.conf" \
+ "$INSTALL_ROOT/etc/sysconfig/iscsid"
+fi
diff --git a/net/open-iscsi/init.d/iscsid b/net/open-iscsi/init.d/iscsid
new file mode 100755
index 0000000..64e1deb
--- /dev/null
+++ b/net/open-iscsi/init.d/iscsid
@@ -0,0 +1,51 @@
+#!/bin/bash
+
+. /etc/sysconfig/iscsid
+
+PROGRAM=/sbin/iscsid
+PIDFILE=/var/run/iscsid.pid
+RUNLEVEL=3
+NEEDS="+network"
+
+. /etc/init.d/smgl_init
+
+ISCSIADM=/sbin/iscsiadm
+
+start() {
+ echo "Loading iSCSI modules..."
+
+ modprobe -q libiscsi
+ modprobe -q scsi_transport_iscsi
+ modprobe -q iscsi_tcp
+
+ echo "Starting $NAME..."
+ $PROGRAM "$OPTIONS"
+
+ evaluate_retval
+
+ echo "Setting up iSCSI targets..."
+ $ISCSIADM -m node --loginall=automatic
+
+ evaluate_retval
+}
+
+stop() {
+ echo "Disconnecting iSCSI targets..."
+ sync
+ $ISCSIADM -m node --logoutall=all
+
+ evaluate_retval
+
+ echo "Stopping $NAME..."
+ killproc $PROGRAM
+
+ rm -f "$PIDFILE"
+}
+
+status() {
+ echo "Current active iSCSI sessions: "
+
+ $ISCSIADM -m session
+
+ evaluate_retval
+}
diff --git a/net/open-iscsi/init.d/iscsid.conf
b/net/open-iscsi/init.d/iscsid.conf
new file mode 100644
index 0000000..3e82ecf
--- /dev/null
+++ b/net/open-iscsi/init.d/iscsid.conf
@@ -0,0 +1,3 @@
+# Specify command-line options here, for more info read iscsid(8)
+
+OPTIONS=""



  • [SM-Commit] GIT changes to master grimoire by Vlad Glagolev (0e3ec0f52f52a9629c27f8b1880b6fed2c4b67a5), Vlad Glagolev, 06/22/2011

Archive powered by MHonArc 2.6.24.

Top of Page