wok view lighttpd/receipt @ rev 153

Add JWM_MENU infos
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Jan 26 19:03:45 2008 +0100 (2008-01-26)
parents 587c8b5a3803
children cdac43c3f44f
line source
1 # SliTaz package receipt.
3 PACKAGE="lighttpd"
4 VERSION="1.4.18"
5 CATEGORY="base-apps"
6 SHORT_DESC="Fast and light HTTP Web server."
7 MAINTAINER="pankso@slitaz.org"
8 DEPENDS="php"
9 BUILD_DEPENDS="pcre-dev"
10 TARBALL="$PACKAGE-$VERSION.tar.gz"
11 WEB_SITE="http://www.lighttpd.net/"
12 WGET_URL="http://www.lighttpd.net/download/$TARBALL"
13 BASE_MODULES="
14 access
15 accesslog
16 alias
17 cgi
18 fastcgi
19 compress
20 dirlisting
21 indexfile
22 staticfile
23 rewrite
24 status
25 userdir"
26 JWM_MENU='System tools:<Program icon="text-html.png" label="LightTPD status">firefox http://localhost/server-status</Program>'
28 # Rules to configure and make the package.
29 compile_rules()
30 {
31 cd $src
32 ./configure -enable-shared --disable-ipv6 --prefix=/usr \
33 --libdir=/usr/lib/lighttpd --mandir=/usr/share/man \
34 $CONFIGURE_ARGS
35 make
36 make DESTDIR=$PWD/_pkg install
37 }
39 # Rules to gen a SliTaz package suitable for Tazpkg.
40 # On SliTaz Lighttpd runs as user/group : www/www or 80/80.
41 genpkg_rules()
42 {
43 mkdir -p $fs/usr
44 cp -a $_pkg/usr/bin $fs/usr
45 cp -a $_pkg/usr/sbin $fs/usr
47 # Modules.
48 mkdir -p $fs/usr/lib/lighttpd
49 for module in $BASE_MODULES
50 do
51 cp $_pkg/usr/lib/lighttpd/mod_${module}.so $fs/usr/lib/lighttpd
52 echo -n "Copying : mod_${module}.so" && status
53 done
54 strip -s $fs/usr/bin/*
55 strip -s $fs/usr/sbin/*
56 strip -s $fs/usr/lib/lighttpd/*
58 # Server root and config file.
59 cp -a stuff/var $fs
60 cp -a stuff/etc $fs
61 chown -R 0.0 $fs/var/www
62 chown -R 0.0 $fs/etc
64 # Logs directory.
65 mkdir -p $fs/var/log/lighttpd
66 chown 80.80 $fs/var/log/lighttpd
67 }
69 # Pre and post install commands for Tazpkg.
70 # We stop the server by default in case of upgarde.
71 pre_install()
72 {
73 echo "Processing pre-install commands..."
74 /etc/init.d/$PACKAGE stop
75 }
76 post_install()
77 {
78 local root
79 root=$1
80 echo "Processing post-install commands..."
81 # Just in case.
82 chown www.www $root/var/log/$PACKAGE
83 /etc/init.d/$PACKAGE start
84 }