[Frugalware-darcs] upstart-mess: cherokee-0.5.6-3-i686

AlexExtreme alex at alex-smith.me.uk
Mon Apr 9 18:37:45 CEST 2007


Darcsweb-Url: http://darcs.frugalware.org/darcsweb/darcsweb.cgi?r=upstart-mess;a=darcs_commitdiff;h=20070409163628-46e39-1988dc9e1f5bbdaaa0c9bc0aed7b329aeb131ad4.gz;

[cherokee-0.5.6-3-i686
AlexExtreme <alex at alex-smith.me.uk>**20070409163628
  * Imported with Upstart job
] {
adddir ./source/network-extra/cherokee
addfile ./source/network-extra/cherokee/FrugalBuild
hunk ./source/network-extra/cherokee/FrugalBuild 1
+# Compiling time: 0.48 SBU
+# Maintainer: DNAku <DNAku at frugalware.org>
+# Contributor: Laszlo Dvornik <dvornik at gnome.hu>
+
+pkgname=cherokee
+pkgver=0.5.6
+pkgrel=3
+pkgdesc="A flexible, very fast, lightweight HTTP server"
+url="http://www.cherokee-project.com/"
+pkgurl="http://www.cherokee-project.com/download/"
+backup=(etc/cherokee/{sites-available/default,advanced.conf,cherokee.conf,icons.conf,mime.compression.types,mime.types})
+depends=('pcre' 'openssl' 'zlib' 'libgcrypt' 'php-cgi')
+groups=('network-extra')
+archs=('i686' 'x86_64')
+up2date="lynx -dump $pkgurl\$(lynx -dump $pkgurl|grep [0-9]/$|sed -n 's|.*/\([^/]*\)/|\1|;$ p')/|grep /$|sed 's|.*/\([^/]*\)/|\1|'|Fsort|sed -n '$ p'"
+source=($pkgurl/0.5/$pkgver/cherokee-$pkgver.tar.gz \
+	cherokee-job \
+	generatessl \
+	cherokee-php5-support.patch \
+	index.html \
+	http://frugalware.org/images/frugalware.png)
+sha1sums=('5e437c2315782bc6ac1d98f8db3b7838313a229a' \
+	  '320e9096e576f18811965bc7d35aec37b8cf315c' \
+	  '03171e23d5f2f2b2a11a4064230b0ee8823ba996' \
+	  '790d95f07ff1d7a2360755e3a95f1abfe46d2e4e' \
+	  '1b9446b810a71ea50efaa7d24c5919cb954983ef' \
+	  '62fdfe9e07b2b55be660bd107bb6e1c742d90a3e')
+
+build()
+{
+	# Fix path of php.
+	Fsed '/usr/lib/cgi-bin/' '/usr/lib/' cherokee/handler_phpcgi.c
+	# Put logs under /var/log/cherokee.
+	find -type f | xargs sed -i -e "s|/var/log|/var/log/cherokee|g"
+	Fconf  --enable-os-string="Frugalware Linux" \
+		--with-wwwroot=/var/www/cherokee \
+		--disable-pam --enable-tls=openssl \
+		--disable-dependency-tracking \
+		--with-gnu-ld
+	make CFLAGS="${CFLAGS}" || Fdie
+	Fmakeinstall
+	Fmkdir /var/log/cherokee
+	Fupstart cherokee
+	Fexe /etc/cherokee/ssl/generatessl
+	Frm /var/www/cherokee/index.html
+	Ffile index.html /var/www/cherokee/index.html
+	Ffile frugalware.png /var/www/cherokee/frugalware.png
+}
+
+# optimization OK
addfile ./source/network-extra/cherokee/cherokee-0.5.1.patch
hunk ./source/network-extra/cherokee/cherokee-0.5.1.patch 1
+diff -urN cherokee-0.5.1.orig/cherokee/table.c cherokee-0.5.1/cherokee/table.c
+--- cherokee-0.5.1.orig/cherokee/table.c	2006-04-01 16:50:24.000000000 +0200
++++ cherokee-0.5.1/cherokee/table.c	2006-04-10 18:47:39.000000000 +0200
+@@ -53,7 +53,7 @@
+ }
+ 
+ 
+-static inline void
++static void
+ del_item (void *avl_item, void *avl_param)
+ {
+ 	free (((item_t *)avl_item)->key);
addfile ./source/network-extra/cherokee/cherokee-job
hunk ./source/network-extra/cherokee/cherokee-job 1
+description     "Cherokee web server"
+author          "Alex Smith"
+
+start on started network
+stop on stopping shutdown
+
+exec /usr/sbin/cherokee >> /dev/null 2>&1
+respawn
addfile ./source/network-extra/cherokee/cherokee-php5-support.patch
hunk ./source/network-extra/cherokee/cherokee-php5-support.patch 1
+--- cherokee-0.5.1.orig/sites-default.sample.pre	2006-04-01 16:50:36.000000000 +0200
++++ cherokee-0.5.1/sites-default.sample.pre	2006-04-11 02:03:40.000000000 +0200
+@@ -165,6 +165,8 @@
+ ##       at the end of the file (higher priority)
+ ##
+ 
+-Extension php, php3, php4 {
+-		Handler phpcgi
++Extension php5, php {
++	Handler phpcgi {
++		Interpreter /usr/bin/php-cgi
++	}
+ }
addfile ./source/network-extra/cherokee/generatessl
hunk ./source/network-extra/cherokee/generatessl 1
+#!/bin/sh
+
+CERTNAME=cherokee.pem
+openssl req -days 1000 -new -x509 -nodes -out $CERTNAME -keyout $CERTNAME
+chmod 600 $CERTNAME
+openssl verify $CERTNAME
+if [ $? != 0 ]; then
+     \mv $CERTNAME $CERTNAME.not_valid
+fi
addfile ./source/network-extra/cherokee/index.html
hunk ./source/network-extra/cherokee/index.html 1
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
+
+<html>
+<head>
+	<title>It works!</title>
+	<meta http-equiv="Content-Type" content="text/html;charset=utf-8" >
+</head>
+
+<body>
+	<div style="text-align: center"><img src="frugalware.png" alt="Frugalware logo"></div>
+	<p>
+		If you are seeing this page, it means that you have successfully set up the Cherokee webserver on your Frugalware system! Now you need to put your content under the document root that is configured for Cherokee (by default this is /var/www/cherokee).
+	</p>
+	<p style="font-size: 0.8em; color: #999">Powered by Cherokee and Frugalware</p>
+</body>
+</html>
}


More information about the Frugalware-darcs mailing list