wok annotate linux64-exofs/receipt @ rev 19813

Up gnuradio (3.7.10.1)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Feb 28 11:54:34 2017 +0100 (2017-02-28)
parents 08cf996a2307
children ffc20f9bd49f
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 }