wok-next view cherokee/receipt @ rev 20513

A lot of tiny edits; remove wget and pkg-build from $BUILD_DEPENDS and from *-dev packages $DEPENDS.
author Aleksej Bobylev <al.bobylev@gmail.com>
date Wed Mar 21 15:58:17 2018 +0200 (2018-03-21)
parents 384441c3ddea
children 757d032c55c7
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 mkdir -p $fs/usr/lib/cherokee $fs/usr/share
62 cp -a $install/usr/lib/*.*a $fs/usr/lib
63 cp -a $install/usr/lib/cherokee/*.*a $fs/usr/lib/cherokee
64 cp -a $install/usr/lib/pkgconfig $fs/usr/lib
65 cp -a $install/usr/share/aclocal $fs/usr/share
66 ;;
67 cherokee-doc)
68 CAT="misc|Docs for cherokee"
69 DEPENDS="cherokee"
70 mkdir -p $fs/usr/share
71 cp -a $install/usr/share/doc $fs/usr/share
72 ;;
73 esac
74 }