wok-current annotate linux64-romfs/receipt @ rev 17455

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