summaryrefslogtreecommitdiffstats
path: root/testing/open-iscsi
diff options
context:
space:
mode:
authorLeonardo Arena <rnalrd@gmail.com>2010-02-22 12:11:56 +0000
committerLeonardo Arena <rnalrd@gmail.com>2010-02-22 12:11:56 +0000
commitc715f8a05f69f6850bb8bcc29f214cb76920c1ce (patch)
tree3f7e5abd2e4bb4cae712d97242eb085dca971e56 /testing/open-iscsi
parent39d012f9e2e675679bcadd399d501c6bc96de082 (diff)
downloadaports-c715f8a05f69f6850bb8bcc29f214cb76920c1ce.tar.bz2
aports-c715f8a05f69f6850bb8bcc29f214cb76920c1ce.tar.xz
testing/open-iscsi: initd added
Diffstat (limited to 'testing/open-iscsi')
-rw-r--r--testing/open-iscsi/APKBUILD3
-rw-r--r--testing/open-iscsi/iscsid-2.0.871-r1.init.d6
2 files changed, 5 insertions, 4 deletions
diff --git a/testing/open-iscsi/APKBUILD b/testing/open-iscsi/APKBUILD
index b2ea59d0d..4c9852b03 100644
--- a/testing/open-iscsi/APKBUILD
+++ b/testing/open-iscsi/APKBUILD
@@ -8,7 +8,7 @@ url="http://www.open-iscsi.org"
license="GPL-2"
depends=
makedepends=
-install=
+install=""
subpackages="$pkgname-doc"
source="http://www.open-iscsi.org/bits/$pkgname-$_realver.tar.gz
CVE-2009-1297.patch
@@ -34,6 +34,7 @@ package() {
mv $pkgdir/sbin/iscsi-iname $pkgdir/usr/bin
mv $pkgdir/sbin/iscsi_discovery $pkgdir/usr/bin
mv $pkgdir/sbin/iscsiadm $pkgdir/usr/bin
+ install -Dm755 ../../iscsid-2.0.871-r1.init.d "$pkgdir"/etc/init.d/iscsid
}
md5sums="0c403e8c9ad41607571ba0e6e8ff196e open-iscsi-2.0-871.tar.gz
diff --git a/testing/open-iscsi/iscsid-2.0.871-r1.init.d b/testing/open-iscsi/iscsid-2.0.871-r1.init.d
index 2646dd5eb..060eb9b59 100644
--- a/testing/open-iscsi/iscsid-2.0.871-r1.init.d
+++ b/testing/open-iscsi/iscsid-2.0.871-r1.init.d
@@ -101,7 +101,7 @@ stop() {
starttargets() {
ebegin "Setting up iSCSI targets"
- /usr/sbin/iscsiadm -m node --loginall=automatic
+ /usr/bin/iscsiadm -m node --loginall=automatic
ret=$?
eend $ret
return $ret
@@ -110,7 +110,7 @@ starttargets() {
stoptargets() {
ebegin "Disconnecting iSCSI targets"
sync
- /usr/sbin/iscsiadm -m node --logoutall=all
+ /usr/bin/iscsiadm -m node --logoutall=all
ret=$?
eend $ret
return $ret
@@ -123,5 +123,5 @@ restarttargets() {
status() {
ebegin "Showing current active iSCSI sessions"
- /usr/sbin/iscsiadm -m session
+ /usr/bin/iscsiadm -m session
}