wok-6.x view slitaz-eeepc/receipt @ rev 2445

nss_ldap: enable-rfc2307bis
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri Mar 13 12:11:02 2009 +0000 (2009-03-13)
parents 1d87b6c16397
children 3918200bcbb2
line source
1 # SliTaz package receipt.
3 PACKAGE="slitaz-eeepc"
4 VERSION="1.1"
5 CATEGORY="system-tools"
6 SHORT_DESC="SliTaz EeePC scripts and configuration files."
7 DEPENDS="915resolution dmidecode atl2 atl1e rt2860sta madwifi"
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 }