wok view open-iscsi/receipt @ rev 11684

a2ps: Fixed WEB_SITE.
author Christopher Rogers <slaxemulator@gmail.com>
date Sat Feb 18 08:42:44 2012 -0500 (2012-02-18)
parents 44b5e07e53a8
children eef0d38293b3
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 TARBALL="$PACKAGE-$VERSION.tar.gz"
9 WEB_SITE="http://www.open-iscsi.org/"
10 WGET_URL="${WEB_SITE}bits/$TARBALL"
11 DEPENDS="linux-scsi"
13 # Rules to configure and make the package.
14 compile_rules()
15 {
16 cd $src
17 sed -i 's/ install_kernel / /' Makefile
18 sed -i 's|dirent.h>|&\n#include <sys/types.h>\n#include <sys/stat.h>|' \
19 usr/iscsi_sysfs.c
20 make user
21 make DESTDIR=$PWD/_pkg install
23 }
25 # Rules to gen a SliTaz package suitable for Tazpkg.
26 genpkg_rules()
27 {
28 cp -a $_pkg/etc $fs
29 cp -a $_pkg/sbin $fs
30 }
32 post_install()
33 {
34 echo "Processing post-install commands..."
35 if [ ! -f $1/etc/iscsi/initiatorname.iscsi ]; then
36 echo "InitiatorName=$($1/sbin/iscsi-iname)" > $1/etc/iscsi/initiatorname.iscsi
37 fi
38 }