wok view karmen/receipt @ rev 14701

monitorix: update /etc/monitorix.conf (again)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri Jun 07 18:28:08 2013 +0200 (2013-06-07)
parents 08943259e85e
children 23c3aed67cd9
line source
1 # SliTaz package receipt.
3 PACKAGE="karmen"
4 VERSION="0.15"
5 CATEGORY="x-window"
6 SHORT_DESC="Very light and minimalistic window manager for X."
7 MAINTAINER="pankso@slitaz.org"
8 TARBALL="$PACKAGE-$VERSION.tar.gz"
9 WEB_SITE="http://karmen.sourceforge.net/"
10 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
11 TAGS="wm window-manager"
13 DEPENDS="xorg-libX11 xorg-xsetroot nano xterm xorg-xclock dialog"
14 BUILD_DEPENDS="xorg-libX11-dev"
16 # Rules to configure and make the package.
17 compile_rules()
18 {
19 cd $src
20 ./configure --prefix=/usr \
21 $CONFIGURE_ARGS &&
22 make && make install
23 }
25 # Rules to gen a SliTaz package suitable for Tazpkg.
26 genpkg_rules()
27 {
28 mkdir -p $fs/usr/share
29 cp -a $_pkg/usr/bin $fs/usr
30 # Custom configuration and scripts.
31 install -m 0755 $stuff/karmen-session $fs/usr/bin
32 install -m 0755 $stuff/karmen-conf $fs/usr/bin
33 cp -a $stuff/xsessions $fs/usr/share
34 cp -a $stuff/etc $fs
35 chown 0.0 $fs/usr/bin/*
36 }
38 post_install()
39 {
40 res=`cat $1/etc/slim.conf | grep ^session | sed s/"sessions. *"//`
41 # Adding WM to SLIM available sessions.
42 if ! echo "$res" | grep -q $PACKAGE; then
43 echo -n "Adding $PACKAGE to /etc/slim.conf..."
44 sed -i "s/^sessions.*/sessions ${res},$PACKAGE/" $1/etc/slim.conf
45 status
46 fi
47 }
49 post_remove()
50 {
51 # Remove WM from SLIM available sessions.
52 if grep -q $PACKAGE $1/etc/slim.conf; then
53 sed -i s/,$PACKAGE// $1/etc/slim.conf
54 fi
55 }