1 |
commit: c0956c57d9515f88ebb074b8bde274ff008e7579 |
2 |
Author: Kent Fredric <kentnl <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Nov 19 07:09:46 2017 +0000 |
4 |
Commit: Kent Fredric <kentnl <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Nov 19 07:10:33 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c0956c57 |
7 |
|
8 |
dev-perl/MogileFS-Server: Bump to version 2.720.0 |
9 |
|
10 |
- EAPI6 |
11 |
- Enable tests ( some appear to auto-skip when servers are missing |
12 |
and the objective is to enable them to see what breaks and maximally |
13 |
enable all possible end-user tests ) |
14 |
- Rework gentoo /etc/ stuff to use patches instead of explicit |
15 |
${FILESDIR} copies, in order to make it easier for end users to |
16 |
tweak installed files with eapply_user, and make it easier to |
17 |
construct effective install trees trivially using upstream sources, |
18 |
as well as discouraging accidental retroactive changes to existing |
19 |
available versions ( happened many times in the past ), while |
20 |
encouraging using patch layering to augment incremental changes |
21 |
where relevant. |
22 |
- Remove hacks around mogdeps, which vanished upstream in |
23 |
MogileFS-Server 2.56 ( 2011-2012 ) |
24 |
- Use 'checkpath' instead of 'install' in mogilefsd script, and remove |
25 |
EQAWARNING use of keepdir /var/run |
26 |
|
27 |
Upstream: |
28 |
- Work with DBD::SQLite latest lock errors |
29 |
- remove update_host_property |
30 |
- remove users of unreachable_fids table |
31 |
- batch MySQL updates in monitor |
32 |
- defer monitor DB updates until all HTTP requests are done |
33 |
- defer expiry of timed out poolable connections |
34 |
- disable watch_write before retrying write in poolable connections |
35 |
- do not write before event_write in poolable connections |
36 |
- add conn_pool_size config option |
37 |
- enable TCP keepalives for iostat watcher sockets |
38 |
- add "readonly" state to overide host device "alive" state |
39 |
|
40 |
Package-Manager: Portage-2.3.8, Repoman-2.3.3 |
41 |
|
42 |
dev-perl/MogileFS-Server/Manifest | 1 + |
43 |
.../MogileFS-Server/MogileFS-Server-2.720.0.ebuild | 76 +++++++++ |
44 |
.../MogileFS-Server-2.720.0-gentoo-init-conf.patch | 184 +++++++++++++++++++++ |
45 |
3 files changed, 261 insertions(+) |
46 |
|
47 |
diff --git a/dev-perl/MogileFS-Server/Manifest b/dev-perl/MogileFS-Server/Manifest |
48 |
index 34fd0abfc88..1a1126ebfd7 100644 |
49 |
--- a/dev-perl/MogileFS-Server/Manifest |
50 |
+++ b/dev-perl/MogileFS-Server/Manifest |
51 |
@@ -1 +1,2 @@ |
52 |
DIST MogileFS-Server-2.70.tar.gz 199850 SHA256 686f328a4a6dacdb6c6153e7c1837875580d8437bf91ebd74ef197b1caefa7a6 SHA512 e5dd7dbfd8422d69d1ffbe9d6cf5f8845e33484a7c812fe60285c0aa17d812a5de33d1a0503972749d70fed92767eedc1119bea650712150d9d5d4e4fdbccb8f WHIRLPOOL c47a79e0002b38d605d1b4407bab886a53f818f3b664421e6e83696a2db152fb71cd093acbaecc6fc46f2bb69a43339c105d4bf566af1e834492aa4a44adedcd |
53 |
+DIST MogileFS-Server-2.72.tar.gz 200057 SHA256 d7d5a45d50127bf62e451c6d86eb247103b01c46662898ae4e18daa08be8e0bf SHA512 4076ba33123c984f9d7c56db7d308b4d857e852caa8d811d86ed551b9ab74a6dfc93b034d034ec2802376035799860c613aef2bdd3898c1225e37727fda34ade WHIRLPOOL 1bb22dd7701d885268416556bec8c37f1f7cadcadcec50c27ecebd84c8222626eeb018d6d72f6ce2aeb985d3bbf9f625d9561a3109ef443c82a35faf15dce083 |
54 |
|
55 |
diff --git a/dev-perl/MogileFS-Server/MogileFS-Server-2.720.0.ebuild b/dev-perl/MogileFS-Server/MogileFS-Server-2.720.0.ebuild |
56 |
new file mode 100644 |
57 |
index 00000000000..70b6fe87e18 |
58 |
--- /dev/null |
59 |
+++ b/dev-perl/MogileFS-Server/MogileFS-Server-2.720.0.ebuild |
60 |
@@ -0,0 +1,76 @@ |
61 |
+# Copyright 1999-2017 Gentoo Foundation |
62 |
+# Distributed under the terms of the GNU General Public License v2 |
63 |
+ |
64 |
+EAPI=6 |
65 |
+ |
66 |
+DIST_AUTHOR=DORMANDO |
67 |
+DIST_VERSION=${PV%0.0} |
68 |
+inherit user perl-module |
69 |
+ |
70 |
+DESCRIPTION="Server for the MogileFS distributed file system" |
71 |
+HOMEPAGE="http://www.danga.com/mogilefs/ ${HOMEPAGE}" |
72 |
+ |
73 |
+IUSE="mysql sqlite postgres" |
74 |
+ |
75 |
+SLOT="0" |
76 |
+LICENSE="|| ( Artistic GPL-2 )" |
77 |
+KEYWORDS="~amd64 ~ppc ~x86" |
78 |
+ |
79 |
+# Upstream site recommends this, |
80 |
+# but it breaks Perlbal |
81 |
+# dev-perl/Perlbal-XS-HTTPHeaders |
82 |
+RDEPEND="dev-perl/Net-Netmask |
83 |
+ >=dev-perl/Danga-Socket-1.610.0 |
84 |
+ >=dev-perl/Sys-Syscall-0.220.0 |
85 |
+ >=dev-perl/Perlbal-1.790 |
86 |
+ >=dev-perl/IO-AIO-4 |
87 |
+ dev-perl/libwww-perl |
88 |
+ >=dev-perl/MogileFS-Client-1.170.0 |
89 |
+ >=dev-perl/MogileFS-Utils-2.280.0 |
90 |
+ dev-perl/Cache-Memcached |
91 |
+ mysql? ( dev-perl/DBD-mysql ) |
92 |
+ postgres? ( dev-perl/DBD-Pg ) |
93 |
+ sqlite? ( dev-perl/DBD-SQLite )" |
94 |
+DEPEND="${RDEPEND}" |
95 |
+ |
96 |
+PATCHES=( |
97 |
+ "${FILESDIR}/${P}-gentoo-init-conf.patch" |
98 |
+) |
99 |
+DIST_TEST="do" |
100 |
+ |
101 |
+MOGILE_USER="mogile" |
102 |
+ |
103 |
+pkg_setup() { |
104 |
+ # Warning! It is important that the uid is constant over Gentoo machines |
105 |
+ # As mogilefs may be used with non-local block devices that move! |
106 |
+ enewuser ${MOGILE_USER} 460 -1 -1 |
107 |
+} |
108 |
+ |
109 |
+src_install() { |
110 |
+ perl-module_src_install || die "perl-module_src_install failed" |
111 |
+ cd "${S}" |
112 |
+ |
113 |
+ newconfd "${S}"/gentoo/conf.d/mogilefsd mogilefsd |
114 |
+ newinitd "${S}"/gentoo/init.d/mogilefsd mogilefsd |
115 |
+ |
116 |
+ newconfd "${S}"/gentoo/conf.d/mogstored mogstored |
117 |
+ newinitd "${S}"/gentoo/init.d/mogstored mogstored |
118 |
+ |
119 |
+ newinitd "${S}"/gentoo/init.d/mogautomount mogautomount |
120 |
+ |
121 |
+ diropts -m 700 -o ${MOGILE_USER} |
122 |
+ keepdir /var/mogdata |
123 |
+ |
124 |
+ diropts -m 755 -o root |
125 |
+ dodir /etc/mogilefs |
126 |
+ |
127 |
+ insinto /etc/mogilefs |
128 |
+ insopts -m 600 -o root -g ${MOGILE_USER} |
129 |
+ newins "${S}"/gentoo/conf/mogilefsd.conf mogilefsd.conf |
130 |
+ newins "${S}"/gentoo/conf/mogstored.conf mogstored.conf |
131 |
+} |
132 |
+ |
133 |
+pkg_postinst() { |
134 |
+ chmod 640 "${ROOT}"/etc/mogilefs/{mogilefsd,mogstored}.conf |
135 |
+ chown root:${MOGILE_USER} "${ROOT}"/etc/mogilefs/{mogilefsd,mogstored}.conf |
136 |
+} |
137 |
|
138 |
diff --git a/dev-perl/MogileFS-Server/files/MogileFS-Server-2.720.0-gentoo-init-conf.patch b/dev-perl/MogileFS-Server/files/MogileFS-Server-2.720.0-gentoo-init-conf.patch |
139 |
new file mode 100644 |
140 |
index 00000000000..7a90e5c5d79 |
141 |
--- /dev/null |
142 |
+++ b/dev-perl/MogileFS-Server/files/MogileFS-Server-2.720.0-gentoo-init-conf.patch |
143 |
@@ -0,0 +1,184 @@ |
144 |
+diff --git a/gentoo/conf.d/mogilefsd b/gentoo/conf.d/mogilefsd |
145 |
+new file mode 100644 |
146 |
+index 0000000..b6968d1 |
147 |
+--- /dev/null |
148 |
++++ b/gentoo/conf.d/mogilefsd |
149 |
+@@ -0,0 +1,3 @@ |
150 |
++PIDFILE="/var/run/mogile/mogilefsd.pid" |
151 |
++MOGILEFSD_OPTS="--daemonize --pidfile=${PIDFILE}" |
152 |
++# vim: ft=gentoo-conf-d: |
153 |
+diff --git a/gentoo/conf.d/mogstored b/gentoo/conf.d/mogstored |
154 |
+new file mode 100644 |
155 |
+index 0000000..aa3cb63 |
156 |
+--- /dev/null |
157 |
++++ b/gentoo/conf.d/mogstored |
158 |
+@@ -0,0 +1,3 @@ |
159 |
++PIDFILE="/var/run/mogile/mogstored.pid" |
160 |
++MOGSTORED_OPTS="" |
161 |
++# vim: ft=gentoo-conf-d: |
162 |
+diff --git a/gentoo/conf/mogilefsd.conf b/gentoo/conf/mogilefsd.conf |
163 |
+new file mode 100644 |
164 |
+index 0000000..df50e23 |
165 |
+--- /dev/null |
166 |
++++ b/gentoo/conf/mogilefsd.conf |
167 |
+@@ -0,0 +1,34 @@ |
168 |
++# System user |
169 |
++user = mogile |
170 |
++# These are set inside the Gentoo conf.d/mogilefsd |
171 |
++#pidfile = /var/run/mogile/mogilefsd.pid |
172 |
++#daemonize = 1 |
173 |
++ |
174 |
++# Database settings |
175 |
++db_dsn = DBI:mysql:mogilefs |
176 |
++db_user = mogile |
177 |
++# You must insert your password here! |
178 |
++db_pass = __PASSWORD__ |
179 |
++ |
180 |
++# Network settings |
181 |
++#conf_port = 7001 |
182 |
++#listen = 10.0.0.1:7001, |
183 |
++ |
184 |
++# Storage |
185 |
++#mog_root = /mnt/mogilefs |
186 |
++ |
187 |
++# Plugins |
188 |
++#plugins = ... |
189 |
++ |
190 |
++# Tuning knobs |
191 |
++#query_jobs = 20 |
192 |
++#delete_jobs = 1 |
193 |
++#replicate_jobs = 1 |
194 |
++#monitor_jobs = 1 |
195 |
++#reaper_jobs = 1 |
196 |
++#min_free_space = 100 |
197 |
++#max_disk_age = 5 |
198 |
++#node_timeout = 2 |
199 |
++#old_repl_compat = 1 |
200 |
++#default_mindevcount = 2 |
201 |
++#no_unreachable_tracking = 1 |
202 |
+diff --git a/gentoo/conf/mogstored.conf b/gentoo/conf/mogstored.conf |
203 |
+new file mode 100644 |
204 |
+index 0000000..100a8c3 |
205 |
+--- /dev/null |
206 |
++++ b/gentoo/conf/mogstored.conf |
207 |
+@@ -0,0 +1,21 @@ |
208 |
++# These are set inside the Gentoo conf.d/mogilefsd |
209 |
++#pidfile = /var/run/mogile/mogstored.pid |
210 |
++#daemonize = 1 |
211 |
++ |
212 |
++# Network settings |
213 |
++#httplisten = 0.0.0.0:7500 |
214 |
++#mgmtlisten = 0.0.0.0:7501 |
215 |
++ |
216 |
++# Storage |
217 |
++#docroot = /var/mogdata |
218 |
++ |
219 |
++# Server type |
220 |
++# Perlbal is the default |
221 |
++#server = perlbal |
222 |
++# But lighttpd is supported too |
223 |
++#server = lighttpd |
224 |
++#serverbin = /usr/sbin/lighttpd |
225 |
++ |
226 |
++# Tuning knobs |
227 |
++#max_conns = 10000 |
228 |
++#opt_iostat 1 |
229 |
+diff --git a/gentoo/init.d/mogautomount b/gentoo/init.d/mogautomount |
230 |
+new file mode 100644 |
231 |
+index 0000000..f287366 |
232 |
+--- /dev/null |
233 |
++++ b/gentoo/init.d/mogautomount |
234 |
+@@ -0,0 +1,21 @@ |
235 |
++#!/sbin/openrc-run |
236 |
++ |
237 |
++NAME="mogautomount" |
238 |
++BINARY="/usr/bin/mogautomount" |
239 |
++ |
240 |
++depend() { |
241 |
++ use net |
242 |
++ before mogstored |
243 |
++} |
244 |
++ |
245 |
++start() { |
246 |
++ ebegin "Mounting MogileFS disks" |
247 |
++ ${BINARY} --chmod-mountpoints |
248 |
++ eend $? |
249 |
++} |
250 |
++ |
251 |
++stop() { |
252 |
++ : |
253 |
++} |
254 |
++ |
255 |
++# vim: ft=gentoo-init-d: |
256 |
+diff --git a/gentoo/init.d/mogilefsd b/gentoo/init.d/mogilefsd |
257 |
+new file mode 100644 |
258 |
+index 0000000..062568e |
259 |
+--- /dev/null |
260 |
++++ b/gentoo/init.d/mogilefsd |
261 |
+@@ -0,0 +1,31 @@ |
262 |
++#!/sbin/openrc-run |
263 |
++ |
264 |
++NAME="mogilefsd" |
265 |
++BINARY="/usr/bin/mogilefsd" |
266 |
++MOGILE_UID="mogile" |
267 |
++MOGILE_GID="mogile" |
268 |
++ |
269 |
++depend() { |
270 |
++ use net mysql postgresql |
271 |
++ after mysql postgresql |
272 |
++} |
273 |
++ |
274 |
++start() { |
275 |
++ checkpath --directory \ |
276 |
++ --owner "${MOGILE_UID}:${MOGILE_GID}" \ |
277 |
++ --mode 700 \ |
278 |
++ "$(dirname $PIDFILE)" |
279 |
++ ebegin "Starting $NAME" |
280 |
++ start-stop-daemon --chuid ${MOGILE_UID}:${MOGILE_GID} --start \ |
281 |
++ --pidfile ${PIDFILE} --exec ${BINARY} \ |
282 |
++ -- ${MOGILEFSD_OPTS} |
283 |
++ eend $? |
284 |
++} |
285 |
++ |
286 |
++stop() { |
287 |
++ ebegin "Stopping $NAME" |
288 |
++ start-stop-daemon --stop --quiet --pidfile="${PIDFILE}" |
289 |
++ eend $? |
290 |
++} |
291 |
++ |
292 |
++# vim: ft=gentoo-init-d noet: |
293 |
+diff --git a/gentoo/init.d/mogstored b/gentoo/init.d/mogstored |
294 |
+new file mode 100644 |
295 |
+index 0000000..d28a853 |
296 |
+--- /dev/null |
297 |
++++ b/gentoo/init.d/mogstored |
298 |
+@@ -0,0 +1,29 @@ |
299 |
++#!/sbin/openrc-run |
300 |
++ |
301 |
++NAME="mogstored" |
302 |
++BINARY="/usr/bin/mogstored" |
303 |
++MOGILE_UID="mogile" |
304 |
++MOGILE_GID="mogile" |
305 |
++ |
306 |
++depend() { |
307 |
++ use net logger |
308 |
++ before mogilefsd |
309 |
++ need mogautomount |
310 |
++} |
311 |
++ |
312 |
++start() { |
313 |
++ install -o $MOGILE_UID -g $MOGILE_GID -d $(dirname $PIDFILE) |
314 |
++ ebegin "Starting $NAME" |
315 |
++ start-stop-daemon --start --quiet \ |
316 |
++ --pidfile=${PIDFILE} --exec ${BINARY} \ |
317 |
++ -- --daemonize --pidfile=${PIDFILE} ${MOGSTORED_OPTS} |
318 |
++ eend $? |
319 |
++} |
320 |
++ |
321 |
++stop() { |
322 |
++ ebegin "Stopping $NAME" |
323 |
++ start-stop-daemon --stop --quiet --pidfile="${PIDFILE}" |
324 |
++ eend $? |
325 |
++} |
326 |
++ |
327 |
++# vim: ft=gentoo-init-d: |