wok-current rev 7434
Add linux-iscsi
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Mon Nov 29 09:27:56 2010 +0100 (2010-11-29) |
parents | 8e4b76d25751 |
children | a36f0026ad7a |
files | linux-iscsi/receipt open-iscsi/receipt |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/linux-iscsi/receipt Mon Nov 29 09:27:56 2010 +0100 1.3 @@ -0,0 +1,38 @@ 1.4 +# SliTaz package receipt. 1.5 + 1.6 +PACKAGE="linux-iscsi" 1.7 +VERSION="2.6.36" 1.8 +CATEGORY="base-system" 1.9 +SHORT_DESC="The Linux kernel iscsi modules." 1.10 +MAINTAINER="devel@slitaz.org" 1.11 +DEPENDS="linux" 1.12 +WANTED="linux" 1.13 +WEB_SITE="http://www.kernel.org/" 1.14 + 1.15 +# Rules to gen a SliTaz package suitable for Tazpkg. 1.16 +genpkg_rules() 1.17 +{ 1.18 + local path 1.19 + path=lib/modules/$VERSION-slitaz/kernel 1.20 + mkdir -p $fs/$path 1.21 + export src 1.22 + export _pkg 1.23 + $src/slitaz/list_modules.sh drivers/iscsi_tcp.ko.gz \ 1.24 + scsi/scsi_transport_iscsi.ko.gz | while read module; do 1.25 + dir=$path/$(dirname $module) 1.26 + [ -d $fs/$dir ] || mkdir -p $fs/$dir 1.27 + cp -a $_pkg/$path/$module $fs/$dir 1.28 + done 1.29 +} 1.30 + 1.31 +# Post install/remove commands for Tazpkg. 1.32 +post_install() 1.33 +{ 1.34 + chroot "$1/" depmod -a $VERSION-slitaz 1.35 +} 1.36 + 1.37 +post_remove() 1.38 +{ 1.39 + depmod -a $VERSION-slitaz 1.40 +} 1.41 +
2.1 --- a/open-iscsi/receipt Mon Nov 29 09:18:05 2010 +0100 2.2 +++ b/open-iscsi/receipt Mon Nov 29 09:27:56 2010 +0100 2.3 @@ -8,6 +8,7 @@ 2.4 TARBALL="$PACKAGE-$VERSION.tar.gz" 2.5 WEB_SITE="http://www.open-iscsi.org/" 2.6 WGET_URL="${WEB_SITE}bits/$TARBALL" 2.7 +DEPENDS="linux-iscsi" 2.8 2.9 # Rules to configure and make the package. 2.10 compile_rules()