blob: e739f490251b912bda7944603104778e35c1691e (
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
|
# $Id: PKGBUILD 110829 2014-05-08 12:33:51Z spupykin $
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Maintainer: Stefan Kirrmann <stefan.kirrmann at gmail dot com>
pkgname=open-iscsi
pkgver=2.0_873
_pkgver=${pkgver/_/-}
pkgrel=6
pkgdesc="userland tools"
arch=('i686' 'x86_64')
url="http://www.open-iscsi.org"
license=('GPL')
depends=('bash')
install=$pkgname.install
backup=('etc/iscsi/iscsid.conf' 'etc/iscsi/initiatorname.iscsi')
source=("http://www.open-iscsi.org/bits/${pkgname}-${_pkgver}.tar.gz" \
"open-iscsi.service")
options=('docs')
sha256sums=('7dd9f2f97da417560349a8da44ea4fcfe98bfd5ef284240a2cc4ff8e88ac7cd9'
'7b8e37dd10a909a67ba7f7126f699920639be39adfa65f1d2b2bcd8846e58db7')
build() {
cd ${srcdir}/${pkgname}-${_pkgver}
# include iscsistart in the package
sed -i -e '/^PROGRAMS = /s/$/ usr\/iscsistart/' Makefile
# build breaks if the openslp package is installed
sed -i -e 's/\(\.\/configure\)/ \1 --without-slp/g' Makefile
make user
}
package() {
cd ${srcdir}/${pkgname}-${_pkgver}
make DESTDIR=${pkgdir} install_user
install -D -m644 ${srcdir}/${pkgname}-${_pkgver}/etc/iscsid.conf ${pkgdir}/etc/iscsi
install -D -m644 ${srcdir}/open-iscsi.service ${pkgdir}/usr/lib/systemd/system/open-iscsi.service
touch ${pkgdir}/etc/iscsi/initiatorname.iscsi
# copy docs
mkdir -p ${pkgdir}/usr/share/doc/${pkgname}
install -m644 Changelog ${pkgdir}/usr/share/doc/${pkgname}/
install -m644 README ${pkgdir}/usr/share/doc/${pkgname}/
mv $pkgdir/sbin $pkgdir/usr/bin
}
|