wok-current view cherokee/receipt @ rev 22207
updated xorg-libXaw and xorg-libXaw-dev (1.0.11 -> 1.0.13)
author | Hans-G?nter Theisgen |
---|---|
date | Mon Nov 11 14:25:28 2019 +0100 (2019-11-11) |
parents | d3eb5f4b53ea |
children | 676f346df719 |
line source
1 # SliTaz package receipt.
3 PACKAGE="cherokee"
4 VERSION="1.2.101"
5 CATEGORY="network"
6 SHORT_DESC="A very fast, fiexible and easy to configure Web Server."
7 MAINTAINER="slaxemulator@gmail.com"
8 LICENSE="GPL2"
9 TARBALL="$PACKAGE-$VERSION.tar.gz"
10 WEB_SITE="http://www.cherokee-project.com/"
11 WGET_URL="http://www.cherokee-project.com/download/${VERSION%.*}/$VERSION/$TARBALL"
12 PROVIDE="lighttpd"
14 DEPENDS="pcre cyrus-sasl openssl python libmysqlclient libldap ffmpeg"
15 BUILD_DEPENDS="pcre-dev cyrus-sasl-dev openssl-dev openldap-dev python-dev \
16 pam-dev libmysqlclient ffmpeg-dev gettext autoconf automake libtool"
18 # Rules to configure and make the package.
19 compile_rules()
20 {
21 # Update deprecated symbols of ffmpeg
22 sed -i 's|hdl->avformat->file_size|avio_size(hdl->avformat)|' cherokee/handler_streaming.c
24 # Use subdirectory for logs
25 sed -i -r 's|(%localstatedir%/log)|\1/cherokee|' cherokee.conf.sample.pre
27 autoreconf -vfi
28 ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var \
29 --with-wwwroot=/var/www/cherokee --disable-static \
30 --with-wwwuser=www --with-wwwgroup=www \
31 --enable-os-string="SliTaz" \
32 $CONFIGURE_ARGS &&
33 make && make DESTDIR=$DESTDIR install && {
34 install -D -m644 pam.d_cherokee $DESTDIR/etc/pam.d/$PACKAGE
35 chown -R www:www $DESTDIR/var/lib/$PACKAGE/graphs
36 python -m compileall $DESTDIR
37 python -O -m compileall $DESTDIR
38 mkdir -p $DESTDIR/var/log/$PACKAGE $DESTDIR/etc/logrotate.d
39 chown -R www:www $DESTDIR/var/log/$PACKAGE
40 cp -a $stuff/$PACKAGE.logrotate $DESTDIR/etc/logrotate.d/$PACKAGE
41 }
42 }
44 # Rules to gen a SliTaz package suitable for Tazpkg.
45 genpkg_rules()
46 {
47 mkdir -p $fs/usr/lib/cherokee $fs/usr/share $fs/etc/init.d
48 cp -a $install/usr/bin $fs/usr
49 cp -a $install/usr/sbin $fs/usr
50 cp -a $install/usr/lib/*.so* $fs/usr/lib
51 cp -a $install/usr/lib/cherokee/*.so* $fs/usr/lib/cherokee
52 cp -a $install/usr/share/cherokee $fs/usr/share
53 cp -a $install/var $fs
54 cp -a $install/etc $fs
55 cp -a $stuff/cherokee $fs/etc/init.d
56 }