# Maintainer: Stefan Kirrmann plugrel=1 pkgname=open-iscsi pkgver=2.0.872 _pkgver=2.0-872 pkgrel=2 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") options=('docs') sha256sums=('37753697a170223ac02a292b3a23a315a3c747b490c42480e4057b676c9f8d4f' '817791c59d1c271ad5eb78a7609e4fa081cf9414f3d7ac26df897b9327286c23' '289ba27b72a3bd9d251e08b3d61dd3ae2f6ad545e5ffe2edaa2b79638996654c') build() { cd ${srcdir}/${pkgname}-${_pkgver} # include iscsistart program 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 # 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}/ }