aboutsummaryrefslogtreecommitdiffstats
path: root/main/open-iscsi/APKBUILD
blob: a06795af2d4f6f245f48ca544a10dd73aa780ae8 (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=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"