diff options
author | Tim Harder <radhermit@gentoo.org> | 2012-01-14 04:57:46 +0000 |
---|---|---|
committer | Tim Harder <radhermit@gentoo.org> | 2012-01-14 04:57:46 +0000 |
commit | b311535505a1a04f8ba87c667d6bcfaa609bd6cd (patch) | |
tree | 35cd1db57a0708d8836c3511331cc105fa3a5a61 /www-servers/monkeyd | |
parent | Bump, fixes several crashes, including in gnome-shell when using certain thir... (diff) | |
download | gentoo-2-b311535505a1a04f8ba87c667d6bcfaa609bd6cd.tar.gz gentoo-2-b311535505a1a04f8ba87c667d6bcfaa609bd6cd.tar.bz2 gentoo-2-b311535505a1a04f8ba87c667d6bcfaa609bd6cd.zip |
Version bump.
(Portage version: 2.2.0_alpha84/cvs/Linux x86_64)
Diffstat (limited to 'www-servers/monkeyd')
-rw-r--r-- | www-servers/monkeyd/ChangeLog | 7 | ||||
-rw-r--r-- | www-servers/monkeyd/monkeyd-0.31.0.ebuild | 68 |
2 files changed, 74 insertions, 1 deletions
diff --git a/www-servers/monkeyd/ChangeLog b/www-servers/monkeyd/ChangeLog index 994c144b8ee4..4b749178ea91 100644 --- a/www-servers/monkeyd/ChangeLog +++ b/www-servers/monkeyd/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for www-servers/monkeyd # Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/www-servers/monkeyd/ChangeLog,v 1.23 2012/01/03 02:12:51 radhermit Exp $ +# $Header: /var/cvsroot/gentoo-x86/www-servers/monkeyd/ChangeLog,v 1.24 2012/01/14 04:57:46 radhermit Exp $ + +*monkeyd-0.31.0 (14 Jan 2012) + + 14 Jan 2012; Tim Harder <radhermit@gentoo.org> +monkeyd-0.31.0.ebuild: + Version bump. *monkeyd-0.30.0 (03 Jan 2012) diff --git a/www-servers/monkeyd/monkeyd-0.31.0.ebuild b/www-servers/monkeyd/monkeyd-0.31.0.ebuild new file mode 100644 index 000000000000..96df0c5bb397 --- /dev/null +++ b/www-servers/monkeyd/monkeyd-0.31.0.ebuild @@ -0,0 +1,68 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/www-servers/monkeyd/monkeyd-0.31.0.ebuild,v 1.1 2012/01/14 04:57:46 radhermit Exp $ + +EAPI="4" + +inherit toolchain-funcs depend.php multilib + +WEBROOT=/var/www/localhost + +MY_P="${PN/d}-${PV}" +DESCRIPTION="A small, fast, and scalable web server" +HOMEPAGE="http://www.monkey-project.com/" +SRC_URI="http://monkey-project.com/releases/${PV:0:4}/${MY_P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~mips ~ppc ~sparc ~x86" +IUSE="php" + +RDEPEND="php? ( virtual/httpd-php )" + +S="${WORKDIR}/${MY_P}" + +pkg_setup() { + use php && require_php_cgi +} + +src_prepare() { + # Don't install the banana script, it is broken as is anyway and the + # functionality is provided by the ${FILESDIR}/monkeyd.init.d script. + sed -i '/install -m 755 bin\/banana/d' configure || die "sed banana" + + # Don't explicitly strip files + sed -i -e '/$STRIP /d' -e 's/install -s -m 644/install -m 755/' configure || die +} + +src_configure() { + # Non-autotools configure + ./configure \ + --prefix=/usr \ + --bindir=/usr/bin \ + --datadir=${WEBROOT}/htdocs \ + --logdir=/var/log/${PN} \ + --mandir=/usr/share/man \ + --plugdir=/usr/$(get_libdir)/monkeyd/plugins \ + --sysconfdir=/etc/${PN} \ + || die +} + +src_compile() { + emake CC="$(tc-getCC)" CFLAGS="${CFLAGS}" +} + +src_install() { + default + + if use php ; then + sed -i -e '/^#AddScript application\/x-httpd-php/s:^#::' "${D}"/etc/monkeyd/monkey.conf || die + sed -i -e 's:/home/my_home/php/bin/php:/usr/bin/php-cgi:' "${D}"/etc/monkeyd/monkey.conf || die + fi + + mv "${D}"${WEBROOT}/htdocs/{index,index-monkey}.html + + sed -i -e "s:/var/log/monkeyd/monkey.pid:/var/run/monkey.pid:" "${D}"/etc/monkeyd/monkey.conf || die + newinitd "${FILESDIR}"/monkeyd.init.d monkeyd + newconfd "${FILESDIR}"/monkeyd.conf.d monkeyd +} |