wok-6.x view lxde/receipt @ rev 13206
fail2ban: update bdeps
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Mon Aug 06 14:55:22 2012 +0200 (2012-08-06) |
parents | 8ab73e236754 |
children | 4c7322d54d65 |
line source
1 # SliTaz package receipt.
3 PACKAGE="lxde"
4 VERSION="0.3.2.1"
5 CATEGORY="meta"
6 SHORT_DESC="LXDE desktop environement meta package with SliTaz integration."
7 MAINTAINER="pankso@slitaz.org"
8 WEB_SITE="http://lxde.org/"
9 TAGS="wm desktop"
10 SUGGESTED="lxterminal lxdm"
12 DEPENDS="xorg-libX11 gtk+ pcmanfm lxpanel lxtask lxappearance lxsession
13 lxsession-edit lxrandr lxinput openbox obconf viewnior leafpad \
14 slitaz-configs"
16 # Rules to gen a SliTaz package suitable for Tazpkg.
17 genpkg_rules()
18 {
19 mkdir -p $fs/usr/bin $fs/usr/share/applications
20 install -m 0755 $stuff/lxde-session $fs/usr/bin
21 install -m 0755 $stuff/lxde-logout $fs/usr/bin
22 cp -a $stuff/xsessions $fs/usr/share
23 cp -a $stuff/lxde-logout.desktop $fs/usr/share/applications
24 chown -R 0.0 $fs
25 }
27 # Add WM to SLIM available sessions.
28 post_install()
29 {
30 res=$(cat $root/etc/slim.conf | grep ^session | sed s/"sessions. *"//)
31 if ! echo "$res" | grep -q $PACKAGE; then
32 echo -n "Adding $PACKAGE to /etc/slim.conf..."
33 sed -i "s/^sessions.*/sessions ${res},$PACKAGE/" $root/etc/slim.conf
34 status
35 fi
36 }
38 # Remove WM from SLIM available sessions.
39 post_remove()
40 {
41 if grep -q $PACKAGE $root/etc/slim.conf; then
42 sed -i s/,$PACKAGE// $root/etc/slim.conf
43 fi
44 }