1 |
commit: 5fd853071a74a0571d5f5196da3eb979bf041041 |
2 |
Author: Anthony G. Basile <blueness <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Oct 27 11:21:57 2015 +0000 |
4 |
Commit: Anthony G. Basile <blueness <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Oct 27 11:39:47 2015 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5fd85307 |
7 |
|
8 |
www-servers/monkeyd: version bump to 1.6.4 |
9 |
|
10 |
Package-Manager: portage-2.2.20.1 |
11 |
|
12 |
www-servers/monkeyd/Manifest | 1 + |
13 |
www-servers/monkeyd/monkeyd-1.6.4.ebuild | 141 +++++++++++++++++++++++++++++++ |
14 |
2 files changed, 142 insertions(+) |
15 |
|
16 |
diff --git a/www-servers/monkeyd/Manifest b/www-servers/monkeyd/Manifest |
17 |
index 443362c..60f417f 100644 |
18 |
--- a/www-servers/monkeyd/Manifest |
19 |
+++ b/www-servers/monkeyd/Manifest |
20 |
@@ -1,2 +1,3 @@ |
21 |
DIST monkey-1.5.6.tar.gz 902636 SHA256 7c3d845306aa74ee6effd7ab6169d16ac4e6450e564954d0d0baa2d1e9be1a22 SHA512 4c7c627cb047252252b22da5fba179a21fb5b8dc6280b96307af52757ad049d24b0daaaea51dca4f0429af5e6499c239f6b62a03654cc9e7ad98ae8f5149b64c WHIRLPOOL aba1a928023fc67224f254182eb9707c6594c7092d9ff98ecfa297c91d5c61f79235e7467192b5d46ac114ae67a3cee98e06704721348a40ee825755ab39d9a1 |
22 |
DIST monkey-1.6.3.tar.gz 2032771 SHA256 47973b12cc45c185b054e251a6c3d8a36cae70301f614b4132bb1ef504f01cfa SHA512 21d317b55bc22e0ef34a2ff545103fbba3728a47e888db58506891e525e926397af81d0ad42ac134f67ab30548853ea4c98df264fab6238901dd05c5b0f55abe WHIRLPOOL acda82625c281f31212eb22d4cef0f64fa251fad25ba5e8aa9e2f4f2146d5bd626a6c66cdb2d17f6559cc858d09fd0afd2383bcdccbf225b8956e2f8b272726c |
23 |
+DIST monkey-1.6.4.tar.gz 2033295 SHA256 351a18a15f3ad8f64c75281105bb2f321da69d58a8034d23757b7ce29fdc9cb3 SHA512 0de83a47806529fa04d60bdf3f69c1f2e2e5980a03d82a8322bb146afff8db85f7f689add876f739133ed262951533382909cd1a3f0f51a8750dde4b15459d25 WHIRLPOOL 6498f74d122b46912065ea060a596d1badc0144069270ea4e949d6debad025ba309e66e1f4e28fb9c595d560c3a37e1a5f01e6ac5a00d31eb5909a31abe3c105 |
24 |
|
25 |
diff --git a/www-servers/monkeyd/monkeyd-1.6.4.ebuild b/www-servers/monkeyd/monkeyd-1.6.4.ebuild |
26 |
new file mode 100644 |
27 |
index 0000000..33b478d |
28 |
--- /dev/null |
29 |
+++ b/www-servers/monkeyd/monkeyd-1.6.4.ebuild |
30 |
@@ -0,0 +1,141 @@ |
31 |
+# Copyright 1999-2015 Gentoo Foundation |
32 |
+# Distributed under the terms of the GNU General Public License v2 |
33 |
+# $Id$ |
34 |
+ |
35 |
+EAPI="5" |
36 |
+ |
37 |
+inherit eutils flag-o-matic toolchain-funcs multilib |
38 |
+ |
39 |
+DESCRIPTION="A small, fast, and scalable web server" |
40 |
+HOMEPAGE="http://www.monkey-project.com/" |
41 |
+MY_P="${PN/d}-${PV}" |
42 |
+if [[ ${PV} == "9999" ]] ; then |
43 |
+ EGIT_REPO_URI="https://github.com/monkey/monkey.git" |
44 |
+ inherit git-2 |
45 |
+ KEYWORDS="" |
46 |
+else |
47 |
+ SRC_URI="http://monkey-project.com/releases/${PV:0:3}/${MY_P}.tar.gz" |
48 |
+ KEYWORDS="~amd64 ~arm ~mips ~ppc ~ppc64 ~x86" |
49 |
+fi |
50 |
+ |
51 |
+LICENSE="GPL-2" |
52 |
+SLOT="0" |
53 |
+ |
54 |
+# jemalloc is also off until we figure out how to work CMakeLists.txt magic. |
55 |
+#IUSE="cgi -debug fastcgi jemalloc php static-plugins ${PLUGINS}" |
56 |
+ |
57 |
+PLUGINS="monkeyd_plugins_auth monkeyd_plugins_cheetah monkeyd_plugins_dirlisting +monkeyd_plugins_liana monkeyd_plugins_logger monkeyd_plugins_mandril monkeyd_plugins_tls" |
58 |
+IUSE="cgi -debug fastcgi php static-plugins ${PLUGINS}" |
59 |
+ |
60 |
+# uclibc is often compiled without backtrace info so we should |
61 |
+# force this off. If someone complains, consider relaxing it. |
62 |
+REQUIRED_USE=" |
63 |
+ monkeyd_plugins_tls? ( !static-plugins ) |
64 |
+ elibc_uclibc? ( !debug ) |
65 |
+ cgi? ( php )" |
66 |
+ |
67 |
+#DEPEND="jemalloc? ( >=dev-libs/jemalloc-3.3.1 )" |
68 |
+DEPEND=" |
69 |
+ dev-util/cmake |
70 |
+ monkeyd_plugins_tls? ( net-libs/mbedtls:= )" |
71 |
+RDEPEND=" |
72 |
+ php? ( dev-lang/php ) |
73 |
+ cgi? ( dev-lang/php[cgi] )" |
74 |
+ |
75 |
+S="${WORKDIR}/${MY_P}" |
76 |
+ |
77 |
+WEBROOT="/var/www/localhost" |
78 |
+ |
79 |
+pkg_setup() { |
80 |
+ if use debug; then |
81 |
+ ewarn |
82 |
+ ewarn "\033[1;33m**************************************************\033[00m" |
83 |
+ ewarn "Do not use debug in production!" |
84 |
+ ewarn "\033[1;33m**************************************************\033[00m" |
85 |
+ ewarn |
86 |
+ fi |
87 |
+} |
88 |
+ |
89 |
+src_prepare() { |
90 |
+ # Unconditionally get rid of the bundled jemalloc |
91 |
+ rm -rf "${S}"/deps |
92 |
+ epatch "${FILESDIR}"/${PN}-1.6.3-system-mbedtls.patch |
93 |
+} |
94 |
+ |
95 |
+src_configure() { |
96 |
+ local myconf="" |
97 |
+ |
98 |
+ use elibc_uclibc && myconf+=" --uclib-mode" |
99 |
+ use elibc_musl && myconf+=" --musl-mode" |
100 |
+ |
101 |
+ #use jemalloc || myconf+=" --malloc-libc" |
102 |
+ myconf+=" --malloc-libc" |
103 |
+ |
104 |
+ if use debug; then |
105 |
+ myconf+=" --debug --trace" |
106 |
+ else |
107 |
+ myconf+=" --no-backtrace" |
108 |
+ fi |
109 |
+ |
110 |
+ local enable_plugins="" |
111 |
+ local disable_plugins="" |
112 |
+ # We use 'cgi' and 'fastcgi' because they are global flags |
113 |
+ # instead of the corresponding monkeyd_plugins_* |
114 |
+ use cgi && enable_plugins+="cgi," || disable_plugins+="cgi," |
115 |
+ use fastcgi && enable_plugins+="fastcgi," || disable_plugins+="fastcgi," |
116 |
+ # For the rest, we scan the monkeyd_plugins_* and parse out the plugin name. |
117 |
+ for p in ${PLUGINS}; do |
118 |
+ pp=${p/+/} |
119 |
+ cp=${pp/monkeyd_plugins_/} |
120 |
+ use $pp && enable_plugins+="${cp}," || disable_plugins+="${cp}," |
121 |
+ done |
122 |
+ myconf+=" --enable-plugins=${enable_plugins%,} --disable-plugins=${disable_plugins%,}" |
123 |
+ if use static-plugins; then |
124 |
+ myconf+=" --static-plugins=${enable_plugins%,}" |
125 |
+ fi |
126 |
+ |
127 |
+ # For O_CLOEXEC which is guarded by _GNU_SOURCE in uClibc, |
128 |
+ # but shouldn't because it is POSIX. This needs to be fixed |
129 |
+ # in uClibc. Also, we really should us append-cppflags but |
130 |
+ # monkey's build system doesn't respect CPPFLAGS. This needs |
131 |
+ # to be fixed in monkey. |
132 |
+ use elibc_uclibc && append-cflags -D_GNU_SOURCE |
133 |
+ |
134 |
+ # Non-autotools configure |
135 |
+ ./configure \ |
136 |
+ --pthread-tls \ |
137 |
+ --prefix=/usr \ |
138 |
+ --sbindir=/usr/sbin \ |
139 |
+ --webroot=${WEBROOT}/htdocs \ |
140 |
+ --logdir=/var/log/${PN} \ |
141 |
+ --mandir=/usr/share/man \ |
142 |
+ --libdir=/usr/$(get_libdir) \ |
143 |
+ --pidfile=/run/monkey.pid \ |
144 |
+ --sysconfdir=/etc/${PN} \ |
145 |
+ ${myconf} \ |
146 |
+ || die |
147 |
+} |
148 |
+ |
149 |
+src_compile() { |
150 |
+ emake VERBOSE=1 |
151 |
+} |
152 |
+ |
153 |
+src_install() { |
154 |
+ default |
155 |
+ |
156 |
+ newinitd "${FILESDIR}"/monkeyd.initd-r1 monkeyd |
157 |
+ newconfd "${FILESDIR}"/monkeyd.confd monkeyd |
158 |
+ |
159 |
+ # Move htdocs to docdir, bug #429632 |
160 |
+ docompress -x /usr/share/doc/"${PF}"/htdocs.dist |
161 |
+ mv "${D}"${WEBROOT}/htdocs \ |
162 |
+ "${D}"/usr/share/doc/"${PF}"/htdocs.dist |
163 |
+ mkdir "${D}"${WEBROOT}/htdocs |
164 |
+ |
165 |
+ keepdir \ |
166 |
+ /var/log/monkeyd \ |
167 |
+ ${WEBROOT}/htdocs |
168 |
+ |
169 |
+ # This needs to be created at runtime |
170 |
+ rm -rf "${D}"/run |
171 |
+} |