mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-18 22:54:00 +00:00
45 lines
1.7 KiB
Bash
45 lines
1.7 KiB
Bash
# Maintainer: Stefan Kirrmann <stefan.kirrmann at gmail dot com>
|
|
pkgname=open-iscsi
|
|
pkgver=2.0.873
|
|
_pkgver=2.0-873
|
|
pkgrel=4
|
|
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' 'etc/conf.d/open-iscsi')
|
|
source=("http://www.open-iscsi.org/bits/${pkgname}-${_pkgver}.tar.gz" \
|
|
"open-iscsi" "open-iscsi.conf.d" "open-iscsi.service")
|
|
options=('docs')
|
|
sha256sums=('7dd9f2f97da417560349a8da44ea4fcfe98bfd5ef284240a2cc4ff8e88ac7cd9'
|
|
'649536c4abc9c4d9f994cc1c0033449d46c120b73a836854a228f7e103711314'
|
|
'289ba27b72a3bd9d251e08b3d61dd3ae2f6ad545e5ffe2edaa2b79638996654c'
|
|
'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
|
|
make DESTDIR=${pkgdir} install_user
|
|
|
|
install -D -m755 ${srcdir}/open-iscsi ${pkgdir}/etc/rc.d/open-iscsi
|
|
install -D -m644 ${srcdir}/open-iscsi.conf.d ${pkgdir}/etc/conf.d/open-iscsi
|
|
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}/
|
|
}
|