wok annotate open-iscsi/receipt @ rev 25572
BootProg: fix boot16.asm (again)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat May 13 13:34:41 2023 +0000 (15 months ago) |
parents | ca38ecbe9976 |
children | 7364ffdaaa60 |
rev | line source |
---|---|
pascal@4852 | 1 # SliTaz package receipt. |
pascal@4852 | 2 |
pascal@4852 | 3 PACKAGE="open-iscsi" |
pascal@25107 | 4 VERSION="2.0.873" |
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@24894 | 10 WEB_SITE="https://www.open-iscsi.com/" |
pascal@25107 | 11 WGET_URL="https://github.com/open-iscsi/open-iscsi/archive/refs/tags/$VERSION.tar.gz" |
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@20608 | 29 make KSRC=/usr/src/linux KARCH=i686 user |
pascal@15289 | 30 make DESTDIR=$DESTDIR install |
pascal@4852 | 31 } |
pascal@4852 | 32 |
pascal@4852 | 33 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@4852 | 34 genpkg_rules() |
pascal@4852 | 35 { |
pascal@15289 | 36 cp -a $install/etc $fs |
pascal@15289 | 37 cp -a $install/sbin $fs |
pascal@4852 | 38 } |
pascal@4852 | 39 |
erjo@9427 | 40 post_install() |
erjo@9427 | 41 { |
pascal@18730 | 42 if [ ! -f "$1/etc/iscsi/initiatorname.iscsi" ]; then |
al@18734 | 43 echo "InitiatorName=$($1/sbin/iscsi-iname)" > "$1/etc/iscsi/initiatorname.iscsi" |
erjo@9427 | 44 fi |
erjo@9427 | 45 } |