wok-current annotate linux64-cloop/receipt @ rev 23782

updated xterm (350 -> 356)
author Hans-G?nter Theisgen
date Thu May 21 14:28:09 2020 +0100 (2020-05-21)
parents c4e857aec2bd
children 97e141edc8c2
rev   line source
pascal@17214 1 # SliTaz package receipt.
pascal@17214 2
pascal@17214 3 PACKAGE="linux64-cloop"
pascal@17214 4 SOURCE="cloop"
pascal@23761 5 _VERSION="2.639-2"
pascal@23761 6 #VERSION="$(sed '/+#define CLOOP_VERSION/!d;s|.* "\(.*\)"|\1|' stuff/cloop.u)"
pascal@23761 7 VERSION="4.12"
pascal@17214 8 CATEGORY="base-system"
pascal@17214 9 MAINTAINER="pascal.bellard@slitaz.org"
pascal@17214 10 LICENSE="GPL2"
pascal@17214 11 SHORT_DESC="The read-only compressed loop device kernel module."
pascal@17214 12 WEB_SITE="http://knoppix.net/wiki/Cloop"
pascal@23761 13 TARBALL="${SOURCE}_${_VERSION}.tar.gz"
pascal@17214 14 WGET_URL="http://debian-knoppix.alioth.debian.org/packages/$SOURCE/$TARBALL"
pascal@17214 15 PROVIDE="linux-cloop:linux64"
pascal@17214 16
pascal@17214 17 DEPENDS="linux64"
pascal@17372 18 BUILD_DEPENDS="linux64-module-headers xz uclibc-cross-compiler-x86_64"
pascal@17214 19 SUGGESTED="cloop-utils"
pascal@17214 20
pascal@17214 21 AUFS_NOT_RAMFS="uclibc-cross-compiler-x86_64 is not compatible with aufs+tmpfs 8("
pascal@17214 22
pascal@17214 23 # Rules to configure and make the package.
pascal@17214 24
pascal@17214 25 compile_rules()
pascal@17214 26 {
pascal@23761 27 patch -p0 < $stuff/cloop.u
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 }