wok-current annotate linux-cloop/receipt @ rev 24367
created recipe for bison-lang-3.5
author | Hans-G?nter Theisgen |
---|---|
date | Sat Feb 05 07:42:34 2022 +0100 (2022-02-05) |
parents | 36e9a3dcd5de |
children | 5a92a26adcc1 |
rev | line source |
---|---|
pascal@17000 | 1 # SliTaz package receipt. |
pascal@17000 | 2 |
pascal@17000 | 3 PACKAGE="linux-cloop" |
pascal@17000 | 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@17000 | 8 CATEGORY="base-system" |
pascal@17000 | 9 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@17000 | 10 LICENSE="GPL2" |
pascal@17000 | 11 SHORT_DESC="The read-only compressed loop device kernel module." |
pascal@17000 | 12 WEB_SITE="http://knoppix.net/wiki/Cloop" |
pascal@23761 | 13 TARBALL="${SOURCE}_${_VERSION}.tar.gz" |
pascal@17000 | 14 WGET_URL="http://debian-knoppix.alioth.debian.org/packages/$SOURCE/$TARBALL" |
pascal@17000 | 15 |
pascal@17000 | 16 DEPENDS="linux" |
pascal@17000 | 17 BUILD_DEPENDS="linux-module-headers xz" |
pascal@17000 | 18 SUGGESTED="cloop-utils" |
pascal@17000 | 19 |
pascal@17000 | 20 # Rules to configure and make the package. |
pascal@17000 | 21 |
pascal@17000 | 22 compile_rules() |
pascal@17000 | 23 { |
pascal@23761 | 24 patch -p0 < $stuff/cloop.u |
pascal@24088 | 25 make ARCH=i386 KERNEL_DIR="/usr/src/linux" cloop.ko && xz cloop.ko |
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 } |