# HG changeset patch # User Pascal Bellard # Date 1213822443 0 # Node ID bacd5baa9f153c9ef8427b827793f1c82c217fe4 # Parent 137b726db4721af8c2752556de87032eb8117fee Add linux-crypto, split linux-cryptoloop and linux-wireless diff -r 137b726db472 -r bacd5baa9f15 linux-crypto/receipt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/linux-crypto/receipt Wed Jun 18 20:54:03 2008 +0000 @@ -0,0 +1,36 @@ +# SliTaz package receipt. + +PACKAGE="linux-crypto" +VERSION="2.6.25.5" +CATEGORY="base-system" +SHORT_DESC="The Linux kernel crypto modules." +MAINTAINER="pascal.bellard@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 + $src/list_modules.sh crypto | 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() +{ + depmod -a -b "$1/" $VERSION-slitaz +} + +post_remove() +{ + depmod -a $VERSION-slitaz +} + diff -r 137b726db472 -r bacd5baa9f15 linux-cryptoloop/receipt --- a/linux-cryptoloop/receipt Wed Jun 18 20:37:21 2008 +0000 +++ b/linux-cryptoloop/receipt Wed Jun 18 20:54:03 2008 +0000 @@ -7,6 +7,7 @@ MAINTAINER="pascal.bellard@slitaz.org" WANTED="linux" WEB_SITE="http://www.kernel.org/" +DEPENDS="linux-crypto" # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() @@ -16,13 +17,12 @@ mkdir -p $fs/$path export src export _pkg - $src/list_modules.sh drivers/block/cryptoloop.ko.gz crypto | \ + $src/list_modules.sh drivers/block/cryptoloop.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 - rm -f $fs/$path/crypto/arc4.ko.gz # linux-wireless } # Post install/remove commands for Tazpkg. diff -r 137b726db472 -r bacd5baa9f15 linux-wireless/receipt --- a/linux-wireless/receipt Wed Jun 18 20:37:21 2008 +0000 +++ b/linux-wireless/receipt Wed Jun 18 20:54:03 2008 +0000 @@ -7,6 +7,7 @@ MAINTAINER="pascal.bellard@slitaz.org" WANTED="linux" WEB_SITE="http://www.kernel.org/" +DEPENDS="linux-crypto" # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() @@ -16,8 +17,8 @@ mkdir -p $fs/$path export src export _pkg - $src/list_modules.sh drivers/net/wireless net/wireless net/ieee80211 \ - crypto/arc4.ko.gz | while read module; do + $src/list_modules.sh drivers/net/wireless net/wireless net/ieee80211 | \ + while read module; do dir=$path/$(dirname $module) [ -d $fs/$dir ] || mkdir -p $fs/$dir cp -a $_pkg/$path/$module $fs/$dir