wok-6.x view linux-cloop/receipt @ rev 20261

Up linux 3.16.55
author Pascal Bellard <pascal.bellard@slitaz.org>
date Thu Mar 15 11:24:25 2018 +0100 (2018-03-15)
parents ed3808231473
children c4e857aec2bd
line source
1 # SliTaz package receipt.
3 PACKAGE="linux-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"
14 DEPENDS="linux"
15 BUILD_DEPENDS="linux-module-headers xz"
16 SUGGESTED="cloop-utils"
18 # Rules to configure and make the package.
20 compile_rules()
21 {
22 # patch -p0 < $stuff/cloop.u
23 cp $stuff/cloop.h.v4.knx.P1 cloop.h
24 cp $stuff/cloop.c.v4.knx.P1 cloop.c
25 make KERNEL_DIR="/usr/src/linux" cloop.ko && xz cloop.ko
26 }
28 # Rules to gen a SliTaz package suitable for Tazpkg.
29 genpkg_rules()
30 {
31 EXTRAVERSION=_$kvers
32 mkdir -p $fs/lib/modules/$kvers-slitaz/kernel/misc $fs/dev $fs/usr/bin
33 cp $src/cloop_suspend $fs/usr/bin
34 cp $src/cloop.ko.xz $fs/lib/modules/$kvers-slitaz/kernel/misc
35 for i in $(seq 0 7); do
36 mknod $fs/dev/cloop$i b 240 $i
37 done
38 }
40 post_install()
41 {
42 chroot "$1/" depmod -a ${EXTRAVERSION#_}-slitaz
43 }
45 post_remove()
46 {
47 depmod -a
48 }