wok-4.x view lighttpd/receipt @ rev 1174

get-skype: declare config file
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Aug 02 09:56:46 2008 +0000 (2008-08-02)
parents edd31fe73ba8
children abf5a1cc455a
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 BASE_MODULES="
16 access
17 accesslog
18 alias
19 cgi
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 patch -i ../stuff/fastcgi_detach.patch || exit 1
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 }