summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLeonardo Arena <rnalrd@gmail.com>2010-06-16 11:12:27 +0000
committerLeonardo Arena <rnalrd@gmail.com>2010-06-16 11:12:27 +0000
commitb0825c6fc161b4791934185ee28a681462adb6f7 (patch)
treea8d1a11b7bc0ecc975a68b9b1781fc97f7c43f1b
parent403fea254a753e28c7a9580517a6cad1980e339f (diff)
downloadaports-b0825c6fc161b4791934185ee28a681462adb6f7.tar.bz2
aports-b0825c6fc161b4791934185ee28a681462adb6f7.tar.xz
testing/open-iscsi: conf.d file added
-rw-r--r--testing/open-iscsi/APKBUILD9
-rw-r--r--testing/open-iscsi/iscsid.confd13
2 files changed, 19 insertions, 3 deletions
diff --git a/testing/open-iscsi/APKBUILD b/testing/open-iscsi/APKBUILD
index 0f4076e21..37d5f3740 100644
--- a/testing/open-iscsi/APKBUILD
+++ b/testing/open-iscsi/APKBUILD
@@ -2,7 +2,7 @@
pkgname=open-iscsi
pkgver=2.0.871
_realver=2.0-871
-pkgrel=2
+pkgrel=3
pkgdesc="High performance, transport independent, multi-platform iSCSI initiator"
url="http://www.open-iscsi.org"
license="GPL-2"
@@ -13,7 +13,8 @@ subpackages="$pkgname-doc"
source="http://www.open-iscsi.org/bits/$pkgname-$_realver.tar.gz
CVE-2009-1297.patch
open-iscsi-2.0.871-makefile-cleanup.patch
- iscsid.initd"
+ iscsid.initd
+ iscsid.confd"
_builddir="$srcdir"/$pkgname-$_realver
@@ -38,9 +39,11 @@ package() {
mv $pkgdir/sbin/iscsiadm $pkgdir/usr/bin
mv $pkgdir/sbin/iscsid $pkgdir/usr/sbin
install -Dm755 ../../iscsid.initd "$pkgdir"/etc/init.d/iscsid
+ install -Dm644 ../../iscsid.confd "$pkgdir"/etc/conf.d/iscsid
}
md5sums="0c403e8c9ad41607571ba0e6e8ff196e open-iscsi-2.0-871.tar.gz
d1584790b4e12f087e60089880b53d2b CVE-2009-1297.patch
734300d7b7590dc9ae9b2fb7f5b51bf0 open-iscsi-2.0.871-makefile-cleanup.patch
-3e89cb86395756dafebc4f1490f0de10 iscsid.initd"
+3e89cb86395756dafebc4f1490f0de10 iscsid.initd
+b762b687d4628791b4362df22cf22d34 iscsid.confd"
diff --git a/testing/open-iscsi/iscsid.confd b/testing/open-iscsi/iscsid.confd
new file mode 100644
index 000000000..1c4cc4054
--- /dev/null
+++ b/testing/open-iscsi/iscsid.confd
@@ -0,0 +1,13 @@
+# /etc/conf.d/iscsid
+
+# config file to use
+CONFIG_FILE=/etc/iscsi/iscsid.conf
+
+# you need to specify an initiatorname in the file
+INITIATORNAME_FILE=/etc/iscsi/initiatorname.iscsi
+
+# options to pass to iscsid
+OPTS="-i ${INITIATORNAME_FILE}"
+
+# Start automatic targets when iscsid is started
+AUTOSTARTTARGETS="yes"