wok-current view open-iscsi/receipt @ rev 17383
perl-md4: close quotes in receipt
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Thu Nov 27 01:43:38 2014 +0200 (2014-11-27) |
parents | 3a7b7a59bdae |
children | 9e01bc6321ea |
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 cd $src
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 make user 2>&1 | grep -v 'slitaz/build/Makefile'
24 make DESTDIR=$DESTDIR install
25 }
27 # Rules to gen a SliTaz package suitable for Tazpkg.
28 genpkg_rules()
29 {
30 cp -a $install/etc $fs
31 cp -a $install/sbin $fs
32 }
34 post_install()
35 {
36 echo "Processing post-install commands..."
37 if [ ! -f $1/etc/iscsi/initiatorname.iscsi ]; then
38 echo "InitiatorName=$($1/sbin/iscsi-iname)" > $1/etc/iscsi/initiatorname.iscsi
39 fi
40 }