wok view lighttpd/receipt @ rev 88
Add : xf86* proto + libs
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Wed Jan 02 22:25:26 2008 +0100 (2008-01-02) |
parents | |
children | 8489aa10a666 |
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 TARBALL="$PACKAGE-$VERSION.tar.gz"
10 WEB_SITE="http://www.lighttpd.net/"
11 WGET_URL="http://www.lighttpd.net/download/$TARBALL"
12 BASE_MODULES="
13 access
14 accesslog
15 alias
16 cgi
17 fastcgi
18 compress
19 dirlisting
20 indexfile
21 staticfile
22 rewrite
23 status
24 userdir"
26 # Rules to configure and make the package.
27 compile_rules()
28 {
29 cd $src
30 ./configure -enable-shared --disable-ipv6 --prefix=/usr \
31 --libdir=/usr/lib/lighttpd --mandir=/usr/share/man \
32 $CONFIGURE_ARGS
33 make
34 make DESTDIR=$PWD/_pkg install
35 }
37 # Rules to gen a SliTaz package suitable for Tazpkg.
38 # On SliTaz Lighttpd runs as user/group : www/www or 80/80.
39 genpkg_rules()
40 {
41 mkdir -p $fs/usr
42 cp -a $_pkg/usr/bin $fs/usr
43 cp -a $_pkg/usr/sbin $fs/usr
45 # Modules.
46 mkdir -p $fs/usr/lib/lighttpd
47 for module in $BASE_MODULES
48 do
49 cp $_pkg/usr/lib/lighttpd/mod_${module}.so $fs/usr/lib/lighttpd
50 echo -n "Copying : mod_${module}.so" && status
51 done
52 strip -s $fs/usr/bin/*
53 strip -s $fs/usr/sbin/*
54 strip -s $fs/usr/lib/lighttpd/*
56 # Server root and config file.
57 cp -a stuff/var $fs
58 cp -a stuff/etc $fs
60 # Logs directory.
61 mkdir -p $fs/var/log/lighttpd
62 chown 80.80 $fs/var/log/lighttpd
63 }
65 # Pre and post install commands for Tazpkg.
66 # We stop the server by default in case of upgarde.
67 pre_install()
68 {
69 echo "Processing pre-install commands..."
70 /etc/init.d/$PACKAGE stop
71 }
72 post_install()
73 {
74 local root
75 root=$1
76 echo "Processing post-install commands..."
77 # Just in case.
78 chown www.www $root/var/log/$PACKAGE
79 /etc/init.d/$PACKAGE start
80 }