1 |
commit: 8972a4c48d2b1be2b7c0ee5e288d7d85302cda5e |
2 |
Author: Anthony G. Basile <blueness <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Nov 24 08:30:30 2015 +0000 |
4 |
Commit: Anthony G. Basile <blueness <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Nov 24 08:31:08 2015 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8972a4c4 |
7 |
|
8 |
www-servers/monkeyd: version bump to 1.6.6. |
9 |
|
10 |
Package-Manager: portage-2.2.20.1 |
11 |
|
12 |
www-servers/monkeyd/Manifest | 1 + |
13 |
www-servers/monkeyd/monkeyd-1.6.6.ebuild | 141 +++++++++++++++++++++++++++++++ |
14 |
2 files changed, 142 insertions(+) |
15 |
|
16 |
diff --git a/www-servers/monkeyd/Manifest b/www-servers/monkeyd/Manifest |
17 |
index a7d8224..7b31727 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.5.tar.gz 2033866 SHA256 5e24a782fe3d97f4a4e78cac54646ca13d8646b8c790ea63924be77235453ea5 SHA512 64b5a30e8636e9aaaf3f8fb207201282980a29449476e8905218b5e36da78c9a1754a5706eafb40d46c72458a32346899a1bf859b29c213bf7cc5e66f5d834b3 WHIRLPOOL 1573fd42dc87da294f56dc3ddea8968d9cabd9421788beda074968343e52ea94f2ec321ed2a73c778787337e4f0c4eff89b43026f7e495976eb1d0cddd6b6c19 |
23 |
+DIST monkey-1.6.6.tar.gz 2035885 SHA256 4ad8258d6cb6fb8b9d98891a7c84a559ab7ab96f7dde0ecdfc23a1a8d594ce11 SHA512 c56edcd2bb18fbe4e4f364853e4796be1211cca7829899cde94500d514ded7ba8cca44c6e5f964b8864d0348caf1a570ac558c287f708c081a40aeecef8ee2cf WHIRLPOOL 60b95e0c81b9ce3faf2a87acf9496a8510d5d6d66501850c2d45cab39505b58f9f22ec9936002ff06cd4b13d6ac787b144409f64625fc56042fdfef4bfee79a4 |
24 |
|
25 |
diff --git a/www-servers/monkeyd/monkeyd-1.6.6.ebuild b/www-servers/monkeyd/monkeyd-1.6.6.ebuild |
26 |
new file mode 100644 |
27 |
index 0000000..add07dc |
28 |
--- /dev/null |
29 |
+++ b/www-servers/monkeyd/monkeyd-1.6.6.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 |
+ local p |
118 |
+ for p in ${PLUGINS}; do |
119 |
+ pp=${p/+/} |
120 |
+ cp=${pp/monkeyd_plugins_/} |
121 |
+ use $pp && enable_plugins+="${cp}," || disable_plugins+="${cp}," |
122 |
+ done |
123 |
+ myconf+=" --enable-plugins=${enable_plugins%,} --disable-plugins=${disable_plugins%,}" |
124 |
+ if use static-plugins; then |
125 |
+ myconf+=" --static-plugins=${enable_plugins%,}" |
126 |
+ fi |
127 |
+ |
128 |
+ # For O_CLOEXEC which is guarded by _GNU_SOURCE in uClibc, |
129 |
+ # but shouldn't because it is POSIX. This needs to be fixed |
130 |
+ # in uClibc. Also, we really should us append-cppflags but |
131 |
+ # monkey's build system doesn't respect CPPFLAGS. This needs |
132 |
+ # to be fixed in monkey. |
133 |
+ use elibc_uclibc && append-cflags -D_GNU_SOURCE |
134 |
+ |
135 |
+ # Non-autotools configure |
136 |
+ ./configure \ |
137 |
+ --pthread-tls \ |
138 |
+ --prefix=/usr \ |
139 |
+ --sbindir=/usr/sbin \ |
140 |
+ --webroot=${WEBROOT}/htdocs \ |
141 |
+ --logdir=/var/log/${PN} \ |
142 |
+ --mandir=/usr/share/man \ |
143 |
+ --libdir=/usr/$(get_libdir) \ |
144 |
+ --pidfile=/run/monkey.pid \ |
145 |
+ --sysconfdir=/etc/${PN} \ |
146 |
+ ${myconf} \ |
147 |
+ || die |
148 |
+} |
149 |
+ |
150 |
+src_compile() { |
151 |
+ emake VERBOSE=1 |
152 |
+} |
153 |
+ |
154 |
+src_install() { |
155 |
+ default |
156 |
+ |
157 |
+ newinitd "${FILESDIR}"/monkeyd.initd-r1 monkeyd |
158 |
+ newconfd "${FILESDIR}"/monkeyd.confd monkeyd |
159 |
+ |
160 |
+ # Move htdocs to docdir, bug #429632 |
161 |
+ docompress -x /usr/share/doc/"${PF}"/htdocs.dist |
162 |
+ mv "${D}"${WEBROOT}/htdocs \ |
163 |
+ "${D}"/usr/share/doc/"${PF}"/htdocs.dist || die |
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 |
+} |