wok rev 20244

remove linux64-btrfs
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Mar 10 18:17:37 2018 +0100 (2018-03-10)
parents cd6f97af4cc7
children b3ac1f049eac
files linux64-btrfs/receipt
line diff
     1.1 --- a/linux64-btrfs/receipt	Sat Mar 10 14:32:23 2018 +0100
     1.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.3 @@ -1,52 +0,0 @@
     1.4 -# SliTaz package receipt.
     1.5 -
     1.6 -PACKAGE="linux64-btrfs"
     1.7 -VERSION="3.2.98"
     1.8 -CATEGORY="base-system"
     1.9 -SHORT_DESC="The Linux kernel btrfs module."
    1.10 -MAINTAINER="devel@slitaz.org"
    1.11 -LICENSE="GPL2"
    1.12 -DEPENDS="linux64"
    1.13 -WANTED="linux"
    1.14 -PROVIDE="linux-btrfs:linux64"
    1.15 -WEB_SITE="http://www.kernel.org/"
    1.16 -CONFIG_FILES="/etc/filesystems"
    1.17 -
    1.18 -# Rules to gen a SliTaz package suitable for Tazpkg.
    1.19 -genpkg_rules()
    1.20 -{
    1.21 -    local path
    1.22 -    src=$WOK/linux64/source/tmp
    1.23 -    install=$install/linux64
    1.24 -    path=lib/modules/$VERSION-slitaz64/kernel
    1.25 -    mkdir -p $fs/$path $fs/etc
    1.26 -    export src
    1.27 -    export install
    1.28 -    $wanted_stuff/list_modules.sh fs/${PACKAGE#*-} | while read module; do
    1.29 -    	dir=$path/$(dirname $module)
    1.30 -    	[ -d $fs/$dir ] || mkdir -p $fs/$dir
    1.31 -        cp -a $install/$path/$module $fs/$dir
    1.32 -    done
    1.33 -    touch $fs/etc/filesystems
    1.34 -
    1.35 -    for i in $(cat $wanted_stuff/modules*.list); do
    1.36 -        if [ $fs/lib/modules/$VERSION-slitaz64/kernel/$i ]; then
    1.37 -	    rm -f $fs/lib/modules/$VERSION-slitaz64/kernel/$i
    1.38 -	fi
    1.39 -    done
    1.40 -}
    1.41 -
    1.42 -# Post install/remove commands for Tazpkg.
    1.43 -post_install()
    1.44 -{
    1.45 -	grep -qs ^${PACKAGE#*-}$ "$1/etc/filesystems" || \
    1.46 -		echo "${PACKAGE#*-}" >> "$1/etc/filesystems"
    1.47 -	chroot "$1/" depmod -a $VERSION-slitaz64
    1.48 -}
    1.49 -
    1.50 -post_remove()
    1.51 -{
    1.52 -	sed -i "/^${PACKAGE#*-}\$/d" "$1/etc/filesystems"
    1.53 -	chroot "$1/" depmod -a $VERSION-slitaz64
    1.54 -}
    1.55 -