wok view cherokee/receipt @ rev 17203

telepathy-glib: update bdeps
author Pascal Bellard <pascal.bellard@slitaz.org>
date Thu Oct 09 13:38:33 2014 +0200 (2014-10-09)
parents 380ffe05937a
children d3eb5f4b53ea
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/1.2/$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 pam-dev libmysqlclient ffmpeg-dev gettext autoconf automake"
17 # Rules to configure and make the package.
18 compile_rules()
19 {
20 cd $src
22 # Update deprecated symbols of ffmpeg
23 sed -i 's|hdl->avformat->file_size|avio_size(hdl->avformat)|' cherokee/handler_streaming.c
25 # Use subdirectory for logs
26 sed -i -r 's|(%localstatedir%/log)|\1/cherokee|' cherokee.conf.sample.pre
28 autoreconf -v
29 ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var \
30 --with-wwwroot=/var/www/cherokee --disable-static \
31 --with-wwwuser=www --with-wwwgroup=www \
32 --enable-os-string="SliTaz" \
33 $CONFIGURE_ARGS &&
34 make && make DESTDIR=$DESTDIR install && {
35 install -D -m644 pam.d_cherokee $DESTDIR/etc/pam.d/$PACKAGE
36 chown -R www:www $DESTDIR/var/lib/$PACKAGE/graphs
37 python -m compileall $DESTDIR
38 python -O -m compileall $DESTDIR
39 mkdir -p $DESTDIR/var/log/$PACKAGE $DESTDIR/etc/logrotate.d
40 chown -R www:www $DESTDIR/var/log/$PACKAGE
41 cp -a $stuff/$PACKAGE.logrotate $DESTDIR/etc/logrotate.d/$PACKAGE
42 }
43 }
45 # Rules to gen a SliTaz package suitable for Tazpkg.
46 genpkg_rules()
47 {
48 mkdir -p $fs/usr/lib/cherokee $fs/usr/share $fs/etc/init.d
49 cp -a $install/usr/bin $fs/usr
50 cp -a $install/usr/sbin $fs/usr
51 cp -a $install/usr/lib/*.so* $fs/usr/lib
52 cp -a $install/usr/lib/cherokee/*.so* $fs/usr/lib/cherokee
53 cp -a $install/usr/share/cherokee $fs/usr/share
54 cp -a $install/var $fs
55 cp -a $install/etc $fs
56 cp -a $stuff/cherokee $fs/etc/init.d
57 }