wok view slim/receipt @ rev 1905

apache,lighttpd*: ensure only one web server is running
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Dec 21 10:51:14 2008 +0000 (2008-12-21)
parents fade386d1cf6
children bd6010223726
line source
1 # SliTaz package receipt.
3 PACKAGE="slim"
4 VERSION="1.3.1"
5 CATEGORY="x-window"
6 SHORT_DESC="Desktop-independent graphical login manager for X11."
7 MAINTAINER="pankso@slitaz.org"
8 DEPENDS="xorg jpeg libpng slitaz-configs"
9 BUILD_DEPENDS="xorg-dev jpeg-dev libpng-dev xorg-libXft-dev"
10 TARBALL="$PACKAGE-$VERSION.tar.gz"
11 WEB_SITE="http://slim.berlios.de"
12 WGET_URL="http://download.berlios.de/slim/$TARBALL"
13 CONFIG_FILES="/etc/slim.conf"
14 BUGS="Sometime needs more than 10 seconds to start (since HAL/DCOP addition)."
16 # Rules to configure and make the package.
17 compile_rules()
18 {
19 cd $src
20 sed -i "s|/usr/X11R6/include|/usr/include/xorg|g" Makefile
21 sed -i "s|/usr/X11R6/|/usr/|g" Makefile
22 make
23 }
25 # Rules to gen a SliTaz package suitable for Tazpkg.
26 genpkg_rules()
27 {
28 mkdir -p $fs/usr/bin $fs/usr/share/slim
29 cp -a $src/slim $fs/usr/bin
31 # Config file and rc script (theme is in slitaz-configs).
32 cp -a stuff/etc $fs
33 chown -R root.root $fs
34 }
36 post_install()
37 {
38 local USER
39 USER=$(awk -F: '/:1000:1000:/ { print $1 }' < $1/etc/passwd)
40 [ -n "$USER" ] &&
41 sed -i s/"default_user .*"/"default_user $USER"/ $1/etc/slim.conf
42 ( cd $1/ ; cpio -o -H newc | gzip -9 ) > \
43 $1/$INSTALLED/$PACKAGE/volatile.cpio.gz <<EOT
44 etc/slim.conf
45 EOT
46 }
48 repack_cleanup()
49 {
50 zcat $INSTALLED/$PACKAGE/volatile.cpio.gz | ( cd $1 ; cpio -id )
51 }