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0H0Z
|
||||||
BhGMMFQXlr29D6AMRSYTCn1vRV3xaoi24PJK12q9v4ZRw1ssyM1Iy+57HYwgHukT
|
PqriIebrpk6+geRv7xxacMSxcA7Cid5/HAfB0/E3TZLUMchL0G+E8dh6RsiXW+5v
|
||||||
qo1So87+KqBYoXy9JQeaQYhPV+RKFcjOmuUudhkMx/3t6VxfIXCjlYgLsEHD5cYs
|
EpSH8001V52JOP6s/A50gC0D2a5on2E0uyD5L7ZMGLYQTBXYe8vVypCd1n3cUJ5T
|
||||||
Zcpw95kRLYjc0J/+S7Ekeo8Uwb3aayqegxc7IDRL72Ab3d7Jr6Q1aHm26WbrtJQ3
|
H0dMreATFNw/NMXXo5tQEd4Waq2LTSf262ZlUygwtSRK5o+ivRJ/r58Wlof/eX/m
|
||||||
mTRE6oysLN8mF9m9eFzo4ApCOkMWyssMp3c2yzkqwE74kZaXDej+vSolG8CXM+wH
|
MKYaiFo5h4cDa1Z3dK6DjArrmoLdfLTKFd0P9Ja5Hxy/qesSjJH0Gl5ZL0jXHnxs
|
||||||
ZWrdSXg3Fb5IKBF7UlaHTvTtaAt7cvIaD9cTifiV3XS/c5EOzxen6q/z2cupMLJI
|
1dO4zWxgEEk2kUIM9dNaGvG92TupgUzBgBUPcy4ZeSWSwgHpfIl42iNwagwrzn2S
|
||||||
8VIigHOqlwID/0Givv+Wag==
|
zwh9mdI9D0pEJlETyY92oA==
|
||||||
=gvJx
|
=rAWz
|
||||||
-----END PGP SIGNATURE-----
|
-----END PGP SIGNATURE-----
|
||||||
|
Binary file not shown.
@ -1,17 +1,17 @@
|
|||||||
-----BEGIN PGP SIGNATURE-----
|
-----BEGIN PGP SIGNATURE-----
|
||||||
|
|
||||||
iQJNBAABCgA3FiEEm8dazQnvu0U1Gdmc9s+lqZ57WVcFAmCNjAkZHGd6YW11ZGlv
|
iQJNBAABCgA3FiEEm8dazQnvu0U1Gdmc9s+lqZ57WVcFAmCNqxIZHGd6YW11ZGlv
|
||||||
QGxpYnJlb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Ah7xeY1lY+GRG
|
||||||
VmgqDn3tLpDdcsLQ77bDeSJjlQHa1cCROIycEnKwni/jZjCSNbbPDtWb7VgfD7Bs
|
bJ9atXJxTY1AahejoM8mcWH+6QenaZNOiHKxeZ9i4pb4Q+JsAG4aAClYdVWopGZQ
|
||||||
8l7RGVp28XDlGPajS2aWM0FiPmaaGA/hHEi+COXHjKZGRO5SC7/Oe8DrhBugf13E
|
uhVZbvZ03awbvc5JvfkTJFY013qVEYBisToCiGK0ssEd64WHBRCuNXVLCvG4QFbV
|
||||||
jVcxZczC9MbAXODODlSKIcGEd9SweMgFaG5kvVCiN0pmwDt1/T3vLuUvv3wgQKYF
|
9CrvIAx4BfKT55vfpLJg+cwknioyR/ld0KI3AG0wAJPUiXA/wxNfbB86oPhtqTRD
|
||||||
P8H7XPd+9eMETL2me1ostw==
|
tLTjXY9gZrDUKT0hZc0lGg==
|
||||||
=9QMs
|
=d6jD
|
||||||
-----END PGP SIGNATURE-----
|
-----END PGP SIGNATURE-----
|
||||||
|
Binary file not shown.
Binary file not shown.
@ -0,0 +1,27 @@
|
|||||||
|
This is a partial implementation of iSNS, according to RFC4171.
|
||||||
|
|
||||||
|
The distribution comprises
|
||||||
|
|
||||||
|
isnsd
|
||||||
|
This is the iSNS server, supporting persistent storage
|
||||||
|
of registrations in a file based database.
|
||||||
|
|
||||||
|
isnsadm
|
||||||
|
A command line utility for querying the iSNS database,
|
||||||
|
and for registering/deregistering nodes and portals
|
||||||
|
|
||||||
|
isnsdd
|
||||||
|
An iSNS Discovery Daemon, which is still very much work
|
||||||
|
in progress. The daemon is supposed to handle all the
|
||||||
|
bit banging and server communications required to register
|
||||||
|
a node, its portals, and to maintain the registration.
|
||||||
|
It is also supposed to use the iSNS State Change Notification
|
||||||
|
framework to learn of new targets or initiators coming online,
|
||||||
|
and inform local services (such as the iSCSI initiator daemon)
|
||||||
|
about these changes.
|
||||||
|
|
||||||
|
NOTE
|
||||||
|
Due to a static library dependency this Slackbuild is required to
|
||||||
|
compile the Linux Open-iSCSI Initiator (open-iscsi). It is not required
|
||||||
|
to run the initiator, therefore it does not need to be installed unless
|
||||||
|
you intend to use any of the ISNS components on your network.
|
@ -0,0 +1,17 @@
|
|||||||
|
|
||||||
|
config() {
|
||||||
|
NEW="${1}.new"
|
||||||
|
OLD="$1"
|
||||||
|
# If there's no config file by that name, mv it over:
|
||||||
|
if [ ! -r $OLD ]; then
|
||||||
|
mv $NEW $OLD
|
||||||
|
elif [ "$(md5sum <$OLD)" = "$(md5sum <$NEW)" ]; then
|
||||||
|
# toss the redundant copy
|
||||||
|
rm $NEW
|
||||||
|
fi
|
||||||
|
# Otherwise, we leave the .new copy for the admin to consider...
|
||||||
|
}
|
||||||
|
|
||||||
|
config etc/isns/isnsd.conf
|
||||||
|
config etc/isns/isnsdd.conf
|
||||||
|
config etc/isns/isnsadm.conf
|
@ -0,0 +1,117 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
# Slackware build script for open-isns
|
||||||
|
|
||||||
|
# Copyright 2019 Wayne Cuddy USA
|
||||||
|
# All rights reserved.
|
||||||
|
#
|
||||||
|
# Redistribution and use of this script, with or without modification, is
|
||||||
|
# permitted provided that the following conditions are met:
|
||||||
|
#
|
||||||
|
# 1. Redistributions of this script must retain the above copyright
|
||||||
|
# notice, this list of conditions and the following disclaimer.
|
||||||
|
#
|
||||||
|
# THIS SOFTWARE IS PROVIDED BY THE AUTHOR "AS IS" AND ANY EXPRESS OR IMPLIED
|
||||||
|
# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
|
||||||
|
# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
|
||||||
|
# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||||
|
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
|
||||||
|
# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
|
||||||
|
# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
|
||||||
|
# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
|
||||||
|
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
|
||||||
|
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
|
|
||||||
|
PRGNAM=open-isns
|
||||||
|
VERSION=${VERSION:-0.99}
|
||||||
|
BUILD=${BUILD:-2}
|
||||||
|
TAG=${TAG:-_SBo}
|
||||||
|
|
||||||
|
if [ -z "$ARCH" ]; then
|
||||||
|
case "$( uname -m )" in
|
||||||
|
i?86) ARCH=i586 ;;
|
||||||
|
arm*) ARCH=arm ;;
|
||||||
|
*) ARCH=$( uname -m ) ;;
|
||||||
|
esac
|
||||||
|
fi
|
||||||
|
|
||||||
|
CWD=$(pwd)
|
||||||
|
TMP=${TMP:-/tmp/SBo}
|
||||||
|
PKG=$TMP/package-$PRGNAM
|
||||||
|
OUTPUT=${OUTPUT:-/tmp}
|
||||||
|
|
||||||
|
if [ "$ARCH" = "i586" ]; then
|
||||||
|
SLKCFLAGS="-O2 -march=i586 -mtune=i686"
|
||||||
|
LIBDIRSUFFIX=""
|
||||||
|
elif [ "$ARCH" = "i686" ]; then
|
||||||
|
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
|
||||||
|
LIBDIRSUFFIX=""
|
||||||
|
elif [ "$ARCH" = "x86_64" ]; then
|
||||||
|
SLKCFLAGS="-O2 -fPIC"
|
||||||
|
LIBDIRSUFFIX="64"
|
||||||
|
else
|
||||||
|
SLKCFLAGS="-O2"
|
||||||
|
LIBDIRSUFFIX=""
|
||||||
|
fi
|
||||||
|
|
||||||
|
set -e
|
||||||
|
|
||||||
|
rm -rf $PKG
|
||||||
|
mkdir -p $TMP $PKG $OUTPUT
|
||||||
|
cd $TMP
|
||||||
|
rm -rf $PRGNAM-$VERSION
|
||||||
|
tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
|
||||||
|
cd $PRGNAM-$VERSION
|
||||||
|
chown -R root:root .
|
||||||
|
find -L . \
|
||||||
|
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
|
||||||
|
-o -perm 511 \) -exec chmod 755 {} \; -o \
|
||||||
|
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
|
||||||
|
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
|
||||||
|
|
||||||
|
CFLAGS="$SLKCFLAGS" \
|
||||||
|
CXXFLAGS="$SLKCFLAGS" \
|
||||||
|
./configure \
|
||||||
|
--prefix=/usr \
|
||||||
|
--libdir=/usr/lib${LIBDIRSUFFIX} \
|
||||||
|
--sysconfdir=/etc \
|
||||||
|
--localstatedir=/var \
|
||||||
|
--mandir=/usr/man \
|
||||||
|
--docdir=/usr/doc/$PRGNAM-$VERSION \
|
||||||
|
--build=$ARCH-slackware-linux
|
||||||
|
|
||||||
|
make
|
||||||
|
make install DESTDIR=$PKG
|
||||||
|
make install_hdrs DESTDIR=$PKG
|
||||||
|
make install_lib DESTDIR=$PKG
|
||||||
|
|
||||||
|
find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
|
||||||
|
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
|
||||||
|
|
||||||
|
find $PKG/usr/man -type f -exec gzip -9 {} \;
|
||||||
|
for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done
|
||||||
|
|
||||||
|
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
|
||||||
|
cp -a \
|
||||||
|
COPYING ChangeLog HACKING README TODO \
|
||||||
|
$PKG/usr/doc/$PRGNAM-$VERSION
|
||||||
|
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
|
||||||
|
|
||||||
|
mkdir -p $PKG/install
|
||||||
|
cat $CWD/slack-desc > $PKG/install/slack-desc
|
||||||
|
cat $CWD/doinst.sh > $PKG/install/doinst.sh
|
||||||
|
|
||||||
|
# These may be renamed back by doinst.sh.
|
||||||
|
for cf in \
|
||||||
|
etc/isns/isnsd.conf \
|
||||||
|
etc/isns/isnsdd.conf \
|
||||||
|
etc/isns/isnsadm.conf
|
||||||
|
do
|
||||||
|
mv $PKG/$cf $PKG/$cf.new
|
||||||
|
done
|
||||||
|
|
||||||
|
mkdir -p $PKG/etc/rc.d
|
||||||
|
cp $CWD/rc.isnsd $CWD/rc.isnsdd $PKG/etc/rc.d
|
||||||
|
|
||||||
|
cd $PKG
|
||||||
|
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}
|
@ -0,0 +1,10 @@
|
|||||||
|
PRGNAM="open-isns"
|
||||||
|
VERSION="0.99"
|
||||||
|
HOMEPAGE="https://github.com/open-iscsi/open-isns"
|
||||||
|
DOWNLOAD="https://github.com/open-iscsi/open-isns/archive/v0.99/open-isns-0.99.tar.gz"
|
||||||
|
MD5SUM="512413a285c852195b6240d6a0ad7f5b"
|
||||||
|
DOWNLOAD_x86_64=""
|
||||||
|
MD5SUM_x86_64=""
|
||||||
|
REQUIRES=""
|
||||||
|
MAINTAINER="Wayne Cuddy"
|
||||||
|
EMAIL="wcuddy@gmail.com"
|
@ -0,0 +1,24 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
# Read alternative ARGS line from /etc/default/isnsd.
|
||||||
|
test -f /etc/default/isnsd && source /etc/default/isnsd
|
||||||
|
|
||||||
|
case "$1" in
|
||||||
|
start)
|
||||||
|
echo "starting isnsd"
|
||||||
|
/usr/sbin/isnsd $ARGS
|
||||||
|
;;
|
||||||
|
stop)
|
||||||
|
echo "stopping isnsd"
|
||||||
|
pkill -F /var/run/isnsd.pid
|
||||||
|
;;
|
||||||
|
status)
|
||||||
|
echo "$(pgrep -c -f /usr/sbin/isnsd) isnsd process(es) running"
|
||||||
|
;;
|
||||||
|
restart)
|
||||||
|
$0 stop; sleep 2; $0 start
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
echo "usage: $0 {start|stop|status|reload|restart}"
|
||||||
|
;;
|
||||||
|
esac
|
@ -0,0 +1,24 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
# Read alternative ARGS line from /etc/default/isnsdd.
|
||||||
|
test -f /etc/default/isnsdd && source /etc/default/isnsdd
|
||||||
|
|
||||||
|
case "$1" in
|
||||||
|
start)
|
||||||
|
echo "starting isnsdd"
|
||||||
|
/usr/sbin/isnsdd $ARGS
|
||||||
|
;;
|
||||||
|
stop)
|
||||||
|
echo "stopping isnsdd"
|
||||||
|
pkill -F /var/run/isnsdd.pid
|
||||||
|
;;
|
||||||
|
status)
|
||||||
|
echo "$(pgrep -c -f /usr/sbin/isnsdd) isnsdd process(es) running"
|
||||||
|
;;
|
||||||
|
restart)
|
||||||
|
$0 stop; sleep 2; $0 start
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
echo "usage: $0 {start|stop|status|reload|restart}"
|
||||||
|
;;
|
||||||
|
esac
|
@ -0,0 +1,19 @@
|
|||||||
|
# HOW TO EDIT THIS FILE:
|
||||||
|
# The "handy ruler" below makes it easier to edit a package description.
|
||||||
|
# Line up the first '|' above the ':' following the base package name, and
|
||||||
|
# the '|' on the right side marks the last column you can put a character in.
|
||||||
|
# You must make exactly 11 lines for the formatting to be correct. It's also
|
||||||
|
# customary to leave one space after the ':' except on otherwise blank lines.
|
||||||
|
|
||||||
|
|-----handy-ruler------------------------------------------------------|
|
||||||
|
open-isns: open-isns (Internet Storage Name Service)
|
||||||
|
open-isns:
|
||||||
|
open-isns: This is a partial implementation of the iSCSI name service
|
||||||
|
open-isns: according to RFC4171.
|
||||||
|
open-isns:
|
||||||
|
open-isns: This package includes an ISNS server (isnsd), a CLI
|
||||||
|
open-isns: (isnsadm) for interacting with the server, and a discovery
|
||||||
|
open-isns: daemon (isnsdd).
|
||||||
|
open-isns:
|
||||||
|
open-isns:
|
||||||
|
open-isns:
|
Loading…
Reference in new issue