From 50e90bf8e3f43d85a5ef62e26ddcda73b86b0338 Mon Sep 17 00:00:00 2001 From: Kevin Mihelich Date: Mon, 17 Oct 2011 22:28:59 -0400 Subject: [PATCH] fixed aur/lio-utils --- aur/lio-utils/PKGBUILD | 30 ++++++++++-------------------- 1 file changed, 10 insertions(+), 20 deletions(-) diff --git a/aur/lio-utils/PKGBUILD b/aur/lio-utils/PKGBUILD index a021f1ad2..90438d546 100644 --- a/aur/lio-utils/PKGBUILD +++ b/aur/lio-utils/PKGBUILD @@ -1,40 +1,30 @@ # Contributor: Johannes Dewender arch at JonnyJD dot net +# Contributor: Kevin Mihelich plugrel=1 pkgname=lio-utils pkgver=4.1 pkgrel=3 -epoch= -pkgdesc="a simple low-level configuration tool set for LIO 3 (Target 3 and iSCSI 3)" +pkgdesc="A simple low-level configuration tool set for LIO 3 (Target 3 and iSCSI 3)" arch=('any') url="http://linux-iscsi.org/wiki/Lio-utils" license=('AGPL3') depends=('python2') -makedepends=() -optdepends=(net-snmp) -provides=() -conflicts=() -replaces=() -backup=() -options=() -install= -source=() -md5sums=() - +makedepends=('net-snmp') +optdepends=('net-snmp') +source=("$pkgname-$pkgver.tgz::http://www.risingtidesystems.com/git/?p=$pkgname.git;a=snapshot;h=e6d881a98210c99468b82daa5f8926bb079e4790;sf=tgz") +md5sums=('25bca4a70abe7041b3eef80f8fbdcad4') build() { - if [ ! -e "$pkgname-$pkgver.tgz" ]; then - wget "http://www.risingtidesystems.com/git/?p=$pkgname.git;a=snapshot;h=e6d881a98210c99468b82daa5f8926bb079e4790;sf=tgz" -O "$pkgname-$pkgver.tgz" - fi - bsdtar -xf "$srcdir/$pkgname-$pkgver.tgz" - cd "$srcdir/$pkgname/" + cd "$srcdir/$pkgname" + find -type f -a -name '*.py' -exec sed -i -e 's|#![ ]*/usr/bin/python$|#!/usr/bin/python2|' {} \; + sed -i 's|python setup.py|python2 setup.py|' Makefile make SNMP_FEATURE=1 - } package() { - cd "$srcdir/$pkgname/" + cd "$srcdir/$pkgname" #make DESTDIR="$pkgdir/" initd_install) install -d $pkgdir/etc/rc.d