wok-current view cherokee/receipt @ rev 10272

WARNING: revert libcap update 2.21 dont build and it a bas package (STOP UPDATE just FIXES)
author Christophe Lincoln <pankso@slitaz.org>
date Sat May 21 18:13:30 2011 +0200 (2011-05-21)
parents 21d63521b096
children 4de59d145d66
line source
1 # SliTaz package receipt.
3 PACKAGE="cherokee"
4 VERSION="1.2.1"
5 CATEGORY="network"
6 SHORT_DESC="A very fast, fiexible and easy to configure Web Server."
7 MAINTAINER="slaxemulator@gmail.com"
8 DEPENDS="pcre cyrus-sasl openssl python libmysqlclient libldap ffmpeg"
9 BUILD_DEPENDS="pcre-dev cyrus-sasl-dev openssl-dev openldap-dev python-dev pam-dev libmysqlclient ffmpeg-dev gettext autoconf automake"
10 TARBALL="$PACKAGE-$VERSION.tar.gz"
11 WEB_SITE="http://www.cherokee-project.com/"
12 WGET_URL="http://www.cherokee-project.com/download/1.2/$VERSION/$TARBALL"
14 # Rules to configure and make the package.
15 compile_rules()
16 {
17 cd $src
18 # Use subdirectory for logs
19 sed -i -r 's|(%localstatedir%/log)|\1/cherokee|' cherokee.conf.sample.pre
21 autoreconf -v
22 ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var \
23 --with-wwwroot=/var/www/cherokee --disable-static \
24 --with-wwwuser=www --with-wwwgroup=www \
25 --enable-os-string="SliTaz" \
26 $CONFIGURE_ARGS &&
27 make && make DESTDIR=$PWD/_pkg install
28 install -D -m644 pam.d_cherokee $PWD/_pkg/etc/pam.d/$PACKAGE
29 }
31 # Rules to gen a SliTaz package suitable for Tazpkg.
32 genpkg_rules()
33 {
34 mkdir -p $fs/usr/lib/cherokee $fs/usr/share $fs/etc/init.d
35 cp -a $_pkg/usr/bin $fs/usr
36 cp -a $_pkg/usr/sbin $fs/usr
37 cp -a $_pkg/usr/lib/*.so* $fs/usr/lib
38 cp -a $_pkg/usr/lib/cherokee/*.so* $fs/usr/lib/cherokee
39 cp -a $_pkg/usr/share/cherokee $fs/usr/share
40 cp -a $_pkg/var $fs
41 cp -a $_pkg/etc $fs
42 cp -a $stuff/cherokee $fs/etc/init.d
43 }