# HG changeset patch # User Christopher Rogers # Date 1289510060 0 # Node ID 62878a4251d0b278646ba92d45585682514afad3 # Parent beb52b40ec1352e7114a6d20a5a5a7e0094abc5b Add cherokee. A very fast, fiexiable and easy to configure Web Server. diff -r beb52b40ec13 -r 62878a4251d0 cherokee-dev/receipt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/cherokee-dev/receipt Thu Nov 11 21:14:20 2010 +0000 @@ -0,0 +1,21 @@ +# SliTaz package receipt. + +PACKAGE="cherokee-dev" +VERSION="1.0.9" +CATEGORY="development" +SHORT_DESC="devel files for cherokee" +MAINTAINER="slaxemulator@gmail.com" +DEPENDS="cherokee" +WEB_SITE="http://www.cherokee-project.com/" +WANTED="cherokee" + +# Rules to gen a SliTaz package suitable for Tazpkg. +genpkg_rules() +{ + mkdir -p $fs/usr/lib/cherokee $fs/usr/share + cp -a $_pkg/usr/lib/*.*a $fs/usr/lib + cp -a $_pkg/usr/lib/cherokee/*.*a $fs/usr/lib/cherokee + cp -a $_pkg/usr/lib/pkgconfig $fs/usr/lib + cp -a $_pkg/usr/share/aclocal $fs/usr/share +} + diff -r beb52b40ec13 -r 62878a4251d0 cherokee-doc/receipt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/cherokee-doc/receipt Thu Nov 11 21:14:20 2010 +0000 @@ -0,0 +1,18 @@ +# SliTaz package receipt. + +PACKAGE="cherokee-doc" +VERSION="1.0.9" +CATEGORY="misc" +SHORT_DESC="Docs for cherokee" +MAINTAINER="slaxemulator@gmail.com" +DEPENDS="cherokee" +WEB_SITE="http://www.cherokee-project.com/" +WANTED="cherokee" + +# Rules to gen a SliTaz package suitable for Tazpkg. +genpkg_rules() +{ + mkdir -p $fs/usr/share + cp -a $_pkg/usr/share/doc $fs/usr/share +} + diff -r beb52b40ec13 -r 62878a4251d0 cherokee/receipt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/cherokee/receipt Thu Nov 11 21:14:20 2010 +0000 @@ -0,0 +1,46 @@ +# SliTaz package receipt. + +PACKAGE="cherokee" +VERSION="1.0.9" +CATEGORY="network" +SHORT_DESC="A very fast, fiexible and easy to configure Web Server." +MAINTAINER="slaxemulator@gmail.com" +DEPENDS="pcre cyrus-sasl openssl python libmysqlclient libldap ffmpeg" +BUILD_DEPENDS="pcre-dev cyrus-sasl-dev openssl-dev openldap-dev python-dev pam-dev libmysqlclient ffmpeg-dev gettext autoconf automake" +TARBALL="$PACKAGE-$VERSION.tar.gz" +WEB_SITE="http://www.cherokee-project.com/" +WGET_URL="http://www.cherokee-project.com/download/1.0/$VERSION/$TARBALL" + +# Rules to configure and make the package. +compile_rules() +{ + cd $src + # Use subdirectory for logs + sed -i -r 's|(%localstatedir%/log)|\1/cherokee|' cherokee.conf.sample.pre + + # http://code.google.com/p/cherokee/issues/detail?id=1034 + patch -Np3 -E -i ../stuff/r5734-get-rid-of-package-py.patch + autoreconf -v + ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var \ + --with-wwwroot=/var/www/cherokee --disable-static \ + --with-wwwuser=www --with-wwwgroup=www \ + --enable-os-string="SliTaz" \ + $CONFIGURE_ARGS && + make && make DESTDIR=$PWD/_pkg install + install -D -m644 pam.d_cherokee $PWD/_pkg/etc/pam.d/$PACKAGE +} + +# Rules to gen a SliTaz package suitable for Tazpkg. +genpkg_rules() +{ + mkdir -p $fs/usr/lib/cherokee $fs/usr/share $fs/etc/init.d + cp -a $_pkg/usr/bin $fs/usr + cp -a $_pkg/usr/sbin $fs/usr + cp -a $_pkg/usr/lib/*.so* $fs/usr/lib + cp -a $_pkg/usr/lib/cherokee/*.so* $fs/usr/lib/cherokee + cp -a $_pkg/usr/share/cherokee $fs/usr/share + cp -a $_pkg/var $fs + cp -a $_pkg/etc $fs + cp -a stuff/cherokee $fs/etc/init.d +} + diff -r beb52b40ec13 -r 62878a4251d0 cherokee/stuff/cherokee --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/cherokee/stuff/cherokee Thu Nov 11 21:14:20 2010 +0000 @@ -0,0 +1,61 @@ +#!/bin/sh +# /etc/init.d/cherokee: Start, stop and restart Cherokee web server on SliTaz, +# at boot time or with the command line. Daemons options are configured +# with /etc/daemons.conf +# +. /etc/init.d/rc.functions +. /etc/daemons.conf + +NAME=Cherokee +DESC="Cherokee Web Server" +DAEMON=/usr/sbin/cherokee +OPTIONS= +PIDFILE=/var/run/cherokee.pid + +case "$1" in + start) + if active_pidfile $PIDFILE cherokee ; then + echo "$NAME already running." + exit 1 + fi + echo -n "Starting $DESC: $NAME... " + $DAEMON $OPTIONS -k start + status + ;; + stop) + if ! active_pidfile $PIDFILE cherokee ; then + echo "$NAME is not running." + exit 1 + fi + echo -n "Stopping $DESC: $NAME... " + $DAEMON $OPTION -k stop + rm $PIDFILE + status + ;; + reload) + if ! active_pidfile $PIDFILE cherokee ; then + echo "$NAME is not running." + exit 1 + fi + echo -n "Stopping $DESC: $NAME... " + $DAEMON $OPTION -k graceful + status + ;; + restart) + if ! active_pidfile $PIDFILE cherokee ; then + echo "$NAME is not running." + exit 1 + fi + echo -n "Restarting $DESC: $NAME... " + $DAEMON $OPTIONS -k restart + status + ;; + *) + echo "" + echo -e "\033[1mUsage:\033[0m /etc/init.d/`basename $0` [start|stop|reload|restart]" + echo "" + exit 1 + ;; +esac + +exit 0 diff -r beb52b40ec13 -r 62878a4251d0 cherokee/stuff/r5734-get-rid-of-package-py.patch --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/cherokee/stuff/r5734-get-rid-of-package-py.patch Thu Nov 11 21:14:20 2010 +0000 @@ -0,0 +1,49 @@ +Index: /cherokee/trunk/admin/market/Makefile.am +=================================================================== +--- /cherokee/trunk/admin/market/Makefile.am (revision 5670) ++++ /cherokee/trunk/admin/market/Makefile.am (revision 5734) +@@ -7,5 +7,4 @@ + Install_Log.py \ + Menu.py \ +-Package.py \ + PageApp.py \ + PageCategory.py \ +Index: /erokee/trunk/admin/market/Package.py +=================================================================== +--- /cherokee/trunk/admin/market/Package.py (revision 5460) ++++ (revision ) +@@ -1,34 +1,0 @@ +-# -*- coding: utf-8 -*- +-# +-# Cherokee-admin +-# +-# Authors: +-# Alvaro Lopez Ortega +-# +-# Copyright (C) 2001-2010 Alvaro Lopez Ortega +-# +-# This program is free software; you can redistribute it and/or +-# modify it under the terms of version 2 of the GNU General Public +-# License as published by the Free Software Foundation. +-# +-# This program is distributed in the hope that it will be useful, +-# but WITHOUT ANY WARRANTY; without even the implied warranty of +-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +-# GNU General Public License for more details. +-# +-# You should have received a copy of the GNU General Public License +-# along with this program; if not, write to the Free Software +-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA +-# 02110-1301, USA. +-# +- +-class Package_Install_Widget (CTK.Box): +- def __init__ (self, package_local_path): +- Box.__init__ (self) +- +- self.status_uncompress = CTK.ImageStock('loading') +- self.status_setup = CTK.ImageStock('loading') +- +- table = CTK.Table() +- table += [CTK.RawHTML ("Uncompress"), +-