Gentoo Archives: gentoo-commits

From: Austin English <wizardedit@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-util/artifactory-bin/
Date: Mon, 27 Nov 2017 22:19:36
Message-Id: 1511821167.f3774d089cf9692fa13040e33eee121bfc528498.wizardedit@gentoo
1 commit: f3774d089cf9692fa13040e33eee121bfc528498
2 Author: Austin English <wizardedit <AT> gentoo <DOT> org>
3 AuthorDate: Mon Nov 27 22:07:06 2017 +0000
4 Commit: Austin English <wizardedit <AT> gentoo <DOT> org>
5 CommitDate: Mon Nov 27 22:19:27 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f3774d08
7
8 dev-util/artifactory-bin: version bumps
9
10 Package-Manager: Portage-2.3.6, Repoman-2.3.2
11
12 dev-util/artifactory-bin/Manifest | 14 +--
13 .../artifactory-bin/artifactory-bin-5.5.2.ebuild | 110 +++++++++++++++++++++
14 .../artifactory-bin/artifactory-bin-5.6.2.ebuild | 110 +++++++++++++++++++++
15 3 files changed, 228 insertions(+), 6 deletions(-)
16
17 diff --git a/dev-util/artifactory-bin/Manifest b/dev-util/artifactory-bin/Manifest
18 index cd370dddee8..d3996dc2cfb 100644
19 --- a/dev-util/artifactory-bin/Manifest
20 +++ b/dev-util/artifactory-bin/Manifest
21 @@ -1,6 +1,8 @@
22 -DIST artifactory-4.16.0.zip 41455447 SHA256 f5711536cdf0a597799e01c570bbd38e6f5f3ffb6935cde21d38119be6592f16 SHA512 e861b66ed7586ba881267312462584fd9037e2b72021e930a52489ae718ca2449c7997278cb26cb3dead774f16d74cf285c8ce2fca0c085e7edb444f71deaa14 WHIRLPOOL 01a60743fe85909d06f69ef4bda94a2cfb37e847ee481ee025075c0b586df11118566f7f99352a7808147eec51fc1bacb649853baa97a90253ab89d3b92279a5
23 -DIST artifactory-4.16.1.zip 41489457 SHA256 f3715397f7e792de76cfecfe2b41ebbf54541e0460ff14e82a69160e0f3f06fb SHA512 b8f5441f011966837861073c928512704961c7683fadac4603f2177df1c64861432f894c5fe0669c4842a4b7d008553169e88aaffdde6e3d6e6bbdff6adf9d78 WHIRLPOOL dc7dfc0044d3770fcfc1dc56da6ffe8bc8fb07892a2888d88f5a05640ac8144cb25afc2119340d820323046bbaa0aa718a98cda6863340297e3ced696ed3e3f7
24 -DIST artifactory-5.3.2.zip 45729254 SHA256 e086a067ad191859cd0a0c996313cf5c7386e6ee892b55697c27b0f42ae2bc14 SHA512 60fbbed97c9915ed4a7627a3b893fa6c5bcec695932415d3102b9788ba6182c8cef937ad48639d4398a682ab2f517771c3dcda9306842e4202bbd45ab4768f1d WHIRLPOOL bf3b31f7a1989ddb90b03396172eeac37dc5230c4bbcc99b54c66326e5d52e26dbb83003824647c6e89926049c31b9644212aee183fa24db7475831dda0ceaec
25 -DIST artifactory-5.4.4.zip 76841935 SHA256 bf2198a0fefe818fe412579dd008f2a24dc065780da4c9657a923363c70a0a3d SHA512 f949e4c2ecaaf4581bc2e96058403684cab09f10b0bec512eda9b65bb41577a792b08d05f7a16e0e7f1614567dc9b0d1d59bb3c6ad6a4dafeb0c054a3add09a8 WHIRLPOOL c0c27a0ce5b0035d9266b6af4316044cf1aed361dbe0f7aaf66844015a70678e92bb0c6a13330ffd8f5a05903f66a82b48995605c272ba3950a19aa47d1fc85d
26 -DIST artifactory-5.4.6.zip 76857888 SHA256 43fb4b14ad5350daa200e0282a36903495505ccb536b5f0ac7d7b5487dcdfca6 SHA512 08d7895dc823e61be83026d31eea387eb914f17cb2f13b03d5314c6473f30de9279d230d242d8160dba0d3c8f6981b25b5ad46f52ad12d1c39ee820ac7a676fe WHIRLPOOL dcc86f1326011bb89c3e65a420c9f9ad02afea3a144b4b5eac8b617bec7dbb72256a6ac1f67d2bae034897bd02801b24e59746d1543e957d8e595d7ea83a4964
27 -DIST artifactory-5.5.1.zip 77406287 SHA256 e4180ec0c6a4ed9bc8da1287ac1d661c421d59bc11e56d47dd106ead31d8a44f SHA512 7327135be0c2a08dd97c575b05be1c3e4be99b38354864313d201334d3276912bcff0c6b0743fb83a2433a82fc8fcf4ec43e98f4183287fc34f1807342abedf8 WHIRLPOOL fcd3c368eafbd956eba15ae1c5cd7362d423acb0e6a0b529c8b7088ff2ec1437e02dd5b5b277c71d7bbba788db11963c2eed784ce95ba1dcb550fd41a0224722
28 +DIST artifactory-4.16.0.zip 41455447 BLAKE2B 0f9f575d5ce3ba983c905e70c8e3545946065ff458f9a1c0f0e346bebeffe002bbea4214b7a23829e3a11d8ccf6aec4548f6ba5abd405d30165d3c07e2372e98 SHA512 e861b66ed7586ba881267312462584fd9037e2b72021e930a52489ae718ca2449c7997278cb26cb3dead774f16d74cf285c8ce2fca0c085e7edb444f71deaa14
29 +DIST artifactory-4.16.1.zip 41489457 BLAKE2B 7854710a5cf4dd52d7c92581a030259df6b0b8038f9843e528b0c57211eafd405a114b709ba5407a9c83e4d693f1ecb8eafe3d5e98bb22542d5c48e15bc3cf6f SHA512 b8f5441f011966837861073c928512704961c7683fadac4603f2177df1c64861432f894c5fe0669c4842a4b7d008553169e88aaffdde6e3d6e6bbdff6adf9d78
30 +DIST artifactory-5.3.2.zip 45729254 BLAKE2B 1fe6ec8a5a33d8735bd92d480e8fb7b035af2b27bf9034791f1bdca3c3d2a13794ba06613fb508ea8f221cc1647f2a8e213994ef7603d92c88b17037fd3c7266 SHA512 60fbbed97c9915ed4a7627a3b893fa6c5bcec695932415d3102b9788ba6182c8cef937ad48639d4398a682ab2f517771c3dcda9306842e4202bbd45ab4768f1d
31 +DIST artifactory-5.4.4.zip 76841935 BLAKE2B d763122cf0d2d1237fad41b825f68ecd6ec3c3453e5ec0a76a5b367c70c5aec4ee3cd81b9ab453628c879db22e0a292fc9b43d2b3d3d5461fc63d43bffde7b2d SHA512 f949e4c2ecaaf4581bc2e96058403684cab09f10b0bec512eda9b65bb41577a792b08d05f7a16e0e7f1614567dc9b0d1d59bb3c6ad6a4dafeb0c054a3add09a8
32 +DIST artifactory-5.4.6.zip 76857888 BLAKE2B 04185e4c585a6e8121b9b6d78a4565c5107381cae53fe3d8aea647ea6ebb0920f9775a7275ba79d282a0c87a7e0544f6382a2ed10dbecb6b279679be0fd94066 SHA512 08d7895dc823e61be83026d31eea387eb914f17cb2f13b03d5314c6473f30de9279d230d242d8160dba0d3c8f6981b25b5ad46f52ad12d1c39ee820ac7a676fe
33 +DIST artifactory-5.5.1.zip 77406287 BLAKE2B be60fbbc3b8c61fc9d1a7272889219de7ea4e5b8c760afaa7e0003f6bff48d41783f76d62ac64b81ffa42393a265ed184ad4a4a23789dc79955907290035dae1 SHA512 7327135be0c2a08dd97c575b05be1c3e4be99b38354864313d201334d3276912bcff0c6b0743fb83a2433a82fc8fcf4ec43e98f4183287fc34f1807342abedf8
34 +DIST artifactory-5.5.2.zip 77438814 BLAKE2B b77d9348fbae8bf871e4fb6716e2a9d357cd0d268d65360ec7509b0999db78a8b80f68eb22cbbc0a85ee2980fbc72c7aa390a60c8129451506441d7cbfd9f776 SHA512 fd052e66316ec050599f6262274cdf5232ebb1385fedd2c19c6ba8e3dca0d9fe86d7a89fddbb8974b28e0f9dc3d7ccda1aac6b3f9159f0b77bfc51873ffd5e3b
35 +DIST artifactory-5.6.2.zip 91577071 BLAKE2B 1f9687bef239519171bdb28fb033368e5dea10186ef350c7ee7d9e4a33ce99c5e965692d8052d82454c83f42c84e79c18edafbb98540da4b818b65b577a9ac72 SHA512 b4bde9bcf53d2af6901a8e80827f3b09d685a8bbe7073badad586401b6881d046e5cade4165fa68843e981dea2912374c187518e29ab1ee86d3d0fac134a54f0
36
37 diff --git a/dev-util/artifactory-bin/artifactory-bin-5.5.2.ebuild b/dev-util/artifactory-bin/artifactory-bin-5.5.2.ebuild
38 new file mode 100644
39 index 00000000000..242019ded03
40 --- /dev/null
41 +++ b/dev-util/artifactory-bin/artifactory-bin-5.5.2.ebuild
42 @@ -0,0 +1,110 @@
43 +# Copyright 1999-2017 Gentoo Foundation
44 +# Distributed under the terms of the GNU General Public License v2
45 +
46 +# Using a binary ebuild until a source ebuild is doable.
47 +# This was previously blocked by two major bugs upstream:
48 +# A lack of documented build instructions - https://www.jfrog.com/jira/browse/RTFACT-8960
49 +# A lack of source releases - https://www.jfrog.com/jira/browse/RTFACT-8961
50 +# Upstream now releases source and instructions (yay!), but most of artifactory's
51 +# dependencies are not in portage yet.
52 +
53 +EAPI=6
54 +
55 +inherit user
56 +
57 +MY_P="${P/-bin}"
58 +MY_PN="${PN/-bin}"
59 +MY_PV="${PV/-bin}"
60 +
61 +DESCRIPTION="The world's most advanced repository manager for maven"
62 +HOMEPAGE="http://www.jfrog.org/products.php"
63 +SRC_URI="https://bintray.com/artifact/download/jfrog/artifactory/jfrog-artifactory-oss-${MY_PV}.zip -> ${MY_P}.zip"
64 +
65 +LICENSE="AGPL-3+"
66 +SLOT="0"
67 +KEYWORDS="~x86 ~amd64"
68 +IUSE="ssl"
69 +
70 +RDEPEND=">=virtual/jre-1.8"
71 +DEPEND=">=virtual/jdk-1.8
72 + app-arch/unzip"
73 +
74 +S="${WORKDIR}/${MY_PN}-oss-${MY_PV}"
75 +
76 +pkg_setup() {
77 + enewgroup artifactory
78 + enewuser artifactory -1 /bin/sh -1 artifactory
79 +}
80 +
81 +limitsdfile=40-${MY_PN}.conf
82 +
83 +print_limitsdfile() {
84 + printf "# Start of ${limitsdfile} from ${P}\n\n"
85 + printf "@${MY_PN}\t-\tnofile\t32000\n"
86 + printf "\n# End of ${limitsdfile} from ${P}\n"
87 +}
88 +
89 +src_prepare() {
90 + default
91 +
92 + if use ssl ; then
93 + cp "${FILESDIR}/artifactory.xml" tomcat/conf/Catalina/localhost/artifactory.xml || die
94 + cp "${FILESDIR}/server.xml" tomcat/conf/server.xml || die
95 + fi
96 +
97 + # Reverse https://www.jfrog.com/jira/browse/RTFACT-7123
98 + sed -i -e "s%artifactory.repo.global.disabled=true%artifactory.repo.global.disabled=false%g;" \
99 + etc/artifactory.system.properties || die
100 +
101 + # See FIXME in src_install(), this can probably go away,
102 + # but catalina.sh may need to be fixed for that:
103 + sed -i -e "s%/etc/opt/jfrog/artifactory/default%/etc/conf.d/${MY_PN}%g;" \
104 + misc/service/setenv.sh || die
105 +
106 + einfo "Generating ${limitsdfile}"
107 + print_limitsdfile > "${S}/${limitsdfile}"
108 +}
109 +
110 +src_install() {
111 + local ARTIFACTORY_HOME="/opt/artifactory"
112 + local TOMCAT_HOME="${ARTIFACTORY_HOME}/tomcat"
113 +
114 + insinto ${ARTIFACTORY_HOME}
115 + doins -r etc logs misc tomcat webapps
116 +
117 + dodir /etc/opt/jfrog
118 + dosym ${ARTIFACTORY_HOME}/etc /etc/opt/jfrog/artifactory
119 +
120 + dosym ${ARTIFACTORY_HOME}/logs /var/log/artifactory
121 +
122 + exeinto ${ARTIFACTORY_HOME}/bin
123 + doexe bin/*
124 +
125 + # FIXME: this is called by catalina.sh (it echoes the variables before starting
126 + # artifactory, as well as makes sure log dir, etc. exists). Those directories
127 + # could probably be moved to the ebuild and the script removed from catalina.sh
128 + # without consequence (and quieter starts). Would need to check if CATALINA_*
129 + # variables are actually used anywhere (from reading code don't appear to be
130 + # actually needed)
131 + exeinto ${TOMCAT_HOME}/bin
132 + doexe misc/service/setenv.sh
133 + doexe tomcat/bin/*
134 +
135 + keepdir ${ARTIFACTORY_HOME}/backup
136 + keepdir ${ARTIFACTORY_HOME}/data
137 + keepdir ${ARTIFACTORY_HOME}/run
138 + keepdir ${ARTIFACTORY_HOME}/work
139 + keepdir ${TOMCAT_HOME}/logs/catalina
140 + keepdir ${TOMCAT_HOME}/temp
141 + keepdir ${TOMCAT_HOME}/work
142 + keepdir /var/opt/jfrog/artifactory/run
143 +
144 + newconfd "${FILESDIR}/confd" ${MY_PN}
145 + newinitd "${FILESDIR}/initd-r3" ${MY_PN}
146 +
147 + fowners -R artifactory:artifactory ${ARTIFACTORY_HOME}
148 + fperms -R u+w ${TOMCAT_HOME}/work
149 +
150 + insinto /etc/security/limits.d
151 + doins "${S}/${limitsdfile}"
152 +}
153
154 diff --git a/dev-util/artifactory-bin/artifactory-bin-5.6.2.ebuild b/dev-util/artifactory-bin/artifactory-bin-5.6.2.ebuild
155 new file mode 100644
156 index 00000000000..242019ded03
157 --- /dev/null
158 +++ b/dev-util/artifactory-bin/artifactory-bin-5.6.2.ebuild
159 @@ -0,0 +1,110 @@
160 +# Copyright 1999-2017 Gentoo Foundation
161 +# Distributed under the terms of the GNU General Public License v2
162 +
163 +# Using a binary ebuild until a source ebuild is doable.
164 +# This was previously blocked by two major bugs upstream:
165 +# A lack of documented build instructions - https://www.jfrog.com/jira/browse/RTFACT-8960
166 +# A lack of source releases - https://www.jfrog.com/jira/browse/RTFACT-8961
167 +# Upstream now releases source and instructions (yay!), but most of artifactory's
168 +# dependencies are not in portage yet.
169 +
170 +EAPI=6
171 +
172 +inherit user
173 +
174 +MY_P="${P/-bin}"
175 +MY_PN="${PN/-bin}"
176 +MY_PV="${PV/-bin}"
177 +
178 +DESCRIPTION="The world's most advanced repository manager for maven"
179 +HOMEPAGE="http://www.jfrog.org/products.php"
180 +SRC_URI="https://bintray.com/artifact/download/jfrog/artifactory/jfrog-artifactory-oss-${MY_PV}.zip -> ${MY_P}.zip"
181 +
182 +LICENSE="AGPL-3+"
183 +SLOT="0"
184 +KEYWORDS="~x86 ~amd64"
185 +IUSE="ssl"
186 +
187 +RDEPEND=">=virtual/jre-1.8"
188 +DEPEND=">=virtual/jdk-1.8
189 + app-arch/unzip"
190 +
191 +S="${WORKDIR}/${MY_PN}-oss-${MY_PV}"
192 +
193 +pkg_setup() {
194 + enewgroup artifactory
195 + enewuser artifactory -1 /bin/sh -1 artifactory
196 +}
197 +
198 +limitsdfile=40-${MY_PN}.conf
199 +
200 +print_limitsdfile() {
201 + printf "# Start of ${limitsdfile} from ${P}\n\n"
202 + printf "@${MY_PN}\t-\tnofile\t32000\n"
203 + printf "\n# End of ${limitsdfile} from ${P}\n"
204 +}
205 +
206 +src_prepare() {
207 + default
208 +
209 + if use ssl ; then
210 + cp "${FILESDIR}/artifactory.xml" tomcat/conf/Catalina/localhost/artifactory.xml || die
211 + cp "${FILESDIR}/server.xml" tomcat/conf/server.xml || die
212 + fi
213 +
214 + # Reverse https://www.jfrog.com/jira/browse/RTFACT-7123
215 + sed -i -e "s%artifactory.repo.global.disabled=true%artifactory.repo.global.disabled=false%g;" \
216 + etc/artifactory.system.properties || die
217 +
218 + # See FIXME in src_install(), this can probably go away,
219 + # but catalina.sh may need to be fixed for that:
220 + sed -i -e "s%/etc/opt/jfrog/artifactory/default%/etc/conf.d/${MY_PN}%g;" \
221 + misc/service/setenv.sh || die
222 +
223 + einfo "Generating ${limitsdfile}"
224 + print_limitsdfile > "${S}/${limitsdfile}"
225 +}
226 +
227 +src_install() {
228 + local ARTIFACTORY_HOME="/opt/artifactory"
229 + local TOMCAT_HOME="${ARTIFACTORY_HOME}/tomcat"
230 +
231 + insinto ${ARTIFACTORY_HOME}
232 + doins -r etc logs misc tomcat webapps
233 +
234 + dodir /etc/opt/jfrog
235 + dosym ${ARTIFACTORY_HOME}/etc /etc/opt/jfrog/artifactory
236 +
237 + dosym ${ARTIFACTORY_HOME}/logs /var/log/artifactory
238 +
239 + exeinto ${ARTIFACTORY_HOME}/bin
240 + doexe bin/*
241 +
242 + # FIXME: this is called by catalina.sh (it echoes the variables before starting
243 + # artifactory, as well as makes sure log dir, etc. exists). Those directories
244 + # could probably be moved to the ebuild and the script removed from catalina.sh
245 + # without consequence (and quieter starts). Would need to check if CATALINA_*
246 + # variables are actually used anywhere (from reading code don't appear to be
247 + # actually needed)
248 + exeinto ${TOMCAT_HOME}/bin
249 + doexe misc/service/setenv.sh
250 + doexe tomcat/bin/*
251 +
252 + keepdir ${ARTIFACTORY_HOME}/backup
253 + keepdir ${ARTIFACTORY_HOME}/data
254 + keepdir ${ARTIFACTORY_HOME}/run
255 + keepdir ${ARTIFACTORY_HOME}/work
256 + keepdir ${TOMCAT_HOME}/logs/catalina
257 + keepdir ${TOMCAT_HOME}/temp
258 + keepdir ${TOMCAT_HOME}/work
259 + keepdir /var/opt/jfrog/artifactory/run
260 +
261 + newconfd "${FILESDIR}/confd" ${MY_PN}
262 + newinitd "${FILESDIR}/initd-r3" ${MY_PN}
263 +
264 + fowners -R artifactory:artifactory ${ARTIFACTORY_HOME}
265 + fperms -R u+w ${TOMCAT_HOME}/work
266 +
267 + insinto /etc/security/limits.d
268 + doins "${S}/${limitsdfile}"
269 +}