wok-6.x view open-iscsi/receipt @ rev 23153

updated lxtask (0.1.8 -> 0.1.9)
author Hans-G?nter Theisgen
date Sun Mar 15 16:52:17 2020 +0100 (2020-03-15)
parents e1df1504e6cb
children 05c8d8d9d934
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 TARBALL="$PACKAGE-$VERSION.tar.gz"
10 WEB_SITE="http://www.open-iscsi.org/"
11 WGET_URL="${WEB_SITE}bits/$TARBALL"
13 DEPENDS="linux-scsi"
14 BUILD_DEPENDS="linux-module-headers"
16 # Rules to configure and make the package.
17 compile_rules()
18 {
19 sed -i 's/ install_kernel / /' Makefile
20 sed -i 's|dirent.h>|&\n#include <sys/types.h>\n#include <sys/stat.h>|' \
21 usr/iscsi_sysfs.c
22 sed -i "s|/etc/iscsi/initiatorname.iscsi|$DESTDIR&|" Makefile
23 sed -i "s|/sbin/iscsi-iname|$DESTDIR&|" Makefile
24 make KSRC=/usr/src/linux KARCH=i686 user
25 make DESTDIR=$DESTDIR install
26 }
28 # Rules to gen a SliTaz package suitable for Tazpkg.
29 genpkg_rules()
30 {
31 cp -a $install/etc $fs
32 cp -a $install/sbin $fs
33 }
35 post_install()
36 {
37 if [ ! -f "$1/etc/iscsi/initiatorname.iscsi" ]; then
38 echo "InitiatorName=$($1/sbin/iscsi-iname)" > "$1/etc/iscsi/initiatorname.iscsi"
39 fi
40 }