1 |
commit: 11581c3d7e7338146853f9ac5e15c039de1c099a |
2 |
Author: Samuel Bernardo <samuelbernardo.mail <AT> gmail <DOT> com> |
3 |
AuthorDate: Fri Sep 13 08:17:47 2019 +0000 |
4 |
Commit: Samuel Bernardo <samuelbernardo.mail <AT> gmail <DOT> com> |
5 |
CommitDate: Fri Sep 13 08:17:47 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/user/ssnb.git/commit/?id=11581c3d |
7 |
|
8 |
Review QA checks as mentioned in https://bugs.gentoo.org/690862 |
9 |
|
10 |
Signed-off-by: Samuel Bernardo <samuelbernardo.mail <AT> gmail.com> |
11 |
|
12 |
app-emulation/opennebula/Manifest | 6 - |
13 |
app-emulation/opennebula/opennebula-4.14.2.ebuild | 240 --------- |
14 |
app-emulation/opennebula/opennebula-5.4.1.ebuild | 186 ------- |
15 |
app-emulation/opennebula/opennebula-5.4.6.ebuild | 186 ------- |
16 |
www-apps/gitlabhq/Manifest | 20 - |
17 |
www-apps/gitlabhq/files/config.ssh | 10 - |
18 |
www-apps/gitlabhq/files/gitlab.logrotate | 10 - |
19 |
.../files/gitlabhq-10.0-fix-checks-gentoo.patch | 11 - |
20 |
.../files/gitlabhq-10.0-fix-sendmail-param.patch | 17 - |
21 |
.../gitlabhq/files/gitlabhq-10.0-mailroom.service | 28 -- |
22 |
.../gitlabhq/files/gitlabhq-10.0-sidekiq.service | 28 -- |
23 |
.../gitlabhq/files/gitlabhq-10.0-tmpfiles.conf | 1 - |
24 |
.../gitlabhq/files/gitlabhq-10.0-unicorn.service | 25 - |
25 |
.../gitlabhq/files/gitlabhq-10.0-workhorse.service | 25 - |
26 |
www-apps/gitlabhq/files/gitlabhq-10.0.init | 115 ----- |
27 |
.../files/gitlabhq-8.14-fix-checks-gentoo.patch | 11 - |
28 |
.../files/gitlabhq-8.14-fix-sendmail-param.patch | 17 - |
29 |
www-apps/gitlabhq/files/gitlabhq-8.14.init | 92 ---- |
30 |
.../files/gitlabhq-8.15-fix-checks-gentoo.patch | 11 - |
31 |
.../files/gitlabhq-8.15-fix-sendmail-param.patch | 17 - |
32 |
www-apps/gitlabhq/files/gitlabhq-8.15.init | 92 ---- |
33 |
.../files/gitlabhq-8.16-fix-checks-gentoo.patch | 11 - |
34 |
.../files/gitlabhq-8.16-fix-sendmail-param.patch | 17 - |
35 |
www-apps/gitlabhq/files/gitlabhq-8.16.init | 92 ---- |
36 |
www-apps/gitlabhq/gitlabhq-10.0.3.ebuild | 556 --------------------- |
37 |
www-servers/unicorn/Manifest | 3 - |
38 |
www-servers/unicorn/metadata.xml | 8 - |
39 |
www-servers/unicorn/unicorn-5.1.0.ebuild | 48 -- |
40 |
28 files changed, 1883 deletions(-) |
41 |
|
42 |
diff --git a/app-emulation/opennebula/Manifest b/app-emulation/opennebula/Manifest |
43 |
index a0b766f..ca7198b 100644 |
44 |
--- a/app-emulation/opennebula/Manifest |
45 |
+++ b/app-emulation/opennebula/Manifest |
46 |
@@ -19,18 +19,12 @@ AUX sunstone-server.initd 788 BLAKE2B e49f736213f0575d9a040058eff5accd36b00070ed |
47 |
AUX tmpfilesd.opennebula.conf 81 BLAKE2B 468a40c6d3be093a4adbee5662559f2a00764b1e6f06ff5df46b3ff14cd9a94ea56c213da1f9c727090587f6626d69f38548bf140175e5c56495c60f9d3332c9 SHA512 ae6d06a91877b7135697c2f6202e182bbd0166ee2568b587c915582da5bada4ca1dfb70e13586ad69eebcd6f802cd00de3f7d362b1bfd552fe0837bf729d5edd |
48 |
AUX websocket.py.diff 274 BLAKE2B f2c961bb29bc745a0b6fee43fa77a2ccdd26454dfcb50a0f8e3b24505f2b0df3fc6efacf30216434e76bdca0789eeff6377172d96f6f97f0a2be54d7a5a854ca SHA512 37536922c0160ee36b115f8ccfce54f2eef589f1a10df8022316247e996ccf542e193f7af13c8c00f89ab4993008a5d6f31561ccafbc0e6e4dd14eeb9ac2ea29 |
49 |
AUX websocketproxy.py.diff 291 BLAKE2B 5ceb2e09830119b11b4ad319eeef3167d28808457b2f1a3e869225e4ddf87f05e6fcce377f9f9742435b173dee1f82cdf4fcf7fedf2a23f5eee4448fc5e8e540 SHA512 3c176c8709d28a2b506cb915bc00947b031e621267650b7282e26ffaf810f3a5aa128576c9cebd7cec0f320f6a173a4f8aa723898d7d5fdcf7710d484da1416a |
50 |
-DIST opennebula-4.14.2.tar.gz 9283555 BLAKE2B 4e9dfdfc3f4ea6270003540bb97ecbaee7d26ce3cfcf08e85244d91658bfe3bdb8181111d6661b982bd8445409d743359ef5deb5d47afac7fec7de5ee93b2836 SHA512 ed572bf1a6e0a4eecb85c1f2beb1f686e6729f74a354f41dbb5113fd089af06013f63d022ee8c068234e5be64df818771a0ba0c452ffbf4fd096dd16cf878926 |
51 |
-DIST opennebula-5.4.1.tar.gz 14652947 BLAKE2B 299cc960debea0032e597b027ae73ff96c1d1262825e5797fabb98cbec3e2b15413ac97c38ec16c71cc0a0a6ea64447dac20cab7fcc73c4f2e6aa09f3855d801 SHA512 e6660c44c7fcb1d32077b483814ccaad03bca0f6264671548b6ef9cc60f544b134ea3d9ade13a959340bb1f8c94cf08c8246ea929073cf89d6ee35f8b2e19904 |
52 |
DIST opennebula-5.4.13.tar.gz 14579822 BLAKE2B 66c6267a6b4ef5754f1f782245ef0708ab2ac1efd2a28f212ea44c5c5e4d5745b6dca64e42e5a5d675fc55abca5fbf9e5dcf8fc4101a5d6e091ad315c2f44322 SHA512 4e92e1c94d621fec99fd65d63f0ec64dba972e615726a589be6487a0d6782dbf4fd0d368525555deccefcc4c9af28309efc175102e2ac9ea3306edc4e9ed5611 |
53 |
-DIST opennebula-5.4.6.tar.gz 14537181 BLAKE2B 7240dbd209e7aec7c7ccecb95420b1b07761dcf0f1fa5f348101193e42a7af03def090d9ec6a60d32632e4ea31a5dfd03f7ee534a0e96b9e17255d8215f06f49 SHA512 440db6e15499740622c4a25cb8e28f2b718b6d2dfcb7d181f0fab927c03bc8d0ceb241bf08e03f068d73fc795ebe831b4102bebffb37f6aa320713bea66ef3ba |
54 |
DIST opennebula-5.6.0.tar.gz 26357668 BLAKE2B 0bf79201bdac6dc2380507bd7981520948daaa9db7f5e42164c40aecc283b858bc7dc9a8072ebbf4b8632b1746010d2483547bcd343a98718373c774c45ddbb0 SHA512 157e96f8551c5bbc89490373e167638f3a416c0abacfecfe42dc9ef4d88659512be4f03e34a285dff37ea37eab45937a9a58eda9cdf2123161ca22a88f6defe2 |
55 |
DIST opennebula-5.6.1.tar.gz 26297534 BLAKE2B 1216502af4c5e0385e111d79f522cded875f8435de45d16280395bdef2ee638a664793426ecb71152ebace178fccfe50496708fb9f1a85870402030036e06500 SHA512 4978b227fd2bf19a8e56e17bb01defdff6a07f426f361befc4b7e5f0381fd5e255c29915fbf5465fdb0eccdaca3d7ec86a8f57c7629832899dfd671210cfff46 |
56 |
DIST opennebula-5.8.1.tar.gz 26987763 BLAKE2B 7664bb04e024015a7004a46bdf1975217ad020f9a95922f1c4dc18e3a182b5ddc6ff1071778f428fbd48bd24fd2f6aeb91299188bb70c1a8984b30cbda671109 SHA512 1429b5456711162858134f0daba20373c28b64261f2e9b773e0bc9109f07ac8303a7ee0eed3d9df8646214f966ab5fa2e501e77bd9d4959e45a79c503156d8b3 |
57 |
-EBUILD opennebula-4.14.2.ebuild 5992 BLAKE2B d9858fe197615ac54b61ca1637acec8bd991f7b975f95d75bb45161db6953148faa300557109213ba7f0844d9cb0c7774b5900b2c9a5afb3021edbb7412b73eb SHA512 cc18db5d7480f2067d95deb6a61df6c0a40a11ab9e4f6e2491fccdac34f349d527b6ffeedb2d2d2f04c3dba210c2a1316c635b4f69064a69bfd378ea0c4f9ebe |
58 |
-EBUILD opennebula-5.4.1.ebuild 5394 BLAKE2B be801a88a64fb6c2345845bdb389a41b7f29664a8421639977058ea6e6b419fda65db70328fbf74782859e52979e52807bd77c1e3ce71a64d456e2b8e831d12b SHA512 a4fd17509e5363838e699abbb609c9ff33de519949aa61121ffc7551405e3204dd7e6f2e0c764fc80c4a8d3f7b68693fe92ffd54c47f36095d949758b653e1dd |
59 |
EBUILD opennebula-5.4.13.ebuild 5394 BLAKE2B 9298d0c8dd1deb510b5de5e74fac171da4a706f4346c0178425340d6d5c2bbcc4eed45d461ba0f5fa4db88abab73f6cad97472ef26f5d0523689444703281bfd SHA512 bbe4e1977788043a79270b1b3d1a9b5478df4781b7fbe75bc6df6f03d1427d5bcf6840bc34ccb18233c2aaf4234c9bd6648f020910baaa68582ca68f712becef |
60 |
EBUILD opennebula-5.4.15.ebuild 7414 BLAKE2B 75dcddeebbef2092d80d087a7e6186599a23c03970171bbfc31b757f54c256c5a511c8f2212f26e499db530fd7008dc5c15beb6aa71e0000bcd9a3838e0756c0 SHA512 3483dcea0b1d20dc9542cd48d4a1ea59d17a22b6a654f47bf4634b06868a37a432c1a0c3ce4615d347508f9c1114d931633b236b256def42682780452c47b4a5 |
61 |
-EBUILD opennebula-5.4.6.ebuild 5394 BLAKE2B be801a88a64fb6c2345845bdb389a41b7f29664a8421639977058ea6e6b419fda65db70328fbf74782859e52979e52807bd77c1e3ce71a64d456e2b8e831d12b SHA512 a4fd17509e5363838e699abbb609c9ff33de519949aa61121ffc7551405e3204dd7e6f2e0c764fc80c4a8d3f7b68693fe92ffd54c47f36095d949758b653e1dd |
62 |
EBUILD opennebula-5.6.0.ebuild 5394 BLAKE2B 9298d0c8dd1deb510b5de5e74fac171da4a706f4346c0178425340d6d5c2bbcc4eed45d461ba0f5fa4db88abab73f6cad97472ef26f5d0523689444703281bfd SHA512 bbe4e1977788043a79270b1b3d1a9b5478df4781b7fbe75bc6df6f03d1427d5bcf6840bc34ccb18233c2aaf4234c9bd6648f020910baaa68582ca68f712becef |
63 |
EBUILD opennebula-5.6.1.ebuild 5394 BLAKE2B 9298d0c8dd1deb510b5de5e74fac171da4a706f4346c0178425340d6d5c2bbcc4eed45d461ba0f5fa4db88abab73f6cad97472ef26f5d0523689444703281bfd SHA512 bbe4e1977788043a79270b1b3d1a9b5478df4781b7fbe75bc6df6f03d1427d5bcf6840bc34ccb18233c2aaf4234c9bd6648f020910baaa68582ca68f712becef |
64 |
EBUILD opennebula-5.8.1.ebuild 5419 BLAKE2B 4c38582d41d7bc352966bbeb3dbe42eb83aeac3c6589ecb4f68a87ea08f9855aea062b6e14012bbd17f6b18ad67e31f3d5da86bf23d0cbb44280d34496045da0 SHA512 a3506dc7d4f6d37136ef55da86d340fe477749a10c1a07b4b2c86692b5f06646f72cfbbdb4d57a55f841c0a0ecf7eef125fc22ed16ccfaae84c4adbe9b0b6b6b |
65 |
|
66 |
diff --git a/app-emulation/opennebula/opennebula-4.14.2.ebuild b/app-emulation/opennebula/opennebula-4.14.2.ebuild |
67 |
deleted file mode 100644 |
68 |
index 56fba6a..0000000 |
69 |
--- a/app-emulation/opennebula/opennebula-4.14.2.ebuild |
70 |
+++ /dev/null |
71 |
@@ -1,240 +0,0 @@ |
72 |
-# Copyright 1999-2015 Gentoo Foundation |
73 |
-# Distributed under the terms of the GNU General Public License v2 |
74 |
-# $Header: $ |
75 |
-# |
76 |
-# Official documentation |
77 |
-# * Build dependencies - http://docs.opennebula.org/4.14/integration/references/build_deps.html |
78 |
-# * Building from source - http://docs.opennebula.org/4.14/integration/references/compile.html |
79 |
-# |
80 |
-# Inspired by |
81 |
-# * http://gpo.zugaina.org/app-emulation/opennebula/ChangeLog |
82 |
-# * https://github.com/himbeere/opennebula |
83 |
-# |
84 |
- |
85 |
-EAPI=5 |
86 |
-USE_RUBY="ruby20 ruby21" |
87 |
- |
88 |
-inherit eutils multilib user ruby-ng |
89 |
- |
90 |
-DESCRIPTION="OpenNebula exists to help companies build simple, cost-effective, reliable, open enterprise clouds on existing IT infrastructure." |
91 |
-HOMEPAGE="http://www.opennebula.org/" |
92 |
-SRC_URI="http://downloads.opennebula.org/packages/${P}/${P}.tar.gz" |
93 |
- |
94 |
-LICENSE="Apache-2.0" |
95 |
-SLOT="0" |
96 |
-KEYWORDS="amd64" |
97 |
- |
98 |
-IUSE="-flow frontend -gate -node mysql -sqlite -sunstone syslog qemu -xen" |
99 |
-REQUIRED_USE=" |
100 |
- ?? ( node frontend ) |
101 |
- node? ( || ( !flow !frontend !gate !sunstone qemu xen ) ) |
102 |
- frontend? ( || ( mysql sqlite ) ) |
103 |
- flow? ( frontend ) |
104 |
- gate? ( frontend ) |
105 |
- sunstone? ( frontend ) |
106 |
-" |
107 |
- |
108 |
-ONE_DEPEND=" |
109 |
- >=dev-ruby/sequel-4 |
110 |
- dev-ruby/json |
111 |
- dev-ruby/rack |
112 |
- dev-ruby/sinatra |
113 |
- www-servers/thin |
114 |
-" |
115 |
- |
116 |
-RDEPEND=" |
117 |
- dev-libs/libxml2 |
118 |
- net-misc/openssh |
119 |
- sys-apps/pciutils |
120 |
- sys-apps/usbutils |
121 |
- >=dev-libs/xmlrpc-c-1.31[abyss,cxx,threads] |
122 |
- >=dev-lang/ruby-1.8.7 |
123 |
- >=dev-libs/openssl-0.9.8 |
124 |
- !node? ( |
125 |
- mysql? ( |
126 |
- >=virtual/mysql-5.5 |
127 |
- dev-ruby/mysql2 |
128 |
- ) |
129 |
- sqlite? ( |
130 |
- dev-db/sqlite:3 |
131 |
- dev-ruby/sqlite3 |
132 |
- ) |
133 |
- syslog? ( |
134 |
- dev-libs/log4cpp |
135 |
- virtual/logger |
136 |
- ) |
137 |
- flow? (${ONE_DEPEND}) |
138 |
- gate? (${ONE_DEPEND}) |
139 |
- sunstone? ( |
140 |
- ${ONE_DEPEND} |
141 |
- www-apps/novnc |
142 |
- ) |
143 |
- ) |
144 |
- qemu? ( |
145 |
- app-emulation/libvirt[libvirtd,qemu] |
146 |
- app-emulation/qemu[vnc] |
147 |
- ) |
148 |
- xen? ( |
149 |
- app-emulation/xen-tools |
150 |
- ) |
151 |
-" |
152 |
-DEPEND=" |
153 |
- >=dev-util/scons-1.2.0-r1 |
154 |
- ${RDEPEND} |
155 |
-" |
156 |
- |
157 |
-ruby_add_rdepend " |
158 |
- dev-ruby/nokogiri |
159 |
- dev-ruby/crack |
160 |
- dev-ruby/curb |
161 |
-" |
162 |
- |
163 |
-# make sure no eclass is running tests |
164 |
-RESTRICT="test" |
165 |
- |
166 |
-# opennebula-4.12.0/work/opennebula-4.12.0 |
167 |
-S="${S}/${P}" |
168 |
- |
169 |
-ONEUSER="oneadmin" |
170 |
-ONEGROUP="oneadmin" |
171 |
- |
172 |
-pkg_setup () { |
173 |
- enewgroup ${ONEGROUP} |
174 |
- if use qemu; then |
175 |
- enewuser ${ONEUSER} -1 /bin/bash /var/lib/one "${ONEGROUP},kvm,qemu" |
176 |
- else |
177 |
- enewuser ${ONEUSER} -1 /bin/bash /var/lib/one "${ONEGROUP}" |
178 |
- fi |
179 |
-} |
180 |
- |
181 |
-src_unpack() { |
182 |
- default |
183 |
-} |
184 |
- |
185 |
-src_prepare() { |
186 |
- epatch "${FILESDIR}/OpenNebulaVNC.rb.diff" |
187 |
- epatch "${FILESDIR}/websocketproxy.py.diff" |
188 |
- epatch "${FILESDIR}/websocket.py.diff" |
189 |
-} |
190 |
- |
191 |
- |
192 |
-src_configure() { |
193 |
- : |
194 |
-} |
195 |
- |
196 |
-src_compile() { |
197 |
- local myconf="new_xmlrpc=yes " |
198 |
- |
199 |
- use mysql \ |
200 |
- && myconf+="mysql=yes " \ |
201 |
- || myconf+="mysql=no " |
202 |
- |
203 |
- use sqlite \ |
204 |
- && myconf+="sqlite=yes " \ |
205 |
- || myconf+="sqlite=no " |
206 |
- |
207 |
- use syslog \ |
208 |
- && myconf+="syslog=yes " |
209 |
- |
210 |
- # FIXME |
211 |
- # creates minified css and js only, it is not required for sunstone to run |
212 |
- # fails because it needs grunt, sass and possibly something else |
213 |
- #use sunstone \ |
214 |
- # && myconf+="sunstone=yes " |
215 |
- |
216 |
- if use frontend; then |
217 |
- scons \ |
218 |
- ${myconf} \ |
219 |
- $(sed -r 's/.*(-j\s*|--jobs=)([0-9]+).*/-j\2/' <<< ${MAKEOPTS}) \ |
220 |
- || die "building ${PN} failed" |
221 |
- fi |
222 |
-} |
223 |
- |
224 |
-src_install() { |
225 |
- if use node; then |
226 |
- src_install_node |
227 |
- elif use frontend; then |
228 |
- src_install_frontend |
229 |
- fi |
230 |
-} |
231 |
- |
232 |
-src_install_node() { |
233 |
- dodir /var/{lib,log,run,tmp}/one /var/lib/one/{datastores,remotes} || die "dodir failed" |
234 |
-} |
235 |
- |
236 |
-src_install_frontend() { |
237 |
- DESTDIR="${T}/one" ./install.sh -u "$ONEUSER" -g "$ONEGROUP" |
238 |
- cd "${T}/one" |
239 |
- # installing things for real |
240 |
- dodir /var/{lib,lock,log,run,tmp}/one /var/lib/one/datastores /usr/$(get_libdir)/one /usr/share/one || die "dodir failed" |
241 |
- cp -a lib/* "${D}/usr/$(get_libdir)/one/" || die "copying lib files failed" |
242 |
- cp -a var/remotes "${D}/var/lib/one/" || die "copying remotes failed" |
243 |
- cp -a share/websockify "${D}/usr/share/one/" || die "copying websockify failed" |
244 |
- dobin bin/* |
245 |
- doman share/man/*/*[0-9].gz |
246 |
- insinto /usr/share/doc/${PF} |
247 |
- doins -r share/docs/* |
248 |
- doins -r share/examples |
249 |
- doenvd "${FILESDIR}/99one" |
250 |
- newinitd "${FILESDIR}/opennebula.initd" opennebula |
251 |
- newconfd "${FILESDIR}/opennebula.confd" opennebula |
252 |
- newinitd "${FILESDIR}/sunstone-server.initd" sunstone-server |
253 |
- newconfd "${FILESDIR}/sunstone-server.confd" sunstone-server |
254 |
- newinitd "${FILESDIR}/oneflow-server.initd" oneflow-server |
255 |
- newconfd "${FILESDIR}/oneflow-server.confd" oneflow-server |
256 |
- insinto /etc/one |
257 |
- insopts -m 0640 |
258 |
- doins -r etc/* |
259 |
- doins "${FILESDIR}/one_auth" |
260 |
- doins "${FILESDIR}/tmpfilesd.opennebula.conf" |
261 |
- fowners -R root:${ONEGROUP} /etc/one |
262 |
- fowners ${ONEUSER}:${ONEGROUP} /etc/one/one_auth |
263 |
-} |
264 |
- |
265 |
-src_install_sunstone() { |
266 |
- : |
267 |
-} |
268 |
- |
269 |
-src_install_gate() { |
270 |
- : |
271 |
-} |
272 |
- |
273 |
-src_install_flow() { |
274 |
- : |
275 |
-} |
276 |
- |
277 |
-pkg_postinst() { |
278 |
- chown -R oneadmin:oneadmin ${ROOT}var/{lock,lib,log,run,tmp}/one |
279 |
- |
280 |
- if use qemu ; then |
281 |
- elog "Make sure that the user ${ONEUSER} has access to the libvirt" |
282 |
- elog "control socket /var/run/libvirt/libvirt-sock" |
283 |
- elog "To check this as ${ONEUSER} user issue command:" |
284 |
- elog " virsh -c qemu:///system nodeinfo" |
285 |
- echo "" |
286 |
- elog "Make sure to set user = ${ONEUSER} and group = ${ONEGROUP} and" |
287 |
- elog "dynamic_ownership = 0 in /etc/libvirt/qemu.conf." |
288 |
- echo "" |
289 |
- elog "OpenNebula doesn't allow you to specify the disc format." |
290 |
- elog "Unfortunately the default in libvirt is not to guess and" |
291 |
- elog "it therefores assumes a 'raw' format when using qemu/kvm." |
292 |
- elog "Set 'allow_disk_format_probing = 0' in /etc/libvirt/qemu.conf" |
293 |
- elog "to work around this until OpenNebula fixes it." |
294 |
- fi |
295 |
- |
296 |
- |
297 |
-# local onedir="${EROOT}var/lib/one" |
298 |
-# if [ ! -d "${onedir}/.ssh" ] ; then |
299 |
-# einfo "Generating ssh-key..." |
300 |
-# umask 0027 || die "setting umask failed" |
301 |
-# mkdir "${onedir}/.ssh" || die "creating ssh directory failed" |
302 |
-# ssh-keygen -q -t dsa -N "" -f "${onedir}/.ssh/id_dsa" || die "ssh-keygen failed" |
303 |
-# cat > "${onedir}/.ssh/config" <<EOF |
304 |
-#UserKnownHostsFile /dev/null |
305 |
-#Host * |
306 |
-# StrictHostKeyChecking no |
307 |
-#EOF |
308 |
-# cat "${onedir}/.ssh/id_dsa.pub" >> "${onedir}/.ssh/authorized_keys" || die "adding key failed" |
309 |
-# chown -R ${ONEUSER}:${ONEGROUP} "${onedir}/.ssh" || die "changing owner failed" |
310 |
-# fi |
311 |
-} |
312 |
|
313 |
diff --git a/app-emulation/opennebula/opennebula-5.4.1.ebuild b/app-emulation/opennebula/opennebula-5.4.1.ebuild |
314 |
deleted file mode 100644 |
315 |
index 9d48554..0000000 |
316 |
--- a/app-emulation/opennebula/opennebula-5.4.1.ebuild |
317 |
+++ /dev/null |
318 |
@@ -1,186 +0,0 @@ |
319 |
-# Copyright 1999-2016 Gentoo Foundation |
320 |
-# Distributed under the terms of the GNU General Public License v2 |
321 |
-# $Header: $ |
322 |
- |
323 |
-EAPI=5 |
324 |
-USE_RUBY="ruby20 ruby21 ruby22 ruby23" |
325 |
- |
326 |
-inherit user eutils multilib ruby-ng systemd |
327 |
- |
328 |
-MY_P="opennebula-${PV/_/-}" |
329 |
- |
330 |
-DESCRIPTION="OpenNebula Virtual Infrastructure Engine" |
331 |
-HOMEPAGE="http://www.opennebula.org/" |
332 |
-SRC_URI="http://downloads.opennebula.org/packages/${PN}-${PV}/${PN}-${PV}.tar.gz" |
333 |
- |
334 |
-LICENSE="Apache-2.0" |
335 |
-SLOT="0" |
336 |
-KEYWORDS="~amd64" |
337 |
-IUSE="qemu +mysql xen sqlite +extras systemd" |
338 |
- |
339 |
-RDEPEND=">=dev-libs/xmlrpc-c-1.18.02[abyss,cxx,threads] |
340 |
- dev-lang/ruby |
341 |
- extras? ( dev-libs/openssl |
342 |
- dev-ruby/libxml |
343 |
- net-misc/curl |
344 |
- dev-libs/libxslt |
345 |
- dev-libs/expat |
346 |
- dev-ruby/uuidtools |
347 |
- dev-ruby/amazon-ec2 |
348 |
- dev-ruby/webmock |
349 |
- dev-ruby/mysql |
350 |
- dev-ruby/mysql2 |
351 |
- dev-ruby/parse-cron |
352 |
- dev-ruby/sequel |
353 |
- dev-ruby/treetop |
354 |
- dev-ruby/xml-simple |
355 |
- dev-ruby/zendesk_api |
356 |
- dev-libs/log4cpp ) |
357 |
- mysql? ( virtual/mysql ) |
358 |
- dev-db/sqlite |
359 |
- net-misc/openssh |
360 |
- || ( app-cdr/cdrkit app-cdr/cdrtools ) |
361 |
- sqlite? ( dev-ruby/sqlite3 ) |
362 |
- qemu? ( app-emulation/libvirt[libvirtd,qemu] ) |
363 |
- xen? ( app-emulation/xen-tools )" |
364 |
-DEPEND="${RDEPEND} |
365 |
- >=dev-util/scons-1.2.0-r1 |
366 |
- dev-ruby/nokogiri" |
367 |
- |
368 |
-# make sure no eclass is running tests |
369 |
-RESTRICT="test" |
370 |
- |
371 |
-S="${WORKDIR}/${PN}-${PV}" |
372 |
- |
373 |
-ONEUSER="oneadmin" |
374 |
-ONEGROUP="oneadmin" |
375 |
- |
376 |
-pkg_setup () { |
377 |
- enewgroup ${ONEGROUP} |
378 |
- enewuser ${ONEUSER} -1 /bin/bash /var/lib/one ${ONEGROUP} |
379 |
-} |
380 |
- |
381 |
-src_unpack() { |
382 |
- default |
383 |
-} |
384 |
- |
385 |
-src_prepare() { |
386 |
- sed -i -e 's|chmod|true|' install.sh || die "sed failed" |
387 |
-} |
388 |
- |
389 |
-src_configure() { |
390 |
- : |
391 |
-} |
392 |
- |
393 |
-src_compile() { |
394 |
- |
395 |
- local myconf |
396 |
- use extras && myconf+="new_xmlrpc=yes " |
397 |
- use mysql && myconf+="mysql=yes " || myconf+="mysql=no " |
398 |
- scons \ |
399 |
- ${myconf} \ |
400 |
- $(sed -r 's/.*(-j\s*|--jobs=)([0-9]+).*/-j\2/' <<< ${MAKEOPTS}) \ |
401 |
- || die "building ${PN} failed" |
402 |
-} |
403 |
- |
404 |
-src_install() { |
405 |
- DESTDIR=${T} ./install.sh -u ${ONEUSER} -g ${ONEGROUP} || die "install failed" |
406 |
- |
407 |
- cd "${T}" |
408 |
- |
409 |
- # installing things for real |
410 |
- dobin bin/* |
411 |
- |
412 |
- keepdir /var/{lib,run}/${PN} || die "keepdir failed" |
413 |
- |
414 |
- dodir /usr/$(get_libdir)/one |
415 |
- dodir /var/lock/one |
416 |
- dodir /var/log/one |
417 |
- dodir /var/lib/one |
418 |
- dodir /var/run/one |
419 |
- dodir /var/tmp/one |
420 |
- # we have to preserve the executable bits |
421 |
- cp -a lib/* "${D}/usr/$(get_libdir)/one/" || die "copying lib files failed" |
422 |
- |
423 |
- insinto /usr/share/doc/${PF} |
424 |
- doins -r share/examples |
425 |
- |
426 |
- dodir /var/lib/one |
427 |
- dodir /var/lib/one/vms |
428 |
- dodir /usr/share/one |
429 |
- dodir /etc/tmpfiles.d |
430 |
- # we have to preserve the executable bits |
431 |
- cp -a var/remotes "${D}/var/lib/one/" || die "copying remotes failed" |
432 |
- cp -a share/* "${D}/usr/share/one/" || die "copying share failed" |
433 |
- |
434 |
- doenvd "${FILESDIR}/99one" |
435 |
- |
436 |
- newinitd "${FILESDIR}/opennebula.initd" opennebula |
437 |
- newinitd "${FILESDIR}/sunstone-server.initd" sunstone-server |
438 |
- newinitd "${FILESDIR}/oneflow-server.initd" oneflow-server |
439 |
- newconfd "${FILESDIR}/opennebula.confd" opennebula |
440 |
- newconfd "${FILESDIR}/sunstone-server.confd" sunstone-server |
441 |
- newconfd "${FILESDIR}/oneflow-server.confd" oneflow-server |
442 |
- |
443 |
- use systemd && systemd_dounit "${FILESDIR}"/opennebula{,-sunstone,-econe,-oneflow,-onegate}.service |
444 |
- |
445 |
- insinto /etc/one |
446 |
- insopts -m 0640 |
447 |
- doins -r etc/* |
448 |
- doins "${FILESDIR}/one_auth" |
449 |
- |
450 |
- insinto /etc/tmpfiles.d |
451 |
- doins "${FILESDIR}/tmpfilesd.opennebula.conf" |
452 |
- |
453 |
-} |
454 |
- |
455 |
-pkg_postinst() { |
456 |
- |
457 |
- |
458 |
- chown -R oneadmin:oneadmin ${ROOT}var/{lock,lib,log,run,tmp}/one |
459 |
- chown -R oneadmin:oneadmin ${ROOT}usr/share/one |
460 |
- chown -R oneadmin:oneadmin ${ROOT}etc/one |
461 |
- chown -R oneadmin:oneadmin ${ROOT}usr/lib/one |
462 |
- |
463 |
- local onedir="${EROOT}var/lib/one" |
464 |
- if [ ! -d "${onedir}/.ssh" ] ; then |
465 |
- einfo "Generating ssh-key..." |
466 |
- umask 0027 || die "setting umask failed" |
467 |
- mkdir "${onedir}/.ssh" || die "creating ssh directory failed" |
468 |
- ssh-keygen -q -t dsa -N "" -f "${onedir}/.ssh/id_dsa" || die "ssh-keygen failed" |
469 |
- cat > "${onedir}/.ssh/config" <<EOF |
470 |
-UserKnownHostsFile /dev/null |
471 |
-Host * |
472 |
- StrictHostKeyChecking no |
473 |
-EOF |
474 |
- cat "${onedir}/.ssh/id_dsa.pub" >> "${onedir}/.ssh/authorized_keys" || die "adding key failed" |
475 |
- chown -R ${ONEUSER}:${ONEGROUP} "${onedir}/.ssh" || die "changing owner failed" |
476 |
- fi |
477 |
- |
478 |
- if use qemu ; then |
479 |
- elog "Make sure that the user ${ONEUSER} has access to the libvirt control socket" |
480 |
- elog " /var/run/libvirt/libvirt-sock" |
481 |
- elog "You can easily check this by executing the following command as ${ONEUSER} user" |
482 |
- elog " virsh -c qemu:///system nodeinfo" |
483 |
- elog "If not using using policykit in libvirt, the file you should take a look at is:" |
484 |
- elog " /etc/libvirt/libvirtd.conf (look for the unix_sock_*_perms parameters)" |
485 |
- elog "Failure to do so may lead to nodes hanging in PENDING state forever without further notice." |
486 |
- echo "" |
487 |
- elog "Should a node hang in PENDING state even with correct permissions, try the following to get more information." |
488 |
- elog "In /tmp/one-im execute the following command for the biggest one_im-* file:" |
489 |
- elog " ruby -wd one_im-???" |
490 |
- echo "" |
491 |
- elog "OpenNebula doesn't allow you to specify the disc format." |
492 |
- elog "Unfortunately the default in libvirt is not to guess and" |
493 |
- elog "it therefores assumes a 'raw' format when using qemu/kvm." |
494 |
- elog "Set 'allow_disk_format_probing = 0' in /etc/libvirt/qemu.conf" |
495 |
- elog "to work around this until OpenNebula fixes it." |
496 |
- fi |
497 |
- |
498 |
- elog "If you wish to use the sunstone server, please issue the command" |
499 |
- #elog "/usr/share/one/install_gems as oneadmin user" |
500 |
- elog "gem install sequel thin json rack sinatra builder treetop zendesk_api mysql parse-cron" |
501 |
- |
502 |
- |
503 |
-} |
504 |
- |
505 |
|
506 |
diff --git a/app-emulation/opennebula/opennebula-5.4.6.ebuild b/app-emulation/opennebula/opennebula-5.4.6.ebuild |
507 |
deleted file mode 100644 |
508 |
index 9d48554..0000000 |
509 |
--- a/app-emulation/opennebula/opennebula-5.4.6.ebuild |
510 |
+++ /dev/null |
511 |
@@ -1,186 +0,0 @@ |
512 |
-# Copyright 1999-2016 Gentoo Foundation |
513 |
-# Distributed under the terms of the GNU General Public License v2 |
514 |
-# $Header: $ |
515 |
- |
516 |
-EAPI=5 |
517 |
-USE_RUBY="ruby20 ruby21 ruby22 ruby23" |
518 |
- |
519 |
-inherit user eutils multilib ruby-ng systemd |
520 |
- |
521 |
-MY_P="opennebula-${PV/_/-}" |
522 |
- |
523 |
-DESCRIPTION="OpenNebula Virtual Infrastructure Engine" |
524 |
-HOMEPAGE="http://www.opennebula.org/" |
525 |
-SRC_URI="http://downloads.opennebula.org/packages/${PN}-${PV}/${PN}-${PV}.tar.gz" |
526 |
- |
527 |
-LICENSE="Apache-2.0" |
528 |
-SLOT="0" |
529 |
-KEYWORDS="~amd64" |
530 |
-IUSE="qemu +mysql xen sqlite +extras systemd" |
531 |
- |
532 |
-RDEPEND=">=dev-libs/xmlrpc-c-1.18.02[abyss,cxx,threads] |
533 |
- dev-lang/ruby |
534 |
- extras? ( dev-libs/openssl |
535 |
- dev-ruby/libxml |
536 |
- net-misc/curl |
537 |
- dev-libs/libxslt |
538 |
- dev-libs/expat |
539 |
- dev-ruby/uuidtools |
540 |
- dev-ruby/amazon-ec2 |
541 |
- dev-ruby/webmock |
542 |
- dev-ruby/mysql |
543 |
- dev-ruby/mysql2 |
544 |
- dev-ruby/parse-cron |
545 |
- dev-ruby/sequel |
546 |
- dev-ruby/treetop |
547 |
- dev-ruby/xml-simple |
548 |
- dev-ruby/zendesk_api |
549 |
- dev-libs/log4cpp ) |
550 |
- mysql? ( virtual/mysql ) |
551 |
- dev-db/sqlite |
552 |
- net-misc/openssh |
553 |
- || ( app-cdr/cdrkit app-cdr/cdrtools ) |
554 |
- sqlite? ( dev-ruby/sqlite3 ) |
555 |
- qemu? ( app-emulation/libvirt[libvirtd,qemu] ) |
556 |
- xen? ( app-emulation/xen-tools )" |
557 |
-DEPEND="${RDEPEND} |
558 |
- >=dev-util/scons-1.2.0-r1 |
559 |
- dev-ruby/nokogiri" |
560 |
- |
561 |
-# make sure no eclass is running tests |
562 |
-RESTRICT="test" |
563 |
- |
564 |
-S="${WORKDIR}/${PN}-${PV}" |
565 |
- |
566 |
-ONEUSER="oneadmin" |
567 |
-ONEGROUP="oneadmin" |
568 |
- |
569 |
-pkg_setup () { |
570 |
- enewgroup ${ONEGROUP} |
571 |
- enewuser ${ONEUSER} -1 /bin/bash /var/lib/one ${ONEGROUP} |
572 |
-} |
573 |
- |
574 |
-src_unpack() { |
575 |
- default |
576 |
-} |
577 |
- |
578 |
-src_prepare() { |
579 |
- sed -i -e 's|chmod|true|' install.sh || die "sed failed" |
580 |
-} |
581 |
- |
582 |
-src_configure() { |
583 |
- : |
584 |
-} |
585 |
- |
586 |
-src_compile() { |
587 |
- |
588 |
- local myconf |
589 |
- use extras && myconf+="new_xmlrpc=yes " |
590 |
- use mysql && myconf+="mysql=yes " || myconf+="mysql=no " |
591 |
- scons \ |
592 |
- ${myconf} \ |
593 |
- $(sed -r 's/.*(-j\s*|--jobs=)([0-9]+).*/-j\2/' <<< ${MAKEOPTS}) \ |
594 |
- || die "building ${PN} failed" |
595 |
-} |
596 |
- |
597 |
-src_install() { |
598 |
- DESTDIR=${T} ./install.sh -u ${ONEUSER} -g ${ONEGROUP} || die "install failed" |
599 |
- |
600 |
- cd "${T}" |
601 |
- |
602 |
- # installing things for real |
603 |
- dobin bin/* |
604 |
- |
605 |
- keepdir /var/{lib,run}/${PN} || die "keepdir failed" |
606 |
- |
607 |
- dodir /usr/$(get_libdir)/one |
608 |
- dodir /var/lock/one |
609 |
- dodir /var/log/one |
610 |
- dodir /var/lib/one |
611 |
- dodir /var/run/one |
612 |
- dodir /var/tmp/one |
613 |
- # we have to preserve the executable bits |
614 |
- cp -a lib/* "${D}/usr/$(get_libdir)/one/" || die "copying lib files failed" |
615 |
- |
616 |
- insinto /usr/share/doc/${PF} |
617 |
- doins -r share/examples |
618 |
- |
619 |
- dodir /var/lib/one |
620 |
- dodir /var/lib/one/vms |
621 |
- dodir /usr/share/one |
622 |
- dodir /etc/tmpfiles.d |
623 |
- # we have to preserve the executable bits |
624 |
- cp -a var/remotes "${D}/var/lib/one/" || die "copying remotes failed" |
625 |
- cp -a share/* "${D}/usr/share/one/" || die "copying share failed" |
626 |
- |
627 |
- doenvd "${FILESDIR}/99one" |
628 |
- |
629 |
- newinitd "${FILESDIR}/opennebula.initd" opennebula |
630 |
- newinitd "${FILESDIR}/sunstone-server.initd" sunstone-server |
631 |
- newinitd "${FILESDIR}/oneflow-server.initd" oneflow-server |
632 |
- newconfd "${FILESDIR}/opennebula.confd" opennebula |
633 |
- newconfd "${FILESDIR}/sunstone-server.confd" sunstone-server |
634 |
- newconfd "${FILESDIR}/oneflow-server.confd" oneflow-server |
635 |
- |
636 |
- use systemd && systemd_dounit "${FILESDIR}"/opennebula{,-sunstone,-econe,-oneflow,-onegate}.service |
637 |
- |
638 |
- insinto /etc/one |
639 |
- insopts -m 0640 |
640 |
- doins -r etc/* |
641 |
- doins "${FILESDIR}/one_auth" |
642 |
- |
643 |
- insinto /etc/tmpfiles.d |
644 |
- doins "${FILESDIR}/tmpfilesd.opennebula.conf" |
645 |
- |
646 |
-} |
647 |
- |
648 |
-pkg_postinst() { |
649 |
- |
650 |
- |
651 |
- chown -R oneadmin:oneadmin ${ROOT}var/{lock,lib,log,run,tmp}/one |
652 |
- chown -R oneadmin:oneadmin ${ROOT}usr/share/one |
653 |
- chown -R oneadmin:oneadmin ${ROOT}etc/one |
654 |
- chown -R oneadmin:oneadmin ${ROOT}usr/lib/one |
655 |
- |
656 |
- local onedir="${EROOT}var/lib/one" |
657 |
- if [ ! -d "${onedir}/.ssh" ] ; then |
658 |
- einfo "Generating ssh-key..." |
659 |
- umask 0027 || die "setting umask failed" |
660 |
- mkdir "${onedir}/.ssh" || die "creating ssh directory failed" |
661 |
- ssh-keygen -q -t dsa -N "" -f "${onedir}/.ssh/id_dsa" || die "ssh-keygen failed" |
662 |
- cat > "${onedir}/.ssh/config" <<EOF |
663 |
-UserKnownHostsFile /dev/null |
664 |
-Host * |
665 |
- StrictHostKeyChecking no |
666 |
-EOF |
667 |
- cat "${onedir}/.ssh/id_dsa.pub" >> "${onedir}/.ssh/authorized_keys" || die "adding key failed" |
668 |
- chown -R ${ONEUSER}:${ONEGROUP} "${onedir}/.ssh" || die "changing owner failed" |
669 |
- fi |
670 |
- |
671 |
- if use qemu ; then |
672 |
- elog "Make sure that the user ${ONEUSER} has access to the libvirt control socket" |
673 |
- elog " /var/run/libvirt/libvirt-sock" |
674 |
- elog "You can easily check this by executing the following command as ${ONEUSER} user" |
675 |
- elog " virsh -c qemu:///system nodeinfo" |
676 |
- elog "If not using using policykit in libvirt, the file you should take a look at is:" |
677 |
- elog " /etc/libvirt/libvirtd.conf (look for the unix_sock_*_perms parameters)" |
678 |
- elog "Failure to do so may lead to nodes hanging in PENDING state forever without further notice." |
679 |
- echo "" |
680 |
- elog "Should a node hang in PENDING state even with correct permissions, try the following to get more information." |
681 |
- elog "In /tmp/one-im execute the following command for the biggest one_im-* file:" |
682 |
- elog " ruby -wd one_im-???" |
683 |
- echo "" |
684 |
- elog "OpenNebula doesn't allow you to specify the disc format." |
685 |
- elog "Unfortunately the default in libvirt is not to guess and" |
686 |
- elog "it therefores assumes a 'raw' format when using qemu/kvm." |
687 |
- elog "Set 'allow_disk_format_probing = 0' in /etc/libvirt/qemu.conf" |
688 |
- elog "to work around this until OpenNebula fixes it." |
689 |
- fi |
690 |
- |
691 |
- elog "If you wish to use the sunstone server, please issue the command" |
692 |
- #elog "/usr/share/one/install_gems as oneadmin user" |
693 |
- elog "gem install sequel thin json rack sinatra builder treetop zendesk_api mysql parse-cron" |
694 |
- |
695 |
- |
696 |
-} |
697 |
- |
698 |
|
699 |
diff --git a/www-apps/gitlabhq/Manifest b/www-apps/gitlabhq/Manifest |
700 |
deleted file mode 100644 |
701 |
index f7707cc..0000000 |
702 |
--- a/www-apps/gitlabhq/Manifest |
703 |
+++ /dev/null |
704 |
@@ -1,20 +0,0 @@ |
705 |
-AUX config.ssh 245 SHA256 5bf5d5a357e88b71e14a12bb28ea68d0286ed29118045aa944484b84b6fa5e4b SHA512 52dbec481cd45136e72370713ab20a41616dccb252e75b884b66e2494aaefe7795719169906dcad5030dcbe33201d021bdad1f7a99120ac40a64611290ff8759 WHIRLPOOL 9b991ad20787e0e7274136ddb8e22e1082360d580f8576feb722730b5c3f3fa22992f671f7916e191052a78d8d688d32044b39059dc7146d14c2da57fa891214 |
706 |
-AUX gitlab.logrotate 191 SHA256 9c02c26f5faa443cd576599462c6a8206d62495ab9671098a5f0e379f216541b SHA512 2212a8e5f2d4704256d5abb92b5a1201b20f82b04610758e734d163792a60b78f482017510169666a70ed9352b171177d05237ffe87988cacb764c5ef7ba5443 WHIRLPOOL f61297015311316554e63af4822b8d274f5a2378e829e5c14bb22e642b0d83023446acff45a13aa354f127543ce1552c99488b92ed8f39d86959343c7e67bbee |
707 |
-AUX gitlabhq-10.0-fix-checks-gentoo.patch 576 SHA256 c391db8dc1edd4724c4014c370a5578ff39347ef0a2e95b91b25123d977158b0 SHA512 47a11c350e297c831540de36c84b350b142e48dd05451642b5261eb2059cd12e8288b2e9e27fc2050e9b5d65beaeafa903f8e1457a41131ca602687d3f95ce94 WHIRLPOOL 58dd6867684e037750af3b7cd016933c82e04c04f34ee3a82c505254159687205a71f6d6c205215c2db3fe74fd2f9dcffc00cb20b67970778e04c234cb05e6ef |
708 |
-AUX gitlabhq-10.0-fix-sendmail-param.patch 617 SHA256 c0b6db990f5b0fd0c588f2e35eb3aac54ce54d9b41b350e7bcd54336cdc19462 SHA512 4234563b2d8eb5814fd8d9910a50fb867e444052639feebb192bb105471eae9038a076a5288b14e3fbb997311824853bea9d9c4833b4854b7f0252b826f22358 WHIRLPOOL 06f19a23028a6b83dd6ff2f9ec406af5e5f5e2c0a5879ab66585ce7b3d070170e29407c2ab9915c4afb75a23038e178295213db99ac514d865f4c1db57b22774 |
709 |
-AUX gitlabhq-10.0-mailroom.service 823 SHA256 352c7f98ff6d0f8f221083d69cce1f64c4abf4a037eeccc1e4078970231966fa SHA512 7beb1a7c55610c671b709f56d9f4df8cebbd7fc81dc8a7af18666d46a0f2d4cc3c0b24a6fc5e8b41f0e2de86fb22a28b1a3702243e26aae4426ffa588f7f5a0b WHIRLPOOL 92bd3bf102bc4c657b605b45e2564920d229a2819ad2069b4f4a67d1cbf20647dbccf9026dc15d1e4d052a48167422fd969c0b2c003f6d4557a20b34a5507140 |
710 |
-AUX gitlabhq-10.0-sidekiq.service 1056 SHA256 4c90ac82a415b437fbe30116b0c709fdff1d7589b3e5364f4e6c6c10dca67b3f SHA512 b41a0ab0517426b2433c8bb085983617bc71bc00d405eab040ceb469f0cb448c2ca5fcc7efe545e769b5a3ad73d0d4173187699e3a17045f3fcca772633f0d20 WHIRLPOOL 4bb7a3b0f1bb83f5364b00bca62c53015611f5ee397a1d2cb3259c48c2316bcba2d3fda348fdb5dd9e8bbc6611e13c0de99aa2eccdd3b171333bad2fa9fd1e85 |
711 |
-AUX gitlabhq-10.0-tmpfiles.conf 43 SHA256 eabee99b2408717c7e246162f531e2d9e6422a06a0751626a9eb3983d41d234b SHA512 e1a4baff93a648166574b34750e889840ffddf56bcc8d2aaa4e11f1a94ae0618ee54716fcbabcfad27c8a539fdf8fb2681e9a6dbe749ba16d9207c4045e73796 WHIRLPOOL 239693111215cb685980bf1bbbf8473c84965f736d60bc022fc24692075c5e5ecf49f7cd4f395f703bc1de59cb84454fa1c98017e4c50cf83c3f67ab01015691 |
712 |
-AUX gitlabhq-10.0-unicorn.service 817 SHA256 de014afb92dfafb58e00c507a5ac9597160569ea8408540b38eb603a192391e8 SHA512 57b1f5ec8224edcf3cbb0038fc62df3a3b6a1cf9d5436e5632bd998318c6f615722b012408d0db3013e34c4f44dc866a3d471af88666d55caa18e0e4bd056512 WHIRLPOOL 857e48495f1b80e409146eab07cff35414222c0a9bffab10ad1da85b838af5ee8d16501e5b9a5e4f5f493b4b3bf69d0c084d7b7cc45eb00c7434da77b9edbcb9 |
713 |
-AUX gitlabhq-10.0-workhorse.service 1104 SHA256 991f990390715c895fe4c12df6def03ab2a03120b9a2cc6f89e0e70560cbbd7d SHA512 e4dd8e39001ae07857a8d87e82eca105a0cfbf87f7dc341227e19dd80b6bdddf308f5bba79d5d5bc87f935d86b5435af94c1f6d8c829d45d17f31b776fa5b057 WHIRLPOOL 263e5a710519a611772c6d4f036e8794c474eb27b5009bda8a38fe3932a13fa1f0a29fb72a9aebe85d3b9ec6f9347501f4bcffac80d206f25b8224e50024c9b0 |
714 |
-AUX gitlabhq-10.0.init 3989 SHA256 544ed91c18c3fe658defd47eb82dab5ce52eb968b7bc6e8ae800ccada6eb5c8f SHA512 451d3a8c3f4cd8bea624066fd8ff3655bb343531bc297ac7b1df2ebcc21bc36bd29c084797e2f14788c701a2fc7178098fadbb4730ce9fdc9e9bbfcaef839029 WHIRLPOOL 92cfe0cdd161db5d36240706234561b8336feaba5202cd12fc7e07ff0a433e1a35651e78a9520792dc49ea1c8aa39474a54176cab95bc5a26718d45ce97925b6 |
715 |
-AUX gitlabhq-8.14-fix-checks-gentoo.patch 390 SHA256 60324945dfff6d236faf7959a75089a782018b048ba1cb846b91e14109673236 SHA512 0ac979616639fdd9b9534c9e7c0ad3263f39fa10e6858a6c8cf401a3234d5ef20201fd97e2a5a39071dcf98fb7ca7a48b41d18db7689103e996baf65ae9f00ea WHIRLPOOL 98c46a4b4bafeb870425f437506b202c0c836b4df8763a3716d2cf21da73b04ffd0c31a6222317cf22e550a7676b463771038b595c1b2f9d491955dd0a82885a |
716 |
-AUX gitlabhq-8.14-fix-sendmail-param.patch 617 SHA256 685ad4c2307477b6f389db9b37048beb63af5a556669859d48d137c7b8b3687a SHA512 092aedb88d892d086128d76a0442ba81dc1b2e573322c7f33fad00a1b56dd035f596de82568463043fcfd02e4e30a81b6d42f83a2052144d133c5edffaa8edd1 WHIRLPOOL 61aaa2c1d8b8476f24f34257d29ac482dc38e503560a71de5511c62f1c86aa1ca3cec67272c2db42df36c6cc80688b6f1b60f0de7bb23e71f7daabf9746f70a7 |
717 |
-AUX gitlabhq-8.14.init 2987 SHA256 37d01155d681a17cb669ffbd8e32d127a79f0fbc3864f941e5444efcd2114859 SHA512 e5395f6ff8e3e65ee8a856d93cdfa6a3c063f0cc160c2e86ced93d6d62430ee9b841ee20e902b8c49843d3c737b2f690b0478ff190bbf107692a4bb12cb090f5 WHIRLPOOL 1bee9675ca1856efd5b1587b64b5ba3a26df340ad9044a4b3d239bec00e24d931e48083c7a4dee60bd5082c9b580ecd5d251ff1f1987e094e4cb2bc15af8a237 |
718 |
-AUX gitlabhq-8.15-fix-checks-gentoo.patch 390 SHA256 60324945dfff6d236faf7959a75089a782018b048ba1cb846b91e14109673236 SHA512 0ac979616639fdd9b9534c9e7c0ad3263f39fa10e6858a6c8cf401a3234d5ef20201fd97e2a5a39071dcf98fb7ca7a48b41d18db7689103e996baf65ae9f00ea WHIRLPOOL 98c46a4b4bafeb870425f437506b202c0c836b4df8763a3716d2cf21da73b04ffd0c31a6222317cf22e550a7676b463771038b595c1b2f9d491955dd0a82885a |
719 |
-AUX gitlabhq-8.15-fix-sendmail-param.patch 617 SHA256 34e84a76399a55ee25386a5869a42e2973e929bf3b97d1bb3247de1bffe7f063 SHA512 1d11e2942337a4e00d47fef6997173ef50c89330b70569bdb07bcd29dbc28071088825e7f5bd2380c131ae11b818fe6de40fe96ea498a0666a1290553fd66469 WHIRLPOOL 9d4ecfaa9030abb363f760dc31fae616a64a4987fe566a7a2c38bbe5117e98af25a190016ed65a1fa26db62b110523a2baf6c3b83dc945185fc091f6b3722bfb |
720 |
-AUX gitlabhq-8.15.init 2987 SHA256 f72b2d23034a29c958d661feb9f608e138ab65e70a62929bb248e7d8d447dea4 SHA512 0b54b15e7e622e0821b8218423d2a43a8a054e971d42bc7084aaaf160dbaedec1ab224ad6a2d2b6a79e54b8dd6d40a5a3eaafffee6a6a5cf7c4a365c856273cd WHIRLPOOL 1c107c4e3b2c31cdb36a60c5a7b6ef2f54cd56aa3bef8120cfd82e0948b11a70eaa2a38a4a2c12936b2372b3b6c38b140977fdba1f6547ca659254e44309e178 |
721 |
-AUX gitlabhq-8.16-fix-checks-gentoo.patch 390 SHA256 60324945dfff6d236faf7959a75089a782018b048ba1cb846b91e14109673236 SHA512 0ac979616639fdd9b9534c9e7c0ad3263f39fa10e6858a6c8cf401a3234d5ef20201fd97e2a5a39071dcf98fb7ca7a48b41d18db7689103e996baf65ae9f00ea WHIRLPOOL 98c46a4b4bafeb870425f437506b202c0c836b4df8763a3716d2cf21da73b04ffd0c31a6222317cf22e550a7676b463771038b595c1b2f9d491955dd0a82885a |
722 |
-AUX gitlabhq-8.16-fix-sendmail-param.patch 617 SHA256 c0b6db990f5b0fd0c588f2e35eb3aac54ce54d9b41b350e7bcd54336cdc19462 SHA512 4234563b2d8eb5814fd8d9910a50fb867e444052639feebb192bb105471eae9038a076a5288b14e3fbb997311824853bea9d9c4833b4854b7f0252b826f22358 WHIRLPOOL 06f19a23028a6b83dd6ff2f9ec406af5e5f5e2c0a5879ab66585ce7b3d070170e29407c2ab9915c4afb75a23038e178295213db99ac514d865f4c1db57b22774 |
723 |
-AUX gitlabhq-8.16.init 2987 SHA256 d8788979fec8a05c241fc692d586537e4715c7894b5d70fd471a701913f19166 SHA512 16922aa485c99c4e30def0fed80ce883ac2786b9714070f84b09c019314deb513b8bfba8906ff67548738c0a039996e000a730bc6ad682fac5b979ebf0132c31 WHIRLPOOL dae5bfa2c77df41afe8b60634f91661dcd48ea7bbcce81fce361d7b4e8117011008f995393a8c6401ba9601c18ba94bd0a60fe5d5ad5a7d5d45b317ca8bf5ab3 |
724 |
-EBUILD gitlabhq-10.0.3.ebuild 19226 SHA256 78e9e0c9d23685e78c42a27c118322e28ea462b0fa13f494c4dd599eff7921ec SHA512 661f95a3e57cf49276b1241c98f164ba224f1d97e574a3ff390a919e5b560f9f8175758e3b4ac993f7bf54cc01c1c38cc2e7bd8171c841051a38482f870369ff WHIRLPOOL aee47a5504f23d17becd243ea3232bd8aae6ef077c6a6fa9dcf187ae2bfc86c28090732db27443e02b4a5f87b4dd3c52aab9166d006734331c62f9b1957b68f5 |
725 |
|
726 |
diff --git a/www-apps/gitlabhq/files/config.ssh b/www-apps/gitlabhq/files/config.ssh |
727 |
deleted file mode 100644 |
728 |
index ef23718..0000000 |
729 |
--- a/www-apps/gitlabhq/files/config.ssh |
730 |
+++ /dev/null |
731 |
@@ -1,10 +0,0 @@ |
732 |
-Host localhost |
733 |
- StrictHostKeyChecking no |
734 |
- UserKnownHostsFile=/dev/null |
735 |
- BatchMode yes |
736 |
- CheckHostIP no |
737 |
- AddressFamily inet |
738 |
- PreferredAuthentications publickey |
739 |
- ControlMaster auto |
740 |
- ControlPath ~/.ssh/ssh-%r-%h:%p.sock |
741 |
- ControlPersist 24h |
742 |
|
743 |
diff --git a/www-apps/gitlabhq/files/gitlab.logrotate b/www-apps/gitlabhq/files/gitlab.logrotate |
744 |
deleted file mode 100644 |
745 |
index 569b297..0000000 |
746 |
--- a/www-apps/gitlabhq/files/gitlab.logrotate |
747 |
+++ /dev/null |
748 |
@@ -1,10 +0,0 @@ |
749 |
-# Copyright 1999-2012 Gentoo Foundation |
750 |
-# Distributed under the terms of the GNU General Public License v2 |
751 |
-# $Header: $ |
752 |
- |
753 |
-@LOG_DIR@/*.log { |
754 |
- missingok |
755 |
- delaycompress |
756 |
- compress |
757 |
- copytruncate |
758 |
-} |
759 |
|
760 |
diff --git a/www-apps/gitlabhq/files/gitlabhq-10.0-fix-checks-gentoo.patch b/www-apps/gitlabhq/files/gitlabhq-10.0-fix-checks-gentoo.patch |
761 |
deleted file mode 100644 |
762 |
index 61e5979..0000000 |
763 |
--- a/www-apps/gitlabhq/files/gitlabhq-10.0-fix-checks-gentoo.patch |
764 |
+++ /dev/null |
765 |
@@ -1,11 +0,0 @@ |
766 |
---- lib/tasks/gitlab/check.rake.orig 2017-07-03 11:26:11.483241898 +0200 |
767 |
-+++ lib/tasks/gitlab/check.rake 2017-07-03 11:26:30.189242167 +0200 |
768 |
-@@ -27,8 +27,6 @@ |
769 |
- SystemCheck::App::UploadsDirectoryExistsCheck, |
770 |
- SystemCheck::App::UploadsPathPermissionCheck, |
771 |
- SystemCheck::App::UploadsPathTmpPermissionCheck, |
772 |
-- SystemCheck::App::InitScriptExistsCheck, |
773 |
-- SystemCheck::App::InitScriptUpToDateCheck, |
774 |
- SystemCheck::App::ProjectsHaveNamespaceCheck, |
775 |
- SystemCheck::App::RedisVersionCheck, |
776 |
- SystemCheck::App::RubyVersionCheck, |
777 |
|
778 |
diff --git a/www-apps/gitlabhq/files/gitlabhq-10.0-fix-sendmail-param.patch b/www-apps/gitlabhq/files/gitlabhq-10.0-fix-sendmail-param.patch |
779 |
deleted file mode 100644 |
780 |
index d905fe9..0000000 |
781 |
--- a/www-apps/gitlabhq/files/gitlabhq-10.0-fix-sendmail-param.patch |
782 |
+++ /dev/null |
783 |
@@ -1,17 +0,0 @@ |
784 |
---- gitlabhq-8.7.5/config/environments/production.rb.orig 2016-05-20 17:01:56.043486847 +0200 |
785 |
-+++ gitlabhq-8.7.5/config/environments/production.rb 2016-05-20 17:02:35.8.1696032 +0200 |
786 |
-@@ -70,10 +70,10 @@ |
787 |
- |
788 |
- config.action_mailer.delivery_method = :sendmail |
789 |
- # Defaults to: |
790 |
-- # # config.action_mailer.sendmail_settings = { |
791 |
-- # # location: '/usr/sbin/sendmail', |
792 |
-- # # arguments: '-i -t' |
793 |
-- # # } |
794 |
-+ config.action_mailer.sendmail_settings = { |
795 |
-+ location: '/usr/sbin/sendmail', |
796 |
-+ arguments: '-i' |
797 |
-+ } |
798 |
- config.action_mailer.perform_deliveries = true |
799 |
- config.action_mailer.raise_delivery_errors = true |
800 |
- |
801 |
|
802 |
diff --git a/www-apps/gitlabhq/files/gitlabhq-10.0-mailroom.service b/www-apps/gitlabhq/files/gitlabhq-10.0-mailroom.service |
803 |
deleted file mode 100644 |
804 |
index 226c6fb..0000000 |
805 |
--- a/www-apps/gitlabhq/files/gitlabhq-10.0-mailroom.service |
806 |
+++ /dev/null |
807 |
@@ -1,28 +0,0 @@ |
808 |
-##################################################### |
809 |
-# |
810 |
-# GitLab version : 8.x - 8.x |
811 |
-# Contributors : davispuh, mtorromeo, axilleas, boeserwolf91, Stefan Tatschner (rumpelsepp), firelizzard |
812 |
-# Originally from : https://gitlab.com/gitlab-org/gitlab-recipes/tree/master/init/systemd |
813 |
-# |
814 |
-#################################################### |
815 |
- |
816 |
-[Unit] |
817 |
-Description=Gitlab mailroom Worker |
818 |
-Requires=gitlab-unicorn.service |
819 |
-Wants=gitlab-unicorn.service |
820 |
-After=gitlab-unicorn.service |
821 |
- |
822 |
-[Service] |
823 |
-User=git |
824 |
-Environment=RAILS_ENV=production |
825 |
-WorkingDirectory=/opt/gitlabhq-10.0 |
826 |
-SyslogIdentifier=gitlab-mailroom |
827 |
-PIDFile=/opt/gitlabhq-10.0/tmp/pids/gitlab-mailroom.pid |
828 |
-Type=oneshot |
829 |
-RemainAfterExit=yes |
830 |
- |
831 |
-ExecStart=/opt/gitlabhq-10.0/bin/mail_room start |
832 |
-ExecStop=/opt/gitlabhq-10.0/bin/mail_room stop |
833 |
- |
834 |
-[Install] |
835 |
-WantedBy=multi-user.target |
836 |
\ No newline at end of file |
837 |
|
838 |
diff --git a/www-apps/gitlabhq/files/gitlabhq-10.0-sidekiq.service b/www-apps/gitlabhq/files/gitlabhq-10.0-sidekiq.service |
839 |
deleted file mode 100644 |
840 |
index efc7a9d..0000000 |
841 |
--- a/www-apps/gitlabhq/files/gitlabhq-10.0-sidekiq.service |
842 |
+++ /dev/null |
843 |
@@ -1,28 +0,0 @@ |
844 |
-##################################################### |
845 |
-# |
846 |
-# GitLab version : 5.x - 7.x |
847 |
-# Contributors : davispuh, mtorromeo, axilleas, boeserwolf91, Stefan Tatschner (rumpelsepp), firelizzard |
848 |
-# Originally from : https://gitlab.com/gitlab-org/gitlab-recipes/tree/master/init/systemd |
849 |
-# |
850 |
-#################################################### |
851 |
- |
852 |
-[Unit] |
853 |
-Description=GitLab Sidekiq Worker |
854 |
-Requires=redis.service gitlab-tmpdir.service |
855 |
-Wants=postgresql-10.0.service |
856 |
-After=redis.service postgresql-10.0.service |
857 |
- |
858 |
-[Service] |
859 |
-Type=forking |
860 |
-User=git |
861 |
-WorkingDirectory=/opt/gitlabhq-10.0 |
862 |
-Environment=RAILS_ENV=production |
863 |
-SyslogIdentifier=gitlab-sidekiq |
864 |
-PIDFile=/opt/gitlabhq-10.0/tmp/pids/sidekiq.pid |
865 |
-RuntimeDirectory=/var/tmp/gitlabhq-10.0 |
866 |
- |
867 |
-ExecStart=/usr/bin/bundle exec "sidekiq -C config/sidekiq_queues.yml -c 5 -e production -P tmp/pids/sidekiq.pid -d -L log/sidekiq.log >> log/sidekiq.log 2>&1" |
868 |
-ExecStop=/usr/bin/bundle exec "sidekiqctl stop /opt/gitlabhq-10.0/tmp/pids/sidekiq.pid >> /opt/gitlabhq-10.0/log/sidekiq.log 2>&1" |
869 |
- |
870 |
-[Install] |
871 |
-WantedBy=multi-user.target |
872 |
\ No newline at end of file |
873 |
|
874 |
diff --git a/www-apps/gitlabhq/files/gitlabhq-10.0-tmpfiles.conf b/www-apps/gitlabhq/files/gitlabhq-10.0-tmpfiles.conf |
875 |
deleted file mode 100644 |
876 |
index babdc80..0000000 |
877 |
--- a/www-apps/gitlabhq/files/gitlabhq-10.0-tmpfiles.conf |
878 |
+++ /dev/null |
879 |
@@ -1 +0,0 @@ |
880 |
-d /var/tmp/gitlabhq-10.0/pids 0755 git git |
881 |
|
882 |
diff --git a/www-apps/gitlabhq/files/gitlabhq-10.0-unicorn.service b/www-apps/gitlabhq/files/gitlabhq-10.0-unicorn.service |
883 |
deleted file mode 100644 |
884 |
index be930f7..0000000 |
885 |
--- a/www-apps/gitlabhq/files/gitlabhq-10.0-unicorn.service |
886 |
+++ /dev/null |
887 |
@@ -1,25 +0,0 @@ |
888 |
-##################################################### |
889 |
-# |
890 |
-# GitLab version : 5.x - 7.x |
891 |
-# Contributors : davispuh, mtorromeo, axilleas, boeserwolf91, Stefan Tatschner (rumpelsepp), firelizzard |
892 |
-# Originally from : https://gitlab.com/gitlab-org/gitlab-recipes/tree/master/init/systemd |
893 |
-# |
894 |
-#################################################### |
895 |
- |
896 |
-[Unit] |
897 |
-Description=GitLab Unicorn Server |
898 |
-Requires=redis.service gitlab-tmpdir.service |
899 |
-Wants=postgresql-10.0.service |
900 |
-After=redis.service postgresql-10.0.service |
901 |
- |
902 |
-[Service] |
903 |
-User=git |
904 |
-WorkingDirectory=/opt/gitlabhq-10.0 |
905 |
-Environment=RAILS_ENV=production |
906 |
-SyslogIdentifier=gitlab-unicorn |
907 |
-PIDFile=/opt/gitlabhq-10.0/tmp/pids/unicorn.pid |
908 |
- |
909 |
-ExecStart=/usr/bin/bundle exec "unicorn_rails -D -c /opt/gitlabhq-10.0/config/unicorn.rb -E production" |
910 |
- |
911 |
-[Install] |
912 |
-WantedBy=multi-user.target |
913 |
\ No newline at end of file |
914 |
|
915 |
diff --git a/www-apps/gitlabhq/files/gitlabhq-10.0-workhorse.service b/www-apps/gitlabhq/files/gitlabhq-10.0-workhorse.service |
916 |
deleted file mode 100644 |
917 |
index 2e6346e..0000000 |
918 |
--- a/www-apps/gitlabhq/files/gitlabhq-10.0-workhorse.service |
919 |
+++ /dev/null |
920 |
@@ -1,25 +0,0 @@ |
921 |
-##################################################### |
922 |
-# |
923 |
-# GitLab version : 8.2 - 8.x |
924 |
-# Contributors : bjorn-oivind |
925 |
-# Downloaded from : https://gitlab.com/gitlab-org/gitlab-recipes/tree/master/init/systemd |
926 |
-# |
927 |
-#################################################### |
928 |
- |
929 |
-[Unit] |
930 |
-Description=Gitlab Workhorse handles slow HTTP requests for Gitlab. |
931 |
-Requires=gitlab-unicorn.service |
932 |
-Wants=gitlab-unicorn.service |
933 |
-After=gitlab-unicorn.service |
934 |
- |
935 |
-[Service] |
936 |
-Type=forking |
937 |
-User=git |
938 |
-WorkingDirectory=/opt/gitlabhq-10.0 |
939 |
-SyslogIdentifier=gitlab-workhorse |
940 |
-PIDFile=/opt/gitlabhq-10.0/tmp/pids/gitlab-workhorse.pid |
941 |
- |
942 |
-ExecStart=/opt/gitlabhq-10.0/bin/daemon_with_pidfile /opt/gitlabhq-10.0/tmp/pids/gitlab-workhorse.pid /usr/bin/gitlab-workhorse -listenUmask 0 -listenNetwork unix -listenAddr /opt/gitlabhq-10.0/tmp/sockets/gitlab-workhorse.socket -authBackend http://127.0.0.1:8080 -authSocket /opt/gitlabhq-10.0/tmp/sockets/gitlab.socket -secretPath /opt/gitlabhq-10.0/.gitlab_workhorse_secret -documentRoot /opt/gitlabhq-10.0/public >> /opt/gitlabhq-10.0/log/gitlab-workhorse.log 2>&1 |
943 |
- |
944 |
-[Install] |
945 |
-WantedBy=multi-user.target |
946 |
\ No newline at end of file |
947 |
|
948 |
diff --git a/www-apps/gitlabhq/files/gitlabhq-10.0.init b/www-apps/gitlabhq/files/gitlabhq-10.0.init |
949 |
deleted file mode 100644 |
950 |
index 53bea87..0000000 |
951 |
--- a/www-apps/gitlabhq/files/gitlabhq-10.0.init |
952 |
+++ /dev/null |
953 |
@@ -1,115 +0,0 @@ |
954 |
-#!/sbin/openrc-run |
955 |
- |
956 |
-name="GitLab" |
957 |
-description="GitLab 10.0 on Unicorns" |
958 |
- |
959 |
-: ${rails_env:=production} |
960 |
- |
961 |
-: ${gitlab_user:=git} |
962 |
-: ${gitlab_group:=git} |
963 |
-: ${gitlab_home:="/opt/gitlabhq-10.0"} |
964 |
-: ${gitlab_log:="/var/log/gitlabhq-10.0"} |
965 |
- |
966 |
-: ${unicorn_pidfile:="${gitlab_home}/tmp/pids/unicorn.pid"} |
967 |
-: ${unicorn_log:="${gitlab_log}/unicorn.log"} |
968 |
-: ${unicorn_socket:="${gitlab_home}/tmp/sockets/gitlab.socket"} |
969 |
-: ${unicorn_command:="/usr/bin/bundle"} |
970 |
-: ${unicorn_command_args:="exec unicorn_rails -c ${gitlab_home}/config/unicorn.rb -E ${rails_env} -D"} |
971 |
- |
972 |
-: ${sidekiq_pidfile:="${gitlab_home}/tmp/pids/sidekiq.pid"} |
973 |
-: ${sidekiq_log:="${gitlab_log}/sidekiq.log"} |
974 |
-: ${sidekiq_config:="${gitlab_home}/config/sidekiq_queues.yml"} |
975 |
-: ${sidekiq_command:="/usr/bin/bundle"} |
976 |
-: ${sidekiq_start_command_args:="exec sidekiq -C ${sidekiq_config} -e ${rails_env} -d -P ${sidekiq_pidfile} -L ${sidekiq_log} $@ >> ${sidekiq_log} 2>&1"} |
977 |
-: ${sidekiq_stop_command_args:="exec sidekiqctl stop ${sidekiq_pidfile} >> ${sidekiq_log}"} |
978 |
- |
979 |
-: ${workhorse_pidfile:="${gitlab_home}/tmp/pids/workhorse.pid"} |
980 |
-: ${workhorse_log:="${gitlab_log}/workhorse.log"} |
981 |
-: ${workhorse_socket:="${gitlab_home}/tmp/sockets/gitlab-workhorse.socket"} |
982 |
-: ${workhorse_command:="/usr/bin/gitlab-workhorse"} |
983 |
-: ${workhorse_command_args="-listenUmask 0 -listenNetwork unix -listenAddr ${workhorse_socket} -authBackend http://127.0.0.1:8080 -documentRoot ${gitlab_home}/public -authSocket ${unicorn_socket}"} |
984 |
- |
985 |
-: ${gitaly_command:=/usr/bin/gitlab-gitaly} |
986 |
-: ${gitaly_command_args:="/etc/gitaly/config.toml"} |
987 |
-: ${gitaly_pidfile:="${gitlab_home}/tmp/pids/gitaly.pid"} |
988 |
-: ${gitaly_log:="${gitlab_log}/gitaly.log"} |
989 |
-: ${gitaly_socket:="${gitlab_home}/tmp/sockets/gitaly.socket"} |
990 |
- |
991 |
- |
992 |
-if [ ${rails_env} = development ]; then |
993 |
- sidekiq_command_args+=" VVERBOSE=1" |
994 |
-fi |
995 |
- |
996 |
-depend() { |
997 |
- provide gitlab |
998 |
- need redis |
999 |
- use net mysql postgresql |
1000 |
-} |
1001 |
- |
1002 |
-start() { |
1003 |
- |
1004 |
- checkpath -d -o "${gitlab_user}:${gitlab_group}" -m750 "$(dirname "${unicorn_pidfile}")" |
1005 |
- checkpath -d -o "${gitlab_user}:${gitlab_group}" -m750 "$(dirname "${sidekiq_pidfile}")" |
1006 |
- |
1007 |
- ebegin "Starting GitLab 10.0 Unicorn servers" |
1008 |
- start-stop-daemon --start \ |
1009 |
- --chdir "${gitlab_home}" \ |
1010 |
- --user="${gitlab_user}:${gitlab_group}" \ |
1011 |
- --pidfile="${unicorn_pidfile}" \ |
1012 |
- --exec ${unicorn_command} -- ${unicorn_command_args} |
1013 |
- eend $? |
1014 |
- |
1015 |
- ebegin "Starting GitLab 10.0 Sidekiq" |
1016 |
- cd "${gitlab_home}" |
1017 |
- sudo -u git -H ${sidekiq_command} ${sidekiq_start_command_args} |
1018 |
- eend $? |
1019 |
- |
1020 |
- ebegin "Starting GitLab 10.0 Workhorse" |
1021 |
- start-stop-daemon --start \ |
1022 |
- --chdir "${gitlab_home}" \ |
1023 |
- --user="${gitlab_user}:${gitlab_group}" \ |
1024 |
- --pidfile="${workhorse_pidfile}" \ |
1025 |
- --make-pidfile \ |
1026 |
- --background -1 "${workhorse_log}" -2 "${workhorse_log}" \ |
1027 |
- --exec ${workhorse_command} -- ${workhorse_command_args} |
1028 |
- eend $? |
1029 |
- |
1030 |
- ebegin "Starting GitLab 10.0 Gitaly" |
1031 |
- start-stop-daemon --start \ |
1032 |
- --chdir "${gitlab_home}" \ |
1033 |
- --user="${gitlab_user}:${gitlab_group}" \ |
1034 |
- --pidfile="${gitaly_pidfile}" \ |
1035 |
- --make-pidfile \ |
1036 |
- --env GITALY_SOCKET_PATH=${gitaly_socket} \ |
1037 |
- --background -1 "${gitaly_log}" -2 "${gitaly_log}" \ |
1038 |
- --exec ${gitaly_command} -- ${gitaly_command_args} |
1039 |
- eend $? |
1040 |
-} |
1041 |
- |
1042 |
-stop() { |
1043 |
- ebegin "Stopping GitLab 10.0 Gitaly" |
1044 |
- start-stop-daemon --stop \ |
1045 |
- --chdir "${gitlab_home}" \ |
1046 |
- --user="${gitlab_user}:${gitlab_group}" \ |
1047 |
- --pidfile="${gitaly_pidfile}" |
1048 |
- eend $? |
1049 |
- |
1050 |
- ebegin "Stopping GitLab 10.0 Workhorse" |
1051 |
- start-stop-daemon --stop \ |
1052 |
- --chdir "${gitlab_home}" \ |
1053 |
- --user="${gitlab_user}:${gitlab_group}" \ |
1054 |
- --pidfile="${workhorse_pidfile}" |
1055 |
- eend $? |
1056 |
- |
1057 |
- ebegin "Stopping GitLab 10.0 Sidekiq" |
1058 |
- cd "${gitlab_home}" |
1059 |
- sudo -u git -H ${sidekiq_command} ${sidekiq_stop_command_args} |
1060 |
- eend $? |
1061 |
- |
1062 |
- ebegin "Stopping GitLab 10.0 Unicorn servers" |
1063 |
- start-stop-daemon --stop \ |
1064 |
- --chdir "${gitlab_home}" \ |
1065 |
- --user="${gitlab_user}:${gitlab_group}" \ |
1066 |
- --pidfile="${unicorn_pidfile}" |
1067 |
- eend $? |
1068 |
-} |
1069 |
|
1070 |
diff --git a/www-apps/gitlabhq/files/gitlabhq-8.14-fix-checks-gentoo.patch b/www-apps/gitlabhq/files/gitlabhq-8.14-fix-checks-gentoo.patch |
1071 |
deleted file mode 100644 |
1072 |
index bbe07a9..0000000 |
1073 |
--- a/www-apps/gitlabhq/files/gitlabhq-8.14-fix-checks-gentoo.patch |
1074 |
+++ /dev/null |
1075 |
@@ -1,11 +0,0 @@ |
1076 |
---- lib/tasks/gitlab/check.rake.orig 2015-11-13 16:46:18.044125564 +0100 |
1077 |
-+++ lib/tasks/gitlab/check.rake 2015-11-13 16:46:24.414126919 +0100 |
1078 |
-@@ -24,8 +24,6 @@ |
1079 |
- check_log_writable |
1080 |
- check_tmp_writable |
1081 |
- check_uploads |
1082 |
-- check_init_script_exists |
1083 |
-- check_init_script_up_to_date |
1084 |
- check_projects_have_namespace |
1085 |
- check_redis_version |
1086 |
- check_ruby_version |
1087 |
|
1088 |
diff --git a/www-apps/gitlabhq/files/gitlabhq-8.14-fix-sendmail-param.patch b/www-apps/gitlabhq/files/gitlabhq-8.14-fix-sendmail-param.patch |
1089 |
deleted file mode 100644 |
1090 |
index a4ff648..0000000 |
1091 |
--- a/www-apps/gitlabhq/files/gitlabhq-8.14-fix-sendmail-param.patch |
1092 |
+++ /dev/null |
1093 |
@@ -1,17 +0,0 @@ |
1094 |
---- gitlabhq-8.7.5/config/environments/production.rb.orig 2016-05-20 17:01:56.043486847 +0200 |
1095 |
-+++ gitlabhq-8.7.5/config/environments/production.rb 2016-05-20 17:02:35.871496032 +0200 |
1096 |
-@@ -70,10 +70,10 @@ |
1097 |
- |
1098 |
- config.action_mailer.delivery_method = :sendmail |
1099 |
- # Defaults to: |
1100 |
-- # # config.action_mailer.sendmail_settings = { |
1101 |
-- # # location: '/usr/sbin/sendmail', |
1102 |
-- # # arguments: '-i -t' |
1103 |
-- # # } |
1104 |
-+ config.action_mailer.sendmail_settings = { |
1105 |
-+ location: '/usr/sbin/sendmail', |
1106 |
-+ arguments: '-i' |
1107 |
-+ } |
1108 |
- config.action_mailer.perform_deliveries = true |
1109 |
- config.action_mailer.raise_delivery_errors = true |
1110 |
- |
1111 |
|
1112 |
diff --git a/www-apps/gitlabhq/files/gitlabhq-8.14.init b/www-apps/gitlabhq/files/gitlabhq-8.14.init |
1113 |
deleted file mode 100644 |
1114 |
index f111e76..0000000 |
1115 |
--- a/www-apps/gitlabhq/files/gitlabhq-8.14.init |
1116 |
+++ /dev/null |
1117 |
@@ -1,92 +0,0 @@ |
1118 |
-#!/sbin/openrc-run |
1119 |
- |
1120 |
-name="GitLab" |
1121 |
-description="GitLab 8.14 on Unicorns" |
1122 |
- |
1123 |
-: ${gitlab_user:=git} |
1124 |
-: ${gitlab_group:=git} |
1125 |
-: ${gitlab_home:="/opt/gitlabhq-8.14"} |
1126 |
-: ${gitlab_log:="/var/log/gitlabhq-8.14"} |
1127 |
- |
1128 |
-: ${unicorn_pidfile:="${gitlab_home}/tmp/pids/unicorn.pid"} |
1129 |
-: ${unicorn_log:="${gitlab_log}/unicorn.log"} |
1130 |
-: ${unicorn_socket:="${gitlab_home}/tmp/sockets/gitlab.socket"} |
1131 |
- |
1132 |
-: ${sidekiq_pidfile:="${gitlab_home}/tmp/pids/sidekiq.pid"} |
1133 |
-: ${sidekiq_log:="${gitlab_log}/sidekiq.log"} |
1134 |
-: ${sidekiq_config:="${gitlab_home}/config/sidekiq_queues.yml"} |
1135 |
- |
1136 |
-: ${workhorse_pidfile:="${gitlab_home}/tmp/pids/workhorse.pid"} |
1137 |
-: ${workhorse_log:="${gitlab_log}/workhorse.log"} |
1138 |
-: ${workhorse_socket:="${gitlab_home}/tmp/sockets/gitlab-workhorse.socket"} |
1139 |
-: ${workhorse_command_args:="-listenUmask 0 -listenNetwork unix -listenAddr ${workhorse_socket} -authBackend http://127.0.0.1:8080 -authSocket ${unicorn_socket} -documentRoot ${gitlab_home}/public"} |
1140 |
- |
1141 |
-: ${rails_env:=production} |
1142 |
- |
1143 |
-unicorn_command="/usr/bin/bundle" |
1144 |
-unicorn_command_args="exec unicorn_rails -c ${gitlab_home}/config/unicorn.rb -E ${rails_env} -D" |
1145 |
-sidekiq_command="/usr/bin/bundle" |
1146 |
-sidekiq_start_command_args="exec sidekiq -C ${sidekiq_config} -e ${rails_env} -d -P ${sidekiq_pidfile} -L ${sidekiq_log} $@ >> ${sidekiq_log} 2>&1" |
1147 |
-sidekiq_stop_command_args="exec sidekiqctl stop ${sidekiq_pidfile} >> ${sidekiq_log}" |
1148 |
-workhorse_command="/usr/bin/gitlab-workhorse" |
1149 |
- |
1150 |
-if [ ${rails_env} = development ]; then |
1151 |
- sidekiq_command_args+=" VVERBOSE=1" |
1152 |
-fi |
1153 |
- |
1154 |
-depend() { |
1155 |
- provide gitlab |
1156 |
- need redis |
1157 |
- use net mysql postgresql |
1158 |
-} |
1159 |
- |
1160 |
-start() { |
1161 |
- |
1162 |
- checkpath -d -o "${gitlab_user}:${gitlab_group}" -m750 "$(dirname "${unicorn_pidfile}")" |
1163 |
- checkpath -d -o "${gitlab_user}:${gitlab_group}" -m750 "$(dirname "${sidekiq_pidfile}")" |
1164 |
- |
1165 |
- ebegin "Starting GitLab 8.14 Unicorn servers" |
1166 |
- start-stop-daemon --start \ |
1167 |
- --chdir "${gitlab_home}" \ |
1168 |
- --user="${gitlab_user}:${gitlab_group}" \ |
1169 |
- --pidfile="${unicorn_pidfile}" \ |
1170 |
- --exec ${unicorn_command} -- ${unicorn_command_args} |
1171 |
- eend $? |
1172 |
- |
1173 |
- ebegin "Starting GitLab 8.14 Sidekiq" |
1174 |
- cd "${gitlab_home}" |
1175 |
- sudo -u git -H ${sidekiq_command} ${sidekiq_start_command_args} |
1176 |
- eend $? |
1177 |
- |
1178 |
- ebegin "Starting GitLab 8.14 Workhorse" |
1179 |
- start-stop-daemon --start \ |
1180 |
- --chdir "${gitlab_home}" \ |
1181 |
- --user="${gitlab_user}:${gitlab_group}" \ |
1182 |
- --pidfile="${workhorse_pidfile}" \ |
1183 |
- --make-pidfile \ |
1184 |
- --background -1 "${workhorse_log}" -2 "${workhorse_log}" \ |
1185 |
- --exec ${workhorse_command} -- ${workhorse_command_args} |
1186 |
- eend $? |
1187 |
-} |
1188 |
- |
1189 |
-stop() { |
1190 |
- |
1191 |
- ebegin "Stopping GitLab 8.14 Workhorse" |
1192 |
- start-stop-daemon --stop \ |
1193 |
- --chdir "${gitlab_home}" \ |
1194 |
- --user="${gitlab_user}:${gitlab_group}" \ |
1195 |
- --pidfile="${workhorse_pidfile}" |
1196 |
- eend $? |
1197 |
- |
1198 |
- ebegin "Stopping GitLab 8.14 Sidekiq" |
1199 |
- cd "${gitlab_home}" |
1200 |
- sudo -u git -H ${sidekiq_command} ${sidekiq_stop_command_args} |
1201 |
- eend $? |
1202 |
- |
1203 |
- ebegin "Stopping GitLab 8.14 Unicorn servers" |
1204 |
- start-stop-daemon --stop \ |
1205 |
- --chdir "${gitlab_home}" \ |
1206 |
- --user="${gitlab_user}:${gitlab_group}" \ |
1207 |
- --pidfile="${unicorn_pidfile}" |
1208 |
- eend $? |
1209 |
-} |
1210 |
|
1211 |
diff --git a/www-apps/gitlabhq/files/gitlabhq-8.15-fix-checks-gentoo.patch b/www-apps/gitlabhq/files/gitlabhq-8.15-fix-checks-gentoo.patch |
1212 |
deleted file mode 100644 |
1213 |
index bbe07a9..0000000 |
1214 |
--- a/www-apps/gitlabhq/files/gitlabhq-8.15-fix-checks-gentoo.patch |
1215 |
+++ /dev/null |
1216 |
@@ -1,11 +0,0 @@ |
1217 |
---- lib/tasks/gitlab/check.rake.orig 2015-11-13 16:46:18.044125564 +0100 |
1218 |
-+++ lib/tasks/gitlab/check.rake 2015-11-13 16:46:24.414126919 +0100 |
1219 |
-@@ -24,8 +24,6 @@ |
1220 |
- check_log_writable |
1221 |
- check_tmp_writable |
1222 |
- check_uploads |
1223 |
-- check_init_script_exists |
1224 |
-- check_init_script_up_to_date |
1225 |
- check_projects_have_namespace |
1226 |
- check_redis_version |
1227 |
- check_ruby_version |
1228 |
|
1229 |
diff --git a/www-apps/gitlabhq/files/gitlabhq-8.15-fix-sendmail-param.patch b/www-apps/gitlabhq/files/gitlabhq-8.15-fix-sendmail-param.patch |
1230 |
deleted file mode 100644 |
1231 |
index 187206a..0000000 |
1232 |
--- a/www-apps/gitlabhq/files/gitlabhq-8.15-fix-sendmail-param.patch |
1233 |
+++ /dev/null |
1234 |
@@ -1,17 +0,0 @@ |
1235 |
---- gitlabhq-8.7.5/config/environments/production.rb.orig 2016-05-20 17:01:56.043486847 +0200 |
1236 |
-+++ gitlabhq-8.7.5/config/environments/production.rb 2016-05-20 17:02:35.8.1596032 +0200 |
1237 |
-@@ -70,10 +70,10 @@ |
1238 |
- |
1239 |
- config.action_mailer.delivery_method = :sendmail |
1240 |
- # Defaults to: |
1241 |
-- # # config.action_mailer.sendmail_settings = { |
1242 |
-- # # location: '/usr/sbin/sendmail', |
1243 |
-- # # arguments: '-i -t' |
1244 |
-- # # } |
1245 |
-+ config.action_mailer.sendmail_settings = { |
1246 |
-+ location: '/usr/sbin/sendmail', |
1247 |
-+ arguments: '-i' |
1248 |
-+ } |
1249 |
- config.action_mailer.perform_deliveries = true |
1250 |
- config.action_mailer.raise_delivery_errors = true |
1251 |
- |
1252 |
|
1253 |
diff --git a/www-apps/gitlabhq/files/gitlabhq-8.15.init b/www-apps/gitlabhq/files/gitlabhq-8.15.init |
1254 |
deleted file mode 100644 |
1255 |
index ba21895..0000000 |
1256 |
--- a/www-apps/gitlabhq/files/gitlabhq-8.15.init |
1257 |
+++ /dev/null |
1258 |
@@ -1,92 +0,0 @@ |
1259 |
-#!/sbin/openrc-run |
1260 |
- |
1261 |
-name="GitLab" |
1262 |
-description="GitLab 8.15 on Unicorns" |
1263 |
- |
1264 |
-: ${gitlab_user:=git} |
1265 |
-: ${gitlab_group:=git} |
1266 |
-: ${gitlab_home:="/opt/gitlabhq-8.15"} |
1267 |
-: ${gitlab_log:="/var/log/gitlabhq-8.15"} |
1268 |
- |
1269 |
-: ${unicorn_pidfile:="${gitlab_home}/tmp/pids/unicorn.pid"} |
1270 |
-: ${unicorn_log:="${gitlab_log}/unicorn.log"} |
1271 |
-: ${unicorn_socket:="${gitlab_home}/tmp/sockets/gitlab.socket"} |
1272 |
- |
1273 |
-: ${sidekiq_pidfile:="${gitlab_home}/tmp/pids/sidekiq.pid"} |
1274 |
-: ${sidekiq_log:="${gitlab_log}/sidekiq.log"} |
1275 |
-: ${sidekiq_config:="${gitlab_home}/config/sidekiq_queues.yml"} |
1276 |
- |
1277 |
-: ${workhorse_pidfile:="${gitlab_home}/tmp/pids/workhorse.pid"} |
1278 |
-: ${workhorse_log:="${gitlab_log}/workhorse.log"} |
1279 |
-: ${workhorse_socket:="${gitlab_home}/tmp/sockets/gitlab-workhorse.socket"} |
1280 |
-: ${workhorse_command_args:="-listenUmask 0 -listenNetwork unix -listenAddr ${workhorse_socket} -authBackend http://127.0.0.1:8080 -authSocket ${unicorn_socket} -documentRoot ${gitlab_home}/public"} |
1281 |
- |
1282 |
-: ${rails_env:=production} |
1283 |
- |
1284 |
-unicorn_command="/usr/bin/bundle" |
1285 |
-unicorn_command_args="exec unicorn_rails -c ${gitlab_home}/config/unicorn.rb -E ${rails_env} -D" |
1286 |
-sidekiq_command="/usr/bin/bundle" |
1287 |
-sidekiq_start_command_args="exec sidekiq -C ${sidekiq_config} -e ${rails_env} -d -P ${sidekiq_pidfile} -L ${sidekiq_log} $@ >> ${sidekiq_log} 2>&1" |
1288 |
-sidekiq_stop_command_args="exec sidekiqctl stop ${sidekiq_pidfile} >> ${sidekiq_log}" |
1289 |
-workhorse_command="/usr/bin/gitlab-workhorse" |
1290 |
- |
1291 |
-if [ ${rails_env} = development ]; then |
1292 |
- sidekiq_command_args+=" VVERBOSE=1" |
1293 |
-fi |
1294 |
- |
1295 |
-depend() { |
1296 |
- provide gitlab |
1297 |
- need redis |
1298 |
- use net mysql postgresql |
1299 |
-} |
1300 |
- |
1301 |
-start() { |
1302 |
- |
1303 |
- checkpath -d -o "${gitlab_user}:${gitlab_group}" -m750 "$(dirname "${unicorn_pidfile}")" |
1304 |
- checkpath -d -o "${gitlab_user}:${gitlab_group}" -m750 "$(dirname "${sidekiq_pidfile}")" |
1305 |
- |
1306 |
- ebegin "Starting GitLab 8.15 Unicorn servers" |
1307 |
- start-stop-daemon --start \ |
1308 |
- --chdir "${gitlab_home}" \ |
1309 |
- --user="${gitlab_user}:${gitlab_group}" \ |
1310 |
- --pidfile="${unicorn_pidfile}" \ |
1311 |
- --exec ${unicorn_command} -- ${unicorn_command_args} |
1312 |
- eend $? |
1313 |
- |
1314 |
- ebegin "Starting GitLab 8.15 Sidekiq" |
1315 |
- cd "${gitlab_home}" |
1316 |
- sudo -u git -H ${sidekiq_command} ${sidekiq_start_command_args} |
1317 |
- eend $? |
1318 |
- |
1319 |
- ebegin "Starting GitLab 8.15 Workhorse" |
1320 |
- start-stop-daemon --start \ |
1321 |
- --chdir "${gitlab_home}" \ |
1322 |
- --user="${gitlab_user}:${gitlab_group}" \ |
1323 |
- --pidfile="${workhorse_pidfile}" \ |
1324 |
- --make-pidfile \ |
1325 |
- --background -1 "${workhorse_log}" -2 "${workhorse_log}" \ |
1326 |
- --exec ${workhorse_command} -- ${workhorse_command_args} |
1327 |
- eend $? |
1328 |
-} |
1329 |
- |
1330 |
-stop() { |
1331 |
- |
1332 |
- ebegin "Stopping GitLab 8.15 Workhorse" |
1333 |
- start-stop-daemon --stop \ |
1334 |
- --chdir "${gitlab_home}" \ |
1335 |
- --user="${gitlab_user}:${gitlab_group}" \ |
1336 |
- --pidfile="${workhorse_pidfile}" |
1337 |
- eend $? |
1338 |
- |
1339 |
- ebegin "Stopping GitLab 8.15 Sidekiq" |
1340 |
- cd "${gitlab_home}" |
1341 |
- sudo -u git -H ${sidekiq_command} ${sidekiq_stop_command_args} |
1342 |
- eend $? |
1343 |
- |
1344 |
- ebegin "Stopping GitLab 8.15 Unicorn servers" |
1345 |
- start-stop-daemon --stop \ |
1346 |
- --chdir "${gitlab_home}" \ |
1347 |
- --user="${gitlab_user}:${gitlab_group}" \ |
1348 |
- --pidfile="${unicorn_pidfile}" |
1349 |
- eend $? |
1350 |
-} |
1351 |
|
1352 |
diff --git a/www-apps/gitlabhq/files/gitlabhq-8.16-fix-checks-gentoo.patch b/www-apps/gitlabhq/files/gitlabhq-8.16-fix-checks-gentoo.patch |
1353 |
deleted file mode 100644 |
1354 |
index bbe07a9..0000000 |
1355 |
--- a/www-apps/gitlabhq/files/gitlabhq-8.16-fix-checks-gentoo.patch |
1356 |
+++ /dev/null |
1357 |
@@ -1,11 +0,0 @@ |
1358 |
---- lib/tasks/gitlab/check.rake.orig 2015-11-13 16:46:18.044125564 +0100 |
1359 |
-+++ lib/tasks/gitlab/check.rake 2015-11-13 16:46:24.414126919 +0100 |
1360 |
-@@ -24,8 +24,6 @@ |
1361 |
- check_log_writable |
1362 |
- check_tmp_writable |
1363 |
- check_uploads |
1364 |
-- check_init_script_exists |
1365 |
-- check_init_script_up_to_date |
1366 |
- check_projects_have_namespace |
1367 |
- check_redis_version |
1368 |
- check_ruby_version |
1369 |
|
1370 |
diff --git a/www-apps/gitlabhq/files/gitlabhq-8.16-fix-sendmail-param.patch b/www-apps/gitlabhq/files/gitlabhq-8.16-fix-sendmail-param.patch |
1371 |
deleted file mode 100644 |
1372 |
index d905fe9..0000000 |
1373 |
--- a/www-apps/gitlabhq/files/gitlabhq-8.16-fix-sendmail-param.patch |
1374 |
+++ /dev/null |
1375 |
@@ -1,17 +0,0 @@ |
1376 |
---- gitlabhq-8.7.5/config/environments/production.rb.orig 2016-05-20 17:01:56.043486847 +0200 |
1377 |
-+++ gitlabhq-8.7.5/config/environments/production.rb 2016-05-20 17:02:35.8.1696032 +0200 |
1378 |
-@@ -70,10 +70,10 @@ |
1379 |
- |
1380 |
- config.action_mailer.delivery_method = :sendmail |
1381 |
- # Defaults to: |
1382 |
-- # # config.action_mailer.sendmail_settings = { |
1383 |
-- # # location: '/usr/sbin/sendmail', |
1384 |
-- # # arguments: '-i -t' |
1385 |
-- # # } |
1386 |
-+ config.action_mailer.sendmail_settings = { |
1387 |
-+ location: '/usr/sbin/sendmail', |
1388 |
-+ arguments: '-i' |
1389 |
-+ } |
1390 |
- config.action_mailer.perform_deliveries = true |
1391 |
- config.action_mailer.raise_delivery_errors = true |
1392 |
- |
1393 |
|
1394 |
diff --git a/www-apps/gitlabhq/files/gitlabhq-8.16.init b/www-apps/gitlabhq/files/gitlabhq-8.16.init |
1395 |
deleted file mode 100644 |
1396 |
index 100fd56..0000000 |
1397 |
--- a/www-apps/gitlabhq/files/gitlabhq-8.16.init |
1398 |
+++ /dev/null |
1399 |
@@ -1,92 +0,0 @@ |
1400 |
-#!/sbin/openrc-run |
1401 |
- |
1402 |
-name="GitLab" |
1403 |
-description="GitLab 8.16 on Unicorns" |
1404 |
- |
1405 |
-: ${gitlab_user:=git} |
1406 |
-: ${gitlab_group:=git} |
1407 |
-: ${gitlab_home:="/opt/gitlabhq-8.16"} |
1408 |
-: ${gitlab_log:="/var/log/gitlabhq-8.16"} |
1409 |
- |
1410 |
-: ${unicorn_pidfile:="${gitlab_home}/tmp/pids/unicorn.pid"} |
1411 |
-: ${unicorn_log:="${gitlab_log}/unicorn.log"} |
1412 |
-: ${unicorn_socket:="${gitlab_home}/tmp/sockets/gitlab.socket"} |
1413 |
- |
1414 |
-: ${sidekiq_pidfile:="${gitlab_home}/tmp/pids/sidekiq.pid"} |
1415 |
-: ${sidekiq_log:="${gitlab_log}/sidekiq.log"} |
1416 |
-: ${sidekiq_config:="${gitlab_home}/config/sidekiq_queues.yml"} |
1417 |
- |
1418 |
-: ${workhorse_pidfile:="${gitlab_home}/tmp/pids/workhorse.pid"} |
1419 |
-: ${workhorse_log:="${gitlab_log}/workhorse.log"} |
1420 |
-: ${workhorse_socket:="${gitlab_home}/tmp/sockets/gitlab-workhorse.socket"} |
1421 |
-: ${workhorse_command_args:="-listenUmask 0 -listenNetwork unix -listenAddr ${workhorse_socket} -authBackend http://127.0.0.1:8080 -authSocket ${unicorn_socket} -documentRoot ${gitlab_home}/public"} |
1422 |
- |
1423 |
-: ${rails_env:=production} |
1424 |
- |
1425 |
-unicorn_command="/usr/bin/bundle" |
1426 |
-unicorn_command_args="exec unicorn_rails -c ${gitlab_home}/config/unicorn.rb -E ${rails_env} -D" |
1427 |
-sidekiq_command="/usr/bin/bundle" |
1428 |
-sidekiq_start_command_args="exec sidekiq -C ${sidekiq_config} -e ${rails_env} -d -P ${sidekiq_pidfile} -L ${sidekiq_log} $@ >> ${sidekiq_log} 2>&1" |
1429 |
-sidekiq_stop_command_args="exec sidekiqctl stop ${sidekiq_pidfile} >> ${sidekiq_log}" |
1430 |
-workhorse_command="/usr/bin/gitlab-workhorse" |
1431 |
- |
1432 |
-if [ ${rails_env} = development ]; then |
1433 |
- sidekiq_command_args+=" VVERBOSE=1" |
1434 |
-fi |
1435 |
- |
1436 |
-depend() { |
1437 |
- provide gitlab |
1438 |
- need redis |
1439 |
- use net mysql postgresql |
1440 |
-} |
1441 |
- |
1442 |
-start() { |
1443 |
- |
1444 |
- checkpath -d -o "${gitlab_user}:${gitlab_group}" -m750 "$(dirname "${unicorn_pidfile}")" |
1445 |
- checkpath -d -o "${gitlab_user}:${gitlab_group}" -m750 "$(dirname "${sidekiq_pidfile}")" |
1446 |
- |
1447 |
- ebegin "Starting GitLab 8.16 Unicorn servers" |
1448 |
- start-stop-daemon --start \ |
1449 |
- --chdir "${gitlab_home}" \ |
1450 |
- --user="${gitlab_user}:${gitlab_group}" \ |
1451 |
- --pidfile="${unicorn_pidfile}" \ |
1452 |
- --exec ${unicorn_command} -- ${unicorn_command_args} |
1453 |
- eend $? |
1454 |
- |
1455 |
- ebegin "Starting GitLab 8.16 Sidekiq" |
1456 |
- cd "${gitlab_home}" |
1457 |
- sudo -u git -H ${sidekiq_command} ${sidekiq_start_command_args} |
1458 |
- eend $? |
1459 |
- |
1460 |
- ebegin "Starting GitLab 8.16 Workhorse" |
1461 |
- start-stop-daemon --start \ |
1462 |
- --chdir "${gitlab_home}" \ |
1463 |
- --user="${gitlab_user}:${gitlab_group}" \ |
1464 |
- --pidfile="${workhorse_pidfile}" \ |
1465 |
- --make-pidfile \ |
1466 |
- --background -1 "${workhorse_log}" -2 "${workhorse_log}" \ |
1467 |
- --exec ${workhorse_command} -- ${workhorse_command_args} |
1468 |
- eend $? |
1469 |
-} |
1470 |
- |
1471 |
-stop() { |
1472 |
- |
1473 |
- ebegin "Stopping GitLab 8.16 Workhorse" |
1474 |
- start-stop-daemon --stop \ |
1475 |
- --chdir "${gitlab_home}" \ |
1476 |
- --user="${gitlab_user}:${gitlab_group}" \ |
1477 |
- --pidfile="${workhorse_pidfile}" |
1478 |
- eend $? |
1479 |
- |
1480 |
- ebegin "Stopping GitLab 8.16 Sidekiq" |
1481 |
- cd "${gitlab_home}" |
1482 |
- sudo -u git -H ${sidekiq_command} ${sidekiq_stop_command_args} |
1483 |
- eend $? |
1484 |
- |
1485 |
- ebegin "Stopping GitLab 8.16 Unicorn servers" |
1486 |
- start-stop-daemon --stop \ |
1487 |
- --chdir "${gitlab_home}" \ |
1488 |
- --user="${gitlab_user}:${gitlab_group}" \ |
1489 |
- --pidfile="${unicorn_pidfile}" |
1490 |
- eend $? |
1491 |
-} |
1492 |
|
1493 |
diff --git a/www-apps/gitlabhq/gitlabhq-10.0.3.ebuild b/www-apps/gitlabhq/gitlabhq-10.0.3.ebuild |
1494 |
deleted file mode 100644 |
1495 |
index 8570363..0000000 |
1496 |
--- a/www-apps/gitlabhq/gitlabhq-10.0.3.ebuild |
1497 |
+++ /dev/null |
1498 |
@@ -1,556 +0,0 @@ |
1499 |
-# Copyright 1999-2015 Gentoo Foundation |
1500 |
-# Distributed under the terms of the GNU General Public License v2 |
1501 |
-# $Header: $ |
1502 |
- |
1503 |
-EAPI="5" |
1504 |
- |
1505 |
-# Mainteiner notes: |
1506 |
-# - This ebuild uses Bundler to download and install all gems in deployment mode |
1507 |
-# (i.e. into isolated directory inside application). That's not Gentoo way how |
1508 |
-# it should be done, but GitLab has too many dependencies that it will be too |
1509 |
-# difficult to maintain them via ebuilds. |
1510 |
- |
1511 |
-USE_RUBY="ruby23" |
1512 |
-PYTHON_COMPAT=( python2_7 ) |
1513 |
- |
1514 |
-EGIT_REPO_URI="https://gitlab.com/gitlab-org/gitlab-ce.git" |
1515 |
-EGIT_COMMIT="v${PV}" |
1516 |
- |
1517 |
-inherit eutils git-2 python-r1 ruby-ng versionator user linux-info systemd |
1518 |
- |
1519 |
-DESCRIPTION="GitLab is a free project and repository management application" |
1520 |
-HOMEPAGE="https://about.gitlab.com/gitlab-ci/" |
1521 |
- |
1522 |
-LICENSE="MIT" |
1523 |
-RESTRICT="splitdebug" |
1524 |
-SLOT=$(get_version_component_range 1-2) |
1525 |
-KEYWORDS="~amd64 ~x86" |
1526 |
-IUSE="memcached mysql +postgres +unicorn" |
1527 |
- |
1528 |
-## Gems dependencies: |
1529 |
-# charlock_holmes dev-libs/icu |
1530 |
-# grape, capybara dev-libs/libxml2, dev-libs/libxslt |
1531 |
-# json dev-util/ragel |
1532 |
-# yajl-ruby dev-libs/yajl |
1533 |
-# pygments.rb python 2.5+ |
1534 |
-# execjs net-libs/nodejs, or any other JS runtime |
1535 |
-# pg dev-db/postgresql-base |
1536 |
-# mysql virtual/mysql |
1537 |
-# rugged net-libs/http-parser dev-libs/libgit2 |
1538 |
-# |
1539 |
-GEMS_DEPEND=" |
1540 |
- dev-libs/icu |
1541 |
- dev-libs/libxml2 |
1542 |
- dev-libs/libxslt |
1543 |
- dev-util/ragel |
1544 |
- dev-libs/yajl |
1545 |
- net-libs/nodejs |
1546 |
- postgres? ( dev-db/postgresql ) |
1547 |
- mysql? ( virtual/mysql ) |
1548 |
- memcached? ( net-misc/memcached ) |
1549 |
- net-libs/http-parser" |
1550 |
-DEPEND="${GEMS_DEPEND} |
1551 |
- >=dev-lang/ruby-2.3[readline,ssl] |
1552 |
- >dev-vcs/git-2.2.1 |
1553 |
- >=dev-vcs/gitlab-shell-5.9.0 |
1554 |
- >=dev-vcs/gitlab-gitaly-0.38.0 |
1555 |
- >=www-servers/gitlab-workhorse-3.0.0 |
1556 |
- app-eselect/eselect-gitlabhq |
1557 |
- net-misc/curl |
1558 |
- virtual/ssh |
1559 |
- >=sys-apps/yarn-0.27.5 |
1560 |
- >=net-libs/nodejs-7.0.0 |
1561 |
- dev-libs/re2" |
1562 |
-RDEPEND="${DEPEND} |
1563 |
- >=dev-db/redis-2.8.0 |
1564 |
- virtual/mta |
1565 |
- virtual/krb5" |
1566 |
-ruby_add_bdepend " |
1567 |
- virtual/rubygems |
1568 |
- >=dev-ruby/bundler-1.0" |
1569 |
- |
1570 |
-RUBY_PATCHES=( |
1571 |
- "${PN}-${SLOT}-fix-checks-gentoo.patch" |
1572 |
- "${PN}-${SLOT}-fix-sendmail-param.patch" |
1573 |
-) |
1574 |
- |
1575 |
-GIT_USER="git" |
1576 |
-GIT_GROUP="git" |
1577 |
-GIT_HOME="/var/lib/git" |
1578 |
-DEST_DIR="/opt/${PN}-${SLOT}" |
1579 |
-CONF_DIR="/etc/${PN}-${SLOT}" |
1580 |
- |
1581 |
-GIT_REPOS="${GIT_HOME}/repositories" |
1582 |
-GIT_SATELLITES="${GIT_HOME}/gitlab-satellites" |
1583 |
-GITLAB_SHELL="/var/lib/gitlab-shell" |
1584 |
-GITLAB_SHELL_HOOKS="${GITLAB_SHELL}/hooks" |
1585 |
- |
1586 |
-RAILS_ENV=${RAILS_ENV:-production} |
1587 |
-RUBY=${RUBY:-ruby23} |
1588 |
-BUNDLE="${RUBY} /usr/bin/bundle" |
1589 |
- |
1590 |
-pkg_setup() { |
1591 |
- enewgroup ${GIT_GROUP} |
1592 |
- enewuser ${GIT_USER} -1 -1 ${DEST_DIR} "${GIT_GROUP}" |
1593 |
-} |
1594 |
- |
1595 |
-all_ruby_unpack() { |
1596 |
- git-2_src_unpack |
1597 |
-} |
1598 |
- |
1599 |
-each_ruby_prepare() { |
1600 |
- |
1601 |
- # fix path to repo and gitlab-shell hooks |
1602 |
- test -d "${GITLAB_SHELL_HOOKS}" || die "Gitlab Shell hooks directory not found: \"${GITLAB_SHELL_HOOKS}. Have you properly installed dev-vcs/gitlab-shell"? |
1603 |
- |
1604 |
- sed -i \ |
1605 |
- -e "s|\(\s*path:\s\)/.*/gitlab-shell/|\1 ${GITLAB_SHELL}/|" \ |
1606 |
- -e "s|\(\s*repos_path:\s\)/.*|\1 ${GIT_REPOS}/|" \ |
1607 |
- -e "s|\(\s*hooks_path:\s\)/.*|\1 ${GITLAB_SHELL_HOOKS}/|" \ |
1608 |
- -e "s|\(\s*path:\s\)/.*/gitlab-satellites/|\1 ${GIT_SATELLITES}/|" \ |
1609 |
- -e "s|\(\s*GITLAB_SHELL:\s*\)|\1\n\tpath: \"${GITLAB_SHELL}\"|" \ |
1610 |
- -e "s|# socket_path: tmp/sockets/private/gitaly\.socket|socket_path: tmp/sockets/gitaly.socket|" \ |
1611 |
- config/gitlab.yml.example || die "failed to filter gitlab.yml.example" |
1612 |
- |
1613 |
- # modify database settings |
1614 |
- sed -i \ |
1615 |
- -e 's|\(username:\) postgres.*|\1 gitlab|' \ |
1616 |
- -e 's|\(password:\).*|\1 gitlab|' \ |
1617 |
- -e 's|\(socket:\).*|/run/postgresql/.s.PGSQL.5432|' \ |
1618 |
- config/database.yml.postgresql \ |
1619 |
- || die "failed to filter database.yml.postgresql" |
1620 |
- |
1621 |
- # replace "secret" token with random one |
1622 |
- local randpw=$(echo ${RANDOM}|sha512sum|cut -c 1-128) |
1623 |
- sed -i -e "/secret_token =/ s/=.*/= '${randpw}'/" \ |
1624 |
- config/initializers/secret_token.rb \ |
1625 |
- || die "failed to filter secret_token.rb" |
1626 |
- |
1627 |
- # remove needless files |
1628 |
- rm .foreman .gitignore Procfile |
1629 |
- use unicorn || rm config/unicorn.rb.example |
1630 |
- use postgres || rm config/database.yml.postgresql |
1631 |
- use mysql || rm config/database.yml.mysql |
1632 |
- |
1633 |
- # change cache_store |
1634 |
- if use memcached; then |
1635 |
- sed -i \ |
1636 |
- -e "/\w*config.cache_store / s/=.*/= :dalli_store, { namespace: 'gitlab' }/" \ |
1637 |
- config/environments/production.rb \ |
1638 |
- || die "failed to modify production.rb" |
1639 |
- fi |
1640 |
- |
1641 |
- # Update pathes for unicorn |
1642 |
- if use unicorn; then |
1643 |
- sed -i \ |
1644 |
- -e "s#/home/git/gitlab#${DEST_DIR}#" \ |
1645 |
- config/unicorn.rb.example \ |
1646 |
- || die "failed to modify unicorn.rb.example" |
1647 |
- fi |
1648 |
-} |
1649 |
- |
1650 |
-src_install() { |
1651 |
- # DO NOT REMOVE - without this, the package won't install |
1652 |
- ruby-ng_src_install |
1653 |
- |
1654 |
- elog "Installing systemd unit files" |
1655 |
- systemd_dounit "${FILESDIR}/${PN}-${SLOT}-mailroom.service" |
1656 |
- systemd_dounit "${FILESDIR}/${PN}-${SLOT}-sidekiq.service" |
1657 |
- systemd_dounit "${FILESDIR}/${PN}-${SLOT}-unicorn.service" |
1658 |
- systemd_dounit "${FILESDIR}/${PN}-${SLOT}-workhorse.service" |
1659 |
- systemd_dotmpfilesd "${FILESDIR}/${PN}-${SLOT}-tmpfiles.conf" |
1660 |
-} |
1661 |
- |
1662 |
-each_ruby_install() { |
1663 |
- local dest="${DEST_DIR}" |
1664 |
- local conf="/etc/${PN}-${SLOT}" |
1665 |
- local temp="/var/tmp/${PN}-${SLOT}" |
1666 |
- local logs="/var/log/${PN}-${SLOT}" |
1667 |
- local uploads="${DEST_DIR}/public/uploads" |
1668 |
- |
1669 |
- ## Prepare directories ## |
1670 |
- |
1671 |
- diropts -m750 |
1672 |
- keepdir "${logs}" |
1673 |
- dodir "${temp}" |
1674 |
- |
1675 |
- diropts -m755 |
1676 |
- dodir "${dest}" |
1677 |
- dodir "${uploads}" |
1678 |
- |
1679 |
- dosym "${temp}" "${dest}/tmp" |
1680 |
- dosym "${logs}" "${dest}/log" |
1681 |
- |
1682 |
- ## Link gitlab-shell into git home |
1683 |
- dosym "${GITLAB_SHELL}" "${GIT_HOME}/gitlab-shell" |
1684 |
- |
1685 |
- ## Install configs ## |
1686 |
- |
1687 |
- # Note that we cannot install the config to /etc and symlink |
1688 |
- # it to ${dest} since require_relative in config/application.rb |
1689 |
- # seems to get confused by symlinks. So let's install the config |
1690 |
- # to ${dest} and create a smylink to /etc/gitlabhq-<VERSION> |
1691 |
- dosym "${dest}/config" "${conf}" |
1692 |
- |
1693 |
- insinto "${dest}/.ssh" |
1694 |
- newins "${FILESDIR}/config.ssh" config |
1695 |
- |
1696 |
- echo "export RAILS_ENV=production" > "${D}/${dest}/.profile" |
1697 |
- |
1698 |
- ## Install all others ## |
1699 |
- |
1700 |
- # remove needless dirs |
1701 |
- rm -Rf tmp log |
1702 |
- |
1703 |
- insinto "${dest}" |
1704 |
- doins -r ./ |
1705 |
- |
1706 |
- ## Install logrotate config ## |
1707 |
- |
1708 |
- dodir /etc/logrotate.d |
1709 |
- sed -e "s|@LOG_DIR@|${logs}|" \ |
1710 |
- "${FILESDIR}"/gitlab.logrotate > "${D}"/etc/logrotate.d/${PN}-${SLOT} \ |
1711 |
- || die "failed to filter gitlab.logrotate" |
1712 |
- |
1713 |
- ## Install gems via bundler ## |
1714 |
- |
1715 |
- cd "${D}/${dest}" |
1716 |
- |
1717 |
- local without="development test thin" |
1718 |
- local flag; for flag in memcached mysql postgres unicorn; do |
1719 |
- without+="$(use $flag || echo ' '$flag)" |
1720 |
- done |
1721 |
- local bundle_args="--deployment ${without:+--without ${without}}" |
1722 |
- |
1723 |
- # Use systemlibs for nokogiri as suggested |
1724 |
- ${BUNDLE} config build.nokogiri --use-system-libraries |
1725 |
- |
1726 |
- # Fix invalid ldflags for charlock_holmes, |
1727 |
- # see https://github.com/brianmario/charlock_holmes/issues/32 |
1728 |
- ${BUNDLE} config build.charlock_holmes --with-ldflags='-L. -Wl,-O1 -Wl,--as-needed -rdynamic -Wl,-export-dynamic -Wl,--no-undefined -lz -licuuc' |
1729 |
- |
1730 |
- einfo "Running bundle install ${bundle_args} ..." |
1731 |
- ${BUNDLE} install ${bundle_args} || die "bundler failed" |
1732 |
- |
1733 |
- ## Clean ## |
1734 |
- |
1735 |
- local gemsdir=vendor/bundle/ruby/$(ruby_rbconfig_value 'ruby_version') |
1736 |
- |
1737 |
- # remove gems cache |
1738 |
- rm -Rf ${gemsdir}/cache |
1739 |
- |
1740 |
- # fix permissions |
1741 |
- fowners -R ${GIT_USER}:${GIT_GROUP} "${dest}" "${conf}" "${temp}" "${logs}" |
1742 |
- fperms o+Xr "${temp}" # Let nginx access the unicorn socket |
1743 |
- |
1744 |
- ## RC scripts ## |
1745 |
- local rcscript=${PN}-${SLOT}.init |
1746 |
- |
1747 |
- cp "${FILESDIR}/${rcscript}" "${T}" || die |
1748 |
- sed -i \ |
1749 |
- -e "s|@GIT_USER@|${GIT_USER}|" \ |
1750 |
- -e "s|@GIT_GROUP@|${GIT_USER}|" \ |
1751 |
- -e "s|@SLOT@|${SLOT}|" \ |
1752 |
- -e "s|@DEST_DIR@|${dest}|" \ |
1753 |
- -e "s|@LOG_DIR@|${logs}|" \ |
1754 |
- -e "s|@RESQUE_QUEUE@|${resque_queue}|" \ |
1755 |
- "${T}/${rcscript}" \ |
1756 |
- || die "failed to filter ${rcscript}" |
1757 |
- |
1758 |
- if use memcached; then |
1759 |
- sed -i -e '/^depend/,// {/need / s/$/ memcached/}' \ |
1760 |
- "${T}/${rcscript}" || die "failed to filter ${rcscript}" |
1761 |
- fi |
1762 |
- |
1763 |
- newinitd "${T}/${rcscript}" "${PN}-${SLOT}" |
1764 |
-} |
1765 |
- |
1766 |
-pkg_preinst() { |
1767 |
- diropts -m "0750" -o "${GIT_USER}" -g "${GIT_GROUP}" |
1768 |
- dodir "${GIT_SATELLITES}" |
1769 |
-} |
1770 |
- |
1771 |
-pkg_postinst() { |
1772 |
- if [ ! -e "${GIT_HOME}/.ssh/id_rsa" ]; then |
1773 |
- einfo "Generating SSH key for git user" |
1774 |
- su -l ${GIT_USER} -s /bin/sh -c " |
1775 |
- ssh-keygen -q -N '' -t rsa -f ${GIT_HOME}/.ssh/id_rsa" \ |
1776 |
- || die "failed to generate SSH key" |
1777 |
- fi |
1778 |
- if [ ! -e "${GIT_HOME}/.gitconfig" ]; then |
1779 |
- einfo "Setting git user in ${GIT_HOME}/.gitconfig, feel free to " |
1780 |
- einfo "modify this file according to your needs!" |
1781 |
- su -l ${GIT_USER} -s /bin/sh -c " |
1782 |
- git config --global core.autocrlf 'input'; |
1783 |
- git config --global gc.auto 0; |
1784 |
- git config --global user.email 'gitlab@localhost'; |
1785 |
- git config --global user.name 'GitLab' |
1786 |
- git config --global repack.writeBitmaps true" \ |
1787 |
- || die "failed to setup git configuration" |
1788 |
- fi |
1789 |
- |
1790 |
- elog "If this is a new installation, proceed with the following steps:" |
1791 |
- elog |
1792 |
- elog " 1. Copy ${CONF_DIR}/gitlab.yml.example to ${CONF_DIR}/gitlab.yml" |
1793 |
- elog " and edit this file in order to configure your GitLab settings." |
1794 |
- elog |
1795 |
- elog " 2. Copy ${CONF_DIR}/database.yml.* to ${CONF_DIR}/database.yml" |
1796 |
- elog " and edit this file in order to configure your database settings" |
1797 |
- elog " for \"production\" environment." |
1798 |
- elog |
1799 |
- elog " 3. Copy ${CONF_DIR}/initializers/rack_attack.rb.example" |
1800 |
- elog " to ${CONF_DIR}/initializers/rack_attack.rb" |
1801 |
- elog |
1802 |
- elog " 4. Copy ${CONF_DIR}/resque.yml.example to ${CONF_DIR}/resque.yml" |
1803 |
- elog " and edit this file in order to configure your Redis settings" |
1804 |
- elog " for \"production\" environment." |
1805 |
- elog |
1806 |
- |
1807 |
- if use unicorn; then |
1808 |
- elog " 4a. Copy ${CONF_DIR}/unicorn.rb.example to ${CONF_DIR}/unicorn.rb" |
1809 |
- elog |
1810 |
- fi |
1811 |
- |
1812 |
- elog " 5. If this is a new installation, create a database for your GitLab instance." |
1813 |
- if use postgres; then |
1814 |
- elog " If you have local PostgreSQL running, just copy&run:" |
1815 |
- elog " su postgres" |
1816 |
- elog " psql -c \"CREATE ROLE gitlab PASSWORD 'gitlab' \\" |
1817 |
- elog " NOSUPERUSER NOCREATEDB NOCREATEROLE INHERIT LOGIN;\"" |
1818 |
- elog " createdb -E UTF-8 -O gitlab gitlab_production" |
1819 |
- elog " Note: You should change your password to something more random..." |
1820 |
- elog |
1821 |
- elog " GitLab uses polymorphic associations which are not SQL-standard friendly." |
1822 |
- elog " To get it work you must use this ugly workaround:" |
1823 |
- elog " psql -U postgres -d gitlab" |
1824 |
- elog " CREATE CAST (integer AS text) WITH INOUT AS IMPLICIT;" |
1825 |
- elog |
1826 |
- fi |
1827 |
- elog " 6. Execute the following command to finalize your setup:" |
1828 |
- elog " emerge --config \"=${CATEGORY}/${PF}\"" |
1829 |
- elog " Note: Do not forget to start Redis server." |
1830 |
- elog |
1831 |
- elog "To update an existing instance, run the following command and choose upgrading when prompted:" |
1832 |
- elog " emerge --config \"=${CATEGORY}/${PF}\"" |
1833 |
- elog |
1834 |
- elog "Important: Do not remove the earlier version prior migration!" |
1835 |
- |
1836 |
- if linux_config_exists; then |
1837 |
- if linux_chkconfig_present PAX ; then |
1838 |
- elog "" |
1839 |
- ewarn "Warning: PaX support is enabled, you must disable mprotect for ruby. Otherwise " |
1840 |
- ewarn "FFI will trigger mprotect errors that are hard to trace. Please run: " |
1841 |
- ewarn " paxctl -m $RUBY" |
1842 |
- fi |
1843 |
- else |
1844 |
- elog "" |
1845 |
- einfo "Important: Cannot find a linux kernel configuration, so cannot check for PaX support." |
1846 |
- einfo " If CONFIG_PAX is set, you should disable mprotect for ruby since FFI may trigger" |
1847 |
- einfo " mprotect errors." |
1848 |
- fi |
1849 |
-} |
1850 |
- |
1851 |
-pkg_config() { |
1852 |
- # Ask user whether this is the first installation |
1853 |
- einfon "Do you want to upgrade an existing installation? [Y|n] " |
1854 |
- do_upgrade="" |
1855 |
- while true |
1856 |
- do |
1857 |
- read -r do_upgrade |
1858 |
- if [[ $do_upgrade == "n" || $do_upgrade == "N" ]] ; then do_upgrade="" && break |
1859 |
- elif [[ $do_upgrade == "y" || $do_upgrade == "Y" || $do_upgrade == "" ]] ; then do_upgrade=1 && break |
1860 |
- else eerror "Please type either \"Y\" or \"N\" ... " ; fi |
1861 |
- done |
1862 |
- |
1863 |
- if [[ $do_upgrade ]] ; then |
1864 |
- |
1865 |
- LATEST_DEST=$(test -n "${LATEST_DEST}" && echo ${LATEST_DEST} || \ |
1866 |
- find /opt -maxdepth 1 -iname 'gitlabhq-*' -and -type d -and -not -iname "gitlabhq-${SLOT}" | \ |
1867 |
- sort -rV | head -n1) |
1868 |
- |
1869 |
- if [[ -z "${LATEST_DEST}" || ! -d "${LATEST_DEST}" ]] ; then |
1870 |
- einfon "Please enter the path to your latest Gitlab instance:" |
1871 |
- while true |
1872 |
- do |
1873 |
- read -r LATEST_DEST |
1874 |
- test -d ${LATEST_DEST} && break ||\ |
1875 |
- eerror "Please specify a valid path to your Gitlab instance!" |
1876 |
- done |
1877 |
- else |
1878 |
- einfo "Found your latest Gitlab instance at \"${LATEST_DEST}\"." |
1879 |
- fi |
1880 |
- |
1881 |
- einfo "Please make sure that you've created a backup and stopped your running Gitlab instance: " |
1882 |
- elog "\$ cd \"${LATEST_DEST}\" && sudo -u ${GIT_USER} ${BUNDLE} exec rake gitlab:backup:create RAILS_ENV=production" |
1883 |
- elog "\$ /etc/init.d/${LATEST_DEST#*/opt/} stop" |
1884 |
- elog "" |
1885 |
- |
1886 |
- einfon "Proceeed? [Y|n] " |
1887 |
- read -r proceed |
1888 |
- if [[ $proceed != "y" && $proceed != "Y" && $proceed != "" ]] |
1889 |
- then |
1890 |
- einfo "Aborting migration" |
1891 |
- return |
1892 |
- fi |
1893 |
- |
1894 |
- if [[ ${LATEST_DEST} != ${DEST_DIR} ]] ; |
1895 |
- then |
1896 |
- einfo "Found major update, migrate data from \"$LATEST_DEST\":" |
1897 |
- |
1898 |
- einfo "Migrating uploads ..." |
1899 |
- einfon "This will move your uploads from \"$LATEST_DEST\" to \"${DEST_DIR}\", (C)ontinue or (s)kip? " |
1900 |
- migrate_uploads="" |
1901 |
- while true |
1902 |
- do |
1903 |
- read -r migrate_uploads |
1904 |
- if [[ $migrate_uploads == "s" || $migrate_uploads == "S" ]] ; then migrate_uploads="" && break |
1905 |
- elif [[ $migrate_uploads == "c" || $migrate_uploads == "C" || $migrate_uploads == "" ]] ; then migrate_uploads=1 && break |
1906 |
- else eerror "Please type either \"c\" to continue or \"n\" to skip ... " ; fi |
1907 |
- done |
1908 |
- if [[ $migrate_uploads ]] ; then |
1909 |
- su -l ${GIT_USER} -s /bin/sh -c " |
1910 |
- rm -rf ${DEST_DIR}/public/uploads && \ |
1911 |
- mv ${LATEST_DEST}/public/uploads ${DEST_DIR}/public/uploads" \ |
1912 |
- || die "failed to migrate uploads." |
1913 |
- |
1914 |
- # Fix permissions |
1915 |
- find "${DEST_DIR}/public/uploads/" -type d -exec chmod 0700 {} \; |
1916 |
- fi |
1917 |
- |
1918 |
- einfo "Migrating shared data ..." |
1919 |
- einfon "This will move your shared data from \"$LATEST_DEST\" to \"${DEST_DIR}\", (C)ontinue or (s)kip? " |
1920 |
- migrate_shared="" |
1921 |
- while true |
1922 |
- do |
1923 |
- read -r migrate_shared |
1924 |
- if [[ $migrate_shared == "s" || $migrate_shared == "S" ]] ; then migrate_shared="" && break |
1925 |
- elif [[ $migrate_shared == "c" || $migrate_shared == "C" || $migrate_shared == "" ]] ; then migrate_shared=1 && break |
1926 |
- else eerror "Please type either \"c\" to continue or \"n\" to skip ... " ; fi |
1927 |
- done |
1928 |
- if [[ $migrate_shared ]] ; then |
1929 |
- su -l ${GIT_USER} -s /bin/sh -c " |
1930 |
- rm -rf ${DEST_DIR}/shared && \ |
1931 |
- mv ${LATEST_DEST}/shared ${DEST_DIR}/shared" \ |
1932 |
- || die "failed to migrate shared data." |
1933 |
- |
1934 |
- # Fix permissions |
1935 |
- find "${DEST_DIR}/shared/" -type d -exec chmod 0700 {} \; |
1936 |
- fi |
1937 |
- |
1938 |
- einfon "Migrate configuration, (C)ontinue or (s)kip? " |
1939 |
- while true |
1940 |
- do |
1941 |
- read -r migrate_config |
1942 |
- if [[ $migrate_config == "s" || $migrate_config == "S" ]] ; then migrate_config="" && break |
1943 |
- elif [[ $migrate_config == "c" || $migrate_config == "C" || $migrate_config == "" ]] ; then migrate_config=1 && break |
1944 |
- else eerror "Please type either \"c\" to continue or \"s\" to skip ... " ; fi |
1945 |
- done |
1946 |
- if [[ $migrate_config ]] |
1947 |
- then |
1948 |
- for conf in database.yml gitlab.yml resque.yml unicorn.rb secrets.yml ; do |
1949 |
- einfo "Migration config file \"$conf\" ..." |
1950 |
- cp -p "${LATEST_DEST}/config/${conf}" "${DEST_DIR}/config/" |
1951 |
- sed -s "s#$(basename $LATEST_DEST)#${PN}-${SLOT}#g" -i "${DEST_DIR}/config/$conf" |
1952 |
- |
1953 |
- example="${DEST_DIR}/config/${conf}.example" |
1954 |
- test -f "${example}" && cp -p "${example}" "${DEST_DIR}/config/._cfg0000_${conf}" |
1955 |
- done |
1956 |
- |
1957 |
- # if the user's console is not 80x24, it is better to manually run dispatch-conf |
1958 |
- einfon "Merge config with dispatch-conf, (C)ontinue or (q)uit? " |
1959 |
- while true |
1960 |
- do |
1961 |
- read -r merge_config |
1962 |
- if [[ $merge_config == "q" || $merge_config == "Q" ]] ; then merge_config="" && break |
1963 |
- elif [[ $merge_config == "c" || $merge_config == "C" || $merge_config == "" ]] ; then merge_config=1 && break |
1964 |
- else eerror "Please type either \"c\" to continue or \"q\" to quit ... " ; fi |
1965 |
- done |
1966 |
- if [[ $merge_config ]] ; then |
1967 |
- CONFIG_PROTECT="${DEST_DIR}" dispatch-conf || die "failed to automatically migrate config, run \"CONFIG_PROTECT=${DEST_DIR} dispatch-conf\" by hand, re-run this routine and skip config migration to proceed." |
1968 |
- else |
1969 |
- echo "Manually run \"CONFIG_PROTECT=${DEST_DIR} dispatch-conf\" and re-run this routine and skip config migration to proceed." |
1970 |
- return |
1971 |
- fi |
1972 |
- fi |
1973 |
- fi |
1974 |
- |
1975 |
- einfo "Clean up old gems ..." |
1976 |
- su -l ${GIT_USER} -s /bin/sh -c " |
1977 |
- export LANG=en_US.UTF-8; export LC_ALL=en_US.UTF-8 |
1978 |
- cd ${DEST_DIR} |
1979 |
- ${BUNDLE} clean" \ |
1980 |
- || die "failed to clean up old gems ..." |
1981 |
- |
1982 |
- einfo "Migrating database ..." |
1983 |
- su -l ${GIT_USER} -s /bin/sh -c " |
1984 |
- export LANG=en_US.UTF-8; export LC_ALL=en_US.UTF-8 |
1985 |
- cd ${DEST_DIR} |
1986 |
- ${BUNDLE} exec rake db:migrate RAILS_ENV=production" \ |
1987 |
- || die "failed to migrate database." |
1988 |
- |
1989 |
- einfo "Clear redis cache ..." |
1990 |
- su -l ${GIT_USER} -s /bin/sh -c " |
1991 |
- export LANG=en_US.UTF-8; export LC_ALL=en_US.UTF-8 |
1992 |
- cd ${DEST_DIR} |
1993 |
- ${BUNDLE} exec rake cache:clear RAILS_ENV=production" \ |
1994 |
- || die "failed to run cache:clear" |
1995 |
- |
1996 |
- einfo "Clean up assets ..." |
1997 |
- su -l ${GIT_USER} -s /bin/sh -c " |
1998 |
- export LANG=en_US.UTF-8; export LC_ALL=en_US.UTF-8 |
1999 |
- cd ${DEST_DIR} |
2000 |
- ${BUNDLE} exec rake gitlab:assets:clean RAILS_ENV=production NODE_ENV=production" \ |
2001 |
- || die "failed to run gitlab:assets:clean" |
2002 |
- |
2003 |
- einfo "Configure Git to generate packfile bitmaps ..." |
2004 |
- su -l ${GIT_USER} -s /bin/sh -c " |
2005 |
- git config --global repack.writeBitmaps true" \ |
2006 |
- || die "failed to configure Git" |
2007 |
- |
2008 |
- else |
2009 |
- |
2010 |
- ## Check config files existence ## |
2011 |
- einfo "Checking configuration files ..." |
2012 |
- |
2013 |
- if [ ! -r "${CONF_DIR}/database.yml" ] ; then |
2014 |
- eerror "Copy \"${CONF_DIR}/database.yml.*\" to \"${CONF_DIR}/database.yml\"" |
2015 |
- eerror "and edit this file in order to configure your database settings for" |
2016 |
- eerror "\"production\" environment." |
2017 |
- die |
2018 |
- fi |
2019 |
- if [ ! -r "${CONF_DIR}/gitlab.yml" ]; then |
2020 |
- eerror "Copy \"${CONF_DIR}/gitlab.yml.example\" to \"${CONF_DIR}/gitlab.yml\"" |
2021 |
- eerror "and edit this file in order to configure your GitLab settings" |
2022 |
- eerror "for \"production\" environment." |
2023 |
- die |
2024 |
- fi |
2025 |
- |
2026 |
- einfo "Initializing database ..." |
2027 |
- su -l ${GIT_USER} -s /bin/sh -c " |
2028 |
- export LANG=en_US.UTF-8; export LC_ALL=en_US.UTF-8 |
2029 |
- cd ${DEST_DIR} |
2030 |
- ${BUNDLE} exec rake gitlab:setup RAILS_ENV=${RAILS_ENV}" \ |
2031 |
- || die "failed to run rake gitlab:setup" |
2032 |
- fi |
2033 |
- |
2034 |
- einfo "Compile assets ..." |
2035 |
- su -l ${GIT_USER} -s /bin/sh -c " |
2036 |
- export LANG=en_US.UTF-8; export LC_ALL=en_US.UTF-8 |
2037 |
- cd ${DEST_DIR} |
2038 |
- yarn add mime-db |
2039 |
- yarn install --production --pure-lockfile --no-progress |
2040 |
- ${BUNDLE} exec rake gitlab:assets:compile RAILS_ENV=production NODE_ENV=production" \ |
2041 |
- || die "failed to run yarn install and gitlab:assets:compile" |
2042 |
- |
2043 |
- ## (Re-)Link gitlab-shell-secret into gitlab-shell |
2044 |
- if test -L "${GITLAB_SHELL}/.gitlab_shell_secret" |
2045 |
- then |
2046 |
- rm "${GITLAB_SHELL}/.gitlab_shell_secret" |
2047 |
- ln -s "${DEST_DIR}/.gitlab_shell_secret" "${GITLAB_SHELL}/.gitlab_shell_secret" |
2048 |
- fi |
2049 |
- |
2050 |
- einfo "You might want to run the following in order to check your application status:" |
2051 |
- einfo "# cd ${DEST_DIR} && sudo -u ${GIT_USER} ${BUNDLE} exec rake gitlab:check RAILS_ENV=production" |
2052 |
- einfo "" |
2053 |
- einfo "GitLab is prepared, now you should configure your web server." |
2054 |
-} |
2055 |
|
2056 |
diff --git a/www-servers/unicorn/Manifest b/www-servers/unicorn/Manifest |
2057 |
deleted file mode 100644 |
2058 |
index 7ca8b16..0000000 |
2059 |
--- a/www-servers/unicorn/Manifest |
2060 |
+++ /dev/null |
2061 |
@@ -1,3 +0,0 @@ |
2062 |
-DIST unicorn-5.1.0.gem 211456 SHA256 5b1c6a38d3503ec54d7acb6da89957ac8cba6b00ac787b6de683fb80467a9be5 SHA512 ff6030361af84e8f63d57b6bc6f917e99619217832b3a735389e2becf95dcc972d7c03b5c5818cbd8e2435f8226619dc457e79bae630c3fbda15432354056099 WHIRLPOOL 18495938ddf28256c8bb673c9891cb9009c67b6478711ecd49745e23ed2937009b38ee399d326ee4c3aa39e87bf69e1c187fb8a7a53d1cbcd203618fc67e83f0 |
2063 |
-EBUILD unicorn-5.1.0.ebuild 1032 SHA256 08d6ff59c3a809706f7ecf8e0fd20d856fea649b37d6bef6c95ed3f85263360c SHA512 a53e1641337e7d21d22f676df6e37a93e2ca7ce9bea01116e937e2948d9737c6336cf7bb1eee886f1260a0d0e30b4dbee4d5f67606af672b0f1ef3884357545f WHIRLPOOL fb5f7f700cda36d7c7a41d0b44db04fbb661919d9b454f76b2efe17f2619a2560401a3d58de25c0858ff50ecfa298dc021d49cef93f4baf5893488f56f85ac31 |
2064 |
-MISC metadata.xml 260 SHA256 6d9817bb849803066b93a8e6aa76081e5a784eed13d01a58fe2384d38bd43813 SHA512 06924e239bce9b23e59390bc843f1b45685cda4a4cf9745ff65259e43a1fb677ae8e1dcc41708afda19333a6fa0364f7975a5b0e4f6676e63be6f21600d09f73 WHIRLPOOL 847b2bd6cc5c54fac54db42938f2d682001d3bdbfaa8c71f08b1dc766bd76752b99d5081b5e1fc4f456964cc38ef7fa4232caa3b776be20939dac3904e5610db |
2065 |
|
2066 |
diff --git a/www-servers/unicorn/metadata.xml b/www-servers/unicorn/metadata.xml |
2067 |
deleted file mode 100644 |
2068 |
index 84289b7..0000000 |
2069 |
--- a/www-servers/unicorn/metadata.xml |
2070 |
+++ /dev/null |
2071 |
@@ -1,8 +0,0 @@ |
2072 |
-<?xml version="1.0" encoding="UTF-8"?> |
2073 |
-<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
2074 |
-<pkgmetadata> |
2075 |
- <maintainer type="person"> |
2076 |
- <email>samuelbernardo.mail@×××××.com</email> |
2077 |
- <name>Samuel Bernardo</name> |
2078 |
- </maintainer> |
2079 |
-</pkgmetadata> |
2080 |
|
2081 |
diff --git a/www-servers/unicorn/unicorn-5.1.0.ebuild b/www-servers/unicorn/unicorn-5.1.0.ebuild |
2082 |
deleted file mode 100644 |
2083 |
index c8ae606..0000000 |
2084 |
--- a/www-servers/unicorn/unicorn-5.1.0.ebuild |
2085 |
+++ /dev/null |
2086 |
@@ -1,48 +0,0 @@ |
2087 |
-# Copyright 1999-2016 Gentoo Foundation |
2088 |
-# Distributed under the terms of the GNU General Public License v2 |
2089 |
-# $Id$ |
2090 |
- |
2091 |
-EAPI=5 |
2092 |
- |
2093 |
-USE_RUBY="ruby20 ruby21 ruby22 ruby23" |
2094 |
- |
2095 |
-RUBY_FAKEGEM_TASK_DOC="" |
2096 |
-RUBY_FAKEGEM_EXTRADOC="KNOWN_ISSUES ISSUES HACKING PHILOSOPHY README SIGNALS FAQ DESIGN" |
2097 |
- |
2098 |
-inherit ruby-fakegem |
2099 |
- |
2100 |
-DESCRIPTION="An HTTP server for Rack applications" |
2101 |
-HOMEPAGE="https://rubygems.org/gems/unicorn http://bogomips.org/unicorn.git http://unicorn.bogomips.org/" |
2102 |
- |
2103 |
-LICENSE="GPL-2+ Ruby" |
2104 |
-SLOT="0" |
2105 |
-KEYWORDS="~amd64" |
2106 |
-IUSE="" |
2107 |
- |
2108 |
-ruby_add_rdepend ">=dev-ruby/kgio-2.6 |
2109 |
- <dev-ruby/kgio-3 |
2110 |
- dev-ruby/rack |
2111 |
- >=dev-ruby/raindrops-0.7 |
2112 |
- <dev-ruby/raindrops-1" |
2113 |
- |
2114 |
-ruby_add_bdepend "test? ( >=dev-ruby/test-unit-3.0 |
2115 |
- <dev-ruby/test-unit-4 )" |
2116 |
- |
2117 |
-RESTRICT="test" |
2118 |
- |
2119 |
-each_ruby_configure() { |
2120 |
- ${RUBY} -Cext/unicorn_http extconf.rb || die |
2121 |
-} |
2122 |
- |
2123 |
-each_ruby_compile() { |
2124 |
- emake V=1 -Cext/unicorn_http |
2125 |
- cp ext/unicorn_http/unicorn_http$(get_modname) lib/ || die |
2126 |
-} |
2127 |
- |
2128 |
-all_ruby_install() { |
2129 |
- all_fakegem_install |
2130 |
-} |
2131 |
- |
2132 |
-each_ruby_test() { |
2133 |
- ${RUBY} -Ilib -S testrb test/unit/test_*.rb |
2134 |
-} |