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

Add some licenses
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri Jul 05 13:51:26 2013 +0200 (2013-07-05)
parents d3c5f3688ec0
children 371673f39e46
rev   line source
pascal@24 1 # SliTaz package receipt.
pascal@24 2
pascal@24 3 PACKAGE="module-ext3"
pascal@24 4 VERSION="2.6.37"
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@24 10 WANTED="kernel-modular"
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@24 17 path=lib/modules/$VERSION-slitaz/kernel
pascal@24 18 mkdir -p $fs/$path $fs/etc
pascal@24 19 export src=$WOK/$WANTED/linux-$VERSION
pascal@24 20 export _pkg=$src/_pkg
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@24 32 grep -qs ^${PACKAGE#*-}$ $1/etc/filesystems || \
pascal@24 33 echo "${PACKAGE#*-}" >> $1/etc/filesystems
pascal@24 34 chroot "$1/" depmod -a $VERSION-slitaz
pascal@24 35 }