wok-current annotate linux-logfs/receipt @ rev 22563

updated bozohttpd (20111118 -> 20190228)
author Hans-G?nter Theisgen
date Sun Jan 05 14:11:46 2020 +0100 (2020-01-05)
parents 708b5293dd29
children a23978bfa665
rev   line source
pankso@5642 1 # SliTaz package receipt.
pankso@5642 2
pankso@5642 3 PACKAGE="linux-logfs"
pascal@20261 4 VERSION="3.16.55"
pankso@5642 5 CATEGORY="base-system"
pankso@5642 6 SHORT_DESC="The Linux kernel logfs module."
pankso@5642 7 MAINTAINER="devel@slitaz.org"
pascal@14657 8 LICENSE="GPL2"
pankso@5642 9 DEPENDS="linux"
pankso@5642 10 WANTED="linux"
pascal@20421 11 WEB_SITE="https://www.kernel.org/"
pankso@5642 12 CONFIG_FILES="/etc/filesystems"
pankso@5642 13
pankso@5642 14 # Rules to gen a SliTaz package suitable for Tazpkg.
pankso@5642 15 genpkg_rules()
pankso@5642 16 {
pankso@5642 17 local path
pankso@15855 18 path=lib/modules/$VERSION-slitaz/kernel
pankso@5642 19 mkdir -p $fs/$path $fs/etc
pankso@15855 20 export src install
slaxemulator@9700 21 $wanted_stuff/list_modules.sh fs/${PACKAGE#*-} | while read module; do
pankso@5642 22 dir=$path/$(dirname $module)
pankso@5642 23 [ -d $fs/$dir ] || mkdir -p $fs/$dir
pascal@15603 24 cp -a $install/$path/$module $fs/$dir
pankso@5642 25 done
pankso@5642 26 touch $fs/etc/filesystems
pankso@5642 27 }
pankso@5642 28
pankso@5642 29 # Post install/remove commands for Tazpkg.
pankso@5642 30 post_install()
pankso@5642 31 {
pascal@18730 32 grep -qs ^${PACKAGE#*-}$ "$1/etc/filesystems" || \
pascal@18730 33 echo "${PACKAGE#*-}" >> "$1/etc/filesystems"
pascal@18730 34 chroot "$1/" depmod -a $VERSION-slitaz
pankso@5642 35 }
pankso@5642 36
pankso@5642 37 post_remove()
pankso@5642 38 {
pascal@18730 39 sed -i "/^${PACKAGE#*-}\$/d" "$1/etc/filesystems"
pascal@18730 40 chroot "$1/" depmod -a $VERSION-slitaz
pankso@5642 41 }