wok-current view lighttpd/receipt @ rev 639

Up: lighttpd (1.4.19)
author Christophe Lincoln <pankso@slitaz.org>
date Tue Apr 22 00:47:53 2008 +0200 (2008-04-22)
parents eb4e6a1af180
children edd31fe73ba8
line source
1 # SliTaz package receipt.
3 PACKAGE="lighttpd"
4 VERSION="1.4.19"
5 CATEGORY="network"
6 SHORT_DESC="Fast and light HTTP Web server."
7 MAINTAINER="pankso@slitaz.org"
8 DEPENDS="pcre"
9 BUILD_DEPENDS="pcre-dev"
10 SUGGESTED="lighttpd-modules php perl python"
11 TARBALL="$PACKAGE-$VERSION.tar.gz"
12 WEB_SITE="http://www.lighttpd.net/"
13 WGET_URL="http://www.lighttpd.net/download/$TARBALL"
14 BASE_MODULES="
15 access
16 accesslog
17 alias
18 cgi
19 fastcgi
20 compress
21 dirlisting
22 indexfile
23 staticfile
24 rewrite
25 status
26 userdir"
28 # Rules to configure and make the package.
29 compile_rules()
30 {
31 cd $src
32 ./configure \
33 --enable-shared \
34 --disable-ipv6 \
35 --prefix=/usr \
36 --libdir=/usr/lib/lighttpd \
37 --mandir=/usr/share/man \
38 $CONFIGURE_ARGS
39 make
40 make DESTDIR=$PWD/_pkg install
41 }
43 # Rules to gen a SliTaz package suitable for Tazpkg.
44 # On SliTaz Lighttpd runs as user/group : www/www or 80/80.
45 genpkg_rules()
46 {
47 mkdir -p $fs/usr
48 cp -a $_pkg/usr/bin $fs/usr
49 cp -a $_pkg/usr/sbin $fs/usr
51 # Modules.
52 mkdir -p $fs/usr/lib/lighttpd
53 for module in $BASE_MODULES
54 do
55 cp $_pkg/usr/lib/lighttpd/mod_${module}.so $fs/usr/lib/lighttpd
56 echo -n "Copying : mod_${module}.so" && status
57 done
58 strip -s $fs/usr/bin/*
59 strip -s $fs/usr/sbin/*
60 strip -s $fs/usr/lib/lighttpd/*
62 # Server root and config file.
63 cp -a stuff/var $fs
64 cp -a stuff/etc $fs
65 chown -R 0.0 $fs/var/www
66 chown -R 0.0 $fs/etc
68 # Logs directory.
69 mkdir -p $fs/var/log/lighttpd
70 chown 80.80 $fs/var/log/lighttpd
71 }
73 # Pre and post install commands for Tazpkg.
74 # We stop the server by default in case of upgarde.
75 pre_install()
76 {
77 echo "Processing pre-install commands..."
78 /etc/init.d/$PACKAGE stop
79 }
80 post_install()
81 {
82 local root
83 root=$1
84 echo "Processing post-install commands..."
85 # Just in case.
86 chown www.www $root/var/log/$PACKAGE
87 /etc/init.d/$PACKAGE start
88 }