wok annotate linux64-exofs/receipt @ rev 17642

Up: xfsprogs 3.2.2
author Alexander Medvedev <devl547@gmail.com>
date Sat Feb 14 21:27:21 2015 +0000 (2015-02-14)
parents 7c22b4192384
children 08cf996a2307
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@17270 11 PROVIDE="linux-exofs: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@17277 19 src=$WOK/linux64/source/tmp
pascal@17269 20 install=$install/linux64
pascal@17269 21 path=lib/modules/$VERSION-slitaz64/kernel
pascal@17269 22 mkdir -p $fs/$path $fs/etc
pascal@17269 23 export src
pascal@17269 24 export install
pascal@17269 25 $wanted_stuff/list_modules.sh fs/${PACKAGE#*-} | while read module; do
pascal@17269 26 dir=$path/$(dirname $module)
pascal@17269 27 [ -d $fs/$dir ] || mkdir -p $fs/$dir
pascal@17269 28 cp -a $install/$path/$module $fs/$dir
pascal@17269 29 done
pascal@17269 30 touch $fs/etc/filesystems
pascal@17269 31 }
pascal@17269 32
pascal@17269 33 # Post install/remove commands for Tazpkg.
pascal@17269 34 post_install()
pascal@17269 35 {
pascal@17269 36 grep -qs ^${PACKAGE#*-}$ $1/etc/filesystems || \
pascal@17269 37 echo "${PACKAGE#*-}" >> $1/etc/filesystems
pascal@17269 38 chroot "$root/" depmod -a $VERSION-slitaz64
pascal@17269 39 }
pascal@17269 40
pascal@17269 41 post_remove()
pascal@17269 42 {
pascal@17269 43 sed -i "/^${PACKAGE#*-}\$/d" $1/etc/filesystems
pascal@17269 44 chroot "$root/" depmod -a $VERSION-slitaz64
pascal@17269 45 }
pascal@17269 46