wok view lighttpd/receipt @ rev 1473

Up mpfr (2.3.2)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Oct 04 12:48:27 2008 +0000 (2008-10-04)
parents abf5a1cc455a
children 3f898e9b90bd
line source
1 # SliTaz package receipt.
3 PACKAGE="lighttpd"
4 VERSION="1.4.19-1"
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 bzip2-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 WGET_URL="http://mirror.slitaz.org/sources/packages/l/$TARBALL"
15 CONFIG_FILES="/etc/lighttpd/lighttpd.conf /etc/lighttpd/vhosts.conf"
16 BASE_MODULES="
17 access
18 accesslog
19 alias
20 cgi
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 patch -i ../stuff/fastcgi_detach.patch || exit 1
33 ./configure \
34 --enable-shared \
35 --disable-ipv6 \
36 --prefix=/usr \
37 --libdir=/usr/lib/lighttpd \
38 --mandir=/usr/share/man \
39 $CONFIGURE_ARGS
40 make
41 make DESTDIR=$PWD/_pkg install
42 }
44 # Rules to gen a SliTaz package suitable for Tazpkg.
45 # On SliTaz Lighttpd runs as user/group : www/www or 80/80.
46 genpkg_rules()
47 {
48 mkdir -p $fs/usr
49 cp -a $_pkg/usr/bin $fs/usr
50 cp -a $_pkg/usr/sbin $fs/usr
52 # Modules.
53 mkdir -p $fs/usr/lib/lighttpd
54 for module in $BASE_MODULES
55 do
56 cp $_pkg/usr/lib/lighttpd/mod_${module}.so $fs/usr/lib/lighttpd
57 echo -n "Copying : mod_${module}.so" && status
58 done
59 strip -s $fs/usr/bin/*
60 strip -s $fs/usr/sbin/*
61 strip -s $fs/usr/lib/lighttpd/*
63 # Server root and config file.
64 cp -a stuff/var $fs
65 cp -a stuff/etc $fs
66 chown -R 0.0 $fs/var/www
67 chown -R 0.0 $fs/etc
69 # Logs directory.
70 mkdir -p $fs/var/log/lighttpd
71 chown 80.80 $fs/var/log/lighttpd
72 }
74 # Pre and post install commands for Tazpkg.
75 # We stop the server by default in case of upgarde.
76 pre_install()
77 {
78 echo "Processing pre-install commands..."
79 [ -f /etc/init.d/$PACKAGE ] && /etc/init.d/$PACKAGE stop
80 }
81 post_install()
82 {
83 local root
84 root=$1
85 echo "Processing post-install commands..."
86 # Just in case.
87 chown www.www $root/var/log/$PACKAGE
88 /etc/init.d/$PACKAGE start
89 }