wok view lighttpd/receipt @ rev 945
Up: slitaz-boot-scripts (2.4)
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Tue Jun 24 20:40:11 2008 +0200 (2008-06-24) |
parents | c28da3ca44d2 |
children | ca4331756d20 |
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 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 BASE_MODULES="
15 access
16 accesslog
17 alias
18 cgi
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 \
31 --enable-shared \
32 --disable-ipv6 \
33 --prefix=/usr \
34 --libdir=/usr/lib/lighttpd \
35 --mandir=/usr/share/man \
36 $CONFIGURE_ARGS
37 make
38 make DESTDIR=$PWD/_pkg install
39 }
41 # Rules to gen a SliTaz package suitable for Tazpkg.
42 # On SliTaz Lighttpd runs as user/group : www/www or 80/80.
43 genpkg_rules()
44 {
45 mkdir -p $fs/usr
46 cp -a $_pkg/usr/bin $fs/usr
47 cp -a $_pkg/usr/sbin $fs/usr
49 # Modules.
50 mkdir -p $fs/usr/lib/lighttpd
51 for module in $BASE_MODULES
52 do
53 cp $_pkg/usr/lib/lighttpd/mod_${module}.so $fs/usr/lib/lighttpd
54 echo -n "Copying : mod_${module}.so" && status
55 done
56 strip -s $fs/usr/bin/*
57 strip -s $fs/usr/sbin/*
58 strip -s $fs/usr/lib/lighttpd/*
60 # Server root and config file.
61 cp -a stuff/var $fs
62 cp -a stuff/etc $fs
63 chown -R 0.0 $fs/var/www
64 chown -R 0.0 $fs/etc
66 # Logs directory.
67 mkdir -p $fs/var/log/lighttpd
68 chown 80.80 $fs/var/log/lighttpd
69 }
71 # Pre and post install commands for Tazpkg.
72 # We stop the server by default in case of upgarde.
73 pre_install()
74 {
75 echo "Processing pre-install commands..."
76 /etc/init.d/$PACKAGE stop
77 }
78 post_install()
79 {
80 local root
81 root=$1
82 echo "Processing post-install commands..."
83 # Just in case.
84 chown www.www $root/var/log/$PACKAGE
85 /etc/init.d/$PACKAGE start
86 }