wok view slitaz-loram-cdrom/receipt @ rev 344

Add xorg-xbitmaps (build dep or xsetroot
author Christophe Lincoln <pankso@slitaz.org>
date Wed Mar 05 20:40:52 2008 +0100 (2008-03-05)
parents 39ab194bbbef
children fc9f573e8ac8
line source
1 # SliTaz package receipt.
3 PACKAGE="slitaz-loram-cdrom"
4 VERSION="1.0"
5 CATEGORY="misc"
6 SHORT_DESC="Rules to build low ram system using cdrom."
7 MAINTAINER="pascal.bellard@slitaz.org"
9 # Rules to gen a SliTaz package suitable for Tazpkg.
10 genpkg_rules()
11 {
12 mkdir -p $fs/etc/tazlito
13 cp stuff/loram.rootfs $fs/etc/tazlito
14 }
16 get_patch()
17 {
18 cat <<EOF
19 --- /etc/init.d/rcS
20 +++ /etc/init.d/rcS
21 @@ -53,4 +53,4 @@
22 /bin/dmesg > /var/log/dmesg.log
23 -/usr/bin/vcsa2txt < /dev/vcsa1 > /var/log/boot.log
24 -/usr/bin/script -a -q -c '/etc/init.d/rcS logged' /var/log/boot.log
25 +busybox vcsa2txt < /dev/vcsa1 > /var/log/boot.log
26 +busybox script -a -q -c '/etc/init.d/rcS logged' /var/log/boot.log
28 @@ -62,4 +62,4 @@
29 #
30 -DRIVE_NAME=`cat /proc/sys/dev/cdrom/info | grep "drive name" | cut -f 3`
31 -if [ ! "`readlink /dev/cdrom`" ]; then
32 +DRIVE_NAME=`cat /proc/sys/dev/cdrom/info | grep "drive name" | busybox cut -f 3`
33 +if [ ! "`busybox readlink /dev/cdrom`" ]; then
34 echo -n "Creating symlink : /dev/cdrom..."
35 @@ -87,2 +87,15 @@
37 +# Mount /usr
38 +if [ -d /cdrom ]; then
39 + echo -n "Mounting /usr read-only from /cdrom... "
40 + mount -o ro -t iso9660 /dev/cdrom /cdrom
41 + if [ -f /cdrom/usr.sqfs ]; then
42 + mount -o loop,ro -t squashfs /cdrom/usr.sqfs /usr
43 + elif [ ! -L /usr ]; then
44 + umount /cdrom
45 + false
46 + fi
47 + status
48 +fi
49 +
50 # Handle kernel cmdline parameter config=<device>,<path> to source a
51 EOF
52 }
54 # Pre and post install commands for Tazpkg.
55 pre_install()
56 {
57 local $loram
58 loram=$(cd /var/lib/tazpkg/installed ; ls -d slitaz-loram* 2> /dev/null)
59 [ -n "$loram" ] && yes y | tazpkg remove $loram
60 }
62 post_install()
63 {
64 get_patch | patch -p0
65 }
67 # Pre remove commands for Tazpkg.
68 pre_remove()
69 {
70 [ -L /usr/bin/patch ] || get_patch | patch -R -p0
71 }