wok-next annotate open-iscsi/receipt @ rev 21469

updated tinc (1.0.25 -> 1.0.36)
author Hans-G?nter Theisgen
date Wed May 13 07:41:00 2020 +0100 (2020-05-13)
parents d6ca18366f41
children
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"
al@21020 6 SHORT_DESC="Implementation of RFC3720 userland utilities"
pascal@4852 7 MAINTAINER="pascal.bellard@slitaz.org"
pascal@15289 8 LICENSE="GPL2"
al@21020 9 WEB_SITE="http://www.open-iscsi.org/"
al@21020 10
pascal@4852 11 TARBALL="$PACKAGE-$VERSION.tar.gz"
pascal@4852 12 WGET_URL="${WEB_SITE}bits/$TARBALL"
pascal@15289 13
al@21020 14 compile_rules() {
pascal@7433 15 sed -i 's/ install_kernel / /' Makefile
pascal@9216 16 sed -i 's|dirent.h>|&\n#include <sys/types.h>\n#include <sys/stat.h>|' \
pascal@9216 17 usr/iscsi_sysfs.c
al@21020 18 sed -i "s|/etc/iscsi/initiatorname.iscsi|$install&|" Makefile
al@21020 19
al@21020 20 make user &&
al@21020 21 make DESTDIR=$install install
pascal@4852 22 }
pascal@4852 23
al@21020 24 genpkg_rules() {
pascal@15289 25 cp -a $install/etc $fs
pascal@15289 26 cp -a $install/sbin $fs
al@21020 27 DEPENDS="linux-scsi"
pascal@4852 28 }
pascal@4852 29
al@21020 30 post_install() {
pascal@18730 31 if [ ! -f "$1/etc/iscsi/initiatorname.iscsi" ]; then
al@18734 32 echo "InitiatorName=$($1/sbin/iscsi-iname)" > "$1/etc/iscsi/initiatorname.iscsi"
erjo@9427 33 fi
erjo@9427 34 }