summaryrefslogtreecommitdiffstats
path: root/main/open-iscsi/APKBUILD
blob: 0a3f56b720a0679b3c67328bb8f860261740af12 (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@alpinelinux.org>
pkgname=open-iscsi
pkgver=2.0.873
_realver=${pkgver%.*}-${pkgver##*.}
pkgrel=0
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://www.open-iscsi.org/bits/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="8b8316d7c9469149a6cc6234478347f7  open-iscsi-2.0-873.tar.gz
9971f5abe255764ee616566e60955dba  iscsid.initd
b762b687d4628791b4362df22cf22d34  iscsid.confd"