mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-08 22:45:43 +00:00
aur/open-iscsi to 2.0.872-2
This commit is contained in:
parent
d094632607
commit
08fcd77197
2 changed files with 17 additions and 35 deletions
|
@ -1,14 +1,11 @@
|
|||
# Contributor: Stefan Kirrmann <stefan.kirrmann at gmail dot com>
|
||||
# Modified: Marco Lima <cipparello@gmail.com>
|
||||
|
||||
# No Plugbox changes, straight from AUR
|
||||
# Maintainer: Stefan Kirrmann <stefan.kirrmann at gmail dot com>
|
||||
|
||||
plugrel=1
|
||||
|
||||
pkgname=open-iscsi
|
||||
pkgver=2.0.871.3
|
||||
_pkgver=2.0-871.3
|
||||
pkgrel=1
|
||||
pkgver=2.0.872
|
||||
_pkgver=2.0-872
|
||||
pkgrel=2
|
||||
pkgdesc="userland tools"
|
||||
arch=('i686' 'x86_64')
|
||||
url="http://www.open-iscsi.org"
|
||||
|
@ -16,32 +13,28 @@ 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" \
|
||||
source=("http://www.open-iscsi.org/bits/${pkgname}-${_pkgver}.tar.gz" \
|
||||
"open-iscsi" "open-iscsi.conf.d")
|
||||
options=('docs')
|
||||
md5sums=('16474cb7cd5a41aea1b7b0b631ac996d'
|
||||
'b191af2549f7aff89321b54421eab96f'
|
||||
'd6e94c159ddfdeb1ebe69c0760ed1fa6'
|
||||
'cafea1118930cd7d9eb6209706020b6a')
|
||||
sha256sums=('37753697a170223ac02a292b3a23a315a3c747b490c42480e4057b676c9f8d4f'
|
||||
'817791c59d1c271ad5eb78a7609e4fa081cf9414f3d7ac26df897b9327286c23'
|
||||
'289ba27b72a3bd9d251e08b3d61dd3ae2f6ad545e5ffe2edaa2b79638996654c')
|
||||
|
||||
build() {
|
||||
cd ${startdir}/src/${pkgname}-${_pkgver}
|
||||
|
||||
patch -Np1 -i ${srcdir}/open-iscsi-build-error.patch
|
||||
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 ${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
|
||||
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}
|
||||
|
|
|
@ -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"
|
Loading…
Reference in a new issue