PKGBUILDs/aur/open-iscsi/PKGBUILD

44 lines
1.5 KiB
Bash
Raw Normal View History

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
pkgrel=3
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
2011-01-07 19:52:36 +00:00
backup=('etc/iscsi/iscsid.conf' 'etc/iscsi/initiatorname.iscsi' 'etc/conf.d/open-iscsi')
2012-02-11 21:48:59 +00:00
source=("http://www.open-iscsi.org/bits/${pkgname}-${_pkgver}.tar.gz" \
"open-iscsi" "open-iscsi.conf.d")
2011-01-07 19:52:36 +00:00
options=('docs')
2012-05-30 20:52:47 +00:00
sha256sums=('7dd9f2f97da417560349a8da44ea4fcfe98bfd5ef284240a2cc4ff8e88ac7cd9'
'649536c4abc9c4d9f994cc1c0033449d46c120b73a836854a228f7e103711314'
2012-02-11 21:48:59 +00:00
'289ba27b72a3bd9d251e08b3d61dd3ae2f6ad545e5ffe2edaa2b79638996654c')
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
make DESTDIR=${pkgdir} install_user
2012-02-11 21:48:59 +00:00
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
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}/
}