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, 24 Aug 2016 16:37:10
Message-Id: 1472056614.db686e4279b079c335059e2c74439e1b19b181c2.wizardedit@gentoo
1 commit: db686e4279b079c335059e2c74439e1b19b181c2
2 Author: Austin English <wizardedit <AT> gentoo <DOT> org>
3 AuthorDate: Fri Aug 19 17:41:12 2016 +0000
4 Commit: Austin English <wizardedit <AT> gentoo <DOT> org>
5 CommitDate: Wed Aug 24 16:36:54 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=db686e42
7
8 dev-util/artifactory-bin: version bumps
9
10 Package-Manager: portage-2.3.0
11
12 dev-util/artifactory-bin/Manifest | 2 +
13 .../artifactory-bin/artifactory-bin-4.11.1.ebuild | 97 ++++++++++++++++++++++
14 .../artifactory-bin/artifactory-bin-4.11.2.ebuild | 97 ++++++++++++++++++++++
15 3 files changed, 196 insertions(+)
16
17 diff --git a/dev-util/artifactory-bin/Manifest b/dev-util/artifactory-bin/Manifest
18 index 5b7bbe7..69dc568 100644
19 --- a/dev-util/artifactory-bin/Manifest
20 +++ b/dev-util/artifactory-bin/Manifest
21 @@ -1,5 +1,7 @@
22 DIST artifactory-4.10.0.zip 41178841 SHA256 949499822127506906589f88b887cc712931f95efcbc906584e1163e0976f058 SHA512 72f5665faec48701b96ccfdf46f42512a82874a636b912bec21a1738828fe5d5f6712307380ede07c787a3778064ade13b8d9cbd18442f77454539836d4a7bcd WHIRLPOOL 3afb4070946ddf83664edd98fa3c2288f359bb0f24fd8546750f4641ec4c391a84cdac9df3e383e9d4d8cf7baae48d67c4d0c8aea0a20aeae92273e4b8613d7e
23 DIST artifactory-4.11.0.zip 41244801 SHA256 3bb7f2409b8d779c60b8ce773501fefebe5af0146c65a26085bc07f52a0b7ae3 SHA512 7c76cfcc8e040d3301a5a84805618089eb76683ed621fef7a094e4b4c9232d3b6730bb1de4375513895f5c8f8983070587ce2fdeb3f28a4dfa28206aa06f6517 WHIRLPOOL abf18758f7ddc993c2c7bc1e39c33dc6b65c8f99ebfc6413ef8a1eac381f7c0bdf46b9c1768c8945813f6acff62774bae90a21911405dff8b621cda0db0c1798
24 +DIST artifactory-4.11.1.zip 41246363 SHA256 88837e1542c03c5571ab908bf30d7cf222b6b87f2759a3d8db9cc60c31111f86 SHA512 1cca679e0480d56e6e708708ac1571ae6e623d794655321accb206f4ae9693481a8875b18675c348fa48d8739f3b902004ea43f633864bdcfd662e3357e00887 WHIRLPOOL e7222c78062222dc28fb8956da0b818ad6cdd15b922ef3150d20c2dc0ea336fa7c0bc40527d7be8fe73800855de5eb54ae5e4be357b2122d168fb121f2bdf24f
25 +DIST artifactory-4.11.2.zip 41256431 SHA256 d765046bca9debf7bf1bdac391846fa767c9671ba95b2aeb32c7c73a88f42c33 SHA512 f06b641359dbbda937e7dee05a0ac59a7ce713b2438046bf8b6cd9a4c87c2ad4a81ed1bb0cbb262b3dba7aea8543bdc6c6217dce559b8f4b239bccca399c4cc8 WHIRLPOOL 8e889d8a25c34caaca88b1d76ccb2a6b96deb46424bde525e3281726e6a5472e8050ab58392b85fc11d4cda8477c57946e063e6827290ebc4270c1e591c02725
26 DIST artifactory-4.7.6.zip 40332783 SHA256 8f2ee405e7b13ea2121a0e1c97ef3097ae54e9753d7288cc4ee95d3831cb01dd SHA512 06d102b8a17172a8f6a67e9f166278b59569ba8439c9eea02bc1a7401182f72bc00da8ea3484a30b1c96ab167d331868169edd3051f6e027d772a9c5ede50852 WHIRLPOOL 296dc74c9698058b2fc020ce0561929a7a75dc47ad48cce37be1d4e86e0c4bbddfb7ab108f58ee1175bb0fff113a4a216a11c6ddf01380d3fd8c826607712990
27 DIST artifactory-4.7.7.zip 40327123 SHA256 953a208daa35767ca915a9bab20310493c9abd78f238f787387c89077d377716 SHA512 2ebda9b45a819c9f060a7d789878f09ffb5e8791f9913ba5f86498ad69a01731fca9efde7c0ed9e206ea35a98d733052146c407208f28a3efc0b25423b11a894 WHIRLPOOL 57e60d9426849f140fdd67bc775c9d9e08c0c78926347dc5bd64cf0c5d0fd1ab759539756e98183e093e6e9b27301d5bb6192ca5c023c71664a49bded23b8a0e
28 DIST artifactory-4.8.0.zip 41084705 SHA256 2de13962ad1e6f4f1537e1fd86b6e70da6afae67a2449bf0cb369d3a84267647 SHA512 a21310a7699c63a2fe3f305f42fef0aab6a0b9d43b2b8ba89d2360e5f8364d233f6f64616271d6cd4e79c1cecd18b1a7197fbb034a5eabd77d97b257e09b2910 WHIRLPOOL e6a62c25f2927ea069fa512c40f8b7ea4cecb8625acdd8149c1f2db298b7375e362ee616562b37e9a00d5ed5451cb5861bf906d4d5c796eec9735e62b2a46e88
29
30 diff --git a/dev-util/artifactory-bin/artifactory-bin-4.11.1.ebuild b/dev-util/artifactory-bin/artifactory-bin-4.11.1.ebuild
31 new file mode 100644
32 index 00000000..211224d
33 --- /dev/null
34 +++ b/dev-util/artifactory-bin/artifactory-bin-4.11.1.ebuild
35 @@ -0,0 +1,97 @@
36 +# Copyright 1999-2016 Gentoo Foundation
37 +# Distributed under the terms of the GNU General Public License v2
38 +# $Id$
39 +
40 +# Using a binary ebuild until a source ebuild is doable.
41 +# This was previously blocked by two major bugs upstream:
42 +# A lack of documented build instructions - https://www.jfrog.com/jira/browse/RTFACT-8960
43 +# A lack of source releases - https://www.jfrog.com/jira/browse/RTFACT-8961
44 +# Upstream now releases source and instructions (yay!), but most of artifactory's
45 +# dependencies are not in portage yet.
46 +
47 +EAPI=6
48 +
49 +inherit user
50 +
51 +MY_P="${P/-bin}"
52 +MY_PN="${PN/-bin}"
53 +MY_PV="${PV/-bin}"
54 +
55 +DESCRIPTION="The world's most advanced repository manager for maven"
56 +HOMEPAGE="http://www.jfrog.org/products.php"
57 +SRC_URI="https://bintray.com/artifact/download/jfrog/artifactory/jfrog-artifactory-oss-${MY_PV}.zip -> ${MY_P}.zip"
58 +
59 +LICENSE="AGPL-3+"
60 +SLOT="0"
61 +KEYWORDS="~x86 ~amd64"
62 +IUSE="ssl"
63 +
64 +RDEPEND=">=virtual/jre-1.8"
65 +DEPEND=">=virtual/jdk-1.8
66 + app-arch/unzip"
67 +
68 +S="${WORKDIR}/${MY_PN}-oss-${MY_PV}"
69 +
70 +pkg_setup() {
71 + enewgroup artifactory
72 + enewuser artifactory -1 /bin/sh -1 artifactory
73 +}
74 +
75 +src_prepare() {
76 + default
77 +
78 + if use ssl ; then
79 + cp "${FILESDIR}/artifactory.xml" tomcat/conf/Catalina/localhost/artifactory.xml || die
80 + cp "${FILESDIR}/server.xml" tomcat/conf/server.xml || die
81 + fi
82 +
83 + # Reverse https://www.jfrog.com/jira/browse/RTFACT-7123
84 + sed -i -e "s%artifactory.repo.global.disabled=true%artifactory.repo.global.disabled=false%g;" \
85 + etc/artifactory.system.properties || die
86 +
87 + # See FIXME in src_install(), this can probably go away,
88 + # but catalina.sh may need to be fixed for that:
89 + sed -i -e "s%/etc/opt/jfrog/artifactory/default%/etc/conf.d/${MY_PN}%g;" \
90 + misc/service/setenv.sh || die
91 +}
92 +
93 +src_install() {
94 + local ARTIFACTORY_HOME="/opt/artifactory"
95 + local TOMCAT_HOME="${ARTIFACTORY_HOME}/tomcat"
96 +
97 + insinto ${ARTIFACTORY_HOME}
98 + doins -r etc logs misc tomcat webapps
99 +
100 + dodir /etc/opt/jfrog
101 + dosym ${ARTIFACTORY_HOME}/etc /etc/opt/jfrog/artifactory
102 +
103 + dosym ${ARTIFACTORY_HOME}/logs /var/log/artifactory
104 +
105 + exeinto ${ARTIFACTORY_HOME}/bin
106 + doexe bin/*
107 +
108 + # FIXME: this is called by catalina.sh (it echoes the variables before starting
109 + # artifactory, as well as makes sure log dir, etc. exists). Those directories
110 + # could probably be moved to the ebuild and the script removed from catalina.sh
111 + # without consequence (and quieter starts). Would need to check if CATALINA_*
112 + # variables are actually used anywhere (from reading code don't appear to be
113 + # actually needed)
114 + exeinto ${TOMCAT_HOME}/bin
115 + doexe misc/service/setenv.sh
116 + doexe tomcat/bin/*
117 +
118 + keepdir ${ARTIFACTORY_HOME}/backup
119 + keepdir ${ARTIFACTORY_HOME}/data
120 + keepdir ${ARTIFACTORY_HOME}/run
121 + keepdir ${ARTIFACTORY_HOME}/work
122 + keepdir ${TOMCAT_HOME}/logs/catalina
123 + keepdir ${TOMCAT_HOME}/temp
124 + keepdir ${TOMCAT_HOME}/work
125 + keepdir /var/opt/jfrog/artifactory/run
126 +
127 + newconfd "${FILESDIR}/confd" ${MY_PN}
128 + newinitd "${FILESDIR}/initd" ${MY_PN}
129 +
130 + fowners -R artifactory:artifactory ${ARTIFACTORY_HOME}
131 + fperms -R u+w ${TOMCAT_HOME}/work
132 +}
133
134 diff --git a/dev-util/artifactory-bin/artifactory-bin-4.11.2.ebuild b/dev-util/artifactory-bin/artifactory-bin-4.11.2.ebuild
135 new file mode 100644
136 index 00000000..211224d
137 --- /dev/null
138 +++ b/dev-util/artifactory-bin/artifactory-bin-4.11.2.ebuild
139 @@ -0,0 +1,97 @@
140 +# Copyright 1999-2016 Gentoo Foundation
141 +# Distributed under the terms of the GNU General Public License v2
142 +# $Id$
143 +
144 +# Using a binary ebuild until a source ebuild is doable.
145 +# This was previously blocked by two major bugs upstream:
146 +# A lack of documented build instructions - https://www.jfrog.com/jira/browse/RTFACT-8960
147 +# A lack of source releases - https://www.jfrog.com/jira/browse/RTFACT-8961
148 +# Upstream now releases source and instructions (yay!), but most of artifactory's
149 +# dependencies are not in portage yet.
150 +
151 +EAPI=6
152 +
153 +inherit user
154 +
155 +MY_P="${P/-bin}"
156 +MY_PN="${PN/-bin}"
157 +MY_PV="${PV/-bin}"
158 +
159 +DESCRIPTION="The world's most advanced repository manager for maven"
160 +HOMEPAGE="http://www.jfrog.org/products.php"
161 +SRC_URI="https://bintray.com/artifact/download/jfrog/artifactory/jfrog-artifactory-oss-${MY_PV}.zip -> ${MY_P}.zip"
162 +
163 +LICENSE="AGPL-3+"
164 +SLOT="0"
165 +KEYWORDS="~x86 ~amd64"
166 +IUSE="ssl"
167 +
168 +RDEPEND=">=virtual/jre-1.8"
169 +DEPEND=">=virtual/jdk-1.8
170 + app-arch/unzip"
171 +
172 +S="${WORKDIR}/${MY_PN}-oss-${MY_PV}"
173 +
174 +pkg_setup() {
175 + enewgroup artifactory
176 + enewuser artifactory -1 /bin/sh -1 artifactory
177 +}
178 +
179 +src_prepare() {
180 + default
181 +
182 + if use ssl ; then
183 + cp "${FILESDIR}/artifactory.xml" tomcat/conf/Catalina/localhost/artifactory.xml || die
184 + cp "${FILESDIR}/server.xml" tomcat/conf/server.xml || die
185 + fi
186 +
187 + # Reverse https://www.jfrog.com/jira/browse/RTFACT-7123
188 + sed -i -e "s%artifactory.repo.global.disabled=true%artifactory.repo.global.disabled=false%g;" \
189 + etc/artifactory.system.properties || die
190 +
191 + # See FIXME in src_install(), this can probably go away,
192 + # but catalina.sh may need to be fixed for that:
193 + sed -i -e "s%/etc/opt/jfrog/artifactory/default%/etc/conf.d/${MY_PN}%g;" \
194 + misc/service/setenv.sh || die
195 +}
196 +
197 +src_install() {
198 + local ARTIFACTORY_HOME="/opt/artifactory"
199 + local TOMCAT_HOME="${ARTIFACTORY_HOME}/tomcat"
200 +
201 + insinto ${ARTIFACTORY_HOME}
202 + doins -r etc logs misc tomcat webapps
203 +
204 + dodir /etc/opt/jfrog
205 + dosym ${ARTIFACTORY_HOME}/etc /etc/opt/jfrog/artifactory
206 +
207 + dosym ${ARTIFACTORY_HOME}/logs /var/log/artifactory
208 +
209 + exeinto ${ARTIFACTORY_HOME}/bin
210 + doexe bin/*
211 +
212 + # FIXME: this is called by catalina.sh (it echoes the variables before starting
213 + # artifactory, as well as makes sure log dir, etc. exists). Those directories
214 + # could probably be moved to the ebuild and the script removed from catalina.sh
215 + # without consequence (and quieter starts). Would need to check if CATALINA_*
216 + # variables are actually used anywhere (from reading code don't appear to be
217 + # actually needed)
218 + exeinto ${TOMCAT_HOME}/bin
219 + doexe misc/service/setenv.sh
220 + doexe tomcat/bin/*
221 +
222 + keepdir ${ARTIFACTORY_HOME}/backup
223 + keepdir ${ARTIFACTORY_HOME}/data
224 + keepdir ${ARTIFACTORY_HOME}/run
225 + keepdir ${ARTIFACTORY_HOME}/work
226 + keepdir ${TOMCAT_HOME}/logs/catalina
227 + keepdir ${TOMCAT_HOME}/temp
228 + keepdir ${TOMCAT_HOME}/work
229 + keepdir /var/opt/jfrog/artifactory/run
230 +
231 + newconfd "${FILESDIR}/confd" ${MY_PN}
232 + newinitd "${FILESDIR}/initd" ${MY_PN}
233 +
234 + fowners -R artifactory:artifactory ${ARTIFACTORY_HOME}
235 + fperms -R u+w ${TOMCAT_HOME}/work
236 +}