wok view slitaz-loram/receipt @ rev 229

Add: slitaz-loram
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Feb 16 16:18:57 2008 +0100 (2008-02-16)
parents
children 0257ebeb385f
line source
1 # SliTaz package receipt.
3 PACKAGE="slitaz-loram"
4 VERSION="1.0"
5 CATEGORY="misc"
6 SHORT_DESC="Rules to build low ram rootfs.gz."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 DEPENDS="squashfs"
10 # Rules to gen a SliTaz package suitable for Tazpkg.
11 genpkg_rules()
12 {
13 mkdir -p $fs/etc/tazlito
14 cat > $fs/etc/tazlito/loram.rootfs << EOF
15 mksquashfs usr .usr.sqfs && rm -rf usr/* && COMPRESSION="none"
16 EOF
17 }
19 get_patch()
20 {
21 cat <<EOF
22 --- /etc/init.d/rcS
23 +++ /etc/init.d/rcS
24 @@ -79,2 +79,7 @@
26 +# Mount compressed /usr
27 +if [ -f /.usr.sqfs ]; then
28 + /bin/mount -o loop,ro -t squashfs /.usr.sqfs /usr
29 +fi
30 +
31 # Handle kernel cmdline parameter config=<device>,<path> to source a
32 EOF
33 }
35 # Pre and post install commands for Tazpkg.
36 post_install()
37 {
38 get_patch | patch -p0
39 }
41 # Pre remove commands for Tazpkg.
42 pre_remove()
43 {
44 get_patch | patch -R -p0
45 }