diff options
author | Leonardo Arena <rnalrd@alpinelinux.org> | 2012-04-18 09:29:18 +0000 |
---|---|---|
committer | Leonardo Arena <rnalrd@alpinelinux.org> | 2012-04-18 09:30:53 +0000 |
commit | b7aa1c92a86b7f27d237f090528ec112ac9696f0 (patch) | |
tree | 0d770d656f37af308f64f4ce5f66fca0b2acaea1 /main/open-iscsi/APKBUILD | |
parent | abec1f391ad1400086af5369127605ce2c90e59e (diff) | |
download | aports-b7aa1c92a86b7f27d237f090528ec112ac9696f0.tar.bz2 aports-b7aa1c92a86b7f27d237f090528ec112ac9696f0.tar.xz |
main/open-iscsi: restore package
This reverts commit bdeb1544255f85ed635bf584636808c45a1abad5.
Newer kernels merged open-iscsi module. We need the userland utils back.
Diffstat (limited to 'main/open-iscsi/APKBUILD')
-rw-r--r-- | main/open-iscsi/APKBUILD | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/main/open-iscsi/APKBUILD b/main/open-iscsi/APKBUILD new file mode 100644 index 0000000000..f8eff5b440 --- /dev/null +++ b/main/open-iscsi/APKBUILD @@ -0,0 +1,44 @@ +# Maintainer: Leonardo Arena <rnalrd@alpinelinux.org> +pkgname=open-iscsi +pkgver=2.0.872 +_realver=${pkgver%.*}-${pkgver##*.} +pkgrel=3 +pkgdesc="High performance, transport independent, multi-platform iSCSI initiator" +url="http://www.open-iscsi.org" +arch="all" +license="GPL-2" +depends= +makedepends="openssl-dev" +install="" +subpackages="$pkgname-doc" +source="http://kernel.org/pub/linux/kernel/people/mnc/open-iscsi/releases/open-iscsi-$_realver.tar.gz + iscsid.initd + iscsid.confd" + +_builddir="$srcdir"/$pkgname-$_realver + +prepare() { + cd "$_builddir" +} + +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 "$srcdir"/iscsid.initd "$pkgdir"/etc/init.d/iscsid + install -Dm644 "$srcdir"/iscsid.confd "$pkgdir"/etc/conf.d/iscsid +} + +md5sums="b4df94f08c241352bb964043b3e44779 open-iscsi-2.0-872.tar.gz +9971f5abe255764ee616566e60955dba iscsid.initd +b762b687d4628791b4362df22cf22d34 iscsid.confd" |