/[gentoo-x86]/www-servers/monkeyd/monkeyd-0.32.0.ebuild
Gentoo

Contents of /www-servers/monkeyd/monkeyd-0.32.0.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Wed Mar 21 11:33:43 2012 UTC (2 years, 4 months ago) by pacho
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +1 -1 lines
FILE REMOVED
Drop www-server herd as discussed in gentoo-dev ML. Drop old.

(Portage version: 2.1.10.49/cvs/Linux x86_64)

1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/www-servers/monkeyd/monkeyd-0.32.0.ebuild,v 1.2 2012/03/18 18:00:00 armin76 Exp $
4
5 EAPI="4"
6
7 inherit toolchain-funcs depend.php multilib
8
9 WEBROOT=/var/www/localhost
10
11 MY_P="${PN/d}-${PV}"
12 DESCRIPTION="A small, fast, and scalable web server"
13 HOMEPAGE="http://www.monkey-project.com/"
14 SRC_URI="http://monkey-project.com/releases/${PV:0:4}/${MY_P}.tar.gz"
15
16 LICENSE="GPL-2"
17 SLOT="0"
18 KEYWORDS="~amd64 ~mips ~ppc ~x86"
19 IUSE="php"
20
21 RDEPEND="php? ( virtual/httpd-php )"
22
23 S="${WORKDIR}/${MY_P}"
24
25 pkg_setup() {
26 use php && require_php_cgi
27 }
28
29 src_prepare() {
30 # Don't install the banana script, it is broken as is anyway and the
31 # functionality is provided by the ${FILESDIR}/monkeyd.init.d script.
32 sed -i '/install -m 755 bin\/banana/d' configure || die "sed banana"
33
34 # Don't explicitly strip files
35 sed -i -e '/$STRIP /d' -e 's/install -s -m 644/install -m 755/' configure || die
36 }
37
38 src_configure() {
39 # Non-autotools configure
40 ./configure \
41 --prefix=/usr \
42 --bindir=/usr/bin \
43 --datadir=${WEBROOT}/htdocs \
44 --logdir=/var/log/${PN} \
45 --mandir=/usr/share/man \
46 --plugdir=/usr/$(get_libdir)/monkeyd/plugins \
47 --sysconfdir=/etc/${PN} \
48 || die
49 }
50
51 src_compile() {
52 emake CC="$(tc-getCC)" CFLAGS="${CFLAGS}"
53 }
54
55 src_install() {
56 default
57
58 if use php ; then
59 sed -i -e '/^#AddScript application\/x-httpd-php/s:^#::' "${D}"/etc/monkeyd/monkey.conf || die
60 sed -i -e 's:/home/my_home/php/bin/php:/usr/bin/php-cgi:' "${D}"/etc/monkeyd/monkey.conf || die
61 fi
62
63 mv "${D}"${WEBROOT}/htdocs/{index,index-monkey}.html
64
65 sed -i -e "s:/var/log/monkeyd/monkey.pid:/var/run/monkey.pid:" "${D}"/etc/monkeyd/monkey.conf || die
66 newinitd "${FILESDIR}"/monkeyd.init.d monkeyd
67 newconfd "${FILESDIR}"/monkeyd.conf.d monkeyd
68 }

  ViewVC Help
Powered by ViewVC 1.1.20