wok-6.x annotate linux-libre-overlayfs/receipt @ rev 22579

updated calcurse (4.3.0 -> 4.5.1)
author Hans-G?nter Theisgen
date Tue Jan 07 13:14:16 2020 +0100 (2020-01-07)
parents
children
rev   line source
pascal@20604 1 # SliTaz package receipt.
pascal@20604 2
pascal@20604 3 PACKAGE="linux-libre-overlayfs"
pascal@20604 4 VERSION="3.18.129-gnu"
pascal@20604 5 CATEGORY="base-system"
pascal@20604 6 SHORT_DESC="The Linux Libre kernel overlayfs module."
pascal@20604 7 MAINTAINER="gokhlayeh@slitaz.org"
pascal@20604 8 LICENSE="GPL2"
pascal@20604 9 PROVIDE="linux-overlayfs"
pascal@20604 10 DEPENDS="linux-libre"
pascal@20604 11 WANTED="linux-libre"
pascal@20604 12 WEB_SITE="http://www.fsfla.org/svnwiki/selibre/linux-libre/"
pascal@20604 13 CONFIG_FILES="/etc/filesystems"
pascal@20604 14
pascal@20604 15 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@20604 16 genpkg_rules()
pascal@20604 17 {
pascal@20604 18 local path
pascal@20604 19 path=lib/modules/$VERSION-slitaz/kernel
pascal@20604 20 mkdir -p $fs/$path $fs/etc
pascal@20604 21 export src
pascal@20604 22 export _pkg
pascal@20604 23 $wanted_stuff/list_modules.sh fs/${PACKAGE##*-} | while read module; do
pascal@20604 24 dir=$path/$(dirname $module)
pascal@20604 25 [ -d $fs/$dir ] || mkdir -p $fs/$dir
pascal@20604 26 cp -a $install/$path/$module $fs/$dir
pascal@20604 27 done
pascal@20604 28 touch $fs/etc/filesystems
pascal@20604 29 }
pascal@20604 30
pascal@20604 31 # Post install/remove commands for Tazpkg.
pascal@20604 32 post_install()
pascal@20604 33 {
pascal@20604 34 grep -qs ^${PACKAGE##*-}$ "$1/etc/filesystems" || \
pascal@20604 35 echo "${PACKAGE##*-}" >> "$1/etc/filesystems"
pascal@20604 36 chroot "$1/" depmod -a $VERSION-slitaz
pascal@20604 37 }
pascal@20604 38
pascal@20604 39 post_remove()
pascal@20604 40 {
pascal@20604 41 sed -i "/^${PACKAGE##*-}\$/d" "$1/etc/filesystems"
pascal@20604 42 chroot "$1/" depmod -a $VERSION-slitaz
pascal@20604 43 }