wok-current annotate open-iscsi/receipt @ rev 21281
updated libraw and libraw-dev (0.14.7 -> 0.19.2)
author | Hans-G?nter Theisgen |
---|---|
date | Sun Apr 14 17:00:35 2019 +0100 (2019-04-14) |
parents | d6ca18366f41 |
children | 1fc119985c35 |
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@20608 | 22 make KSRC=/usr/src/linux KARCH=i686 user |
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 } |