diff options
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 000000000..a06795af2 --- /dev/null +++ b/main/open-iscsi/APKBUILD @@ -0,0 +1,44 @@ +# Maintainer: Leonardo Arena <rnalrd@gmail.com> +pkgname=open-iscsi +pkgver=2.0.872 +_realver=${pkgver%.*}-${pkgver##*.} +pkgrel=2 +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 +95cc696720bb9f267f38ac69d5c2e07c iscsid.initd +b762b687d4628791b4362df22cf22d34 iscsid.confd" |