diff options
author | Anthony G. Basile <blueness@gentoo.org> | 2012-08-08 12:17:18 +0000 |
---|---|---|
committer | Anthony G. Basile <blueness@gentoo.org> | 2012-08-08 12:17:18 +0000 |
commit | 5abfbd0339fa9c88812cc0a702cf05172b90f78f (patch) | |
tree | ac485beb7950a81734de073f54611000fa36df85 /www-servers | |
parent | x86 stable, see bug 418519 (diff) | |
download | gentoo-2-5abfbd0339fa9c88812cc0a702cf05172b90f78f.tar.gz gentoo-2-5abfbd0339fa9c88812cc0a702cf05172b90f78f.tar.bz2 gentoo-2-5abfbd0339fa9c88812cc0a702cf05172b90f78f.zip |
Move distribution's htdocs to doc dir, bug #429632
(Portage version: 2.1.10.65/cvs/Linux x86_64)
Diffstat (limited to 'www-servers')
-rw-r--r-- | www-servers/monkeyd/ChangeLog | 8 | ||||
-rw-r--r-- | www-servers/monkeyd/monkeyd-1.0.1-r1.ebuild | 75 |
2 files changed, 82 insertions, 1 deletions
diff --git a/www-servers/monkeyd/ChangeLog b/www-servers/monkeyd/ChangeLog index 714812d2f88b..b77e067e1814 100644 --- a/www-servers/monkeyd/ChangeLog +++ b/www-servers/monkeyd/ChangeLog @@ -1,6 +1,12 @@ # 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.42 2012/08/01 15:57:03 blueness Exp $ +# $Header: /var/cvsroot/gentoo-x86/www-servers/monkeyd/ChangeLog,v 1.43 2012/08/08 12:17:18 blueness Exp $ + +*monkeyd-1.0.1-r1 (08 Aug 2012) + + 08 Aug 2012; Anthony G. Basile <blueness@gentoo.org> + +monkeyd-1.0.1-r1.ebuild: + Move distribution's htdocs to doc dir, bug #429632 01 Aug 2012; Anthony G. Basile <blueness@gentoo.org> monkeyd-1.0.1.ebuild: Stable arm, bug #426664 diff --git a/www-servers/monkeyd/monkeyd-1.0.1-r1.ebuild b/www-servers/monkeyd/monkeyd-1.0.1-r1.ebuild new file mode 100644 index 000000000000..d945acd9f833 --- /dev/null +++ b/www-servers/monkeyd/monkeyd-1.0.1-r1.ebuild @@ -0,0 +1,75 @@ +# 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-1.0.1-r1.ebuild,v 1.1 2012/08/08 12:17:18 blueness 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:3}/${MY_P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~arm ~mips ~ppc ~ppc64 ~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, we use ${FILESDIR}/monkeyd.initd + 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}" + + # Don't install the banana script man page + rm "${S}"/man/banana.1 +} + +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 + + sed -i -e "s:/var/log/monkeyd/monkey.pid:/var/run/monkey.pid:" "${D}"/etc/monkeyd/monkey.conf || die + newinitd "${FILESDIR}"/monkeyd.initd monkeyd + newconfd "${FILESDIR}"/monkeyd.confd monkeyd + + docompress -x /usr/share/doc/"${PF}"/htdocs.dist + + mv "${D}"${WEBROOT}/htdocs \ + "${D}"/usr/share/doc/"${PF}"/htdocs.dist + + mkdir "${D}"${WEBROOT}/htdocs +} |