diff options
author | 2009-02-20 17:30:40 +0000 | |
---|---|---|
committer | 2009-02-20 17:30:40 +0000 | |
commit | 6966c95ac07a9397c181d4dc04a645f06b6f15ff (patch) | |
tree | e045a5e0bd239b3810655607bde9de485c5b8dda | |
parent | Mark stable on x86 and amd64. (diff) | |
download | betelgeuse-6966c95ac07a9397c181d4dc04a645f06b6f15ff.tar.gz betelgeuse-6966c95ac07a9397c181d4dc04a645f06b6f15ff.tar.bz2 betelgeuse-6966c95ac07a9397c181d4dc04a645f06b6f15ff.zip |
Add live ebuild for cherokee
svn path=/; revision=177
-rw-r--r-- | www-servers/cherokee/ChangeLog | 388 | ||||
-rw-r--r-- | www-servers/cherokee/Manifest | 4 | ||||
-rw-r--r-- | www-servers/cherokee/cherokee-9999.ebuild | 108 | ||||
-rw-r--r-- | www-servers/cherokee/files/cherokee-initd-0.11 | 34 | ||||
-rw-r--r-- | www-servers/cherokee/metadata.xml | 13 |
5 files changed, 547 insertions, 0 deletions
diff --git a/www-servers/cherokee/ChangeLog b/www-servers/cherokee/ChangeLog new file mode 100644 index 0000000..1d95b88 --- /dev/null +++ b/www-servers/cherokee/ChangeLog @@ -0,0 +1,388 @@ +# ChangeLog for www-servers/cherokee +# Copyright 2002-2009 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/www-servers/cherokee/ChangeLog,v 1.47 2009/02/03 12:45:46 betelgeuse Exp $ + + 03 Feb 2009; Petteri Räty <betelgeuse@gentoo.org> cherokee-0.98.1.ebuild: + Block lighttpd until spawn-fcgi collision is fixed. See bug #224781. + +*cherokee-0.98.1 (02 Feb 2009) + + 02 Feb 2009; J. Alberto Suárez López <bass@gentoo.org> + -cherokee-0.11.6.ebuild, +cherokee-0.98.1.ebuild: + Version bump. Fix: #256617 #210830 #240458 + + 26 Dec 2008; J. Alberto Suárez López <bass@gentoo.org> ChangeLog: + Version bump + +*cherokee-0.9.0 (28 Sep 2008) + + 28 Sep 2008; J. Alberto Suárez López <bass@gentoo.org> + -cherokee-0.5.6.ebuild, -cherokee-0.6.0.ebuild, -cherokee-0.6.1.ebuild, + -cherokee-0.7.0.ebuild, -cherokee-0.7.2.ebuild, +cherokee-0.9.0.ebuild: + Version bump + +*cherokee-0.8.1 (02 Sep 2008) + + 02 Sep 2008; J. Alberto Suárez López <bass@gentoo.org> + +cherokee-0.8.1.ebuild: + Version bump + + 22 Aug 2008; Doug Goldstein <cardoe@gentoo.org> metadata.xml: + add GLEP 56 USE flag desc from use.local.desc + + 20 Jun 2008; Tiziano Müller <dev-zero@gentoo.org> + +files/cherokee-0.7.2-signed_unsigned_char.patch, cherokee-0.7.2.ebuild: + Added patch for authentication problem on ppc (upstream bug: + http://code.google.com/p/cherokee/issues/detail?id=45) + +*cherokee-0.7.2 (12 Jun 2008) + + 12 Jun 2008; J. Alberto Suárez López <bass@gentoo.org> + +cherokee-0.7.2.ebuild: + Version bump + +*cherokee-0.7.0 (03 Jun 2008) + + 03 Jun 2008; J. Alberto Suárez López <bass@gentoo.org> + +cherokee-0.7.0.ebuild: + Version bump + +*cherokee-0.6.1 (25 Mar 2008) + + 25 Mar 2008; J. Alberto Suárez López <bass@gentoo.org> + files/cherokee-initd-0.6, +cherokee-0.6.1.ebuild: + bump version + + 17 Mar 2008; J. Alberto Suárez López <bass@gentoo.org> + cherokee-0.6.0.ebuild: + fixed contrib path + +*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. + + 27 Dec 2006; Diego Pettenò <flameeyes@gentoo.org> + +files/cherokee-0.5.6-epoll-crosscompile.patch, + +files/cherokee-0.5.6-gnutls-pkgconfig.patch, + +files/cherokee-0.5.6-replace-with-sed.patch, + +files/cherokee-0.5.6-sendfile-crosscompile.patch, cherokee-0.5.6.ebuild: + Add patches to allow crosscompiling cherokee (submitted upstream as tickets + #121, #123 and #124); enable epoll on Linux kernel; use -j1 in install; + discover gnutls via pkg-config (upstream ticket #122) and make gnutls + useflag subordinate to ssl. + + 27 Dec 2006; Diego Pettenò <flameeyes@gentoo.org> cherokee-0.5.6.ebuild: + Add threads useflag to disable pthread support and also remove images + directory rather than just the index file. + + 27 Dec 2006; Diego Pettenò <flameeyes@gentoo.org> cherokee-0.5.6.ebuild: + Run elibtoolize to apply Gentoo patches as needed; install the default + index.html page only if coverpage useflag is enabled (not by default) to + avoid the nasty $ROOT lookup. + +*cherokee-0.5.6 (27 Dec 2006) + + 27 Dec 2006; Diego Pettenò <flameeyes@gentoo.org> + -files/cherokee-0.4.5-Makefile.am.patch, + -files/cherokee-0.4.5-cherokee.conf, -files/cherokee-0.4.5-init.d, + -files/cherokee-0.4.17-cherokee.conf, -files/cherokee-0.4.17-init.d, + -files/cherokee-0.4.21-no-handler_admin.diff, + -files/cherokee-0.4.25-fix-static.diff, +files/cherokee-initd-0.5.6, + -cherokee-0.5.2.ebuild, -cherokee-0.5.4.ebuild, -cherokee-0.5.5.ebuild, + +cherokee-0.5.6.ebuild: + Big new-maintainer cleanup. Bump to latest 0.5.6, remove old versions, + remove dead files in $FILESDIR, add new init.d file that leave to cherokee + to get into background. + + 27 Dec 2006; Diego Pettenò <flameeyes@gentoo.org> metadata.xml: + Metadata update, I'll take over maintainership (leaving www-servers as herd). + + 14 Dec 2006; Elfyn McBratney <beu@gentoo.org> cherokee-0.5.2.ebuild, + cherokee-0.5.4.ebuild, cherokee-0.5.5.ebuild: + Update HOMEPAGE/SRC_URI; fixes bug 157966. + + 02 Oct 2006; Daniel Gryniewicz <dang@gentoo.org> cherokee-0.5.5.ebuild: + Marked ~amd64 for bug #149342 + +*cherokee-0.5.5 (23 Sep 2006) + + 23 Sep 2006; J. Alberto Suárez López <bass@gentoo.org> + +cherokee-0.5.5.ebuild: + new version + +*cherokee-0.5.4 (18 Jul 2006) + + 31 Aug 2006; Matthias Schwarzott <zzam@gentoo.org> ChangeLog: + Removed the wrong byte out of 16 May 2005 changelog entry, makeing it no + longer irritate the pager less, Bug #144860. + + 18 Jul 2006; J. Alberto Suárez López <bass@gentoo.org> + -cherokee-0.4.30.ebuild, -cherokee-0.5.0.ebuild, -cherokee-0.5.1.ebuild, + +cherokee-0.5.4.ebuild: + version bump + +*cherokee-0.5.2 (17 Apr 2006) + + 17 Apr 2006; J. Alberto Suárez López <bass@gentoo.org> + +cherokee-0.5.2.ebuild: + New version. Important bugfix. + + 10 Apr 2006; J. Alberto Suárez López <bass@gentoo.org> + -cherokee-0.4.25.ebuild, -cherokee-0.4.29.ebuild, +cherokee-0.5.1.ebuild: + New version + +*cherokee-0.5.1 (10 Apr 2006) + + 10 Apr 2006; J. Alberto Suárez López <bass@gentoo.org> + -cherokee-0.4.25.ebuild, -cherokee-0.4.29.ebuild, +cherokee-0.5.1.ebuild: + New version + +*cherokee-0.5.0 (03 Apr 2006) + + 03 Apr 2006; J. Alberto Suárez López <bass@gentoo.oro> + +cherokee-0.5.0.ebuild: + Version bump. Added USE scgi and fcgi. + +*cherokee-0.4.30 (19 Jan 2006) + + 19 Jan 2006; josé Alberto Suárez López <bass@gentoo.org> + +cherokee-0.4.30.ebuild: + New version. + +*cherokee-0.4.29 (13 Nov 2005) + + 19 Jan 2006; josé Alberto Suárez López <bass@gentoo.org> + -cherokee-0.4.5.ebuild, -cherokee-0.4.17.ebuild, + -cherokee-0.4.17.1.ebuild, -cherokee-0.4.19.ebuild, + -cherokee-0.4.21.ebuild, -cherokee-0.4.21-r1.ebuild, + -cherokee-0.4.22.ebuild, -cherokee-0.4.23.ebuild, -cherokee-0.4.24.ebuild, + -cherokee-0.4.24-r1.ebuild, cherokee-0.4.29.ebuild: + Remove old ebuilds. + Marked 0.4.29 as stable in x86. + + 27 Dec 2005; josé Alberto Suárez López <bass@gentoo.org> + +files/cherokee-0.4.25-fix-static.diff, cherokee-0.4.23.ebuild, + cherokee-0.4.24.ebuild, cherokee-0.4.24-r1.ebuild, cherokee-0.4.25.ebuild, + cherokee-0.4.29.ebuild: + Improve ebuild to solve a few bugs (thanks ka0ttic). + Removed "PIC" abuse in some ebuilds. + Cleaned some old ebuilds. + + 13 Nov 2005; josé Alberto Suárez López <bass@gentoo.org> + +cherokee-0.4.29.ebuild: + new version + +*cherokee-0.4.25 (04 Aug 2005) + + 28 Aug 2005; josé Alberto Suárez López <bass@gentoo.org> + cherokee-0.4.25.ebuild: + fixed typo + + 05 Aug 2005; Aaron Walker <ka0ttic@gentoo.org> cherokee-0.4.25.ebuild: + Remove call to epatch as the patch is no longer necessary; also removed + commented out line that contained a line continuation character, as it + doesnt work for obvious reasons... bug 101407. + + 04 Aug 2005; José Alberto Suárez López <bass@gentoo.org> + +cherokee-0.4.25.ebuild: + Bump version. + Fixed PIC bug and index.html overwrite + +*cherokee-0.4.24-r1 (19 Jul 2005) + + 19 Jul 2005; josé Alberto Suárez López <bass@gentoo.org> + +cherokee-0.4.24-r1.ebuild: + Now use=static is really static. + +*cherokee-0.4.24 (15 Jul 2005) + + 15 Jul 2005; josé Alberto Suárez López <bass@gentoo.org> + +cherokee-0.4.24.ebuild: + bump version + +*cherokee-0.4.23 (25 May 2005) + + 25 May 2005; <dang@gentoo.org> cherokee-0.4.23.ebuild: + keyword ~amd64 + + 16 May 2005; J.Alberto S.L. <bass@gentoo.org> +cherokee-0.4.23.ebuild: + Bump Version. Must fix pcc problems. + +*cherokee-0.4.22 (16 May 2005) + 16 May 2005; J.Alberto S.L. <bass@gentoo.org> +cherokee-0.4.22.ebuild: + Bump Version. + +*cherokee-0.4.21-r1 (16 May 2005) + 16 May 2005; J.Alberto S.L. <bass@gentoo.org> +cherokee-0.4.21-r1.ebuild: + Patch to no build handle-admin (thanks to ka0ttic) and a few USEs added + (ssl, gnutls, pic, static & ipv6). + +*cherokee-0.4.21 (11 May 2005) + + 11 May 2005; Aaron Walker <ka0ttic@gentoo.org> +cherokee-0.4.21.ebuild: + Version bump. + + 17 Apr 2005; Jason Wever <weeve@gentoo.org> cherokee-0.4.19.ebuild: + Added ~sparc keyword. + +*cherokee-0.4.19 (17 Apr 2005) + + 17 Apr 2005; Aaron Walker <ka0ttic@gentoo.org> + -files/cherokee-0.4.1-gcc3.patch, -cherokee-0.4.0.ebuild, + -cherokee-0.4.1.ebuild, -cherokee-0.4.4.ebuild, -cherokee-0.4.10.ebuild, + -cherokee-0.4.14.ebuild, -cherokee-0.4.15.ebuild, -cherokee-0.4.16.ebuild, + cherokee-0.4.17.1.ebuild, +cherokee-0.4.19.ebuild: + Version bump for bug 87447; fixed 0.4.17.1 and 0.4.19 to build with + >=net-libs/gnutls-1.2.0 for bug 86038. Also tidy'd the sleu of old ebuilds. + + 01 Nov 2004; Michael Hanselmann <hansmi@gentoo.org> + cherokee-0.4.17.1.ebuild: + Stable on ppc. + +*cherokee-0.4.17.1 (30 Oct 2004) + + 30 Oct 2004; Stuart Herbert <stuart@gentoo.org> + +files/cherokee-0.4.17-cherokee.conf, +cherokee-0.4.17.1.ebuild: + Version bump; addresses security bug #67667; thanks to Florian Schihabel + <florian.schihabel@gmx.net> for the report + + 06 Oct 2004; Olivier Crete <tester@gentoo.org> cherokee-0.4.17.ebuild: + Marked stable on x86 wrt security bug #66543 + + 05 Sep 2004; Sven Wegener <swegener@gentoo.org> cherokee-0.4.0.ebuild, + cherokee-0.4.1.ebuild, cherokee-0.4.10.ebuild, cherokee-0.4.14.ebuild, + cherokee-0.4.15.ebuild, cherokee-0.4.16.ebuild, cherokee-0.4.17.ebuild, + cherokee-0.4.4.ebuild, cherokee-0.4.5.ebuild: + Fixed ChangeLog header. Added missing IUSE, don't assign default to S and + updated dependencies. + + 03 Sep 2004; Pieter Van den Abeele <pvdabeel@gentoo.org> + cherokee-0.4.14.ebuild, cherokee-0.4.15.ebuild, cherokee-0.4.16.ebuild, + cherokee-0.4.17.ebuild: + Masked cherokee-0.4.17.ebuild stable for ppc + + 03 Sep 2004; Pieter Van den Abeele <pvdabeel@gentoo.org> + cherokee-0.4.14.ebuild, cherokee-0.4.15.ebuild, cherokee-0.4.16.ebuild: + Masked cherokee-0.4.16.ebuild stable for ppc + + 03 Sep 2004; Pieter Van den Abeele <pvdabeel@gentoo.org> + cherokee-0.4.14.ebuild, cherokee-0.4.15.ebuild: + Masked cherokee-0.4.15.ebuild stable for ppc + + 03 Sep 2004; Pieter Van den Abeele <pvdabeel@gentoo.org> + cherokee-0.4.14.ebuild: + Masked cherokee-0.4.14.ebuild stable for ppc + +*cherokee-0.4.15 (08 Aug 2004) + + 08 Aug 2004; Stuart Herbert <stuart@gentoo.org> +metadata.xml, + +files/cherokee-0.4.1-gcc3.patch, +files/cherokee-0.4.17-init.d, + +files/cherokee-0.4.5-Makefile.am.patch, + +files/cherokee-0.4.5-cherokee.conf, +files/cherokee-0.4.5-init.d, + +cherokee-0.4.0.ebuild, +cherokee-0.4.1.ebuild, +cherokee-0.4.10.ebuild, + +cherokee-0.4.14.ebuild, +cherokee-0.4.15.ebuild, +cherokee-0.4.16.ebuild, + +cherokee-0.4.17.ebuild, +cherokee-0.4.4.ebuild, +cherokee-0.4.5.ebuild: + Moved from net-www/cherokee to www-servers/cherokee. + +*cherokee-0.4.17 (20 Jul 2004) + + 20 Jul 2004; Martin Holzer <mholzer@gentoo.org> cherokee-0.4.17.ebuild, + files/cherokee-0.4.17-init.d: + Version bumped. Closes 56561 + + 01 Jul 2004; Jeremy Huddleston <eradicator@gentoo.org> + cherokee-0.4.10.ebuild, cherokee-0.4.14.ebuild, cherokee-0.4.15.ebuild, + cherokee-0.4.16.ebuild, cherokee-0.4.5.ebuild: + virtual/glibc -> virtual/libc + + 27 Apr 2004; Aron Griffis <agriffis@gentoo.org> cherokee-0.4.1.ebuild: + Add inherit eutils + + 26 Apr 2004; Aron Griffis <agriffis@gentoo.org> cherokee-0.4.0.ebuild: + Add die following econf for bug 48950 + + 17 Apr 2004; Jason Wever <weeve@gentoo.org> cherokee-0.4.5.ebuild: + Added ~sparc keyword. + +*cherokee-0.4.16 (15 Apr 2004) + + 15 Apr 2004; <bass@gentoo.org> cherokee-0.4.16.ebuild: + New version. + Removed the gnome-vfs support, the main cherokee-dev say this: + (00:33:56) Alo: quita lo de GNOME-VFS.. que eso sólo es un peligro + y no vale para nada en el mundo real :) + (gnome-vfs is dengerous and don't usefull in the real world) + (00:45:14) Alo: es un buen ejemplo de como hacer un handler + asincrono en Cherokee... :) + +*cherokee-0.4.15 (01 Apr 2004) + + 01 Apr 2004; <bass@gentoo.org> cherokee-0.4.15.ebuild: + New Version. + +*cherokee-0.4.14 (18 Mar 2004) + + 18 Mar 2004; <bass@gentoo.org> cherokee-0.4.14.ebuild: + Bumped version. + + 19 Mar 2004; David Holm <dholm@gentoo.org> cherokee-0.4.14.ebuild: + Added to ~ppc. + +*cherokee-0.4.10 (26 Feb 2004) + + 18 Mar 2004; <bass@gentoo.org> cherokee-0.4.10.ebuild: + Marked as stable in x86 + + 26 Feb 2004; <bass@gentoo.org> cherokee-0.4.10.ebuild: + Bumped version. Changed Url. + + 06 Dec 2003; <spider@gentoo.org> cherokee-0.4.5.ebuild: + Fixing the badly broken gnome deps + + 05 Oct 2003; Stuart Herbert <stuart@gentoo.org> files/cherokee-0.4.5-init.d: + Fixed announcement when stopping cherokee server + +*cherokee-0.4.5 (05 Oct 2003) + + 05 Oct 2003; Stuart Herbert <stuart@gentoo.org> cherokee-0.4.5.ebuild, + metadata.xml, files/cherokee-0.4.5-Makefile.am.patch, + files/cherokee-0.4.5-cherokee.conf, files/cherokee-0.4.5-init.d: + Updated to cherokee-0.4.5 + Added /etc/init.d/cherokee init script + Added Gentoo-ised default config file + Closes bug #27722 + +*cherokee-0.4.4 (25 Jul 2003) + + 25 Jul 2003; Daniel Ahlberg <aliz@gentoo.org> : + Version bump. Found by Eric Olinger <EvvL@RustedHalo.net> in #25158. + +*chrokee-4.1 (18 Mar 2003) + + 18 Mar 2003; J.Alberto Suárez L. <bass@gentoo.org> cherokee-4.1.ebuild: + Bumped version + +*cherokee-4.0.0 (11 Jan 2003) + + 10 Jan 2002; J.Alberto Suárez L. <bass@gentoo.org> cherokee-4.0.0.ebuild: + First relase. Beta5 version. + +*cherokee-0.4.0 (11 Jan 2003) + + 13 Jul 2003; Daniel Ahlberg <aliz@gentoo.org> : + Added missing changelog entry. + +*cherokee-0.4.1 (16 Mar 2003) + + 10 Mar 2004; Martin Holzer <mholzer@gentoo.org> cherokee-0.4.1.ebuild, + files/cherokee-0.4.1-gcc3.patch: + adding gcc3 fix. closes 41744 + + 13 Jul 2003; Daniel Ahlberg <aliz@gentoo.org> : + Added missing changelog entry. + diff --git a/www-servers/cherokee/Manifest b/www-servers/cherokee/Manifest new file mode 100644 index 0000000..f0e668b --- /dev/null +++ b/www-servers/cherokee/Manifest @@ -0,0 +1,4 @@ +AUX cherokee-initd-0.11 755 RMD160 834db29ec8492ea78d7f2698a8aaf327ec343d32 SHA1 82c1bc518f3439bf05daf0665caaafcd2ececac6 SHA256 9a666b509d62c27c46db88cec772a8758d54c18db2d02a8e2d3de6c712fdf2f9 +EBUILD cherokee-9999.ebuild 2684 RMD160 93382be9b8608b84e3243c35525a151a229cf016 SHA1 e3bfe80d5ca6f3cf476140ff20d992808137de8d SHA256 06a2bc9acb9ce10d6d8073cdf3e0d8c0cddb33fe21159e8bf22dc9b45551acc8 +MISC ChangeLog 13767 RMD160 bbc444714c5ccbad0636681fabfaa2dcaa6f81cd SHA1 4404a613c3ad383006fe3258d4997a66f65c8867 SHA256 e8fbedbeb08f2c992435ee84c1bd5e88842b68bc231edac20353e14a1bd3d24f +MISC metadata.xml 434 RMD160 bac321b7879fe7793087b221f20554e4b44a5975 SHA1 d77a40137b169af1715d9827f463e2219485a931 SHA256 9cb0163ef5aadb0cafb83c75615bb3f393f5484016695abd15db7ff6d2680f8b diff --git a/www-servers/cherokee/cherokee-9999.ebuild b/www-servers/cherokee/cherokee-9999.ebuild new file mode 100644 index 0000000..f1174fb --- /dev/null +++ b/www-servers/cherokee/cherokee-9999.ebuild @@ -0,0 +1,108 @@ +# Copyright 1999-2009 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/www-servers/cherokee/cherokee-0.98.1.ebuild,v 1.2 2009/02/03 12:45:46 betelgeuse Exp $ + +EAPI=2 +ESVN_REPO_URI="svn://svn.cherokee-project.com/cherokee/trunk" + +inherit eutils pam versionator libtool autotools subversion + +DESCRIPTION="An extremely fast and tiny web server." +SRC_URI="" +HOMEPAGE="http://www.cherokee-project.com/" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~x86" +IUSE="ipv6 ssl static pam coverpage threads kernel_linux admin debug" + +# lighttpd block should be resolved properly +# http://bugs.gentoo.org/show_bug.cgi?id=224781 +RDEPEND=" + !www-servers/lighttpd + >=sys-libs/zlib-1.1.4-r1 + ssl? ( dev-libs/openssl ) + pam? ( virtual/pam ) + admin? ( dev-lang/python )" +DEPEND="${RDEPEND}" + +src_prepare() { + eautoreconf +} + +src_configure() { + local myconf + + if use static ; then + myconf="${myconf} --enable-static --enable-static-module=all" + else + myconf="${myconf} --disable-static" + fi + + if use debug ; then + myconf="${myconf} --enable-trace" + fi + + local os="Unknown" + case "${CHOST}" in + *-freebsd*) + os="FreeBSD" ;; + *-netbsd*) + os="NetBSD" ;; + *-openbsd*) + os="OpenBSD" ;; + *) + os="Linux" ;; + esac + + # No options to enable or disable ssl since Cherokee 0.11 + 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" +} + +src_install () { + emake -j1 DESTDIR="${D}" docdir="/usr/share/doc/${PF}/html" install || die "make install failed" + dodoc AUTHORS ChangeLog || die + + use pam && pamd_mimic system-auth cherokee auth account session + newinitd "${FILESDIR}/${PN}-initd-0.11" ${PN} || die "newinitd failed" + + dodir /usr/share/doc/${PF}/contrib + insinto /usr/share/${PF}/contrib + doins contrib/07to08.py + doins contrib/08to09.py + doins contrib/09to010.py + doins contrib/011to098.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 +} diff --git a/www-servers/cherokee/files/cherokee-initd-0.11 b/www-servers/cherokee/files/cherokee-initd-0.11 new file mode 100644 index 0000000..b49f347 --- /dev/null +++ b/www-servers/cherokee/files/cherokee-initd-0.11 @@ -0,0 +1,34 @@ +#!/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.11,v 1.1 2008/12/26 09:04:43 bass Exp $ + +PIDFILE=/var/run/cherokee.pid + +opt="reload" + +depend() { + need net +} + +start() { + ebegin "Starting Cherokee Web Server" + start-stop-daemon --start -b --pidfile ${PIDFILE} \ + --exec /usr/sbin/cherokee + eend $? +} + +stop() { + ebegin "Stopping Cherokee Web Server" + start-stop-daemon --stop --pidfile ${PIDFILE} \ + --exec /usr/sbin/cherokee + eend $? +} + +reload() { + ebegin "Restarting Cherokee Web Server and closing all open connections" + start-stop-daemon --stop --pidfile ${PIDFILE} \ + --signal USR1 + eend $? +} + diff --git a/www-servers/cherokee/metadata.xml b/www-servers/cherokee/metadata.xml new file mode 100644 index 0000000..4d1ad9c --- /dev/null +++ b/www-servers/cherokee/metadata.xml @@ -0,0 +1,13 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>www-servers</herd> + <maintainer> + <email>bass@gentoo.org</email> + <name>José Alberto Suárez López</name> + </maintainer> + <use> + <flag name='admin'>Install web based cherokee conf tool</flag> + <flag name='coverpage'>Installs the default cherokee coverpage</flag> + </use> +</pkgmetadata> |