blob: 1fcb1c127a0d52b3c360be7396794993c26bab3f (
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
49
50
51
52
|
# Maintainer: Leonardo Arena <rnalrd@alpinelinux.org>
pkgname=open-iscsi
pkgver=2.0.874
pkgrel=0
pkgdesc="High performance, transport independent, multi-platform iSCSI initiator"
url="http://www.open-iscsi.org"
arch="all"
license="GPL2"
makedepends="autoconf automake libressl-dev libtool linux-headers open-isns-dev
util-linux-dev"
options="!check"
subpackages="$pkgname-doc"
source="$pkgname-$pkgver.tar.gz::https://github.com/open-iscsi/open-iscsi/archive/$pkgver.tar.gz
iscsid.initd
iscsid.confd
iscsid.conf
musl-fixes.patch
ldflags.patch
"
builddir="$srcdir"/$pkgname-$pkgver
prepare() {
default_prepare
# include iscsistart in the package
sed -i -e '/^PROGRAMS = /s/$/ usr\/iscsistart/' Makefile
}
build() {
cd "$builddir"
make user
}
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
install -Dm644 "$srcdir"/iscsid.conf "$pkgdir"/etc/iscsi/iscsid.conf
}
sha512sums="66d8a52b6401229d51873f1ee0f4e7259a8ed584800403a41741c7eeedc0ec21a2b116671cb7259f60918d083ffb46d76860236a1b10fbb94a4c1d61bddae1ae open-iscsi-2.0.874.tar.gz
e16d0abf117c0c282e98abb14893923609dc6078f770facd0578ad72ce6e3fc7b9c84a39628c1246d955ba6bb204fb902bcba6d5959ac755fee7e2a85da181df iscsid.initd
075bb9cb783be7ccbc799947e0e042b85310d40b3045141dc1be40ca84ed1cc0e1e54559df501c512c179e28375314b27a03c15d9a6d4b1cabd428b2279985d3 iscsid.confd
3686d31c5642e611c0c0c61f0f42a33030a74b518a2a108f004b9bd34b2b98d8e29ee2416a5b9cc447ab0449bdc94158b2323d977e7b7d2930dd4dcf0866da68 iscsid.conf
9120d8e0a594f7337eb748ef655ebe915356fc4519b2cb58d9a6a5a2002059c0e9eb31e33e3e8b2242ae2fb9538a5233d17cdf0afd50c56aef3922335ebcd7d3 musl-fixes.patch
85f1245237fae8e10bb119b079000fe0f950b4771c198f5f2fec83b8d923931ef835a0611908967c080d9ae1f511bde29204be095abe997a7325cb70d264d548 ldflags.patch"
|