Gentoo Archives: gentoo-commits

From: "Anthony G. Basile (blueness)" <blueness@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in www-servers/monkeyd: ChangeLog monkeyd-1.0.0.ebuild
Date: Thu, 07 Jun 2012 08:22:18
Message-Id: 20120607082206.0C0B62004B@flycatcher.gentoo.org
1 blueness 12/06/07 08:22:06
2
3 Modified: ChangeLog
4 Added: monkeyd-1.0.0.ebuild
5 Log:
6 Version bump, fix init script
7
8 (Portage version: 2.1.10.49/cvs/Linux x86_64)
9
10 Revision Changes Path
11 1.34 www-servers/monkeyd/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-servers/monkeyd/ChangeLog?rev=1.34&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-servers/monkeyd/ChangeLog?rev=1.34&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-servers/monkeyd/ChangeLog?r1=1.33&r2=1.34
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/www-servers/monkeyd/ChangeLog,v
20 retrieving revision 1.33
21 retrieving revision 1.34
22 diff -u -r1.33 -r1.34
23 --- ChangeLog 23 May 2012 15:42:00 -0000 1.33
24 +++ ChangeLog 7 Jun 2012 08:22:05 -0000 1.34
25 @@ -1,6 +1,12 @@
26 # ChangeLog for www-servers/monkeyd
27 # Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/www-servers/monkeyd/ChangeLog,v 1.33 2012/05/23 15:42:00 blueness Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/www-servers/monkeyd/ChangeLog,v 1.34 2012/06/07 08:22:05 blueness Exp $
30 +
31 +*monkeyd-1.0.0 (07 Jun 2012)
32 +
33 + 07 Jun 2012; Anthony G. Basile <blueness@g.o> +monkeyd-1.0.0.ebuild,
34 + +files/monkeyd.confd, +files/monkeyd.initd:
35 + Version bump, fix init script
36
37 *monkeyd-0.33.0-r1 (23 May 2012)
38
39
40
41
42 1.1 www-servers/monkeyd/monkeyd-1.0.0.ebuild
43
44 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-servers/monkeyd/monkeyd-1.0.0.ebuild?rev=1.1&view=markup
45 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-servers/monkeyd/monkeyd-1.0.0.ebuild?rev=1.1&content-type=text/plain
46
47 Index: monkeyd-1.0.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-1.0.0.ebuild,v 1.1 2012/06/07 08:22:05 blueness 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:3}/${MY_P}.tar.gz"
63
64 LICENSE="GPL-2"
65 SLOT="0"
66 KEYWORDS="~amd64 ~mips ~ppc ~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, we use ${FILESDIR}/monkeyd.initd
79 sed -i '/install -m 755 bin\/banana/d' configure || die "sed banana"
80
81 # Don't explicitly strip files
82 sed -i -e '/$STRIP /d' -e 's/install -s -m 644/install -m 755/' configure || die
83 }
84
85 src_configure() {
86 # Non-autotools configure
87 ./configure \
88 --prefix=/usr \
89 --bindir=/usr/bin \
90 --datadir=${WEBROOT}/htdocs \
91 --logdir=/var/log/${PN} \
92 --mandir=/usr/share/man \
93 --plugdir=/usr/$(get_libdir)/monkeyd/plugins \
94 --sysconfdir=/etc/${PN} \
95 || die
96 }
97
98 src_compile() {
99 emake CC="$(tc-getCC)" CFLAGS="${CFLAGS}"
100
101 # Don't install the banana script man page
102 rm "${S}"/man/banana.1
103 }
104
105 src_install() {
106 default
107
108 if use php ; then
109 sed -i -e '/^#AddScript application\/x-httpd-php/s:^#::' "${D}"/etc/monkeyd/monkey.conf || die
110 sed -i -e 's:/home/my_home/php/bin/php:/usr/bin/php-cgi:' "${D}"/etc/monkeyd/monkey.conf || die
111 fi
112
113 mv "${D}"${WEBROOT}/htdocs/{index,index-monkey}.html
114
115 sed -i -e "s:/var/log/monkeyd/monkey.pid:/var/run/monkey.pid:" "${D}"/etc/monkeyd/monkey.conf || die
116 newinitd "${FILESDIR}"/monkeyd.initd monkeyd
117 newconfd "${FILESDIR}"/monkeyd.confd monkeyd
118 }