wok view linux64-cloop/receipt @ rev 21329

updated libusb and libusb-dev (1.0.18 -> 1.0.22)
author Hans-G?nter Theisgen
date Fri Apr 19 10:39:59 2019 +0100 (2019-04-19)
parents ed3808231473
children 36e9a3dcd5de
line source
1 # SliTaz package receipt.
3 PACKAGE="linux64-cloop"
4 SOURCE="cloop"
5 VERSION="2.639-2"
6 CATEGORY="base-system"
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="GPL2"
9 SHORT_DESC="The read-only compressed loop device kernel module."
10 WEB_SITE="http://knoppix.net/wiki/Cloop"
11 TARBALL="${SOURCE}_${VERSION}.tar.gz"
12 WGET_URL="http://debian-knoppix.alioth.debian.org/packages/$SOURCE/$TARBALL"
13 PROVIDE="linux-cloop:linux64"
15 DEPENDS="linux64"
16 BUILD_DEPENDS="linux64-module-headers xz uclibc-cross-compiler-x86_64"
17 SUGGESTED="cloop-utils"
19 AUFS_NOT_RAMFS="uclibc-cross-compiler-x86_64 is not compatible with aufs+tmpfs 8("
21 # Rules to configure and make the package.
23 compile_rules()
24 {
25 patch -p0 < $stuff/cloop.u # 3.2.98
26 sed -i -e 's|file->f_path.mnt, file->f_path.dentry|\&file->f_path|' \
27 -e 's|bvec->|bvec.|g;s|*bvec|bvec|' cloop.c
28 make 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 }