wok-next annotate open-iscsi/receipt @ rev 9216
open-iscsi: patch usr/iscsi_sysfs.c
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri Mar 11 14:52:45 2011 +0100 (2011-03-11) |
parents | 0e2e3ac6caf1 |
children | 3a7b7a59bdae |
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 |