wok annotate slitaz-eeepc/receipt @ rev 20045
Improvements
author | Leonardo Laporte <hackdorte@yandex.com> |
---|---|
date | Thu Aug 31 04:02:39 2017 -0300 (2017-08-31) |
parents | eb8067417980 |
children |
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" |
pascal@15579 | 6 MAINTAINER="pankso@slitaz.org" |
pascal@15579 | 7 LICENSE="GPL3" |
pascal@15579 | 8 WEB_SITE="http://www.slitaz.org/" |
pascal@15579 | 9 |
paul@2351 | 10 SHORT_DESC="SliTaz EeePC scripts and configuration files." |
pankso@3592 | 11 DEPENDS="915resolution dmidecode linux-acpi linux-wireless" |
pankso@2346 | 12 |
pankso@2346 | 13 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@2346 | 14 genpkg_rules() |
pankso@2346 | 15 { |
pankso@2346 | 16 mkdir -p \ |
pankso@2346 | 17 $fs/etc/init.d \ |
pankso@2346 | 18 $fs/etc/skel/Desktop \ |
pankso@2346 | 19 $fs/usr/share/doc/slitaz-flavors \ |
pankso@3592 | 20 $fs/sbin |
pankso@2346 | 21 # Tool and boot script |
pankso@2346 | 22 cp stuff/eeepc.sh $fs/etc/init.d |
pankso@2346 | 23 cp stuff/tazeee $fs/sbin |
pankso@2346 | 24 # Images |
pankso@2346 | 25 cp -a stuff/images $fs/usr/share |
pankso@2346 | 26 cp -a stuff/pixmaps $fs/usr/share |
pankso@2346 | 27 # Doc |
pankso@2346 | 28 cp -a stuff/eeepc.html $fs/usr/share/doc/slitaz-flavors |
pankso@2346 | 29 # Desktop icon |
pankso@2346 | 30 cp -a stuff/applications/tazeee.desktop $fs/etc/skel/Desktop |
pankso@2346 | 31 # Config |
pankso@2346 | 32 touch $fs/etc/eeepc.conf |
pankso@2346 | 33 chown -R root.root $fs |
pankso@2346 | 34 } |
pankso@2346 | 35 |
pankso@2346 | 36 pre_install() |
pankso@2346 | 37 { |
pascal@18730 | 38 . "$1/etc/rcS.conf" |
pascal@18730 | 39 sed -i s/'RUN_SCRIPTS="'/'RUN_SCRIPTS="eeepc.sh '/ "$1/etc/rcS.conf" |
pankso@2346 | 40 # Load module ac and battery |
pankso@2346 | 41 sed -i s/"LOAD_MODULES=\"$LOAD_MODULES\""/"LOAD_MODULES=\"$LOAD_MODULES ac battery\""/ \ |
pascal@18730 | 42 "$1/etc/rcS.conf" |
pankso@2346 | 43 } |
pankso@2346 | 44 |
pankso@2346 | 45 pre_remove() |
pankso@2346 | 46 { |
pankso@2346 | 47 sed -i s/'RUN_SCRIPTS="eeepc.sh '/'RUN_SCRIPTS="'/ /etc/rcS.conf |
pankso@2346 | 48 } |