wok annotate linux-cloop/receipt @ rev 22213

updated xorg-libXext and xorg-libXext-dev (1.3.2 -> 1.3.4)
author Hans-G?nter Theisgen
date Mon Nov 11 15:56:09 2019 +0100 (2019-11-11)
parents 708b5293dd29
children 36e9a3dcd5de
rev   line source
pascal@17000 1 # SliTaz package receipt.
pascal@17000 2
pascal@17000 3 PACKAGE="linux-cloop"
pascal@17000 4 SOURCE="cloop"
pascal@17000 5 VERSION="2.639-2"
pascal@17000 6 CATEGORY="base-system"
pascal@17000 7 MAINTAINER="pascal.bellard@slitaz.org"
pascal@17000 8 LICENSE="GPL2"
pascal@17000 9 SHORT_DESC="The read-only compressed loop device kernel module."
pascal@17000 10 WEB_SITE="http://knoppix.net/wiki/Cloop"
pascal@17000 11 TARBALL="${SOURCE}_${VERSION}.tar.gz"
pascal@17000 12 WGET_URL="http://debian-knoppix.alioth.debian.org/packages/$SOURCE/$TARBALL"
pascal@17000 13
pascal@17000 14 DEPENDS="linux"
pascal@17000 15 BUILD_DEPENDS="linux-module-headers xz"
pascal@17000 16 SUGGESTED="cloop-utils"
pascal@17000 17
pascal@17000 18 # Rules to configure and make the package.
pascal@17000 19
pascal@17000 20 compile_rules()
pascal@17000 21 {
pascal@20265 22 patch -p0 < $stuff/cloop.u # 3.2.98
pascal@20265 23 sed -i -e 's|file->f_path.mnt, file->f_path.dentry|\&file->f_path|' \
pascal@20265 24 -e 's|bvec->|bvec.|g;s|*bvec|bvec|' cloop.c
pascal@17000 25 make KERNEL_DIR="/usr/src/linux" cloop.ko && xz cloop.ko
pascal@17000 26 }
pascal@17000 27
pascal@17000 28 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@17000 29 genpkg_rules()
pascal@17000 30 {
pascal@17214 31 EXTRAVERSION=_$kvers
pascal@17002 32 mkdir -p $fs/lib/modules/$kvers-slitaz/kernel/misc $fs/dev $fs/usr/bin
pascal@17002 33 cp $src/cloop_suspend $fs/usr/bin
pascal@17000 34 cp $src/cloop.ko.xz $fs/lib/modules/$kvers-slitaz/kernel/misc
pascal@17866 35 for i in $(seq 0 7); do
pascal@17000 36 mknod $fs/dev/cloop$i b 240 $i
pascal@17000 37 done
pascal@17000 38 }
pascal@17000 39
pascal@17000 40 post_install()
pascal@17000 41 {
pascal@17000 42 chroot "$1/" depmod -a ${EXTRAVERSION#_}-slitaz
pascal@17000 43 }
pascal@17000 44
pascal@17000 45 post_remove()
pascal@17000 46 {
pascal@17000 47 depmod -a
pascal@17000 48 }