aboutsummaryrefslogtreecommitdiffstats
path: root/main/open-iscsi/APKBUILD
blob: 7740cb27a5130bb1b10f46a0b84890e3c6dec09c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
# Maintainer: Leonardo Arena <rnalrd@gmail.com>
pkgname=open-iscsi
pkgver=2.0.872
_realver=${pkgver%.*}-${pkgver##*.}
pkgrel=0
pkgdesc="High performance, transport independent, multi-platform iSCSI initiator"
url="http://www.open-iscsi.org"
arch="x86 x86_64"
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
3e89cb86395756dafebc4f1490f0de10  iscsid.initd
b762b687d4628791b4362df22cf22d34  iscsid.confd"