2012-02-11 21:48:59 +00:00
|
|
|
# Maintainer: Stefan Kirrmann <stefan.kirrmann at gmail dot com>
|
2011-01-07 19:52:36 +00:00
|
|
|
pkgname=open-iscsi
|
2012-05-30 20:52:47 +00:00
|
|
|
pkgver=2.0.873
|
|
|
|
_pkgver=2.0-873
|
2013-08-13 01:17:55 +00:00
|
|
|
pkgrel=5
|
2011-01-07 19:52:36 +00:00
|
|
|
pkgdesc="userland tools"
|
|
|
|
arch=('i686' 'x86_64')
|
|
|
|
url="http://www.open-iscsi.org"
|
|
|
|
license=('GPL')
|
|
|
|
depends=('bash')
|
2012-05-30 20:52:47 +00:00
|
|
|
install=$pkgname.install
|
2013-08-13 01:17:55 +00:00
|
|
|
backup=('etc/iscsi/iscsid.conf' 'etc/iscsi/initiatorname.iscsi')
|
2012-02-11 21:48:59 +00:00
|
|
|
source=("http://www.open-iscsi.org/bits/${pkgname}-${_pkgver}.tar.gz" \
|
2013-08-13 01:17:55 +00:00
|
|
|
"open-iscsi.service")
|
2011-01-07 19:52:36 +00:00
|
|
|
options=('docs')
|
2012-05-30 20:52:47 +00:00
|
|
|
sha256sums=('7dd9f2f97da417560349a8da44ea4fcfe98bfd5ef284240a2cc4ff8e88ac7cd9'
|
2012-07-24 03:26:45 +00:00
|
|
|
'7b8e37dd10a909a67ba7f7126f699920639be39adfa65f1d2b2bcd8846e58db7')
|
2011-01-07 19:52:36 +00:00
|
|
|
|
|
|
|
build() {
|
2012-02-11 21:48:59 +00:00
|
|
|
cd ${srcdir}/${pkgname}-${_pkgver}
|
2011-01-07 19:52:36 +00:00
|
|
|
|
2012-05-30 20:52:47 +00:00
|
|
|
# include iscsistart in the package
|
2011-01-07 19:52:36 +00:00
|
|
|
sed -i -e '/^PROGRAMS = /s/$/ usr\/iscsistart/' Makefile
|
2012-02-11 21:48:59 +00:00
|
|
|
|
|
|
|
# build breaks if the openslp package is installed
|
|
|
|
sed -i -e 's/\(\.\/configure\)/ \1 --without-slp/g' Makefile
|
|
|
|
|
2011-01-07 19:52:36 +00:00
|
|
|
make user
|
2013-08-13 01:17:55 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
|
|
|
cd ${srcdir}/${pkgname}-${_pkgver}
|
|
|
|
|
2011-01-07 19:52:36 +00:00
|
|
|
make DESTDIR=${pkgdir} install_user
|
|
|
|
|
2012-02-11 21:48:59 +00:00
|
|
|
install -D -m644 ${srcdir}/${pkgname}-${_pkgver}/etc/iscsid.conf ${pkgdir}/etc/iscsi
|
2012-07-24 03:26:45 +00:00
|
|
|
install -D -m644 ${srcdir}/open-iscsi.service ${pkgdir}/usr/lib/systemd/system/open-iscsi.service
|
2012-05-30 20:52:47 +00:00
|
|
|
|
|
|
|
touch ${pkgdir}/etc/iscsi/initiatorname.iscsi
|
2011-01-07 19:52:36 +00:00
|
|
|
|
|
|
|
# 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}/
|
|
|
|
}
|