wok-next view linux-cloop/receipt @ rev 21656

updated firejail (0.9.34 -> 0.9.62)
author Hans-G?nter Theisgen
date Sat Jun 27 09:58:49 2020 +0100 (2020-06-27)
parents df20b2110f7e
children
line source
1 # SliTaz package receipt v2.
3 PACKAGE="linux-cloop"
4 GITHASH="897009b4b2fe70433a1e8aea8a024aeebc32b209" # 3.4
5 VERSION="${GITHASH:0:7}"
6 EXTRAVERSION="_$kvers"
7 CATEGORY="base-system"
8 MAINTAINER="pascal.bellard@slitaz.org"
9 LICENSE="GPL2"
10 SHORT_DESC="The read-only compressed loop device kernel module"
11 WEB_SITE="http://knoppix.net/wiki/Cloop"
12 REPOLOGY="cloop"
14 TARBALL="cloop-$VERSION.zip"
15 #WGET_URL="http://debian-knoppix.alioth.debian.org/packages/cloop/$TARBALL"
16 #WGET_URL="https://github.com/KlausKnopper/cloop/archive/$GITHASH.zip"
17 WGET_URL="https://github.com/Outernet-Project/cloop/archive/$GITHASH.zip"
19 BUILD_DEPENDS="linux-module-headers xz"
21 compile_rules() {
22 sed -i 's|dev_t.*|&\n#define uint64_t loff_t|' cloop_suspend.c
23 make cloop_suspend &&
24 make KERNEL_DIR="/usr/src/linux" cloop.ko && xz cloop.ko || return 1
26 mkdir -p \
27 $install/lib/modules/$kvers-slitaz/kernel/misc \
28 $install/dev \
29 $install/usr/bin
30 cp $src/cloop_suspend $install/usr/bin
31 cp $src/cloop.ko.xz $install/lib/modules/$kvers-slitaz/kernel/misc
32 for i in $(seq 0 7); do
33 mknod $install/dev/cloop$i b 240 $i
34 done
35 }
37 genpkg_rules() {
38 copy @std
39 DEPENDS="linux"
40 SUGGESTED="cloop-utils"
41 }
43 post_install() {
44 chroot "$1/" depmod -a ${EXTRAVERSION#_}-slitaz
45 }
47 post_remove() {
48 depmod -a
49 }