wok-6.x annotate open-iscsi/receipt @ rev 22453
Update some $web_site for repology.org
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Thu Dec 26 11:54:32 2019 +0100 (2019-12-26) |
parents | e1df1504e6cb |
children | 05c8d8d9d934 |
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@22343 | 14 BUILD_DEPENDS="linux-module-headers" |
pascal@4852 | 15 |
pascal@4852 | 16 # Rules to configure and make the package. |
pascal@4852 | 17 compile_rules() |
pascal@4852 | 18 { |
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@22343 | 23 sed -i "s|/sbin/iscsi-iname|$DESTDIR&|" Makefile |
pascal@20608 | 24 make KSRC=/usr/src/linux KARCH=i686 user |
pascal@15289 | 25 make DESTDIR=$DESTDIR install |
pascal@4852 | 26 } |
pascal@4852 | 27 |
pascal@4852 | 28 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@4852 | 29 genpkg_rules() |
pascal@4852 | 30 { |
pascal@15289 | 31 cp -a $install/etc $fs |
pascal@15289 | 32 cp -a $install/sbin $fs |
pascal@4852 | 33 } |
pascal@4852 | 34 |
erjo@9427 | 35 post_install() |
erjo@9427 | 36 { |
pascal@18730 | 37 if [ ! -f "$1/etc/iscsi/initiatorname.iscsi" ]; then |
al@18734 | 38 echo "InitiatorName=$($1/sbin/iscsi-iname)" > "$1/etc/iscsi/initiatorname.iscsi" |
erjo@9427 | 39 fi |
erjo@9427 | 40 } |