PKGBUILDs/aur/open-iscsi/PKGBUILD

44 lines
1.4 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
plugrel=1
2011-01-07 19:52:36 +00:00
pkgname=open-iscsi
2012-02-11 21:48:59 +00:00
pkgver=2.0.872
_pkgver=2.0-872
pkgrel=2
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')
install="${pkgname}.install"
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-02-11 21:48:59 +00:00
sha256sums=('37753697a170223ac02a292b3a23a315a3c747b490c42480e4057b676c9f8d4f'
'817791c59d1c271ad5eb78a7609e4fa081cf9414f3d7ac26df897b9327286c23'
'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
# include iscsistart program in the package
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
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}/
}