wok-current annotate linux64-exofs/receipt @ rev 17269

Add linux64-exofs
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri Oct 24 10:25:36 2014 +0200 (2014-10-24)
parents
children 7c22b4192384
rev   line source
pascal@17269 1 # SliTaz package receipt.
pascal@17269 2
pascal@17269 3 PACKAGE="linux64-exofs"
pascal@17269 4 VERSION="3.2.53"
pascal@17269 5 CATEGORY="base-system"
pascal@17269 6 SHORT_DESC="The Linux kernel OSD based file system module."
pascal@17269 7 MAINTAINER="devel@slitaz.org"
pascal@17269 8 LICENSE="GPL2"
pascal@17269 9 DEPENDS="linux64"
pascal@17269 10 WANTED="linux"
pascal@17269 11 PROVIDE="linux-minix:linux64"
pascal@17269 12 WEB_SITE="http://www.kernel.org/"
pascal@17269 13 CONFIG_FILES="/etc/filesystems"
pascal@17269 14
pascal@17269 15 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@17269 16 genpkg_rules()
pascal@17269 17 {
pascal@17269 18 local path
pascal@17269 19 install=$install/linux64
pascal@17269 20 path=lib/modules/$VERSION-slitaz64/kernel
pascal@17269 21 mkdir -p $fs/$path $fs/etc
pascal@17269 22 export src
pascal@17269 23 export install
pascal@17269 24 $wanted_stuff/list_modules.sh fs/${PACKAGE#*-} | while read module; do
pascal@17269 25 dir=$path/$(dirname $module)
pascal@17269 26 [ -d $fs/$dir ] || mkdir -p $fs/$dir
pascal@17269 27 cp -a $install/$path/$module $fs/$dir
pascal@17269 28 done
pascal@17269 29 touch $fs/etc/filesystems
pascal@17269 30 }
pascal@17269 31
pascal@17269 32 # Post install/remove commands for Tazpkg.
pascal@17269 33 post_install()
pascal@17269 34 {
pascal@17269 35 grep -qs ^${PACKAGE#*-}$ $1/etc/filesystems || \
pascal@17269 36 echo "${PACKAGE#*-}" >> $1/etc/filesystems
pascal@17269 37 chroot "$root/" depmod -a $VERSION-slitaz64
pascal@17269 38 }
pascal@17269 39
pascal@17269 40 post_remove()
pascal@17269 41 {
pascal@17269 42 sed -i "/^${PACKAGE#*-}\$/d" $1/etc/filesystems
pascal@17269 43 chroot "$root/" depmod -a $VERSION-slitaz64
pascal@17269 44 }
pascal@17269 45