diff options
author | Leonardo Arena <rnalrd@gmail.com> | 2010-02-19 15:07:20 +0000 |
---|---|---|
committer | Leonardo Arena <rnalrd@gmail.com> | 2010-02-19 15:07:20 +0000 |
commit | accf8dcf9ac68e08e3e1ebfc4300287cf91f3e4e (patch) | |
tree | 38e5ae0d65c550817fdf84e178c6a552510549c9 /testing/open-iscsi/APKBUILD | |
parent | fe3c74dd23459bd5a35e3d14d5f999fc17bd923a (diff) | |
download | aports-accf8dcf9ac68e08e3e1ebfc4300287cf91f3e4e.tar.bz2 aports-accf8dcf9ac68e08e3e1ebfc4300287cf91f3e4e.tar.xz |
testing/open-iscsi: new aport
Diffstat (limited to 'testing/open-iscsi/APKBUILD')
-rw-r--r-- | testing/open-iscsi/APKBUILD | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/testing/open-iscsi/APKBUILD b/testing/open-iscsi/APKBUILD new file mode 100644 index 0000000000..b2ea59d0d3 --- /dev/null +++ b/testing/open-iscsi/APKBUILD @@ -0,0 +1,41 @@ +# Maintainer: Leonardo Arena <rnalrd@gmail.com> +pkgname=open-iscsi +pkgver=2.0.871 +_realver=2.0-871 +pkgrel=0 +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" + +_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 + mv $pkgdir/sbin/iscsi-iname $pkgdir/usr/bin + mv $pkgdir/sbin/iscsi_discovery $pkgdir/usr/bin + mv $pkgdir/sbin/iscsiadm $pkgdir/usr/bin +} + +md5sums="0c403e8c9ad41607571ba0e6e8ff196e open-iscsi-2.0-871.tar.gz +d1584790b4e12f087e60089880b53d2b CVE-2009-1297.patch +734300d7b7590dc9ae9b2fb7f5b51bf0 open-iscsi-2.0.871-makefile-cleanup.patch" |