Gentoo Archives: gentoo-commits

From: "Tim Harder (radhermit)" <radhermit@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in www-servers/monkeyd: ChangeLog monkeyd-0.30.0.ebuild
Date: Tue, 03 Jan 2012 02:13:01
Message-Id: 20120103021251.E0CB92004C@flycatcher.gentoo.org
1 radhermit 12/01/03 02:12:51
2
3 Modified: ChangeLog
4 Added: monkeyd-0.30.0.ebuild
5 Log:
6 Version bump.
7
8 (Portage version: 2.2.0_alpha84/cvs/Linux x86_64)
9
10 Revision Changes Path
11 1.23 www-servers/monkeyd/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-servers/monkeyd/ChangeLog?rev=1.23&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-servers/monkeyd/ChangeLog?rev=1.23&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-servers/monkeyd/ChangeLog?r1=1.22&r2=1.23
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/www-servers/monkeyd/ChangeLog,v
20 retrieving revision 1.22
21 retrieving revision 1.23
22 diff -u -r1.22 -r1.23
23 --- ChangeLog 16 Nov 2011 07:18:38 -0000 1.22
24 +++ ChangeLog 3 Jan 2012 02:12:51 -0000 1.23
25 @@ -1,6 +1,11 @@
26 # ChangeLog for www-servers/monkeyd
27 -# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/www-servers/monkeyd/ChangeLog,v 1.22 2011/11/16 07:18:38 radhermit Exp $
29 +# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
30 +# $Header: /var/cvsroot/gentoo-x86/www-servers/monkeyd/ChangeLog,v 1.23 2012/01/03 02:12:51 radhermit Exp $
31 +
32 +*monkeyd-0.30.0 (03 Jan 2012)
33 +
34 + 03 Jan 2012; Tim Harder <radhermit@g.o> +monkeyd-0.30.0.ebuild:
35 + Version bump.
36
37 *monkeyd-0.21.0 (16 Nov 2011)
38
39
40
41
42 1.1 www-servers/monkeyd/monkeyd-0.30.0.ebuild
43
44 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-servers/monkeyd/monkeyd-0.30.0.ebuild?rev=1.1&view=markup
45 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-servers/monkeyd/monkeyd-0.30.0.ebuild?rev=1.1&content-type=text/plain
46
47 Index: monkeyd-0.30.0.ebuild
48 ===================================================================
49 # Copyright 1999-2012 Gentoo Foundation
50 # Distributed under the terms of the GNU General Public License v2
51 # $Header: /var/cvsroot/gentoo-x86/www-servers/monkeyd/monkeyd-0.30.0.ebuild,v 1.1 2012/01/03 02:12:51 radhermit Exp $
52
53 EAPI="4"
54
55 inherit toolchain-funcs depend.php multilib
56
57 WEBROOT=/var/www/localhost
58
59 MY_P="${PN/d}-${PV}"
60 DESCRIPTION="A small, fast, and scalable web server"
61 HOMEPAGE="http://www.monkey-project.com/"
62 SRC_URI="http://monkey-project.com/releases/${PV:0:4}/${MY_P}.tar.gz"
63
64 LICENSE="GPL-2"
65 SLOT="0"
66 KEYWORDS="~amd64 ~mips ~ppc ~sparc ~x86"
67 IUSE="php"
68
69 RDEPEND="php? ( virtual/httpd-php )"
70
71 S="${WORKDIR}/${MY_P}"
72
73 pkg_setup() {
74 use php && require_php_cgi
75 }
76
77 src_prepare() {
78 # Don't install the banana script, it is broken as is anyway and the
79 # functionality is provided by the ${FILESDIR}/monkeyd.init.d script.
80 sed -i '/install -m 755 bin\/banana/d' configure || die "sed banana"
81
82 # Don't explicitly strip files
83 sed -i -e '/$STRIP /d' -e 's/install -s -m 644/install -m 755/' configure || die
84 }
85
86 src_configure() {
87 # Non-autotools configure
88 ./configure \
89 --prefix=/usr \
90 --bindir=/usr/bin \
91 --datadir=${WEBROOT}/htdocs \
92 --logdir=/var/log/${PN} \
93 --mandir=/usr/share/man \
94 --plugdir=/usr/$(get_libdir)/monkeyd/plugins \
95 --sysconfdir=/etc/${PN} \
96 || die
97 }
98
99 src_compile() {
100 emake CC="$(tc-getCC)" CFLAGS="${CFLAGS}"
101 }
102
103 src_install() {
104 default
105
106 if use php ; then
107 sed -i -e '/^#AddScript application\/x-httpd-php/s:^#::' "${D}"/etc/monkeyd/monkey.conf || die
108 sed -i -e 's:/home/my_home/php/bin/php:/usr/bin/php-cgi:' "${D}"/etc/monkeyd/monkey.conf || die
109 fi
110
111 mv "${D}"${WEBROOT}/htdocs/{index,index-monkey}.html
112
113 sed -i -e "s:/var/log/monkeyd/monkey.pid:/var/run/monkey.pid:" "${D}"/etc/monkeyd/monkey.conf || die
114 newinitd "${FILESDIR}"/monkeyd.init.d monkeyd
115 newconfd "${FILESDIR}"/monkeyd.conf.d monkeyd
116 }