wok-6.x annotate open-iscsi/receipt @ rev 24740
updated libexif-gtk and libexif-gtk-dev (0.4.0 -> 0.5.0)
author | Hans-G?nter Theisgen |
---|---|
date | Wed Mar 16 10:07:05 2022 +0100 (2022-03-16) |
parents | 05c8d8d9d934 |
children | 870e1ce31226 |
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@23974 | 10 WEB_SITE="https://www.open-iscsi.org/" |
pascal@4852 | 11 WGET_URL="${WEB_SITE}bits/$TARBALL" |
pascal@15289 | 12 |
slaxemulator@7438 | 13 DEPENDS="linux-scsi" |
pascal@22343 | 14 BUILD_DEPENDS="linux-module-headers" |
pascal@4852 | 15 |
pascal@24535 | 16 # What is the latest version available today? |
pascal@24535 | 17 current_version() |
pascal@24535 | 18 { |
pascal@24535 | 19 wget -O - https://github.com/open-iscsi/open-iscsi/releases 2>/dev/null | \ |
pascal@24535 | 20 sed '/archive.*tar/!d;s|.*/v*\(.*\).tar.*|\1|;q' |
pascal@24535 | 21 } |
pascal@24535 | 22 |
pascal@4852 | 23 # Rules to configure and make the package. |
pascal@4852 | 24 compile_rules() |
pascal@4852 | 25 { |
pascal@7433 | 26 sed -i 's/ install_kernel / /' Makefile |
pascal@9216 | 27 sed -i 's|dirent.h>|&\n#include <sys/types.h>\n#include <sys/stat.h>|' \ |
pascal@9216 | 28 usr/iscsi_sysfs.c |
pascal@15289 | 29 sed -i "s|/etc/iscsi/initiatorname.iscsi|$DESTDIR&|" Makefile |
pascal@22343 | 30 sed -i "s|/sbin/iscsi-iname|$DESTDIR&|" Makefile |
pascal@20608 | 31 make KSRC=/usr/src/linux KARCH=i686 user |
pascal@15289 | 32 make DESTDIR=$DESTDIR install |
pascal@4852 | 33 } |
pascal@4852 | 34 |
pascal@4852 | 35 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@4852 | 36 genpkg_rules() |
pascal@4852 | 37 { |
pascal@15289 | 38 cp -a $install/etc $fs |
pascal@15289 | 39 cp -a $install/sbin $fs |
pascal@4852 | 40 } |
pascal@4852 | 41 |
erjo@9427 | 42 post_install() |
erjo@9427 | 43 { |
pascal@18730 | 44 if [ ! -f "$1/etc/iscsi/initiatorname.iscsi" ]; then |
al@18734 | 45 echo "InitiatorName=$($1/sbin/iscsi-iname)" > "$1/etc/iscsi/initiatorname.iscsi" |
erjo@9427 | 46 fi |
erjo@9427 | 47 } |