summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'www-servers')
-rw-r--r--www-servers/cherokee/ChangeLog10
-rw-r--r--www-servers/cherokee/Manifest5
-rw-r--r--www-servers/cherokee/cherokee-0.6.0.ebuild113
-rw-r--r--www-servers/cherokee/files/cherokee-initd-0.624
4 files changed, 149 insertions, 3 deletions
diff --git a/www-servers/cherokee/ChangeLog b/www-servers/cherokee/ChangeLog
index 4f2bc6cfffdc..0f5696457f89 100644
--- a/www-servers/cherokee/ChangeLog
+++ b/www-servers/cherokee/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for www-servers/cherokee
-# Copyright 2002-2006 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/www-servers/cherokee/ChangeLog,v 1.35 2006/12/27 14:53:17 flameeyes Exp $
+# Copyright 2002-2008 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/www-servers/cherokee/ChangeLog,v 1.36 2008/03/17 16:02:17 bass Exp $
+
+*cherokee-0.6.0 (17 Mar 2008)
+
+ 17 Mar 2008; J. Alberto Suárez López <bass@gentoo.org>
+ +files/cherokee-initd-0.6, +cherokee-0.6.0.ebuild:
+ New version. Include admin interface.
27 Dec 2006; Diego Pettenò <flameeyes@gentoo.org> metadata.xml:
Fix the metadata giving this back to BaSS, sorry for the misunderstanding.
diff --git a/www-servers/cherokee/Manifest b/www-servers/cherokee/Manifest
index 187b768e211f..79056f165dfe 100644
--- a/www-servers/cherokee/Manifest
+++ b/www-servers/cherokee/Manifest
@@ -3,7 +3,10 @@ AUX cherokee-0.5.6-gnutls-pkgconfig.patch 553 RMD160 209761a11fb856b9465fbfd03c9
AUX cherokee-0.5.6-replace-with-sed.patch 805 RMD160 b8398d4bcf86ef6480333382ee70fac21c39a355 SHA1 7ef02e1cf7ae62b87a448802fb03eb0f9a7ccdb0 SHA256 abcee67605d09ebf1c9ab397a8cb1e5c7a4ea1b50cada4b89a46a1bbf94223df
AUX cherokee-0.5.6-sendfile-crosscompile.patch 615 RMD160 13359b59d8bd4a0971fc5fefbb1c3be6396f829e SHA1 a8b61dd4679dc6614c9351e36d3e73e44c595fcb SHA256 a6cb6bb6f70a62e241eaed9aa1900aa375ab287c1d5acabac6a58cdbe8ba4465
AUX cherokee-initd-0.5.6 587 RMD160 50ab8f40e9258c96685373ad38f9440ca8b496b5 SHA1 b716cac0116c8177e8d0c8064b8500ed90619154 SHA256 09985375cc821db0c12fed621d505bad134acfb578432b1a940216f5e83a5551
+AUX cherokee-initd-0.6 609 RMD160 dfd17f050f9e5a3b53f99a15d099b7af771a1e60 SHA1 b4e011e27354bf52315826eb60d70fd42bcaf8d5 SHA256 bd2f0066f304addfad5a8720e4e04f42a469edbd0e0d4d0516ac19bb4a97a5ab
DIST cherokee-0.5.6.tar.gz 1392282 RMD160 fd5661449bd845e3be1911490f02144a805f5c9f SHA1 5e437c2315782bc6ac1d98f8db3b7838313a229a SHA256 d19ac8a85c252ccfe04c06ce0ec9b03d036b27d07c6db4601ce7d6b33c4e9cc8
+DIST cherokee-0.6.0.tar.gz 2494621 RMD160 82def24f5ec981b86cb45f235ed3c829dc3a7d22 SHA1 8e9d0ea41e3c9f8e5895e2550c674988b2df078e SHA256 58c13ffc71f2c3ed03cd258fba8d4b916310559aae2bdc89f57f4e609cf9e42c
EBUILD cherokee-0.5.6.ebuild 2673 RMD160 a9083e76122aef92f7cdaf74d1e1764dbdebe4ca SHA1 4018a37716e445136e38250e22906db30de07b9a SHA256 25225e0b44aacb9e9eaf5de68f5e544023153b6ac40e8fd8581392a6b3cb2f4f
-MISC ChangeLog 11882 RMD160 2280b252532545aab598439cee41fbf591342d40 SHA1 57792e5880a9abd7f4663cae509e7eb87c63d1b5 SHA256 e70649cd0fd84e5fd76331e85a42f4d678e09d253848c83ea3af701605f10def
+EBUILD cherokee-0.6.0.ebuild 2917 RMD160 4f3be8d26dd88a201f88bb76e15874c49fba3da4 SHA1 e2a0f975a7c0e07f19bc13e14e40ec4e4cdd1299 SHA256 a1129178b02e896989ba7dc5dde8e8ec9c3e486f4964ec55b2587fb3a8bb538b
+MISC ChangeLog 12061 RMD160 1d776c495fc462168c1d38a7bc7e90644aa3143c SHA1 1e1313b3e94b0d60891bca0c39b779f51761643a SHA256 07f56d614711327b3681536f421b8dac3a628886201e9cbe496887b8390d015d
MISC metadata.xml 278 RMD160 289661471d4556515a01a6ddffe61500fbddfadc SHA1 0b1c28d6446aba4197173c104b24151fa362dbd6 SHA256 db15e152ee6f7005958cf6e736c0c2527d872993f571df5603a3fe8009a77653
diff --git a/www-servers/cherokee/cherokee-0.6.0.ebuild b/www-servers/cherokee/cherokee-0.6.0.ebuild
new file mode 100644
index 000000000000..8abfb545d5e7
--- /dev/null
+++ b/www-servers/cherokee/cherokee-0.6.0.ebuild
@@ -0,0 +1,113 @@
+# Copyright 1999-2008 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/www-servers/cherokee/cherokee-0.6.0.ebuild,v 1.1 2008/03/17 16:02:17 bass Exp $
+
+WANT_AUTOCONF="latest"
+WANT_AUTOMAKE="latest"
+
+inherit eutils pam versionator libtool autotools
+
+DESCRIPTION="An extremely fast and tiny web server."
+SRC_URI="http://www.cherokee-project.com/download/$(get_version_component_range 1-2)/${PV}/${P}.tar.gz"
+HOMEPAGE="http://www.cherokee-project.com/"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~sparc ~x86"
+IUSE="ipv6 ssl gnutls static pam coverpage threads kernel_linux admin"
+
+RDEPEND=">=sys-libs/zlib-1.1.4-r1
+ ssl? (
+ gnutls? ( net-libs/gnutls )
+ !gnutls? ( dev-libs/openssl )
+ )
+ pam? ( virtual/pam )
+ admin? ( dev-lang/python )"
+DEPEND="${RDEPEND}"
+
+#S="${WORKDIR}/${P}b1240"
+
+src_compile() {
+ local myconf
+
+ if use ssl && use gnutls ; then
+ myconf="${myconf} --enable-tls=gnutls"
+ elif use ssl && ! use gnutls ; then
+ myconf="${myconf} --enable-tls=openssl"
+ else
+ myconf="${myconf} --disable-tls"
+ fi
+
+ if use static ; then
+ myconf="${myconf} --enable-static --enable-static-module=all"
+ else
+ myconf="${myconf} --disable-static"
+ fi
+
+ local os="Unknown"
+ case "${CHOST}" in
+ *-freebsd*)
+ os="FreeBSD" ;;
+ *-netbsd*)
+ os="NetBSD" ;;
+ *-openbsd*)
+ os="OpenBSD" ;;
+ *)
+ os="Linux" ;;
+ esac
+
+ econf \
+ ${myconf} \
+ $(use_enable pam) \
+ $(use_enable ipv6) \
+ $(use_enable threads pthread) \
+ $(use_enable kernel_linux epoll) \
+ --disable-dependency-tracking \
+ --enable-os-string="Gentoo ${os}" \
+ --with-wwwroot=/var/www/localhost/htdocs \
+ --prefix=/usr \
+ --sysconfdir=/etc \
+ --localstatedir=/var \
+ || die "configure failed"
+
+ emake || die "emake failed"
+}
+
+src_install () {
+ emake -j1 DESTDIR="${D}" docdir="/usr/share/doc/${PF}/html" install || die "make install failed"
+ dodoc AUTHORS ChangeLog TODO
+
+ newpamd pam.d_cherokee ${PN} || die "newpamd failed"
+ newinitd "${FILESDIR}/${PN}-initd-0.6" ${PN} || die "newinitd failed"
+
+ dodir /usr/share/doc/contrib
+ insinto /usr/share/doc/contrib
+ doins contrib/05to06.py
+
+ keepdir /etc/cherokee/mods-enabled /etc/cherokee/sites-enabled /var/www/localhost/htdocs
+
+ use coverpage || rm -rf "${D}"/var/www/localhost/htdocs/{index.html,images}
+ use admin || rm -rf "${D}"/usr/sbin/admin "${D}"/usr/share/cherokee/admin
+
+}
+
+pkg_postinst() {
+ enewgroup cherokee
+ enewuser cherokee -1 -1 /var/www/localhost cherokee
+
+ if use admin ; then
+ echo ""
+ elog "Just run 'cherokee-admin' and go to: http://localhost:9090"
+ echo ""
+ else
+ echo ""
+ elog "Try USE=admin if you want a easy way to configure cherokee."
+ echo ""
+ fi
+
+ echo ""
+ elog "Cherokee conf is quite different in 0.6.x series. You must use"
+ elog " cherokee-admin to create a new config or use /usr/share/doc/contrib/05to06.py"
+ elog " to export your old config (not ever works)."
+ echo ""
+}
diff --git a/www-servers/cherokee/files/cherokee-initd-0.6 b/www-servers/cherokee/files/cherokee-initd-0.6
new file mode 100644
index 000000000000..6f9c7cfd0c8d
--- /dev/null
+++ b/www-servers/cherokee/files/cherokee-initd-0.6
@@ -0,0 +1,24 @@
+#!/sbin/runscript
+# Copyright 1999-2004 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/www-servers/cherokee/files/cherokee-initd-0.6,v 1.1 2008/03/17 16:02:18 bass Exp $
+
+PIDFILE=/var/run/cherokee-guardian.pid
+
+depend() {
+ need net
+}
+
+start() {
+ ebegin "Starting Cherokee Web Server"
+ start-stop-daemon --start -b --pidfile ${PIDFILE} \
+ --exec /usr/sbin/cherokee-guardian
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping Cherokee Web Server"
+ start-stop-daemon --stop -s 9 --pidfile ${PIDFILE} \
+ --exec /usr/sbin/cherokee-guardian
+ eend $?
+}