wok-next view cherokee/receipt @ rev 20206

Up PyQt-x11-gpl (4.12.1)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Nov 04 09:19:58 2017 +0100 (2017-11-04)
parents d3eb5f4b53ea
children d43bf7aae921
line source
1 # SliTaz package receipt v2.
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"
13 BUILD_DEPENDS="pcre-dev cyrus-sasl-dev openssl-dev openldap-dev python-dev pam-dev libmysqlclient ffmpeg-dev gettext autoconf automake"
14 SPLIT="cherokee cherokee-dev cherokee-doc"
16 # Rules to configure and make the package.
17 compile_rules()
18 {
19 # Update deprecated symbols of ffmpeg
20 sed -i 's|hdl->avformat->file_size|avio_size(hdl->avformat)|' cherokee/handler_streaming.c
22 # Use subdirectory for logs
23 sed -i -r 's|(%localstatedir%/log)|\1/cherokee|' cherokee.conf.sample.pre
25 autoreconf -v
26 ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var \
27 --with-wwwroot=/var/www/cherokee --disable-static \
28 --with-wwwuser=www --with-wwwgroup=www \
29 --enable-os-string="SliTaz" \
30 $CONFIGURE_ARGS &&
31 make && make DESTDIR=$DESTDIR install && {
32 install -D -m644 pam.d_cherokee $DESTDIR/etc/pam.d/$PACKAGE
33 chown -R www:www $DESTDIR/var/lib/$PACKAGE/graphs
34 python -m compileall $DESTDIR
35 python -O -m compileall $DESTDIR
36 mkdir -p $DESTDIR/var/log/$PACKAGE $DESTDIR/etc/logrotate.d
37 chown -R www:www $DESTDIR/var/log/$PACKAGE
38 cp -a $stuff/$PACKAGE.logrotate $DESTDIR/etc/logrotate.d/$PACKAGE
39 }
40 }
42 # Rules to gen a SliTaz package suitable for Tazpkg.
43 genpkg_rules()
44 {
45 case $PACKAGE in
46 cherokee)
47 PROVIDE="lighttpd"
48 DEPENDS="pcre cyrus-sasl openssl python libmysqlclient \
49 libldap ffmpeg"
50 mkdir -p $fs/usr/lib/cherokee $fs/usr/share $fs/etc/init.d
51 cp -a $install/usr/bin $fs/usr
52 cp -a $install/usr/sbin $fs/usr
53 cp -a $install/usr/lib/*.so* $fs/usr/lib
54 cp -a $install/usr/lib/cherokee/*.so* $fs/usr/lib/cherokee
55 cp -a $install/usr/share/cherokee $fs/usr/share
56 cp -a $install/var $fs
57 cp -a $install/etc $fs
58 cp -a $stuff/cherokee $fs/etc/init.d
59 ;;
60 cherokee-dev)
61 CAT="development|devel files for cherokee"
62 DEPENDS="cherokee pkg-config"
63 mkdir -p $fs/usr/lib/cherokee $fs/usr/share
64 cp -a $install/usr/lib/*.*a $fs/usr/lib
65 cp -a $install/usr/lib/cherokee/*.*a $fs/usr/lib/cherokee
66 cp -a $install/usr/lib/pkgconfig $fs/usr/lib
67 cp -a $install/usr/share/aclocal $fs/usr/share
68 ;;
69 cherokee-doc)
70 CAT="misc|Docs for cherokee"
71 DEPENDS="cherokee"
72 mkdir -p $fs/usr/share
73 cp -a $install/usr/share/doc $fs/usr/share
74 ;;
75 esac
76 }