wok-tiny annotate module-ext3/receipt @ rev 94

Refresh, remove kernel*, add linux
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri Oct 02 21:45:05 2015 +0200 (2015-10-02)
parents a6d2ddc65590
children 0d8ef9102fc0
rev   line source
pascal@24 1 # SliTaz package receipt.
pascal@24 2
pascal@24 3 PACKAGE="module-ext3"
pascal@94 4 VERSION="2.6.14"
pascal@24 5 CATEGORY="base-system"
pascal@24 6 SHORT_DESC="Kernel module for the ext3 filesystem"
pascal@24 7 MAINTAINER="pascal.bellard@slitaz.org"
pascal@90 8 LICENSE="GPL2"
pascal@55 9 WEB_SITE="http://tiny.slitaz.org/"
pascal@94 10 WANTED="linux"
pascal@24 11 CONFIG_FILES="/etc/filesystems"
pascal@24 12
pascal@24 13 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@24 14 genpkg_rules()
pascal@24 15 {
pascal@24 16 local path
pascal@94 17 export src=$WOK/$WANTED/source/linux-$VERSION
pascal@94 18 export _pkg=$WOK/$WANTED/install
pascal@94 19 path=lib/modules/$(ls $_pkg/lib/modules)/kernel
pascal@24 20 mkdir -p $fs/$path $fs/etc
pascal@24 21 $src/slitaz/list_modules.sh fs/${PACKAGE#*-} | while read module; do
pascal@24 22 dir=$path/$(dirname $module)
pascal@24 23 [ -d $fs/$dir ] || mkdir -p $fs/$dir
pascal@24 24 cp -a $_pkg/$path/$module $fs/$dir
pascal@24 25 done
pascal@24 26 touch $fs/etc/filesystems
pascal@24 27 }
pascal@24 28
pascal@24 29 # Post install/remove commands for Tazpkg.
pascal@24 30 post_install()
pascal@24 31 {
pascal@94 32 echo ${PACKAGE#*-} >> $1/modules
pascal@24 33 grep -qs ^${PACKAGE#*-}$ $1/etc/filesystems || \
pascal@24 34 echo "${PACKAGE#*-}" >> $1/etc/filesystems
pascal@24 35 }