wok-next annotate slitaz-eeepc/receipt @ rev 2786

Up: slitaz-eeepc (1.2)
author Christophe Lincoln <pankso@slitaz.org>
date Mon Apr 27 21:57:44 2009 +0200 (2009-04-27)
parents 954adaf24456
children 63713938793b
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@2374 7 DEPENDS="915resolution dmidecode atl2 atl1e rt2860sta madwifi"
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 }