wok-6.x view linux64-cloop/receipt @ rev 24477
updated dialog and dialog-dev (1.3_20210324 -> 1.3_20220117)
author | Hans-G?nter Theisgen |
---|---|
date | Fri Feb 18 10:50:23 2022 +0100 (2022-02-18) |
parents | 36e9a3dcd5de |
children | 5a92a26adcc1 |
line source
1 # SliTaz package receipt.
3 PACKAGE="linux64-cloop"
4 SOURCE="cloop"
5 _VERSION="2.639-2"
6 #VERSION="$(sed '/+#define CLOOP_VERSION/!d;s|.* "\(.*\)"|\1|' stuff/cloop.u)"
7 VERSION="4.12"
8 CATEGORY="base-system"
9 MAINTAINER="pascal.bellard@slitaz.org"
10 LICENSE="GPL2"
11 SHORT_DESC="The read-only compressed loop device kernel module."
12 WEB_SITE="http://knoppix.net/wiki/Cloop"
13 TARBALL="${SOURCE}_${_VERSION}.tar.gz"
14 WGET_URL="http://debian-knoppix.alioth.debian.org/packages/$SOURCE/$TARBALL"
15 PROVIDE="linux-cloop:linux64"
17 DEPENDS="linux64"
18 BUILD_DEPENDS="linux64-module-headers xz uclibc-cross-compiler-x86_64"
19 SUGGESTED="cloop-utils"
21 AUFS_NOT_RAMFS="uclibc-cross-compiler-x86_64 is not compatible with aufs+tmpfs 8("
23 # Rules to configure and make the package.
25 compile_rules()
26 {
27 patch -p0 < $stuff/cloop.u
28 make ARCH=x86_64 KERNEL_DIR="/usr/src/linux" cloop.ko && xz cloop.ko
29 }
31 # Rules to gen a SliTaz package suitable for Tazpkg.
32 genpkg_rules()
33 {
34 EXTRAVERSION=_$kvers
35 mkdir -p $fs/lib/modules/$kvers-slitaz64/kernel/misc $fs/dev $fs/usr/bin
36 cp $src/cloop_suspend $fs/usr/bin
37 cp $src/cloop.ko.xz $fs/lib/modules/$kvers-slitaz64/kernel/misc
38 for i in $(seq 0 7); do
39 mknod $fs/dev/cloop$i b 240 $i
40 done
41 }
43 post_install()
44 {
45 chroot "$1/" depmod -a ${EXTRAVERSION#_}-slitaz64
46 }
48 post_remove()
49 {
50 depmod -a
51 }