wok-next view 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
line source
1 # SliTaz package receipt.
3 PACKAGE="open-iscsi"
4 VERSION="2.0-871"
5 CATEGORY="network"
6 SHORT_DESC="Implementation of RFC3720 userland utilities"
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="GPL2"
9 WEB_SITE="http://www.open-iscsi.org/"
11 TARBALL="$PACKAGE-$VERSION.tar.gz"
12 WGET_URL="${WEB_SITE}bits/$TARBALL"
14 compile_rules() {
15 sed -i 's/ install_kernel / /' Makefile
16 sed -i 's|dirent.h>|&\n#include <sys/types.h>\n#include <sys/stat.h>|' \
17 usr/iscsi_sysfs.c
18 sed -i "s|/etc/iscsi/initiatorname.iscsi|$install&|" Makefile
20 make user &&
21 make DESTDIR=$install install
22 }
24 genpkg_rules() {
25 cp -a $install/etc $fs
26 cp -a $install/sbin $fs
27 DEPENDS="linux-scsi"
28 }
30 post_install() {
31 if [ ! -f "$1/etc/iscsi/initiatorname.iscsi" ]; then
32 echo "InitiatorName=$($1/sbin/iscsi-iname)" > "$1/etc/iscsi/initiatorname.iscsi"
33 fi
34 }