wok-current view linux64-cloop/receipt @ rev 25629

Mass updates for current
author Stanislas Leduc <shann@slitaz.org>
date Wed Oct 11 18:45:46 2023 +0000 (13 months ago)
parents e6abe3abd527
children
line source
1 # SliTaz package receipt.
3 PACKAGE="linux64-cloop"
4 SOURCE="cloop"
5 _VERSION="3.14.1.3+nmu1"
6 VERSION="4.12"
7 CATEGORY="base-system"
8 MAINTAINER="pascal.bellard@slitaz.org"
9 LICENSE="GPL2"
10 SHORT_DESC="The read-only compressed loop device kernel module."
11 WEB_SITE="http://knoppix.net/wiki/Cloop"
12 TARBALL="${SOURCE}_${_VERSION}.tar.xz"
13 WGET_URL="http://deb.debian.org/debian/pool/main/c/$SOURCE/$TARBALL"
14 PROVIDE="linux-cloop:linux64"
16 DEPENDS="linux64"
17 BUILD_DEPENDS="linux64-module-headers xz"
18 SUGGESTED="cloop-utils"
20 # Use cross toolchain instead uclibc
22 # Rules to configure and make the package.
24 compile_rules()
25 {
26 patch -p0 < $stuff/cloop.u
28 # Use cross toolchain x86_64
29 export PATH=$PATH:/cross/x86_64/tools/bin
31 make ARCH=x86_64 CROSS_COMPILE=x86_64-slitaz-linux- \
32 KERNEL_DIR="/usr/src/linux" cloop.ko && xz cloop.ko
33 make cloop_suspend
34 }
36 # Rules to gen a SliTaz package suitable for Tazpkg.
37 genpkg_rules()
38 {
39 EXTRAVERSION=_$kvers
40 mkdir -p $fs/lib/modules/$kvers-slitaz64/kernel/misc $fs/dev $fs/usr/bin
41 cp $src/cloop_suspend $fs/usr/bin
42 cp $src/cloop.ko.xz $fs/lib/modules/$kvers-slitaz64/kernel/misc
43 for i in $(seq 0 7); do
44 mknod $fs/dev/cloop$i b 240 $i
45 done
46 }
48 post_install()
49 {
50 chroot "$1/" depmod -a ${EXTRAVERSION#_}-slitaz64
51 }
53 post_remove()
54 {
55 depmod -a
56 }