wok-current view linux-cloop/receipt @ rev 17000
Add linux-cloop
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Mon Aug 11 16:24:13 2014 +0200 (2014-08-11) |
parents | |
children | daa886d5366f |
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 < cloop.u
23 make KERNEL_DIR="/usr/src/linux" cloop.ko && xz cloop.ko
24 }
26 # Rules to gen a SliTaz package suitable for Tazpkg.
27 genpkg_rules()
28 {
29 EXTRAVERSION=_${kvers%.*}
30 mkdir -p $fs/lib/modules/$kvers-slitaz/kernel/misc $fs/dev
31 cp $src/cloop.ko.xz $fs/lib/modules/$kvers-slitaz/kernel/misc
32 mknod $fs/dev/cloop b 240 0
33 for i in $(seq 1 7); do
34 mknod $fs/dev/cloop$i b 240 $i
35 done
36 }
38 post_install()
39 {
40 chroot "$1/" depmod -a ${EXTRAVERSION#_}-slitaz
41 }
43 post_remove()
44 {
45 depmod -a
46 }