wok-next diff linux64-configfs/receipt @ rev 19624

Fix some WANTED versions
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Feb 08 16:29:10 2017 +0100 (2017-02-08)
parents 9e01bc6321ea
children
line diff
     1.1 --- a/linux64-configfs/receipt	Sun Dec 20 15:13:45 2015 +0100
     1.2 +++ b/linux64-configfs/receipt	Wed Feb 08 16:29:10 2017 +0100
     1.3 @@ -1,46 +1,21 @@
     1.4  # SliTaz package receipt.
     1.5  
     1.6  PACKAGE="linux64-configfs"
     1.7 -VERSION="3.2.71"
     1.8 +VERSION="4.9.0"
     1.9  CATEGORY="base-system"
    1.10 -SHORT_DESC="The Linux kernel configfs module."
    1.11 +SHORT_DESC="The Linux Kernel ConfigFs module"
    1.12  MAINTAINER="devel@slitaz.org"
    1.13  LICENSE="GPL2"
    1.14 +WEB_SITE="https://www.kernel.org/"
    1.15 +CONFIG_FILES="/etc/filesystems"
    1.16 +PROVIDE="linux-configfs:linux64"
    1.17 +
    1.18 +WANTED="linux"
    1.19  DEPENDS="linux64"
    1.20 -WANTED="linux"
    1.21 -PROVIDE="linux-configfs:linux64"
    1.22 -WEB_SITE="http://www.kernel.org/"
    1.23 -CONFIG_FILES="/etc/filesystems"
    1.24  
    1.25  # Rules to gen a SliTaz package suitable for Tazpkg.
    1.26  genpkg_rules()
    1.27  {
    1.28 -    local path
    1.29 -    src=$WOK/linux64/source/tmp
    1.30 -    install=$install/linux64
    1.31 -    path=lib/modules/$VERSION-slitaz64/kernel
    1.32 -    mkdir -p $fs/$path $fs/etc
    1.33 -    export src
    1.34 -    export install
    1.35 -    $wanted_stuff/list_modules.sh fs/${PACKAGE#*-} | while read module; do
    1.36 -    	dir=$path/$(dirname $module)
    1.37 -    	[ -d $fs/$dir ] || mkdir -p $fs/$dir
    1.38 -        cp -a $install/$path/$module $fs/$dir
    1.39 -    done
    1.40 -    touch $fs/etc/filesystems
    1.41 +	. $wanted_stuff/copy_modules.sh
    1.42 +	copy_modules fs/configfs
    1.43  }
    1.44 -
    1.45 -# Post install/remove commands for Tazpkg.
    1.46 -post_install()
    1.47 -{
    1.48 -	grep -qs ^${PACKAGE#*-}$ "$1/etc/filesystems" || \
    1.49 -		echo "${PACKAGE#*-}" >> "$1/etc/filesystems"
    1.50 -	chroot "$1/" depmod -a $VERSION-slitaz64
    1.51 -}
    1.52 -
    1.53 -post_remove()
    1.54 -{
    1.55 -	sed -i "/^${PACKAGE#*-}\$/d" "$1/etc/filesystems"
    1.56 -	chroot "$1/" depmod -a $VERSION-slitaz64
    1.57 -}
    1.58 -