wok-next annotate linux64-exofs/receipt @ rev 19254

Up cookutils (803)
author Aleksej Bobylev <al.bobylev@gmail.com>
date Sat Jul 02 23:48:55 2016 +0300 (2016-07-02)
parents 08cf996a2307
children 119e586fb823
rev   line source
pascal@17269 1 # SliTaz package receipt.
pascal@17269 2
pascal@17269 3 PACKAGE="linux64-exofs"
pascal@18296 4 VERSION="3.2.71"
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@18730 36 grep -qs ^${PACKAGE#*-}$ "$1/etc/filesystems" || \
pascal@18730 37 echo "${PACKAGE#*-}" >> "$1/etc/filesystems"
pascal@18730 38 chroot "$1/" depmod -a $VERSION-slitaz64
pascal@17269 39 }
pascal@17269 40
pascal@17269 41 post_remove()
pascal@17269 42 {
pascal@18730 43 sed -i "/^${PACKAGE#*-}\$/d" "$1/etc/filesystems"
pascal@18730 44 chroot "$1/" depmod -a $VERSION-slitaz64
pascal@17269 45 }