wok-next view open-iscsi/receipt @ rev 21613
updated eboard (1.1.1 -> 1.1.3)
author | Hans-G?nter Theisgen |
---|---|
date | Thu Jun 25 10:33:28 2020 +0100 (2020-06-25) |
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 }