wok-current annotate slitaz-eeepc/receipt @ rev 2351
slitaz-eeepc: Tidy up docs
author | Paul Issott <paul@slitaz.org> |
---|---|
date | Wed Mar 04 19:53:35 2009 +0000 (2009-03-04) |
parents | 10d656b138ba |
children | 1d87b6c16397 |
rev | line source |
---|---|
pankso@2346 | 1 # SliTaz package receipt. |
pankso@2346 | 2 |
pankso@2346 | 3 PACKAGE="slitaz-eeepc" |
pankso@2346 | 4 VERSION="1.0" |
pankso@2346 | 5 CATEGORY="system-tools" |
paul@2351 | 6 SHORT_DESC="SliTaz EeePC scripts and configuration files." |
pankso@2346 | 7 DEPENDS="915resolution dmidecode atl2 atl1e rt2860sta" |
pankso@2346 | 8 MAINTAINER="pankso@slitaz.org" |
pankso@2346 | 9 WEB_SITE="http://www.slitaz.org/" |
pankso@2346 | 10 |
pankso@2346 | 11 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@2346 | 12 genpkg_rules() |
pankso@2346 | 13 { |
pankso@2346 | 14 mkdir -p \ |
pankso@2346 | 15 $fs/etc/init.d \ |
pankso@2346 | 16 $fs/etc/skel/Desktop \ |
pankso@2346 | 17 $fs/usr/share/doc/slitaz-flavors \ |
pankso@2346 | 18 $fs/sbin |
pankso@2346 | 19 # Tool and boot script |
pankso@2346 | 20 cp stuff/eeepc.sh $fs/etc/init.d |
pankso@2346 | 21 cp stuff/tazeee $fs/sbin |
pankso@2346 | 22 # Images |
pankso@2346 | 23 cp -a stuff/images $fs/usr/share |
pankso@2346 | 24 cp -a stuff/pixmaps $fs/usr/share |
pankso@2346 | 25 # Doc |
pankso@2346 | 26 cp -a stuff/eeepc.html $fs/usr/share/doc/slitaz-flavors |
pankso@2346 | 27 # Desktop icon |
pankso@2346 | 28 cp -a stuff/applications/tazeee.desktop $fs/etc/skel/Desktop |
pankso@2346 | 29 # Config |
pankso@2346 | 30 touch $fs/etc/eeepc.conf |
pankso@2346 | 31 chown -R root.root $fs |
pankso@2346 | 32 } |
pankso@2346 | 33 |
pankso@2346 | 34 pre_install() |
pankso@2346 | 35 { |
pankso@2346 | 36 . $1/etc/rcS.conf |
pankso@2346 | 37 sed -i s/'RUN_SCRIPTS="'/'RUN_SCRIPTS="eeepc.sh '/ $1/etc/rcS.conf |
pankso@2346 | 38 # Load module ac and battery |
pankso@2346 | 39 sed -i s/"LOAD_MODULES=\"$LOAD_MODULES\""/"LOAD_MODULES=\"$LOAD_MODULES ac battery\""/ \ |
pankso@2346 | 40 $1/etc/rcS.conf |
pankso@2346 | 41 } |
pankso@2346 | 42 |
pankso@2346 | 43 pre_remove() |
pankso@2346 | 44 { |
pankso@2346 | 45 sed -i s/'RUN_SCRIPTS="eeepc.sh '/'RUN_SCRIPTS="'/ /etc/rcS.conf |
pankso@2346 | 46 } |