wok annotate linux-cloop/receipt @ rev 25423
wxWidgets28: update web_site
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Wed Aug 17 14:38:41 2022 +0000 (2022-08-17) |
parents | 97e141edc8c2 |
children | f082c8c505e6 |
rev | line source |
---|---|
pascal@17000 | 1 # SliTaz package receipt. |
pascal@17000 | 2 |
pascal@17000 | 3 PACKAGE="linux-cloop" |
pascal@17000 | 4 SOURCE="cloop" |
pascal@24983 | 5 _VERSION="3.14.1.3" |
pascal@23761 | 6 VERSION="4.12" |
pascal@17000 | 7 CATEGORY="base-system" |
pascal@17000 | 8 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@17000 | 9 LICENSE="GPL2" |
pascal@17000 | 10 SHORT_DESC="The read-only compressed loop device kernel module." |
pascal@17000 | 11 WEB_SITE="http://knoppix.net/wiki/Cloop" |
pascal@24983 | 12 TARBALL="${SOURCE}_${_VERSION}.tar.xz" |
pascal@24983 | 13 WGET_URL="http://deb.debian.org/debian/pool/main/c/$SOURCE/$TARBALL" |
pascal@17000 | 14 |
pascal@17000 | 15 DEPENDS="linux" |
pascal@17000 | 16 BUILD_DEPENDS="linux-module-headers xz" |
pascal@17000 | 17 SUGGESTED="cloop-utils" |
pascal@17000 | 18 |
pascal@17000 | 19 # Rules to configure and make the package. |
pascal@17000 | 20 |
pascal@17000 | 21 compile_rules() |
pascal@17000 | 22 { |
pascal@23761 | 23 patch -p0 < $stuff/cloop.u |
pascal@24088 | 24 make ARCH=i386 KERNEL_DIR="/usr/src/linux" cloop.ko && xz cloop.ko |
pascal@24983 | 25 make cloop_suspend |
pascal@17000 | 26 } |
pascal@17000 | 27 |
pascal@17000 | 28 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@17000 | 29 genpkg_rules() |
pascal@17000 | 30 { |
pascal@17214 | 31 EXTRAVERSION=_$kvers |
pascal@17002 | 32 mkdir -p $fs/lib/modules/$kvers-slitaz/kernel/misc $fs/dev $fs/usr/bin |
pascal@17002 | 33 cp $src/cloop_suspend $fs/usr/bin |
pascal@17000 | 34 cp $src/cloop.ko.xz $fs/lib/modules/$kvers-slitaz/kernel/misc |
pascal@17866 | 35 for i in $(seq 0 7); do |
pascal@17000 | 36 mknod $fs/dev/cloop$i b 240 $i |
pascal@17000 | 37 done |
pascal@17000 | 38 } |
pascal@17000 | 39 |
pascal@17000 | 40 post_install() |
pascal@17000 | 41 { |
pascal@17000 | 42 chroot "$1/" depmod -a ${EXTRAVERSION#_}-slitaz |
pascal@17000 | 43 } |
pascal@17000 | 44 |
pascal@17000 | 45 post_remove() |
pascal@17000 | 46 { |
pascal@17000 | 47 depmod -a |
pascal@17000 | 48 } |