# HG changeset patch # User Pascal Bellard # Date 1331031334 -3600 # Node ID 5ecf51e65f7d49b0fecd55207d866cd0443790e6 # Parent 1490ced67f588811bfdb66cbeed45fcfe663ce17 Add linux-nbd & linux-aoe diff -r 1490ced67f58 -r 5ecf51e65f7d linux-aoe/receipt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/linux-aoe/receipt Tue Mar 06 11:55:34 2012 +0100 @@ -0,0 +1,37 @@ +# SliTaz package receipt. + +PACKAGE="linux-aoe" +VERSION="2.6.37" +CATEGORY="base-system" +SHORT_DESC="The Linux kernel ATA over Ethernet modules." +MAINTAINER="devel@slitaz.org" +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 + $wanted_stuff/list_modules.sh drivers/block/aoe/aoe.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() +{ + chroot "$1/" depmod -a $VERSION-slitaz +} + diff -r 1490ced67f58 -r 5ecf51e65f7d linux-nbd/receipt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/linux-nbd/receipt Tue Mar 06 11:55:34 2012 +0100 @@ -0,0 +1,37 @@ +# SliTaz package receipt. + +PACKAGE="linux-nbd" +VERSION="2.6.37" +CATEGORY="base-system" +SHORT_DESC="The Linux kernel network block device modules." +MAINTAINER="devel@slitaz.org" +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 + $wanted_stuff/list_modules.sh drivers/block/nbd.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() +{ + chroot "$1/" depmod -a $VERSION-slitaz +} +