wok annotate slitaz-eeepc/receipt @ rev 7772
Make sure /etc/gtk-2.0 folder exist in gtk+ post_install.
author | Christopher Rogers <slaxemulator@gmail.com> |
---|---|
date | Thu Dec 23 00:45:09 2010 +0000 (2010-12-23) |
parents | 3918200bcbb2 |
children | eb8067417980 |
rev | line source |
---|---|
pankso@2346 | 1 # SliTaz package receipt. |
pankso@2346 | 2 |
pankso@2346 | 3 PACKAGE="slitaz-eeepc" |
pankso@2786 | 4 VERSION="1.2" |
pankso@2346 | 5 CATEGORY="system-tools" |
paul@2351 | 6 SHORT_DESC="SliTaz EeePC scripts and configuration files." |
pankso@3592 | 7 DEPENDS="915resolution dmidecode linux-acpi linux-wireless" |
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@3592 | 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 } |