aboutsummaryrefslogtreecommitdiffstats
path: root/testing/iscsi-scst/APKBUILD
blob: 0d562dc66276ad8f6b9f444900a39ebbd6f958af (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
45
46
47
48
# Contributor: Carlo Landmeter
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>

pkgname=iscsi-scst
pkgver=2.0.0
pkgrel=1
pkgdesc="ISCSI target for SCST - userspace tools"
url="http://iscsi-scst.sourceforge.net/"
arch="x86_64"
license="GPL-2"
depends=
install=
makedepends="openssl-dev bash"
subpackages=
_svn="3161"
source="http://alpine.nethq.org/distfiles/$pkgname-$pkgver-svn-$_svn.tar.gz
	http://alpine.nethq.org/distfiles/scst-$pkgver-svn-$_svn.tar.gz
	$pkgname.initd
	$pkgname.confd
	scst.conf
        "

_builddir="$srcdir"/$pkgname
prepare() {
        cd "$_builddir"
	cp Makefile_user_space_only Makefile
}

build() {
        cd "$_builddir"
	make all SCST_INC_DIR="$srcdir"/scst/include || return 1
}

package() {
        cd "$_builddir"
	# make install is broken
	install -D usr/iscsi-scstd "$pkgdir"/usr/sbin/iscsi-scstd
	install -D usr/iscsi-scst-adm "$pkgdir"/usr/sbin/iscsi-scst-adm
	install -D -m 755 "$srcdir"/iscsi-scst.initd "$pkgdir"/etc/init.d/iscsi-scst
	install -D -m 644 "$srcdir"/iscsi-scst.confd "$pkgdir"/etc/conf.d/iscsi-scst
	install -D -m 644 "$srcdir"/scst.conf "$pkgdir"/etc/scst.conf
}

md5sums="0980e7f0cc57d3a09cc57ba4b127ef12  iscsi-scst-2.0.0-svn-3161.tar.gz
73c1ec37231918e5183e78f1ec8f2302  scst-2.0.0-svn-3161.tar.gz
ce6abcb6365f4b8609c3e963d5243b22  iscsi-scst.initd
6d8b6e27d47748f7805fdb318b62bb3b  iscsi-scst.confd
e8eda9872b3da3a55605c7fa17cb6c68  scst.conf"