wok-next view slitaz-eeepc/receipt @ rev 20234

Up linux-cloop (3.14)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Mon Nov 06 10:03:11 2017 +0100 (2017-11-06)
parents 9e01bc6321ea
children cd7906120828
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 MAINTAINER="pankso@slitaz.org"
8 LICENSE="GPL3"
9 WEB_SITE="http://www.slitaz.org/"
11 DEPENDS="915resolution dmidecode linux-acpi linux-wireless"
13 # Rules to gen a SliTaz package suitable for Tazpkg.
14 genpkg_rules()
15 {
16 mkdir -p \
17 $fs/etc/init.d \
18 $fs/etc/skel/Desktop \
19 $fs/usr/share/doc/slitaz-flavors \
20 $fs/sbin
21 # Tool and boot script
22 cp stuff/eeepc.sh $fs/etc/init.d
23 cp stuff/tazeee $fs/sbin
24 # Images
25 cp -a stuff/images $fs/usr/share
26 cp -a stuff/pixmaps $fs/usr/share
27 # Doc
28 cp -a stuff/eeepc.html $fs/usr/share/doc/slitaz-flavors
29 # Desktop icon
30 cp -a stuff/applications/tazeee.desktop $fs/etc/skel/Desktop
31 # Config
32 touch $fs/etc/eeepc.conf
33 chown -R root.root $fs
34 }
36 pre_install()
37 {
38 . "$1/etc/rcS.conf"
39 sed -i s/'RUN_SCRIPTS="'/'RUN_SCRIPTS="eeepc.sh '/ "$1/etc/rcS.conf"
40 # Load module ac and battery
41 sed -i s/"LOAD_MODULES=\"$LOAD_MODULES\""/"LOAD_MODULES=\"$LOAD_MODULES ac battery\""/ \
42 "$1/etc/rcS.conf"
43 }
45 pre_remove()
46 {
47 sed -i s/'RUN_SCRIPTS="eeepc.sh '/'RUN_SCRIPTS="'/ /etc/rcS.conf
48 }