wok-next annotate open-iscsi/receipt @ rev 16603
Small fix to libmcp23s17 + libpifacedigital
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Wed May 07 17:53:40 2014 +0200 (2014-05-07) |
parents | 3a7b7a59bdae |
children | 9e01bc6321ea |
rev | line source |
---|---|
pascal@4852 | 1 # SliTaz package receipt. |
pascal@4852 | 2 |
pascal@4852 | 3 PACKAGE="open-iscsi" |
pascal@4852 | 4 VERSION="2.0-871" |
pascal@4852 | 5 CATEGORY="network" |
pascal@4852 | 6 SHORT_DESC="Implementation of RFC3720 userland utilities." |
pascal@4852 | 7 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@15289 | 8 LICENSE="GPL2" |
pascal@4852 | 9 TARBALL="$PACKAGE-$VERSION.tar.gz" |
pascal@4852 | 10 WEB_SITE="http://www.open-iscsi.org/" |
pascal@4852 | 11 WGET_URL="${WEB_SITE}bits/$TARBALL" |
pascal@15289 | 12 |
slaxemulator@7438 | 13 DEPENDS="linux-scsi" |
pascal@4852 | 14 |
pascal@4852 | 15 # Rules to configure and make the package. |
pascal@4852 | 16 compile_rules() |
pascal@4852 | 17 { |
pascal@4852 | 18 cd $src |
pascal@7433 | 19 sed -i 's/ install_kernel / /' Makefile |
pascal@9216 | 20 sed -i 's|dirent.h>|&\n#include <sys/types.h>\n#include <sys/stat.h>|' \ |
pascal@9216 | 21 usr/iscsi_sysfs.c |
pascal@15289 | 22 sed -i "s|/etc/iscsi/initiatorname.iscsi|$DESTDIR&|" Makefile |
pascal@15289 | 23 make user 2>&1 | grep -v 'slitaz/build/Makefile' |
pascal@15289 | 24 make DESTDIR=$DESTDIR install |
pascal@4852 | 25 } |
pascal@4852 | 26 |
pascal@4852 | 27 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@4852 | 28 genpkg_rules() |
pascal@4852 | 29 { |
pascal@15289 | 30 cp -a $install/etc $fs |
pascal@15289 | 31 cp -a $install/sbin $fs |
pascal@4852 | 32 } |
pascal@4852 | 33 |
erjo@9427 | 34 post_install() |
erjo@9427 | 35 { |
erjo@9427 | 36 echo "Processing post-install commands..." |
erjo@9427 | 37 if [ ! -f $1/etc/iscsi/initiatorname.iscsi ]; then |
erjo@9427 | 38 echo "InitiatorName=$($1/sbin/iscsi-iname)" > $1/etc/iscsi/initiatorname.iscsi |
erjo@9427 | 39 fi |
erjo@9427 | 40 } |