aboutsummaryrefslogtreecommitdiffstats
path: root/main/iscsi-scst/APKBUILD
blob: 58efa2b2b2d15c1aed1a2de2133ebb97806d1875 (plain) (blame)
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
# Contributor: Carlo Landmeter
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=iscsi-scst
pkgver=2.2.1
pkgrel=2
pkgdesc="ISCSI target for SCST - userspace tools"
url="http://scst.sourceforge.net/"
arch="all"
license="GPL-2.0"
depends=""
install=""
makedepends="linux-headers bash"
subpackages=""
source="https://downloads.sourceforge.net/scst/$pkgname-$pkgver.tar.bz2
		https://downloads.sourceforge.net/scst/scst-$pkgver.tar.bz2
		$pkgname.initd
		$pkgname.confd
		scst.conf
        "

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

build() {
	cd "$_builddir"
	make all SCST_INC_DIR="$srcdir/scst-$pkgver/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
}

sha512sums="3be7013a75c8f8145e70498b5e8aa6ade419d947e54350e856f4af7a6338741cec9b0f79e4e747b7187274b0c4de2d5c7d28f24a0a7d1549ab712da1068d6b39  iscsi-scst-2.2.1.tar.bz2
6e1b3e1ab92de2d46715a2db546419ff2d122c386756fda8000413f9b0416088947acc9441a6e18b74fe32f491c03a6fea325b70a9ae6a6888039dcffe093c3d  scst-2.2.1.tar.bz2
0082ff0bc46876d1a9a1672cdee25d951953d487255d7e5e6cb3c6a28722d2e614d35a8450cacd39dd7d1e4c205ffb360c7d41ba411f2c5670a5cd5e660e477e  iscsi-scst.initd
2cb3907fbe9e0685bb7fc7f7108a6834f04a0a1e46f9e2d440cfcc627678f02a8c91fc61cc0ac06b4b014f76bc46ab42c611ba3b76db4ae37688011a9684cce6  iscsi-scst.confd
bde98028689e075c07ae8b94ac94a76ca53142cd57f7dca6c209f46489ea66da4e50e56eab5405821008a5b4a72174faa3f45f39ec8844dfe0f18f8cd891195f  scst.conf"