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