wok view lighttpd/receipt @ rev 17982
pavucontrol: remove patch
author | Richard Dunbar <mojo@slitaz.org> |
---|---|
date | Sun Apr 19 16:50:55 2015 -0400 (2015-04-19) |
parents | 2b6001f6ed50 |
children | 31fd89019d06 |
line source
1 # SliTaz package receipt.
3 PACKAGE="lighttpd"
4 VERSION="1.4.33"
5 CATEGORY="network"
6 SHORT_DESC="Fast and light HTTP Web server."
7 MAINTAINER="pankso@slitaz.org"
8 LICENSE="BSD"
9 SUGGESTED="lighttpd-modules php perl python"
10 TARBALL="$PACKAGE-$VERSION.tar.xz"
11 WEB_SITE="http://www.lighttpd.net/"
12 WGET_URL="http://download.lighttpd.net/lighttpd/releases-${VERSION%.*}.x/$TARBALL"
13 CONFIG_FILES="/etc/lighttpd/vhosts.conf /etc/lighttpd/lighttpd.conf"
14 HOST_ARCH="i486 arm"
16 DEPENDS="pcre"
17 BUILD_DEPENDS="pcre-dev bzip2-dev"
19 # Modules include in this package. Other modules are splited in
20 # the lighttpd-modules packages.
21 BASE_MODULES="
22 access
23 accesslog
24 alias
25 cgi
26 dirlisting
27 indexfile
28 staticfile
29 rewrite
30 status
31 userdir"
33 # Rules to configure and make the package.
34 compile_rules()
35 {
36 sed -i '/addrs_left/d' src/mod_extforward.c
37 ./configure \
38 --enable-shared \
39 --disable-ipv6 \
40 --prefix=/usr \
41 --libdir=/usr/lib/lighttpd \
42 --mandir=/usr/share/man \
43 $CONFIGURE_ARGS &&
44 make &&
45 make DESTDIR=$DESTDIR install
46 }
48 # Rules to gen a SliTaz package suitable for Tazpkg.
49 # On SliTaz Lighttpd runs as user/group : www/www or 80/80.
50 genpkg_rules()
51 {
52 mkdir -p $fs/usr
53 #cp -a $install/usr/bin $fs/usr
54 cp -a $install/usr/sbin $fs/usr
56 # Modules.
57 mkdir -p $fs/usr/lib/lighttpd
58 for module in $BASE_MODULES
59 do
60 cp $install/usr/lib/lighttpd/mod_${module}.so $fs/usr/lib/lighttpd
61 echo -n "Copying : mod_${module}.so" && status
62 done
64 # Config file.
65 cp -a $stuff/etc $fs
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 # Make sur it as cross compile properly
74 testsuite()
75 {
76 readelf -h $install/usr/sbin/$PACKAGE
77 }
79 # Pre and post install commands for Tazpkg.
80 # We stop the server by default in case of upgarde.
81 pre_install()
82 {
83 echo "Processing pre-install commands..."
84 [ -f /etc/init.d/$PACKAGE ] && /etc/init.d/$PACKAGE stop
85 # Backup config file.
86 if [ -d $1/etc/lighttpd ]; then
87 cp -a $1/etc/lighttpd $1/etc/lighttpd.bak
88 fi
89 }
90 post_install()
91 {
92 echo "Processing post-install commands..."
93 # Restore original config.
94 if [ -d $1/etc/lighttpd.bak ]; then
95 rm -rf $1/etc/lighttpd
96 mv $1/etc/lighttpd.bak $1/etc/lighttpd
97 fi
98 # Just in case.
99 chown www.www $1/var/log/$PACKAGE
100 if [ -z "$1" ]; then
101 for i in apache httpd; do
102 [ -f /etc/init.d/$i ] && /etc/init.d/$i stop
103 done
104 /etc/init.d/$PACKAGE start
105 fi
106 }