wok annotate linux64-cloop/receipt @ rev 19557
fusecloop: update advancecomp
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Wed Dec 14 09:22:13 2016 +0100 (2016-12-14) |
parents | 86a3933bfd29 |
children | c4e857aec2bd |
rev | line source |
---|---|
pascal@17214 | 1 # SliTaz package receipt. |
pascal@17214 | 2 |
pascal@17214 | 3 PACKAGE="linux64-cloop" |
pascal@17214 | 4 SOURCE="cloop" |
pascal@17214 | 5 VERSION="2.639-2" |
pascal@17214 | 6 CATEGORY="base-system" |
pascal@17214 | 7 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@17214 | 8 LICENSE="GPL2" |
pascal@17214 | 9 SHORT_DESC="The read-only compressed loop device kernel module." |
pascal@17214 | 10 WEB_SITE="http://knoppix.net/wiki/Cloop" |
pascal@17214 | 11 TARBALL="${SOURCE}_${VERSION}.tar.gz" |
pascal@17214 | 12 WGET_URL="http://debian-knoppix.alioth.debian.org/packages/$SOURCE/$TARBALL" |
pascal@17214 | 13 PROVIDE="linux-cloop:linux64" |
pascal@17214 | 14 |
pascal@17214 | 15 DEPENDS="linux64" |
pascal@17372 | 16 BUILD_DEPENDS="linux64-module-headers xz uclibc-cross-compiler-x86_64" |
pascal@17214 | 17 SUGGESTED="cloop-utils" |
pascal@17214 | 18 |
pascal@17214 | 19 AUFS_NOT_RAMFS="uclibc-cross-compiler-x86_64 is not compatible with aufs+tmpfs 8(" |
pascal@17214 | 20 |
pascal@17214 | 21 # Rules to configure and make the package. |
pascal@17214 | 22 |
pascal@17214 | 23 compile_rules() |
pascal@17214 | 24 { |
pascal@17214 | 25 patch -p0 < $stuff/cloop.u |
pascal@17372 | 26 make KERNEL_DIR="/usr/src/linux" cloop.ko && xz cloop.ko |
pascal@17214 | 27 } |
pascal@17214 | 28 |
pascal@17214 | 29 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@17214 | 30 genpkg_rules() |
pascal@17214 | 31 { |
pascal@17214 | 32 EXTRAVERSION=_$kvers |
pascal@17214 | 33 mkdir -p $fs/lib/modules/$kvers-slitaz64/kernel/misc $fs/dev $fs/usr/bin |
pascal@17214 | 34 cp $src/cloop_suspend $fs/usr/bin |
pascal@17214 | 35 cp $src/cloop.ko.xz $fs/lib/modules/$kvers-slitaz64/kernel/misc |
pascal@17866 | 36 for i in $(seq 0 7); do |
pascal@17214 | 37 mknod $fs/dev/cloop$i b 240 $i |
pascal@17214 | 38 done |
pascal@17214 | 39 } |
pascal@17214 | 40 |
pascal@17214 | 41 post_install() |
pascal@17214 | 42 { |
pascal@17214 | 43 chroot "$1/" depmod -a ${EXTRAVERSION#_}-slitaz64 |
pascal@17214 | 44 } |
pascal@17214 | 45 |
pascal@17214 | 46 post_remove() |
pascal@17214 | 47 { |
pascal@17214 | 48 depmod -a |
pascal@17214 | 49 } |