wok-next annotate slitaz-eeepc/receipt @ rev 20146
Up qemu-light (2.0.2)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Wed Nov 01 11:50:08 2017 +0100 (2017-11-01) |
parents | 9e01bc6321ea |
children | cd7906120828 |
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" |
al@19588 | 6 SHORT_DESC="SliTaz EeePC scripts and configuration files." |
pascal@15579 | 7 MAINTAINER="pankso@slitaz.org" |
pascal@15579 | 8 LICENSE="GPL3" |
pascal@15579 | 9 WEB_SITE="http://www.slitaz.org/" |
pascal@15579 | 10 |
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 } |