wok-6.x annotate open-iscsi/receipt @ rev 11481

libgtop: add glib to depends; add intltool to build_depends
author Antoine Bodin <gokhlayeh@slitaz.org>
date Sun Dec 18 03:01:59 2011 +0100 (2011-12-18)
parents 44b5e07e53a8
children eef0d38293b3
rev   line source
pascal@4852 1 # SliTaz package receipt.
pascal@4852 2
pascal@4852 3 PACKAGE="open-iscsi"
pascal@4852 4 VERSION="2.0-871"
pascal@4852 5 CATEGORY="network"
pascal@4852 6 SHORT_DESC="Implementation of RFC3720 userland utilities."
pascal@4852 7 MAINTAINER="pascal.bellard@slitaz.org"
pascal@4852 8 TARBALL="$PACKAGE-$VERSION.tar.gz"
pascal@4852 9 WEB_SITE="http://www.open-iscsi.org/"
pascal@4852 10 WGET_URL="${WEB_SITE}bits/$TARBALL"
slaxemulator@7438 11 DEPENDS="linux-scsi"
pascal@4852 12
pascal@4852 13 # Rules to configure and make the package.
pascal@4852 14 compile_rules()
pascal@4852 15 {
pascal@4852 16 cd $src
pascal@7433 17 sed -i 's/ install_kernel / /' Makefile
pascal@9216 18 sed -i 's|dirent.h>|&\n#include <sys/types.h>\n#include <sys/stat.h>|' \
pascal@9216 19 usr/iscsi_sysfs.c
pascal@7433 20 make user
pascal@7433 21 make DESTDIR=$PWD/_pkg install
slaxemulator@6625 22
pascal@4852 23 }
pascal@4852 24
pascal@4852 25 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@4852 26 genpkg_rules()
pascal@4852 27 {
pascal@4852 28 cp -a $_pkg/etc $fs
pascal@4852 29 cp -a $_pkg/sbin $fs
pascal@4852 30 }
pascal@4852 31
erjo@9427 32 post_install()
erjo@9427 33 {
erjo@9427 34 echo "Processing post-install commands..."
erjo@9427 35 if [ ! -f $1/etc/iscsi/initiatorname.iscsi ]; then
erjo@9427 36 echo "InitiatorName=$($1/sbin/iscsi-iname)" > $1/etc/iscsi/initiatorname.iscsi
erjo@9427 37 fi
erjo@9427 38 }