wok-6.x view open-iscsi/receipt @ rev 20694
get-palemoon: update wget_url
author | Richard Dunbar <mojo@slitaz.org> |
---|---|
date | Mon Feb 04 01:44:39 2019 -0500 (2019-02-04) |
parents | d6ca18366f41 |
children | 1fc119985c35 |
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"
15 # Rules to configure and make the package.
16 compile_rules()
17 {
18 sed -i 's/ install_kernel / /' Makefile
19 sed -i 's|dirent.h>|&\n#include <sys/types.h>\n#include <sys/stat.h>|' \
20 usr/iscsi_sysfs.c
21 sed -i "s|/etc/iscsi/initiatorname.iscsi|$DESTDIR&|" Makefile
22 make KSRC=/usr/src/linux KARCH=i686 user
23 make DESTDIR=$DESTDIR install
24 }
26 # Rules to gen a SliTaz package suitable for Tazpkg.
27 genpkg_rules()
28 {
29 cp -a $install/etc $fs
30 cp -a $install/sbin $fs
31 }
33 post_install()
34 {
35 if [ ! -f "$1/etc/iscsi/initiatorname.iscsi" ]; then
36 echo "InitiatorName=$($1/sbin/iscsi-iname)" > "$1/etc/iscsi/initiatorname.iscsi"
37 fi
38 }