# HG changeset patch # User Pascal Bellard # Date 1597598221 0 # Node ID 1edf832268d4060d8061cdeec2292a8e8d412355 # Parent f2d0dc261e837f2258f03b96cc51cd4336ae8349 Add linux-mmc diff -r f2d0dc261e83 -r 1edf832268d4 linux-mmc/receipt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/linux-mmc/receipt Sun Aug 16 17:17:01 2020 +0000 @@ -0,0 +1,43 @@ +# SliTaz package receipt. + +PACKAGE="linux-mmc" +VERSION="3.16.55" +CATEGORY="base-system" +SHORT_DESC="The Linux kernel MMC modules." +MAINTAINER="pascal.bellard@slitaz.org" +LICENSE="GPL2" +DEPENDS="linux" +WANTED="linux" +WEB_SITE="https://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 install + $wanted_stuff/list_modules.sh drivers/mmc | while read module; do + dir=$path/$(dirname $module) + [ -d $fs/$dir ] || mkdir -p $fs/$dir + cp -a $install/$path/$module $fs/$dir + done + + for i in $(cat $wanted_stuff/modules.list); do + if [ -f $fs/$path/$i ]; then + rm -f $fs/$path/$i + fi + done +} + +# Post install/remove commands for Tazpkg. +post_install() +{ + chroot "$root/" depmod -a $VERSION-slitaz +} + +post_remove() +{ + chroot "$root/" depmod -a $VERSION-slitaz +} + diff -r f2d0dc261e83 -r 1edf832268d4 linux64-mmc/receipt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/linux64-mmc/receipt Sun Aug 16 17:17:01 2020 +0000 @@ -0,0 +1,47 @@ +# SliTaz package receipt. + +PACKAGE="linux64-mmc" +VERSION="3.16.55" +CATEGORY="base-system" +SHORT_DESC="The Linux kernel MMC modules." +MAINTAINER="pascal.bellard@slitaz.org" +LICENSE="GPL2" +DEPENDS="linux64" +WANTED="linux" +PROVIDE="linux-mmc:linux64" +WEB_SITE="https://www.kernel.org/" + +# Rules to gen a SliTaz package suitable for Tazpkg. +genpkg_rules() +{ + local path + src=$WOK/linux64/source/tmp + install=$install/linux64 + path=lib/modules/$VERSION-slitaz64/kernel + mkdir -p $fs/$path + export src + export install + $wanted_stuff/list_modules.sh drivers/mmc | while read module; do + dir=$path/$(dirname $module) + [ -d $fs/$dir ] || mkdir -p $fs/$dir + cp -a $install/$path/$module $fs/$dir + done + + for i in $(cat $wanted_stuff/modules.list); do + if [ -f $fs/$path/$i ]; then + rm -f $fs/$path/$i + fi + done +} + +# Post install/remove commands for Tazpkg. +post_install() +{ + chroot "$root/" depmod -a $VERSION-slitaz64 +} + +post_remove() +{ + chroot "$root/" depmod -a $VERSION-slitaz64 +} +