aboutsummaryrefslogtreecommitdiffstats
path: root/main/open-iscsi/APKBUILD
diff options
context:
space:
mode:
authorLeonardo Arena <rnalrd@gmail.com>2010-06-16 12:19:44 +0000
committerLeonardo Arena <rnalrd@gmail.com>2010-06-16 12:19:44 +0000
commitfd6f66ca788471a9446350261d7bd1b48af94388 (patch)
tree138ae7b14b43d295ff9605964d067df38f72de84 /main/open-iscsi/APKBUILD
parentb0825c6fc161b4791934185ee28a681462adb6f7 (diff)
downloadaports-fd6f66ca788471a9446350261d7bd1b48af94388.tar.bz2
aports-fd6f66ca788471a9446350261d7bd1b48af94388.tar.xz
main/open-iscsi*: moved to main
Diffstat (limited to 'main/open-iscsi/APKBUILD')
-rw-r--r--main/open-iscsi/APKBUILD49
1 files changed, 49 insertions, 0 deletions
diff --git a/main/open-iscsi/APKBUILD b/main/open-iscsi/APKBUILD
new file mode 100644
index 0000000000..37d5f37409
--- /dev/null
+++ b/main/open-iscsi/APKBUILD
@@ -0,0 +1,49 @@
+# Maintainer: Leonardo Arena <rnalrd@gmail.com>
+pkgname=open-iscsi
+pkgver=2.0.871
+_realver=2.0-871
+pkgrel=3
+pkgdesc="High performance, transport independent, multi-platform iSCSI initiator"
+url="http://www.open-iscsi.org"
+license="GPL-2"
+depends=
+makedepends=
+install=""
+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.confd"
+
+_builddir="$srcdir"/$pkgname-$_realver
+
+prepare() {
+ cd "$_builddir"
+ patch -p0 < ../../CVE-2009-1297.patch || return 1
+ patch -p1 < ../../open-iscsi-2.0.871-makefile-cleanup.patch || return 1
+}
+
+build() {
+ cd "$_builddir"
+ make user || return 1
+}
+
+package() {
+ cd "$_builddir"
+ make DESTDIR="$pkgdir" install_user
+ mkdir -p $pkgdir/usr/bin
+ mkdir -p $pkgdir/usr/sbin
+ mv $pkgdir/sbin/iscsi-iname $pkgdir/usr/bin
+ mv $pkgdir/sbin/iscsi_discovery $pkgdir/usr/bin
+ 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
+b762b687d4628791b4362df22cf22d34 iscsid.confd"