wok view linux64-cloop/receipt @ rev 25694

dropbear: typo
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Apr 21 14:12:01 2024 +0000 (6 weeks 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 uclibc-cross-compiler-x86_64"
18 SUGGESTED="cloop-utils"
20 AUFS_NOT_RAMFS="uclibc-cross-compiler-x86_64 is not compatible with aufs+tmpfs 8("
22 # What is the latest version available today?
23 current_version()
24 {
25 wget -O - ${WGET_URL%/*}/ 2>/dev/null | \
26 sed '/cloop_.*tar/!d;s|.*cloop_||;s|.tar.*||'
27 }
29 # Rules to configure and make the package.
30 compile_rules()
31 {
32 patch -p0 < $stuff/cloop.u
33 make ARCH=x86_64 KERNEL_DIR="/usr/src/linux" cloop.ko && xz cloop.ko
34 make cloop_suspend
35 }
37 # Rules to gen a SliTaz package suitable for Tazpkg.
38 genpkg_rules()
39 {
40 EXTRAVERSION=_$kvers
41 mkdir -p $fs/lib/modules/$kvers-slitaz64/kernel/misc $fs/dev $fs/usr/bin
42 cp $src/cloop_suspend $fs/usr/bin
43 cp $src/cloop.ko.xz $fs/lib/modules/$kvers-slitaz64/kernel/misc
44 for i in $(seq 0 7); do
45 mknod $fs/dev/cloop$i b 240 $i
46 done
47 }
49 # Pre and post install commands for Tazpkg.
50 post_install()
51 {
52 chroot "$1/" depmod -a ${EXTRAVERSION#_}-slitaz64
53 }
55 post_remove()
56 {
57 depmod -a
58 }