PKGBUILDs/aur/open-iscsi/PKGBUILD
2011-01-07 13:52:36 -06:00

48 lines
1.7 KiB
Bash

# Contributor: Stefan Kirrmann <stefan.kirrmann at gmail dot com>
# Modified: Marco Lima <cipparello@gmail.com>
# No Plugbox changes, straight from AUR
pkgname=open-iscsi
pkgver=2.0.871.3
_pkgver=2.0-871.3
pkgrel=1
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://kernel.org/pub/linux/kernel/people/mnc/open-iscsi/releases/${pkgname}-${_pkgver}.tar.gz" \
"open-iscsi" "open-iscsi.conf.d" "open-iscsi-build-error.patch")
#source=("http://www.open-iscsi.org/bits/${pkgname}-${_pkgver}.tar.gz" \
options=('docs')
md5sums=('16474cb7cd5a41aea1b7b0b631ac996d'
'b191af2549f7aff89321b54421eab96f'
'd6e94c159ddfdeb1ebe69c0760ed1fa6'
'cafea1118930cd7d9eb6209706020b6a')
build() {
cd ${startdir}/src/${pkgname}-${_pkgver}
patch -Np1 -i ${srcdir}/open-iscsi-build-error.patch
# include iscsistart program in the package
sed -i -e '/^PROGRAMS = /s/$/ usr\/iscsistart/' Makefile
make user
make DESTDIR=${pkgdir} install_user
install -D -m755 ${startdir}/src/open-iscsi ${pkgdir}/etc/rc.d/open-iscsi
install -D -m644 ${startdir}/src/open-iscsi.conf.d ${pkgdir}/etc/conf.d/open-iscsi
# change permission configuration file
# chmod 600 ${startdir}/pkg/etc/iscsi/iscsid.conf
install -D -m644 ${startdir}/src/${pkgname}-${_pkgver}/etc/iscsid.conf ${pkgdir}/etc/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}/
}