wok-current view slitaz-eeepc/receipt @ rev 2993

fuse: fix kernel path
author Pascal Bellard <pascal.bellard@slitaz.org>
date Mon May 11 20:33:07 2009 +0200 (2009-05-11)
parents 954adaf24456
children 63713938793b
line source
1 # SliTaz package receipt.
3 PACKAGE="slitaz-eeepc"
4 VERSION="1.2"
5 CATEGORY="system-tools"
6 SHORT_DESC="SliTaz EeePC scripts and configuration files."
7 DEPENDS="915resolution dmidecode atl2 atl1e rt2860sta madwifi"
8 MAINTAINER="pankso@slitaz.org"
9 WEB_SITE="http://www.slitaz.org/"
11 # Rules to gen a SliTaz package suitable for Tazpkg.
12 genpkg_rules()
13 {
14 mkdir -p \
15 $fs/etc/init.d \
16 $fs/etc/skel/Desktop \
17 $fs/usr/share/doc/slitaz-flavors \
18 $fs/sbin
19 # Tool and boot script
20 cp stuff/eeepc.sh $fs/etc/init.d
21 cp stuff/tazeee $fs/sbin
22 # Images
23 cp -a stuff/images $fs/usr/share
24 cp -a stuff/pixmaps $fs/usr/share
25 # Doc
26 cp -a stuff/eeepc.html $fs/usr/share/doc/slitaz-flavors
27 # Desktop icon
28 cp -a stuff/applications/tazeee.desktop $fs/etc/skel/Desktop
29 # Config
30 touch $fs/etc/eeepc.conf
31 chown -R root.root $fs
32 }
34 pre_install()
35 {
36 . $1/etc/rcS.conf
37 sed -i s/'RUN_SCRIPTS="'/'RUN_SCRIPTS="eeepc.sh '/ $1/etc/rcS.conf
38 # Load module ac and battery
39 sed -i s/"LOAD_MODULES=\"$LOAD_MODULES\""/"LOAD_MODULES=\"$LOAD_MODULES ac battery\""/ \
40 $1/etc/rcS.conf
41 }
43 pre_remove()
44 {
45 sed -i s/'RUN_SCRIPTS="eeepc.sh '/'RUN_SCRIPTS="'/ /etc/rcS.conf
46 }