wok-next view lighttpd/receipt @ rev 547
Up: GTK+ (2.12.6) and deps (glib,pango, + clearlooks for 2.10 engines)
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Sat Apr 12 17:37:29 2008 +0200 (2008-04-12) |
parents | cf22fee17710 |
children | c28da3ca44d2 |
line source
1 # SliTaz package receipt.
3 PACKAGE="lighttpd"
4 VERSION="1.4.18"
5 CATEGORY="network"
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"
27 # Rules to configure and make the package.
28 compile_rules()
29 {
30 cd $src
31 ./configure -enable-shared --disable-ipv6 --prefix=/usr \
32 --libdir=/usr/lib/lighttpd --mandir=/usr/share/man \
33 $CONFIGURE_ARGS
34 make
35 make DESTDIR=$PWD/_pkg install
36 }
38 # Rules to gen a SliTaz package suitable for Tazpkg.
39 # On SliTaz Lighttpd runs as user/group : www/www or 80/80.
40 genpkg_rules()
41 {
42 mkdir -p $fs/usr
43 cp -a $_pkg/usr/bin $fs/usr
44 cp -a $_pkg/usr/sbin $fs/usr
46 # Modules.
47 mkdir -p $fs/usr/lib/lighttpd
48 for module in $BASE_MODULES
49 do
50 cp $_pkg/usr/lib/lighttpd/mod_${module}.so $fs/usr/lib/lighttpd
51 echo -n "Copying : mod_${module}.so" && status
52 done
53 strip -s $fs/usr/bin/*
54 strip -s $fs/usr/sbin/*
55 strip -s $fs/usr/lib/lighttpd/*
57 # Server root and config file.
58 cp -a stuff/var $fs
59 cp -a stuff/etc $fs
60 chown -R 0.0 $fs/var/www
61 chown -R 0.0 $fs/etc
63 # Logs directory.
64 mkdir -p $fs/var/log/lighttpd
65 chown 80.80 $fs/var/log/lighttpd
66 }
68 # Pre and post install commands for Tazpkg.
69 # We stop the server by default in case of upgarde.
70 pre_install()
71 {
72 echo "Processing pre-install commands..."
73 /etc/init.d/$PACKAGE stop
74 }
75 post_install()
76 {
77 local root
78 root=$1
79 echo "Processing post-install commands..."
80 # Just in case.
81 chown www.www $root/var/log/$PACKAGE
82 /etc/init.d/$PACKAGE start
83 }