aur/open-iscsi to 2.0.872-2

This commit is contained in:
Kevin Mihelich 2012-02-11 16:48:59 -05:00
parent d094632607
commit 08fcd77197
2 changed files with 17 additions and 35 deletions

View file

@ -1,14 +1,11 @@
# Contributor: Stefan Kirrmann <stefan.kirrmann at gmail dot com> # Maintainer: Stefan Kirrmann <stefan.kirrmann at gmail dot com>
# Modified: Marco Lima <cipparello@gmail.com>
# No Plugbox changes, straight from AUR
plugrel=1 plugrel=1
pkgname=open-iscsi pkgname=open-iscsi
pkgver=2.0.871.3 pkgver=2.0.872
_pkgver=2.0-871.3 _pkgver=2.0-872
pkgrel=1 pkgrel=2
pkgdesc="userland tools" pkgdesc="userland tools"
arch=('i686' 'x86_64') arch=('i686' 'x86_64')
url="http://www.open-iscsi.org" url="http://www.open-iscsi.org"
@ -16,32 +13,28 @@ license=('GPL')
depends=('bash') depends=('bash')
install="${pkgname}.install" install="${pkgname}.install"
backup=('etc/iscsi/iscsid.conf' 'etc/iscsi/initiatorname.iscsi' 'etc/conf.d/open-iscsi') 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" \ source=("http://www.open-iscsi.org/bits/${pkgname}-${_pkgver}.tar.gz" \
"open-iscsi" "open-iscsi.conf.d" "open-iscsi-build-error.patch") "open-iscsi" "open-iscsi.conf.d")
#source=("http://www.open-iscsi.org/bits/${pkgname}-${_pkgver}.tar.gz" \
options=('docs') options=('docs')
md5sums=('16474cb7cd5a41aea1b7b0b631ac996d' sha256sums=('37753697a170223ac02a292b3a23a315a3c747b490c42480e4057b676c9f8d4f'
'b191af2549f7aff89321b54421eab96f' '817791c59d1c271ad5eb78a7609e4fa081cf9414f3d7ac26df897b9327286c23'
'd6e94c159ddfdeb1ebe69c0760ed1fa6' '289ba27b72a3bd9d251e08b3d61dd3ae2f6ad545e5ffe2edaa2b79638996654c')
'cafea1118930cd7d9eb6209706020b6a')
build() { build() {
cd ${startdir}/src/${pkgname}-${_pkgver} cd ${srcdir}/${pkgname}-${_pkgver}
patch -Np1 -i ${srcdir}/open-iscsi-build-error.patch
# include iscsistart program in the package # include iscsistart program in the package
sed -i -e '/^PROGRAMS = /s/$/ usr\/iscsistart/' Makefile 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 user
make DESTDIR=${pkgdir} install_user make DESTDIR=${pkgdir} install_user
install -D -m755 ${startdir}/src/open-iscsi ${pkgdir}/etc/rc.d/open-iscsi install -D -m755 ${srcdir}/open-iscsi ${pkgdir}/etc/rc.d/open-iscsi
install -D -m644 ${startdir}/src/open-iscsi.conf.d ${pkgdir}/etc/conf.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
# 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 # copy docs
mkdir -p ${pkgdir}/usr/share/doc/${pkgname} mkdir -p ${pkgdir}/usr/share/doc/${pkgname}

View file

@ -1,11 +0,0 @@
--- a/usr/iscsi_sysfs.c
+++ b/usr/iscsi_sysfs.c
@@ -22,6 +22,8 @@
#include <string.h>
#include <errno.h>
#include <dirent.h>
+#include <sys/types.h>
+#include <sys/stat.h>
#include "log.h"
#include "initiator.h"