wok-4.x view lighttpd/receipt @ rev 608
Up: udev (120) - Admin centralised in udevadm
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Fri Apr 18 16:41:52 2008 +0200 (2008-04-18) |
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 }