# HG changeset patch # User Pascal Bellard # Date 1334657725 -7200 # Node ID f8db0c8a51ea9fdf0e333ca745009837baa351e6 # Parent 0a2b4acbf5be0a52f4fd65ffccfca5da8ad3f61c Add linux64-btrfs diff -r 0a2b4acbf5be -r f8db0c8a51ea linux-btrfs/receipt --- a/linux-btrfs/receipt Tue Apr 17 10:02:09 2012 +0200 +++ b/linux-btrfs/receipt Tue Apr 17 12:15:25 2012 +0200 @@ -1,7 +1,8 @@ # SliTaz package receipt. PACKAGE="linux-btrfs" -VERSION="2.6.37" +VERSION="3.2.14" +BASEVER="${VERSION:0:3}" CATEGORY="base-system" SHORT_DESC="The Linux kernel btrfs module." MAINTAINER="devel@slitaz.org" @@ -14,7 +15,7 @@ genpkg_rules() { local path - path=lib/modules/$VERSION-slitaz/kernel + path=lib/modules/$BASEVER-slitaz/kernel mkdir -p $fs/$path $fs/etc export src export _pkg @@ -37,12 +38,12 @@ { grep -qs ^${PACKAGE#*-}$ $1/etc/filesystems || \ echo "${PACKAGE#*-}" >> $1/etc/filesystems - chroot "$1/" depmod -a $VERSION-slitaz + chroot "$1/" depmod -a $BASEVER-slitaz } post_remove() { sed -i "/^${PACKAGE#*-}\$/d" $1/etc/filesystems - chroot "$1/" depmod -a $VERSION-slitaz + chroot "$1/" depmod -a $BASEVER-slitaz } diff -r 0a2b4acbf5be -r f8db0c8a51ea linux64-btrfs/receipt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/linux64-btrfs/receipt Tue Apr 17 12:15:25 2012 +0200 @@ -0,0 +1,51 @@ +# SliTaz package receipt. + +PACKAGE="linux64-btrfs" +VERSION="3.2.14" +BASEVER="${VERSION:0:3}" +CATEGORY="base-system" +SHORT_DESC="The Linux kernel btrfs module." +MAINTAINER="devel@slitaz.org" +DEPENDS="linux64" +WANTED="linux" +PROVIDE="linux-btrfs" +WEB_SITE="http://www.kernel.org/" +CONFIG_FILES="/etc/filesystems" + +# Rules to gen a SliTaz package suitable for Tazpkg. +genpkg_rules() +{ + local path + _pkg=$_pkg/linux64 + path=lib/modules/$BASEVER-slitaz/kernel + mkdir -p $fs/$path $fs/etc + export src + export _pkg + $wanted_stuff/list_modules.sh fs/${PACKAGE#*-} | while read module; do + dir=$path/$(dirname $module) + [ -d $fs/$dir ] || mkdir -p $fs/$dir + cp -a $_pkg/$path/$module $fs/$dir + done + touch $fs/etc/filesystems + + for i in $(cat $wanted_stuff/modules-$VERSION.list); do + if [ $fs/lib/modules/$VERSION-slitaz/kernel/$i ]; then + rm -f $fs/lib/modules/$VERSION-slitaz/kernel/$i + fi + done +} + +# Post install/remove commands for Tazpkg. +post_install() +{ + grep -qs ^${PACKAGE#*-}$ $1/etc/filesystems || \ + echo "${PACKAGE#*-}" >> $1/etc/filesystems + chroot "$1/" depmod -a $BASEVER-slitaz +} + +post_remove() +{ + sed -i "/^${PACKAGE#*-}\$/d" $1/etc/filesystems + chroot "$1/" depmod -a $BASEVER-slitaz +} +