diff options
author | Matsuu Takuto <matsuu@gentoo.org> | 2011-10-17 16:24:30 +0000 |
---|---|---|
committer | Matsuu Takuto <matsuu@gentoo.org> | 2011-10-17 16:24:30 +0000 |
commit | 1c2c1fa3115e097ec0eb5d98efb46324d0f63892 (patch) | |
tree | 8ec34e1adaa166b8124e1b35ca0ec121c19b1aaf /www-servers | |
parent | Drop DEPRECATED flags, bug #387335 by Sven E; use vala:0.14 for libchamplain-... (diff) | |
download | gentoo-2-1c2c1fa3115e097ec0eb5d98efb46324d0f63892.tar.gz gentoo-2-1c2c1fa3115e097ec0eb5d98efb46324d0f63892.tar.bz2 gentoo-2-1c2c1fa3115e097ec0eb5d98efb46324d0f63892.zip |
Version bumped.
(Portage version: 2.1.10.27/cvs/Linux x86_64)
Diffstat (limited to 'www-servers')
-rw-r--r-- | www-servers/cherokee/ChangeLog | 11 | ||||
-rw-r--r-- | www-servers/cherokee/cherokee-1.0.12.ebuild | 156 | ||||
-rw-r--r-- | www-servers/cherokee/cherokee-1.2.0.ebuild | 157 | ||||
-rw-r--r-- | www-servers/cherokee/cherokee-1.2.1.ebuild | 157 | ||||
-rw-r--r-- | www-servers/cherokee/cherokee-1.2.100.ebuild (renamed from www-servers/cherokee/cherokee-1.2.98.ebuild) | 53 | ||||
-rw-r--r-- | www-servers/cherokee/cherokee-1.2.2.ebuild | 157 | ||||
-rw-r--r-- | www-servers/cherokee/files/cherokee-1.2.98-gentoo.patch | 26 | ||||
-rw-r--r-- | www-servers/cherokee/files/cherokee-initd-0.99.23 | 31 | ||||
-rw-r--r-- | www-servers/cherokee/files/cherokee-initd-1.2.0 | 39 | ||||
-rw-r--r-- | www-servers/cherokee/files/cherokee-initd-1.2.98 | 66 |
10 files changed, 47 insertions, 806 deletions
diff --git a/www-servers/cherokee/ChangeLog b/www-servers/cherokee/ChangeLog index e525a2bf2f23..bff13b8856b3 100644 --- a/www-servers/cherokee/ChangeLog +++ b/www-servers/cherokee/ChangeLog @@ -1,6 +1,15 @@ # ChangeLog for www-servers/cherokee # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/www-servers/cherokee/ChangeLog,v 1.86 2011/09/16 11:57:03 matsuu Exp $ +# $Header: /var/cvsroot/gentoo-x86/www-servers/cherokee/ChangeLog,v 1.87 2011/10/17 16:24:30 matsuu Exp $ + +*cherokee-1.2.100 (17 Oct 2011) + + 17 Oct 2011; MATSUU Takuto <matsuu@gentoo.org> -files/cherokee-initd-0.99.23, + -cherokee-1.0.12.ebuild, -files/cherokee-initd-1.2.0, -cherokee-1.2.0.ebuild, + -cherokee-1.2.1.ebuild, -cherokee-1.2.2.ebuild, -files/cherokee-initd-1.2.98, + -cherokee-1.2.98.ebuild, -files/cherokee-1.2.98-gentoo.patch, + +cherokee-1.2.100.ebuild: + Version bumped. Removed old versions. *cherokee-1.2.99 (16 Sep 2011) diff --git a/www-servers/cherokee/cherokee-1.0.12.ebuild b/www-servers/cherokee/cherokee-1.0.12.ebuild deleted file mode 100644 index 150f042f9380..000000000000 --- a/www-servers/cherokee/cherokee-1.0.12.ebuild +++ /dev/null @@ -1,156 +0,0 @@ -# Copyright 1999-2011 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/www-servers/cherokee/cherokee-1.0.12.ebuild,v 1.2 2011/04/04 12:06:58 scarabeus Exp $ - -EAPI=2 -PYTHON_DEPEND="admin? 2" - -inherit python eutils pam versionator libtool - -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 ~x86" -IUSE="ipv6 nls ssl static pam coverpage threads kernel_linux admin debug geoip -ldap mysql ffmpeg fastcgi rrdtool" - -RDEPEND=" - >=sys-libs/zlib-1.1.4-r1 - rrdtool? ( net-analyzer/rrdtool ) - nls? ( sys-devel/gettext ) - ssl? ( dev-libs/openssl ) - pam? ( virtual/pam ) - geoip? ( dev-libs/geoip ) - ldap? ( net-nds/openldap ) - mysql? ( virtual/mysql ) - fastcgi? ( www-servers/spawn-fcgi ) - ffmpeg? ( virtual/ffmpeg )" -DEPEND="${RDEPEND}" - -src_prepare() { - python_convert_shebangs -r 2 . -} - -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 nls) \ - $(use_enable threads pthread) \ - $(use_enable kernel_linux epoll) \ - $(use_with geoip) \ - $(use_with ldap) \ - $(use_with mysql) \ - $(use_with ffmpeg) \ - --disable-dependency-tracking \ - --enable-os-string="Gentoo ${os}" \ - --with-wwwroot=/var/www/localhost/htdocs \ - --prefix=/usr \ - --sysconfdir=/etc \ - --localstatedir=/var \ - || die "configure failed" -} - -src_compile() { - emake -j1 || die "emake failed" -} - -src_install () { - emake -j1 DESTDIR="${D}" docdir="/usr/share/doc/${PF}/html" install || die "make install failed" - - dodoc AUTHORS ChangeLog - - use pam && pamd_mimic system-auth cherokee auth account session - newinitd "${FILESDIR}/${PN}-initd-0.99.23" ${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 - doins contrib/098to099.py - doins contrib/0999to09910.py - doins contrib/make-cert.sh - - 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} - if use admin ; then - exeinto /usr/share/cherokee/admin - doexe admin/server.py - else - rm -rf "${D}"/usr/sbin/admin "${D}"/usr/share/cherokee/admin - fi - - # Puts logs in /var/log/cherokee/ - dosed "s:/var/log/cherokee\.:/var/log/cherokee/cherokee\.:g" /etc/cherokee/cherokee.conf - -} - -pkg_setup() { - python_set_active_version 2 -} - -pkg_postinst() { - enewgroup cherokee - enewuser cherokee -1 -1 /var/www/localhost cherokee - install -o cherokee -g cherokee -m0775 -d "${ROOT}"var/log/cherokee - - # check if user/group was defined if not add it - gr="/bin/grep -q" - ec="/bin/echo" - $gr server\!user /etc/cherokee/cherokee.conf ; rtu=$? - $gr server\!group /etc/cherokee/cherokee.conf ; rtg=$? - - [[ "x$rtu" == "x1" ]] && $ec server\!user = cherokee >> /etc/cherokee/cherokee.conf - [[ "x$rtg" == "x1" ]] && $ec server\!group = cherokee >> /etc/cherokee/cherokee.conf - - 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 an easy way to configure cherokee." - echo "" - fi - - echo "" - elog "Config format can change in different versions. Check converter script in:" - elog " /usr/share/cherokee-0.99.15/contrib/" - elog "for example:" - elog " PYTHONPATH="/usr/share/cherokee/admin/" python \\" - elog " /usr/share/cherokee-0.99.15/contrib/0999to09910.py \\" - elog " /etc/cherokee/cherokee.conf /etc/cherokee/cherokee.conf-0.99.15" - -} diff --git a/www-servers/cherokee/cherokee-1.2.0.ebuild b/www-servers/cherokee/cherokee-1.2.0.ebuild deleted file mode 100644 index abaed828b06b..000000000000 --- a/www-servers/cherokee/cherokee-1.2.0.ebuild +++ /dev/null @@ -1,157 +0,0 @@ -# Copyright 1999-2011 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/www-servers/cherokee/cherokee-1.2.0.ebuild,v 1.4 2011/04/04 12:06:58 scarabeus Exp $ - -EAPI=2 -PYTHON_DEPEND="admin? 2" - -inherit python eutils pam versionator libtool - -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 ~x86" -IUSE="ipv6 nls ssl static pam coverpage kernel_linux admin debug geoip ldap mysql ffmpeg fastcgi rrdtool" - -RDEPEND=" - >=sys-libs/zlib-1.1.4-r1 - rrdtool? ( net-analyzer/rrdtool ) - nls? ( sys-devel/gettext ) - ssl? ( dev-libs/openssl ) - pam? ( virtual/pam ) - geoip? ( dev-libs/geoip ) - ldap? ( net-nds/openldap ) - mysql? ( virtual/mysql ) - fastcgi? ( www-servers/spawn-fcgi ) - ffmpeg? ( virtual/ffmpeg )" -DEPEND="${RDEPEND}" - -src_prepare() { - python_convert_shebangs -r 2 . -} - -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 - - # This make cherokee 1.2 sad - # $(use_enable threads pthread) \ - econf \ - ${myconf} \ - $(use_enable pam) \ - $(use_enable ipv6) \ - $(use_enable nls) \ - $(use_enable kernel_linux epoll) \ - $(use_with geoip) \ - $(use_with ldap) \ - $(use_with mysql) \ - $(use_with ffmpeg) \ - --disable-dependency-tracking \ - --enable-os-string="Gentoo ${os}" \ - --with-wwwroot=/var/www/localhost/htdocs \ - --prefix=/usr \ - --sysconfdir=/etc \ - --localstatedir=/var \ - || die "configure failed" -} - -src_compile() { - emake || die "emake failed" -} - -src_install () { - emake -j1 DESTDIR="${D}" docdir="/usr/share/doc/${PF}/html" install || die "make install failed" - - dodoc AUTHORS ChangeLog - - use pam && pamd_mimic system-auth cherokee auth account session - newinitd "${FILESDIR}/${PN}-initd-1.2.0" ${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 - doins contrib/098to099.py - doins contrib/0999to09910.py - doins contrib/make-cert.sh - - 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} - if use admin ; then - exeinto /usr/share/cherokee/admin - doexe admin/server.py - else - rm -rf "${D}"/usr/sbin/admin "${D}"/usr/share/cherokee/admin - fi - - # Puts logs in /var/log/cherokee/ - dosed "s:/var/log/cherokee\.:/var/log/cherokee/cherokee\.:g" /etc/cherokee/cherokee.conf - -} - -pkg_setup() { - python_set_active_version 2 -} - -pkg_postinst() { - enewgroup cherokee - enewuser cherokee -1 -1 /var/www/localhost cherokee - install -o cherokee -g cherokee -m0775 -d "${ROOT}"var/log/cherokee - - # check if user/group was defined if not add it - gr="/bin/grep -q" - ec="/bin/echo" - $gr server\!user /etc/cherokee/cherokee.conf ; rtu=$? - $gr server\!group /etc/cherokee/cherokee.conf ; rtg=$? - - [[ "x$rtu" == "x1" ]] && $ec server\!user = cherokee >> /etc/cherokee/cherokee.conf - [[ "x$rtg" == "x1" ]] && $ec server\!group = cherokee >> /etc/cherokee/cherokee.conf - - 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 an easy way to configure cherokee." - echo "" - fi - - echo "" - elog "Config format can change in different versions. Check converter script in:" - elog " /usr/share/${PF}/contrib/" - elog "for example:" - elog " PYTHONPATH="/usr/share/cherokee/admin/" python \\" - elog " /usr/share/${PF}/contrib/0999to09910.py \\" - elog " /etc/cherokee/cherokee.conf /etc/cherokee/cherokee.conf-0.99.15" - -} diff --git a/www-servers/cherokee/cherokee-1.2.1.ebuild b/www-servers/cherokee/cherokee-1.2.1.ebuild deleted file mode 100644 index 406fcf94a64b..000000000000 --- a/www-servers/cherokee/cherokee-1.2.1.ebuild +++ /dev/null @@ -1,157 +0,0 @@ -# Copyright 1999-2011 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/www-servers/cherokee/cherokee-1.2.1.ebuild,v 1.2 2011/04/04 12:06:58 scarabeus Exp $ - -EAPI=2 -PYTHON_DEPEND="admin? 2" - -inherit python eutils pam versionator libtool - -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 ~x86" -IUSE="ipv6 nls ssl static pam coverpage kernel_linux admin debug geoip ldap mysql ffmpeg fastcgi rrdtool" - -RDEPEND=" - >=sys-libs/zlib-1.1.4-r1 - rrdtool? ( net-analyzer/rrdtool ) - nls? ( sys-devel/gettext ) - ssl? ( dev-libs/openssl ) - pam? ( virtual/pam ) - geoip? ( dev-libs/geoip ) - ldap? ( net-nds/openldap ) - mysql? ( virtual/mysql ) - fastcgi? ( www-servers/spawn-fcgi ) - ffmpeg? ( virtual/ffmpeg )" -DEPEND="${RDEPEND}" - -src_prepare() { - python_convert_shebangs -r 2 . -} - -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 - - # This make cherokee 1.2 sad - # $(use_enable threads pthread) \ - econf \ - ${myconf} \ - $(use_enable pam) \ - $(use_enable ipv6) \ - $(use_enable nls) \ - $(use_enable kernel_linux epoll) \ - $(use_with geoip) \ - $(use_with ldap) \ - $(use_with mysql) \ - $(use_with ffmpeg) \ - --disable-dependency-tracking \ - --enable-os-string="Gentoo ${os}" \ - --with-wwwroot=/var/www/localhost/htdocs \ - --prefix=/usr \ - --sysconfdir=/etc \ - --localstatedir=/var \ - || die "configure failed" -} - -src_compile() { - emake || die "emake failed" -} - -src_install () { - emake -j1 DESTDIR="${D}" docdir="/usr/share/doc/${PF}/html" install || die "make install failed" - - dodoc AUTHORS ChangeLog - - use pam && pamd_mimic system-auth cherokee auth account session - newinitd "${FILESDIR}/${PN}-initd-1.2.0" ${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 - doins contrib/098to099.py - doins contrib/0999to09910.py - doins contrib/make-cert.sh - - 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} - if use admin ; then - exeinto /usr/share/cherokee/admin - doexe admin/server.py - else - rm -rf "${D}"/usr/sbin/admin "${D}"/usr/share/cherokee/admin - fi - - # Puts logs in /var/log/cherokee/ - dosed "s:/var/log/cherokee\.:/var/log/cherokee/cherokee\.:g" /etc/cherokee/cherokee.conf - -} - -pkg_setup() { - python_set_active_version 2 -} - -pkg_postinst() { - enewgroup cherokee - enewuser cherokee -1 -1 /var/www/localhost cherokee - install -o cherokee -g cherokee -m0775 -d "${ROOT}"var/log/cherokee - - # check if user/group was defined if not add it - gr="/bin/grep -q" - ec="/bin/echo" - $gr server\!user /etc/cherokee/cherokee.conf ; rtu=$? - $gr server\!group /etc/cherokee/cherokee.conf ; rtg=$? - - [[ "x$rtu" == "x1" ]] && $ec server\!user = cherokee >> /etc/cherokee/cherokee.conf - [[ "x$rtg" == "x1" ]] && $ec server\!group = cherokee >> /etc/cherokee/cherokee.conf - - 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 an easy way to configure cherokee." - echo "" - fi - - echo "" - elog "Config format can change in different versions. Check converter script in:" - elog " /usr/share/${PF}/contrib/" - elog "for example:" - elog " PYTHONPATH="/usr/share/cherokee/admin/" python \\" - elog " /usr/share/${PF}/contrib/0999to09910.py \\" - elog " /etc/cherokee/cherokee.conf /etc/cherokee/cherokee.conf-0.99.15" - -} diff --git a/www-servers/cherokee/cherokee-1.2.98.ebuild b/www-servers/cherokee/cherokee-1.2.100.ebuild index 1107dfa8e5ef..982ca477c4b3 100644 --- a/www-servers/cherokee/cherokee-1.2.98.ebuild +++ b/www-servers/cherokee/cherokee-1.2.100.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2011 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/www-servers/cherokee/cherokee-1.2.98.ebuild,v 1.1 2011/08/26 11:58:08 matsuu Exp $ +# $Header: /var/cvsroot/gentoo-x86/www-servers/cherokee/cherokee-1.2.100.ebuild,v 1.1 2011/10/17 16:24:30 matsuu Exp $ EAPI="3" PYTHON_DEPEND="admin? 2" @@ -48,8 +48,8 @@ pkg_setup() { src_prepare() { epatch \ - "${FILESDIR}/${P}-gentoo.patch" \ - "${FILESDIR}/${P}-linux3.patch" + "${FILESDIR}/${PN}-1.2.99-gentoo.patch" \ + "${FILESDIR}/${PN}-1.2.98-linux3.patch" python_convert_shebangs -r 2 . } @@ -126,43 +126,64 @@ src_install() { dodoc AUTHORS ChangeLog README || die - use pam && pamd_mimic system-auth cherokee auth account session + if use pam ; then + pamd_mimic system-auth cherokee auth account session || die + fi - newinitd "${FILESDIR}/${PN}-initd-${PV}" ${PN} || die "newinitd ${PN} failed" - newconfd "${FILESDIR}/${PN}-confd-${PV}" ${PN} || die "newconfd ${PN} failed" + newinitd "${FILESDIR}/${PN}-initd-1.2.99" ${PN} || die "newinitd ${PN} failed" + newconfd "${FILESDIR}/${PN}-confd-1.2.98" ${PN} || die "newconfd ${PN} failed" if ! use admin ; then rm -r \ "${ED}"/usr/bin/cherokee-admin-launcher \ "${ED}"/usr/bin/CTK-run \ "${ED}"/usr/sbin/cherokee-admin \ - "${ED}"/usr/share/cherokee/admin + "${ED}"/usr/share/cherokee/admin || die fi exeinto /usr/share/doc/${PF}/contrib - doexe contrib/{bin2buffer.py,make-cert.sh,make-dh_params.sh,tracelor.py} + doexe contrib/{bin2buffer.py,make-cert.sh,make-dh_params.sh,tracelor.py} || die + + keepdir \ + /var/www/localhost/htdocs \ + /var/log/cherokee \ + /var/lib/cherokee/graphs/images || die + fowners cherokee:cherokee \ + /var/log/cherokee \ + /var/lib/cherokee/graphs \ + /var/lib/cherokee/graphs/images || die - keepdir /var/www/localhost/htdocs /var/log/cherokee - fowners cherokee:cherokee /var/log/cherokee + # logrotate + insinto /etc/logrotate.d + newins "${FILESDIR}"/${PN}.logrotate ${PN} || die if ! use coverpage ; then - rm -rf "${ED}"/var/www/localhost/htdocs/* + rm -r "${ED}"/var/www/localhost/htdocs/* || die fi } pkg_postinst() { + elog if use admin ; then python_mod_optimize "${EPREFIX}/usr/share/cherokee/admin/" - echo elog "Just run '/usr/sbin/cherokee-admin' and go to: http://localhost:9090" - echo + elog + elog "Cherokee currently supports configuration versioning, so from now on," + elog "whenever a change is made to the configuration file format," + elog "Cherokee-Admin will be able to automatically convert yours to the new" + elog "release. You simply have to load Cherokee-Admin and it will be converted" + elog "once you proceed to saving it." + elog + elog "There is also a command line utility that you can use to do the exact" + elog "same thing. Config format can change in different versions. It is" + elog "provided under:" + elog " ${EPREFIX}/usr/share/cherokee/admin/upgrade_config.py" else - echo elog "Try USE=admin if you want an easy way to configure cherokee." - echo fi + elog elog "emerge www-servers/spawn-fcgi if you use Ruby on Rails with ${PN}." - echo + elog } pkg_postrm() { diff --git a/www-servers/cherokee/cherokee-1.2.2.ebuild b/www-servers/cherokee/cherokee-1.2.2.ebuild deleted file mode 100644 index 982f235c4caa..000000000000 --- a/www-servers/cherokee/cherokee-1.2.2.ebuild +++ /dev/null @@ -1,157 +0,0 @@ -# Copyright 1999-2011 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/www-servers/cherokee/cherokee-1.2.2.ebuild,v 1.1 2011/05/24 07:03:20 polynomial-c Exp $ - -EAPI=2 -PYTHON_DEPEND="admin? 2" - -inherit python eutils pam versionator libtool - -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 ~x86" -IUSE="ipv6 nls ssl static pam coverpage kernel_linux admin debug geoip ldap mysql ffmpeg fastcgi rrdtool" - -RDEPEND=" - >=sys-libs/zlib-1.1.4-r1 - rrdtool? ( net-analyzer/rrdtool ) - nls? ( sys-devel/gettext ) - ssl? ( dev-libs/openssl ) - pam? ( virtual/pam ) - geoip? ( dev-libs/geoip ) - ldap? ( net-nds/openldap ) - mysql? ( virtual/mysql ) - fastcgi? ( www-servers/spawn-fcgi ) - ffmpeg? ( virtual/ffmpeg )" -DEPEND="${RDEPEND}" - -src_prepare() { - python_convert_shebangs -r 2 . -} - -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 - - # This make cherokee 1.2 sad - # $(use_enable threads pthread) \ - econf \ - ${myconf} \ - $(use_enable pam) \ - $(use_enable ipv6) \ - $(use_enable nls) \ - $(use_enable kernel_linux epoll) \ - $(use_with geoip) \ - $(use_with ldap) \ - $(use_with mysql) \ - $(use_with ffmpeg) \ - --disable-dependency-tracking \ - --enable-os-string="Gentoo ${os}" \ - --with-wwwroot=/var/www/localhost/htdocs \ - --prefix=/usr \ - --sysconfdir=/etc \ - --localstatedir=/var \ - || die "configure failed" -} - -src_compile() { - emake || die "emake failed" -} - -src_install () { - emake -j1 DESTDIR="${D}" docdir="/usr/share/doc/${PF}/html" install || die "make install failed" - - dodoc AUTHORS ChangeLog - - use pam && pamd_mimic system-auth cherokee auth account session - newinitd "${FILESDIR}/${PN}-initd-1.2.0" ${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 - doins contrib/098to099.py - doins contrib/0999to09910.py - doins contrib/make-cert.sh - - 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} - if use admin ; then - exeinto /usr/share/cherokee/admin - doexe admin/server.py - else - rm -rf "${D}"/usr/sbin/admin "${D}"/usr/share/cherokee/admin - fi - - # Puts logs in /var/log/cherokee/ - dosed "s:/var/log/cherokee\.:/var/log/cherokee/cherokee\.:g" /etc/cherokee/cherokee.conf - -} - -pkg_setup() { - python_set_active_version 2 -} - -pkg_postinst() { - enewgroup cherokee - enewuser cherokee -1 -1 /var/www/localhost cherokee - install -o cherokee -g cherokee -m0775 -d "${ROOT}"var/log/cherokee - - # check if user/group was defined if not add it - gr="/bin/grep -q" - ec="/bin/echo" - $gr server\!user /etc/cherokee/cherokee.conf ; rtu=$? - $gr server\!group /etc/cherokee/cherokee.conf ; rtg=$? - - [[ "x$rtu" == "x1" ]] && $ec server\!user = cherokee >> /etc/cherokee/cherokee.conf - [[ "x$rtg" == "x1" ]] && $ec server\!group = cherokee >> /etc/cherokee/cherokee.conf - - 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 an easy way to configure cherokee." - echo "" - fi - - echo "" - elog "Config format can change in different versions. Check converter script in:" - elog " /usr/share/${PF}/contrib/" - elog "for example:" - elog " PYTHONPATH="/usr/share/cherokee/admin/" python \\" - elog " /usr/share/${PF}/contrib/0999to09910.py \\" - elog " /etc/cherokee/cherokee.conf /etc/cherokee/cherokee.conf-0.99.15" - -} diff --git a/www-servers/cherokee/files/cherokee-1.2.98-gentoo.patch b/www-servers/cherokee/files/cherokee-1.2.98-gentoo.patch deleted file mode 100644 index cc547e9118d6..000000000000 --- a/www-servers/cherokee/files/cherokee-1.2.98-gentoo.patch +++ /dev/null @@ -1,26 +0,0 @@ -diff -Naur cherokee-1.2.98.orig/cherokee.conf.sample.pre cherokee-1.2.98/cherokee.conf.sample.pre ---- cherokee-1.2.98.orig/cherokee.conf.sample.pre 2011-05-03 18:01:42.000000000 +0900 -+++ cherokee-1.2.98/cherokee.conf.sample.pre 2011-08-25 17:51:33.615130274 +0900 -@@ -18,6 +18,8 @@ - server!server_tokens = full - server!panic_action = %prefix%/bin/cherokee-panic - server!pid_file = %localstatedir%/run/cherokee.pid -+server!user = cherokee -+server!group = cherokee - - # Default virtual server - # -@@ -27,11 +29,11 @@ - - vserver!1!logger = combined - vserver!1!logger!access!type = file --vserver!1!logger!access!filename = %localstatedir%/log/cherokee.access -+vserver!1!logger!access!filename = %localstatedir%/log/cherokee/cherokee.access - vserver!1!logger!access!buffsize = 16384 - - vserver!1!error_writer!type = file --vserver!1!error_writer!filename = %localstatedir%/log/cherokee.error -+vserver!1!error_writer!filename = %localstatedir%/log/cherokee/cherokee.error - - vserver!1!rule!1!match = default - vserver!1!rule!1!handler = common diff --git a/www-servers/cherokee/files/cherokee-initd-0.99.23 b/www-servers/cherokee/files/cherokee-initd-0.99.23 deleted file mode 100644 index 2ffdde46a1ab..000000000000 --- a/www-servers/cherokee/files/cherokee-initd-0.99.23 +++ /dev/null @@ -1,31 +0,0 @@ -#!/sbin/runscript -# Copyright 1999-2009 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 - -opt="reload" - -depend() { - need net -} - -start() { - ebegin "Starting Cherokee Web Server" - start-stop-daemon --start -b \ - --exec /usr/sbin/cherokee - eend $? -} - -stop() { - ebegin "Stopping Cherokee Web Server" - start-stop-daemon --stop \ - --exec /usr/sbin/cherokee - eend $? -} - -reload() { - ebegin "Restarting Cherokee Web Server and closing all open connections" - start-stop-daemon --stop \ - --signal USR1 - eend $? -} - diff --git a/www-servers/cherokee/files/cherokee-initd-1.2.0 b/www-servers/cherokee/files/cherokee-initd-1.2.0 deleted file mode 100644 index 046ef70cacea..000000000000 --- a/www-servers/cherokee/files/cherokee-initd-1.2.0 +++ /dev/null @@ -1,39 +0,0 @@ -#!/sbin/runscript -# Copyright 1999-2011 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 - -opts="graceful reload" - -depend() { - need net -} - -start() { - ebegin "Starting Cherokee Web Server" - start-stop-daemon --start -b \ - --exec /usr/sbin/cherokee - eend $? -} - -stop() { - ebegin "Stopping Cherokee Web Server" - start-stop-daemon --stop \ - --exec /usr/sbin/cherokee - eend $? -} - -graceful() { - ebegin "Gracefully restarting Cherokee Web Server" - start-stop-daemon \ - --exec /usr/sbin/cherokee \ - --signal HUP - eend $? -} - -reload() { - ebegin "Restarting Cherokee Web Server and closing all open connections" - start-stop-daemon \ - --exec /usr/sbin/cherokee \ - --signal USR1 - eend $? -} diff --git a/www-servers/cherokee/files/cherokee-initd-1.2.98 b/www-servers/cherokee/files/cherokee-initd-1.2.98 deleted file mode 100644 index 9c4136f24938..000000000000 --- a/www-servers/cherokee/files/cherokee-initd-1.2.98 +++ /dev/null @@ -1,66 +0,0 @@ -#!/sbin/runscript -# Copyright 1999-2011 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 - -opts="${ops} configtest graceful reload" - -CHEROKEE="/usr/sbin/cherokee" - -depend() { - need net - use dns ldap logger mysql netmount -} - -checkconfig() { - ${CHEROKEE} -t 1>/dev/null 2>&1 - ret=$? - if [ $ret -ne 0 ]; then - eerror "${SVCNAME} has detected an error in your config:" - ${CHEROKEE} -t ${CHEROKEE_OPTS} - fi - return $? -} - -configtest() { - ebegin "Checking ${SVCNAME} configuration" - checkconfig - eend $? -} - -start() { - checkconfig || return 1 - - ebegin "Starting ${SVCNAME}" - start-stop-daemon --start --quiet \ - --exec ${CHEROKEE} -- -d ${CHEROKEE_OPTS} - eend $? -} - -stop() { - checkconfig || return 1 - - ebegin "Stopping ${SVCNAME}" - start-stop-daemon --stop --quiet \ - --exec ${CHEROKEE} - eend $? -} - -graceful() { - checkconfig || return 1 - - ebegin "Gracefully restarting ${SVCNAME}" - start-stop-daemon \ - --exec ${CHEROKEE} \ - --signal HUP - eend $? -} - -reload() { - checkconfig || return 1 - - ebegin "Restarting ${SVCNAME} and closing all open connections" - start-stop-daemon \ - --exec ${CHEROKEE} \ - --signal USR1 - eend $? -} |