wok-6.x annotate open-iscsi/receipt @ rev 20352
pinentry: try with newer gcc and specify build
author | Erkan Yilmaz <erkan@slitaz.org> |
---|---|
date | Sat Jun 09 13:10:46 2018 +0000 (2018-06-09) |
parents | 9e01bc6321ea |
children | e1df1504e6cb |
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@7433 | 18 sed -i 's/ install_kernel / /' Makefile |
pascal@9216 | 19 sed -i 's|dirent.h>|&\n#include <sys/types.h>\n#include <sys/stat.h>|' \ |
pascal@9216 | 20 usr/iscsi_sysfs.c |
pascal@15289 | 21 sed -i "s|/etc/iscsi/initiatorname.iscsi|$DESTDIR&|" Makefile |
pascal@15289 | 22 make user 2>&1 | grep -v 'slitaz/build/Makefile' |
pascal@15289 | 23 make DESTDIR=$DESTDIR install |
pascal@4852 | 24 } |
pascal@4852 | 25 |
pascal@4852 | 26 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@4852 | 27 genpkg_rules() |
pascal@4852 | 28 { |
pascal@15289 | 29 cp -a $install/etc $fs |
pascal@15289 | 30 cp -a $install/sbin $fs |
pascal@4852 | 31 } |
pascal@4852 | 32 |
erjo@9427 | 33 post_install() |
erjo@9427 | 34 { |
pascal@18730 | 35 if [ ! -f "$1/etc/iscsi/initiatorname.iscsi" ]; then |
al@18734 | 36 echo "InitiatorName=$($1/sbin/iscsi-iname)" > "$1/etc/iscsi/initiatorname.iscsi" |
erjo@9427 | 37 fi |
erjo@9427 | 38 } |