wok-current annotate linux64-cloop/receipt @ rev 17217
Up: file (5.20).
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Tue Oct 14 11:50:51 2014 +0300 (2014-10-14) |
parents | |
children | 86a3933bfd29 |
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@17214 | 16 BUILD_DEPENDS="linux-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@17214 | 26 make ARCH=x86_64 CROSS_COMPILE=uclibc-x86_64- 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@17214 | 36 mknod $fs/dev/cloop b 240 0 |
pascal@17214 | 37 for i in $(seq 1 7); do |
pascal@17214 | 38 mknod $fs/dev/cloop$i b 240 $i |
pascal@17214 | 39 done |
pascal@17214 | 40 } |
pascal@17214 | 41 |
pascal@17214 | 42 post_install() |
pascal@17214 | 43 { |
pascal@17214 | 44 chroot "$1/" depmod -a ${EXTRAVERSION#_}-slitaz64 |
pascal@17214 | 45 } |
pascal@17214 | 46 |
pascal@17214 | 47 post_remove() |
pascal@17214 | 48 { |
pascal@17214 | 49 depmod -a |
pascal@17214 | 50 } |