wok rev 7226

Add cherokee. A very fast, fiexiable and easy to configure Web Server.
author Christopher Rogers <slaxemulator@gmail.com>
date Thu Nov 11 21:14:20 2010 +0000 (2010-11-11)
parents beb52b40ec13
children 6a288aadb6ba
files cherokee-dev/receipt cherokee-doc/receipt cherokee/receipt cherokee/stuff/cherokee cherokee/stuff/r5734-get-rid-of-package-py.patch
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/cherokee-dev/receipt	Thu Nov 11 21:14:20 2010 +0000
     1.3 @@ -0,0 +1,21 @@
     1.4 +# SliTaz package receipt.
     1.5 +
     1.6 +PACKAGE="cherokee-dev"
     1.7 +VERSION="1.0.9"
     1.8 +CATEGORY="development"
     1.9 +SHORT_DESC="devel files for cherokee"
    1.10 +MAINTAINER="slaxemulator@gmail.com"
    1.11 +DEPENDS="cherokee"
    1.12 +WEB_SITE="http://www.cherokee-project.com/"
    1.13 +WANTED="cherokee"
    1.14 +
    1.15 +# Rules to gen a SliTaz package suitable for Tazpkg.
    1.16 +genpkg_rules()
    1.17 +{
    1.18 +	mkdir -p $fs/usr/lib/cherokee $fs/usr/share
    1.19 +	cp -a $_pkg/usr/lib/*.*a $fs/usr/lib
    1.20 +	cp -a $_pkg/usr/lib/cherokee/*.*a $fs/usr/lib/cherokee
    1.21 +	cp -a $_pkg/usr/lib/pkgconfig $fs/usr/lib
    1.22 +	cp -a $_pkg/usr/share/aclocal $fs/usr/share
    1.23 +}
    1.24 +
     2.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     2.2 +++ b/cherokee-doc/receipt	Thu Nov 11 21:14:20 2010 +0000
     2.3 @@ -0,0 +1,18 @@
     2.4 +# SliTaz package receipt.
     2.5 +
     2.6 +PACKAGE="cherokee-doc"
     2.7 +VERSION="1.0.9"
     2.8 +CATEGORY="misc"
     2.9 +SHORT_DESC="Docs for cherokee"
    2.10 +MAINTAINER="slaxemulator@gmail.com"
    2.11 +DEPENDS="cherokee"
    2.12 +WEB_SITE="http://www.cherokee-project.com/"
    2.13 +WANTED="cherokee"
    2.14 +
    2.15 +# Rules to gen a SliTaz package suitable for Tazpkg.
    2.16 +genpkg_rules()
    2.17 +{
    2.18 +	mkdir -p $fs/usr/share
    2.19 +	cp -a $_pkg/usr/share/doc $fs/usr/share
    2.20 +}
    2.21 +
     3.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     3.2 +++ b/cherokee/receipt	Thu Nov 11 21:14:20 2010 +0000
     3.3 @@ -0,0 +1,46 @@
     3.4 +# SliTaz package receipt.
     3.5 +
     3.6 +PACKAGE="cherokee"
     3.7 +VERSION="1.0.9"
     3.8 +CATEGORY="network"
     3.9 +SHORT_DESC="A very fast, fiexible and easy to configure Web Server."
    3.10 +MAINTAINER="slaxemulator@gmail.com"
    3.11 +DEPENDS="pcre cyrus-sasl openssl python libmysqlclient libldap ffmpeg"
    3.12 +BUILD_DEPENDS="pcre-dev cyrus-sasl-dev openssl-dev openldap-dev python-dev pam-dev libmysqlclient ffmpeg-dev gettext autoconf automake"
    3.13 +TARBALL="$PACKAGE-$VERSION.tar.gz"
    3.14 +WEB_SITE="http://www.cherokee-project.com/"
    3.15 +WGET_URL="http://www.cherokee-project.com/download/1.0/$VERSION/$TARBALL"
    3.16 +
    3.17 +# Rules to configure and make the package.
    3.18 +compile_rules()
    3.19 +{
    3.20 +	cd $src
    3.21 +	# Use subdirectory for logs
    3.22 +	sed -i -r 's|(%localstatedir%/log)|\1/cherokee|' cherokee.conf.sample.pre
    3.23 +
    3.24 +	# http://code.google.com/p/cherokee/issues/detail?id=1034
    3.25 +	patch -Np3 -E -i ../stuff/r5734-get-rid-of-package-py.patch
    3.26 +	autoreconf -v
    3.27 +	./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var \
    3.28 +		--with-wwwroot=/var/www/cherokee --disable-static \
    3.29 +		--with-wwwuser=www --with-wwwgroup=www \
    3.30 +		--enable-os-string="SliTaz" \
    3.31 +		$CONFIGURE_ARGS &&
    3.32 +	make && make DESTDIR=$PWD/_pkg install
    3.33 +	install -D -m644 pam.d_cherokee $PWD/_pkg/etc/pam.d/$PACKAGE
    3.34 +}
    3.35 +
    3.36 +# Rules to gen a SliTaz package suitable for Tazpkg.
    3.37 +genpkg_rules()
    3.38 +{
    3.39 +	mkdir -p $fs/usr/lib/cherokee $fs/usr/share $fs/etc/init.d
    3.40 +	cp -a $_pkg/usr/bin $fs/usr
    3.41 +	cp -a $_pkg/usr/sbin $fs/usr
    3.42 +	cp -a $_pkg/usr/lib/*.so* $fs/usr/lib
    3.43 +	cp -a $_pkg/usr/lib/cherokee/*.so* $fs/usr/lib/cherokee
    3.44 +	cp -a $_pkg/usr/share/cherokee $fs/usr/share
    3.45 +	cp -a $_pkg/var $fs
    3.46 +	cp -a $_pkg/etc $fs
    3.47 +	cp -a stuff/cherokee $fs/etc/init.d
    3.48 +}
    3.49 +
     4.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     4.2 +++ b/cherokee/stuff/cherokee	Thu Nov 11 21:14:20 2010 +0000
     4.3 @@ -0,0 +1,61 @@
     4.4 +#!/bin/sh
     4.5 +# /etc/init.d/cherokee: Start, stop and restart Cherokee web server on SliTaz, 
     4.6 +# at boot time or with the command line. Daemons options are configured
     4.7 +# with /etc/daemons.conf
     4.8 +#
     4.9 +. /etc/init.d/rc.functions
    4.10 +. /etc/daemons.conf
    4.11 +
    4.12 +NAME=Cherokee
    4.13 +DESC="Cherokee Web Server"
    4.14 +DAEMON=/usr/sbin/cherokee
    4.15 +OPTIONS=
    4.16 +PIDFILE=/var/run/cherokee.pid
    4.17 +
    4.18 +case "$1" in
    4.19 +  start)
    4.20 +    if active_pidfile $PIDFILE cherokee ; then
    4.21 +      echo "$NAME already running."
    4.22 +      exit 1
    4.23 +    fi
    4.24 +    echo -n "Starting $DESC: $NAME... "
    4.25 +    $DAEMON $OPTIONS -k start 
    4.26 +    status
    4.27 +    ;;
    4.28 +  stop)
    4.29 +    if ! active_pidfile $PIDFILE cherokee ; then
    4.30 +      echo "$NAME is not running."
    4.31 +      exit 1
    4.32 +    fi
    4.33 +    echo -n "Stopping $DESC: $NAME... "
    4.34 +    $DAEMON $OPTION -k stop
    4.35 +    rm $PIDFILE
    4.36 +    status
    4.37 +    ;;
    4.38 +  reload)
    4.39 +    if ! active_pidfile $PIDFILE cherokee ; then
    4.40 +      echo "$NAME is not running."
    4.41 +      exit 1
    4.42 +    fi
    4.43 +    echo -n "Stopping $DESC: $NAME... "
    4.44 +    $DAEMON $OPTION -k graceful
    4.45 +    status
    4.46 +    ;;
    4.47 +  restart)
    4.48 +    if ! active_pidfile $PIDFILE cherokee ; then
    4.49 +      echo "$NAME is not running."
    4.50 +      exit 1
    4.51 +    fi
    4.52 +    echo -n "Restarting $DESC: $NAME... "
    4.53 +    $DAEMON $OPTIONS -k restart
    4.54 +    status
    4.55 +    ;;
    4.56 +  *)
    4.57 +    echo ""
    4.58 +    echo -e "\033[1mUsage:\033[0m /etc/init.d/`basename $0` [start|stop|reload|restart]"
    4.59 +    echo ""
    4.60 +    exit 1
    4.61 +    ;;
    4.62 +esac
    4.63 +
    4.64 +exit 0
     5.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     5.2 +++ b/cherokee/stuff/r5734-get-rid-of-package-py.patch	Thu Nov 11 21:14:20 2010 +0000
     5.3 @@ -0,0 +1,49 @@
     5.4 +Index: /cherokee/trunk/admin/market/Makefile.am
     5.5 +===================================================================
     5.6 +--- /cherokee/trunk/admin/market/Makefile.am	(revision 5670)
     5.7 ++++ /cherokee/trunk/admin/market/Makefile.am	(revision 5734)
     5.8 +@@ -7,5 +7,4 @@
     5.9 + Install_Log.py \
    5.10 + Menu.py \
    5.11 +-Package.py \
    5.12 + PageApp.py \
    5.13 + PageCategory.py \
    5.14 +Index: /erokee/trunk/admin/market/Package.py
    5.15 +===================================================================
    5.16 +--- /cherokee/trunk/admin/market/Package.py	(revision 5460)
    5.17 ++++ 	(revision )
    5.18 +@@ -1,34 +1,0 @@
    5.19 +-# -*- coding: utf-8 -*-
    5.20 +-#
    5.21 +-# Cherokee-admin
    5.22 +-#
    5.23 +-# Authors:
    5.24 +-#      Alvaro Lopez Ortega <alvaro@alobbs.com>
    5.25 +-#
    5.26 +-# Copyright (C) 2001-2010 Alvaro Lopez Ortega
    5.27 +-#
    5.28 +-# This program is free software; you can redistribute it and/or
    5.29 +-# modify it under the terms of version 2 of the GNU General Public
    5.30 +-# License as published by the Free Software Foundation.
    5.31 +-#
    5.32 +-# This program is distributed in the hope that it will be useful,
    5.33 +-# but WITHOUT ANY WARRANTY; without even the implied warranty of
    5.34 +-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    5.35 +-# GNU General Public License for more details.
    5.36 +-#
    5.37 +-# You should have received a copy of the GNU General Public License
    5.38 +-# along with this program; if not, write to the Free Software
    5.39 +-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
    5.40 +-# 02110-1301, USA.
    5.41 +-#
    5.42 +-
    5.43 +-class Package_Install_Widget (CTK.Box):
    5.44 +-    def __init__ (self, package_local_path):
    5.45 +-        Box.__init__ (self)
    5.46 +-
    5.47 +-        self.status_uncompress = CTK.ImageStock('loading')
    5.48 +-        self.status_setup      = CTK.ImageStock('loading')
    5.49 +-
    5.50 +-        table  = CTK.Table()
    5.51 +-        table += [CTK.RawHTML ("Uncompress"),
    5.52 +-