wok-next diff open-iscsi/receipt @ rev 21332

updated libvirt (4.3.0 -> 5.10.0)
author Hans-G?nter Theisgen
date Thu Dec 12 17:26:25 2019 +0100 (2019-12-12)
parents d6ca18366f41
children
line diff
     1.1 --- a/open-iscsi/receipt	Mon Dec 21 02:53:09 2015 +0200
     1.2 +++ b/open-iscsi/receipt	Thu Dec 12 17:26:25 2019 +0100
     1.3 @@ -3,35 +3,31 @@
     1.4  PACKAGE="open-iscsi"
     1.5  VERSION="2.0-871"
     1.6  CATEGORY="network"
     1.7 -SHORT_DESC="Implementation of RFC3720 userland utilities."
     1.8 +SHORT_DESC="Implementation of RFC3720 userland utilities"
     1.9  MAINTAINER="pascal.bellard@slitaz.org"
    1.10  LICENSE="GPL2"
    1.11 +WEB_SITE="http://www.open-iscsi.org/"
    1.12 +
    1.13  TARBALL="$PACKAGE-$VERSION.tar.gz"
    1.14 -WEB_SITE="http://www.open-iscsi.org/"
    1.15  WGET_URL="${WEB_SITE}bits/$TARBALL"
    1.16  
    1.17 -DEPENDS="linux-scsi"
    1.18 -
    1.19 -# Rules to configure and make the package.
    1.20 -compile_rules()
    1.21 -{
    1.22 +compile_rules() {
    1.23  	sed -i 's/ install_kernel / /' Makefile
    1.24  	sed -i 's|dirent.h>|&\n#include <sys/types.h>\n#include <sys/stat.h>|' \
    1.25  		usr/iscsi_sysfs.c
    1.26 -	sed -i "s|/etc/iscsi/initiatorname.iscsi|$DESTDIR&|" Makefile
    1.27 -	make user 2>&1 | grep -v 'slitaz/build/Makefile'
    1.28 -	make DESTDIR=$DESTDIR install
    1.29 +	sed -i "s|/etc/iscsi/initiatorname.iscsi|$install&|" Makefile
    1.30 +
    1.31 +	make user &&
    1.32 +	make DESTDIR=$install install
    1.33  }
    1.34  
    1.35 -# Rules to gen a SliTaz package suitable for Tazpkg.
    1.36 -genpkg_rules()
    1.37 -{
    1.38 +genpkg_rules() {
    1.39  	cp -a $install/etc $fs
    1.40  	cp -a $install/sbin $fs
    1.41 +	DEPENDS="linux-scsi"
    1.42  }
    1.43  
    1.44 -post_install()
    1.45 -{
    1.46 +post_install() {
    1.47  	if  [ ! -f "$1/etc/iscsi/initiatorname.iscsi" ]; then
    1.48  		echo "InitiatorName=$($1/sbin/iscsi-iname)" > "$1/etc/iscsi/initiatorname.iscsi"
    1.49  	fi