wok-current diff slitaz-eeepc/receipt @ rev 2346

Add slitaz-eeepc (tazeee, boot script, doc and more...)
author Christophe Lincoln <pankso@slitaz.org>
date Tue Mar 03 22:58:43 2009 +0100 (2009-03-03)
parents
children a11dd6a8f1a4
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/slitaz-eeepc/receipt	Tue Mar 03 22:58:43 2009 +0100
     1.3 @@ -0,0 +1,46 @@
     1.4 +# SliTaz package receipt.
     1.5 +
     1.6 +PACKAGE="slitaz-eeepc"
     1.7 +VERSION="1.0"
     1.8 +CATEGORY="system-tools"
     1.9 +SHORT_DESC="SliTaz EeePC scripts and configurations files."
    1.10 +DEPENDS="915resolution dmidecode atl2 atl1e rt2860sta"
    1.11 +MAINTAINER="pankso@slitaz.org"
    1.12 +WEB_SITE="http://www.slitaz.org/"
    1.13 +
    1.14 +# Rules to gen a SliTaz package suitable for Tazpkg.
    1.15 +genpkg_rules()
    1.16 +{
    1.17 +	mkdir -p \
    1.18 +		$fs/etc/init.d \
    1.19 +		$fs/etc/skel/Desktop \
    1.20 +		$fs/usr/share/doc/slitaz-flavors \
    1.21 +		$fs/sbin 
    1.22 +	# Tool and boot script
    1.23 +	cp stuff/eeepc.sh $fs/etc/init.d
    1.24 +	cp stuff/tazeee $fs/sbin
    1.25 +	# Images
    1.26 +	cp -a stuff/images $fs/usr/share
    1.27 +	cp -a stuff/pixmaps $fs/usr/share
    1.28 +	# Doc
    1.29 +	cp -a stuff/eeepc.html $fs/usr/share/doc/slitaz-flavors
    1.30 +	# Desktop icon
    1.31 +	cp -a stuff/applications/tazeee.desktop $fs/etc/skel/Desktop
    1.32 +	# Config
    1.33 +	touch $fs/etc/eeepc.conf
    1.34 +	chown -R root.root $fs
    1.35 +}
    1.36 +
    1.37 +pre_install()
    1.38 +{
    1.39 +	. $1/etc/rcS.conf
    1.40 +	sed -i s/'RUN_SCRIPTS="'/'RUN_SCRIPTS="eeepc.sh '/ $1/etc/rcS.conf
    1.41 +	# Load module ac and battery
    1.42 +	sed -i s/"LOAD_MODULES=\"$LOAD_MODULES\""/"LOAD_MODULES=\"$LOAD_MODULES ac battery\""/ \
    1.43 +		$1/etc/rcS.conf
    1.44 +}
    1.45 +
    1.46 +pre_remove()
    1.47 +{
    1.48 +	sed -i s/'RUN_SCRIPTS="eeepc.sh '/'RUN_SCRIPTS="'/ /etc/rcS.conf
    1.49 +}