wok view lxde/receipt @ rev 19444

Up libssh2 (1.7.0) CVE-2016-0787
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri Oct 14 18:55:24 2016 +0200 (2016-10-14)
parents d98ecc5a919e
children 970c5ec9a60a
line source
1 # SliTaz package receipt.
3 PACKAGE="lxde"
4 VERSION="0.3.2.1"
5 CATEGORY="meta"
6 SHORT_DESC="Meta-package for the Lightweight X11 Desktop Environement"
7 MAINTAINER="pankso@slitaz.org"
8 LICENSE="GPL2"
9 WEB_SITE="http://lxde.org/"
10 TAGS="LXDE window-manager desktop"
11 HOST_ARCH="i486 arm"
13 SUGGESTED="lxterminal lxdm lxshortcut xarchiver"
14 DEPENDS="xorg-libX11 gtk+ lxpanel lxtask lxappearance lxsession pcmanfm \
15 lxsession-edit lxrandr lxinput openbox obconf gpicview leafpad slitaz-configs \
16 slitaz-tools-boxes"
18 # Rules to gen a SliTaz package suitable for Tazpkg.
19 genpkg_rules()
20 {
21 mkdir -p $fs/usr/bin $fs/usr/share/applications
22 install -m 0755 $stuff/lxde-session $fs/usr/bin
23 install -m 0755 $stuff/lxde-logout $fs/usr/bin
24 cp -a $stuff/xsessions $fs/usr/share
25 cp -a $stuff/lxde-logout.desktop $fs/usr/share/applications
26 chown -R 0.0 $fs
27 }
29 # Add WM to SLIM available sessions.
30 post_install()
31 {
32 res=$(cat "$1/etc/slim.conf" | grep ^session | sed s/"sessions. *"//)
33 if ! echo "$res" | grep -q $PACKAGE; then
34 echo -n "Adding $PACKAGE to /etc/slim.conf..."
35 sed -i "s/^sessions.*/sessions ${res},$PACKAGE/" "$1/etc/slim.conf"
36 status
37 fi
38 }
40 # Remove WM from SLIM available sessions.
41 post_remove()
42 {
43 if grep -q $PACKAGE $root/etc/slim.conf; then
44 sed -i s/,$PACKAGE// "$1/etc/slim.conf"
45 fi
46 }