wok-6.x annotate linux64-cloop/receipt @ rev 23313
updated perl-datetime-timezone (1.93 -> 2.38)
author | Hans-G?nter Theisgen |
---|---|
date | Mon Mar 30 15:07:38 2020 +0100 (2020-03-30) |
parents | ed3808231473 |
children | 36e9a3dcd5de |
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@20265 | 25 patch -p0 < $stuff/cloop.u # 3.2.98 |
pascal@20265 | 26 sed -i -e 's|file->f_path.mnt, file->f_path.dentry|\&file->f_path|' \ |
pascal@20265 | 27 -e 's|bvec->|bvec.|g;s|*bvec|bvec|' cloop.c |
pascal@17372 | 28 make KERNEL_DIR="/usr/src/linux" cloop.ko && xz cloop.ko |
pascal@17214 | 29 } |
pascal@17214 | 30 |
pascal@17214 | 31 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@17214 | 32 genpkg_rules() |
pascal@17214 | 33 { |
pascal@17214 | 34 EXTRAVERSION=_$kvers |
pascal@17214 | 35 mkdir -p $fs/lib/modules/$kvers-slitaz64/kernel/misc $fs/dev $fs/usr/bin |
pascal@17214 | 36 cp $src/cloop_suspend $fs/usr/bin |
pascal@17214 | 37 cp $src/cloop.ko.xz $fs/lib/modules/$kvers-slitaz64/kernel/misc |
pascal@17866 | 38 for i in $(seq 0 7); do |
pascal@17214 | 39 mknod $fs/dev/cloop$i b 240 $i |
pascal@17214 | 40 done |
pascal@17214 | 41 } |
pascal@17214 | 42 |
pascal@17214 | 43 post_install() |
pascal@17214 | 44 { |
pascal@17214 | 45 chroot "$1/" depmod -a ${EXTRAVERSION#_}-slitaz64 |
pascal@17214 | 46 } |
pascal@17214 | 47 |
pascal@17214 | 48 post_remove() |
pascal@17214 | 49 { |
pascal@17214 | 50 depmod -a |
pascal@17214 | 51 } |