# HG changeset patch # User Pascal Bellard # Date 1291019276 -3600 # Node ID 4db9d03b37f4564dcee7dd60a3bb1e75880838b8 # Parent 8e4b76d257518603a43a6eabba32a05db70eafbf Add linux-iscsi diff -r 8e4b76d25751 -r 4db9d03b37f4 linux-iscsi/receipt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/linux-iscsi/receipt Mon Nov 29 09:27:56 2010 +0100 @@ -0,0 +1,38 @@ +# SliTaz package receipt. + +PACKAGE="linux-iscsi" +VERSION="2.6.36" +CATEGORY="base-system" +SHORT_DESC="The Linux kernel iscsi modules." +MAINTAINER="devel@slitaz.org" +DEPENDS="linux" +WANTED="linux" +WEB_SITE="http://www.kernel.org/" + +# Rules to gen a SliTaz package suitable for Tazpkg. +genpkg_rules() +{ + local path + path=lib/modules/$VERSION-slitaz/kernel + mkdir -p $fs/$path + export src + export _pkg + $src/slitaz/list_modules.sh drivers/iscsi_tcp.ko.gz \ + scsi/scsi_transport_iscsi.ko.gz | while read module; do + dir=$path/$(dirname $module) + [ -d $fs/$dir ] || mkdir -p $fs/$dir + cp -a $_pkg/$path/$module $fs/$dir + done +} + +# Post install/remove commands for Tazpkg. +post_install() +{ + chroot "$1/" depmod -a $VERSION-slitaz +} + +post_remove() +{ + depmod -a $VERSION-slitaz +} + diff -r 8e4b76d25751 -r 4db9d03b37f4 open-iscsi/receipt --- a/open-iscsi/receipt Mon Nov 29 09:18:05 2010 +0100 +++ b/open-iscsi/receipt Mon Nov 29 09:27:56 2010 +0100 @@ -8,6 +8,7 @@ TARBALL="$PACKAGE-$VERSION.tar.gz" WEB_SITE="http://www.open-iscsi.org/" WGET_URL="${WEB_SITE}bits/$TARBALL" +DEPENDS="linux-iscsi" # Rules to configure and make the package. compile_rules()