wok view slitaz-eeepc/receipt @ rev 6472

Up: sane-backends, sane-backends-dev to 1.0.21.
author Christopher Rogers <slaxemulator@gmail.com>
date Wed Sep 29 21:11:18 2010 +0000 (2010-09-29)
parents 3918200bcbb2
children eb8067417980
line source
1 # SliTaz package receipt.
3 PACKAGE="slitaz-eeepc"
4 VERSION="1.2"
5 CATEGORY="system-tools"
6 SHORT_DESC="SliTaz EeePC scripts and configuration files."
7 DEPENDS="915resolution dmidecode linux-acpi linux-wireless"
8 MAINTAINER="pankso@slitaz.org"
9 WEB_SITE="http://www.slitaz.org/"
11 # Rules to gen a SliTaz package suitable for Tazpkg.
12 genpkg_rules()
13 {
14 mkdir -p \
15 $fs/etc/init.d \
16 $fs/etc/skel/Desktop \
17 $fs/usr/share/doc/slitaz-flavors \
18 $fs/sbin
19 # Tool and boot script
20 cp stuff/eeepc.sh $fs/etc/init.d
21 cp stuff/tazeee $fs/sbin
22 # Images
23 cp -a stuff/images $fs/usr/share
24 cp -a stuff/pixmaps $fs/usr/share
25 # Doc
26 cp -a stuff/eeepc.html $fs/usr/share/doc/slitaz-flavors
27 # Desktop icon
28 cp -a stuff/applications/tazeee.desktop $fs/etc/skel/Desktop
29 # Config
30 touch $fs/etc/eeepc.conf
31 chown -R root.root $fs
32 }
34 pre_install()
35 {
36 . $1/etc/rcS.conf
37 sed -i s/'RUN_SCRIPTS="'/'RUN_SCRIPTS="eeepc.sh '/ $1/etc/rcS.conf
38 # Load module ac and battery
39 sed -i s/"LOAD_MODULES=\"$LOAD_MODULES\""/"LOAD_MODULES=\"$LOAD_MODULES ac battery\""/ \
40 $1/etc/rcS.conf
41 }
43 pre_remove()
44 {
45 sed -i s/'RUN_SCRIPTS="eeepc.sh '/'RUN_SCRIPTS="'/ /etc/rcS.conf
46 }