wok diff linux64-cloop/receipt @ rev 17214
Add linux64-cloop
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri Oct 10 17:14:27 2014 +0200 (2014-10-10) |
parents | |
children | 86a3933bfd29 |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/linux64-cloop/receipt Fri Oct 10 17:14:27 2014 +0200 1.3 @@ -0,0 +1,50 @@ 1.4 +# SliTaz package receipt. 1.5 + 1.6 +PACKAGE="linux64-cloop" 1.7 +SOURCE="cloop" 1.8 +VERSION="2.639-2" 1.9 +CATEGORY="base-system" 1.10 +MAINTAINER="pascal.bellard@slitaz.org" 1.11 +LICENSE="GPL2" 1.12 +SHORT_DESC="The read-only compressed loop device kernel module." 1.13 +WEB_SITE="http://knoppix.net/wiki/Cloop" 1.14 +TARBALL="${SOURCE}_${VERSION}.tar.gz" 1.15 +WGET_URL="http://debian-knoppix.alioth.debian.org/packages/$SOURCE/$TARBALL" 1.16 +PROVIDE="linux-cloop:linux64" 1.17 + 1.18 +DEPENDS="linux64" 1.19 +BUILD_DEPENDS="linux-module-headers xz uclibc-cross-compiler-x86_64" 1.20 +SUGGESTED="cloop-utils" 1.21 + 1.22 +AUFS_NOT_RAMFS="uclibc-cross-compiler-x86_64 is not compatible with aufs+tmpfs 8(" 1.23 + 1.24 +# Rules to configure and make the package. 1.25 + 1.26 +compile_rules() 1.27 +{ 1.28 + patch -p0 < $stuff/cloop.u 1.29 + make ARCH=x86_64 CROSS_COMPILE=uclibc-x86_64- KERNEL_DIR="/usr/src/linux" cloop.ko && xz cloop.ko 1.30 +} 1.31 + 1.32 +# Rules to gen a SliTaz package suitable for Tazpkg. 1.33 +genpkg_rules() 1.34 +{ 1.35 + EXTRAVERSION=_$kvers 1.36 + mkdir -p $fs/lib/modules/$kvers-slitaz64/kernel/misc $fs/dev $fs/usr/bin 1.37 + cp $src/cloop_suspend $fs/usr/bin 1.38 + cp $src/cloop.ko.xz $fs/lib/modules/$kvers-slitaz64/kernel/misc 1.39 + mknod $fs/dev/cloop b 240 0 1.40 + for i in $(seq 1 7); do 1.41 + mknod $fs/dev/cloop$i b 240 $i 1.42 + done 1.43 +} 1.44 + 1.45 +post_install() 1.46 +{ 1.47 + chroot "$1/" depmod -a ${EXTRAVERSION#_}-slitaz64 1.48 +} 1.49 + 1.50 +post_remove() 1.51 +{ 1.52 + depmod -a 1.53 +}