wok-next view linux-cloop/receipt @ rev 20459
Combine receipts
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Fri Mar 02 13:45:43 2018 +0200 (2018-03-02) |
parents | 7dbe630f6bf9 |
children | b278b2018965 |
line source
1 # SliTaz package receipt.
3 PACKAGE="linux-cloop"
4 SOURCE="cloop"
5 GITHASH="897009b4b2fe70433a1e8aea8a024aeebc32b209" # 3.4
6 VERSION="${GITHASH:0:7}"
7 EXTRAVERSION="_$kvers"
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.zip"
14 #WGET_URL="http://debian-knoppix.alioth.debian.org/packages/$SOURCE/$TARBALL"
15 #WGET_URL="https://github.com/KlausKnopper/cloop/archive/$GITHASH.zip"
16 WGET_URL="https://github.com/Outernet-Project/cloop/archive/$GITHASH.zip"
18 DEPENDS="linux"
19 BUILD_DEPENDS="linux-module-headers xz"
20 SUGGESTED="cloop-utils"
22 # Rules to configure and make the package.
24 compile_rules()
25 {
26 sed -i 's|dev_t.*|&\n#define uint64_t loff_t|' cloop_suspend.c
27 make cloop_suspend &&
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 mkdir -p $fs/lib/modules/$kvers-slitaz/kernel/misc $fs/dev $fs/usr/bin
35 cp $src/cloop_suspend $fs/usr/bin
36 cp $src/cloop.ko.xz $fs/lib/modules/$kvers-slitaz/kernel/misc
37 for i in $(seq 0 7); do
38 mknod $fs/dev/cloop$i b 240 $i
39 done
40 }
42 post_install()
43 {
44 chroot "$1/" depmod -a ${EXTRAVERSION#_}-slitaz
45 }
47 post_remove()
48 {
49 depmod -a
50 }