1 |
commit: 03222ee0190993091c06c3071d28715b087217c4 |
2 |
Author: Austin English <wizardedit <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Dec 2 18:51:08 2016 +0000 |
4 |
Commit: Austin English <wizardedit <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Dec 2 18:51:17 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=03222ee0 |
7 |
|
8 |
dev-util/artifactory-bin: dev-util/artifactory-bin: version bump - 4.14.2 |
9 |
|
10 |
Package-Manager: portage-2.3.2 |
11 |
|
12 |
dev-util/artifactory-bin/Manifest | 1 + |
13 |
.../artifactory-bin/artifactory-bin-4.14.2.ebuild | 97 ++++++++++++++++++++++ |
14 |
2 files changed, 98 insertions(+) |
15 |
|
16 |
diff --git a/dev-util/artifactory-bin/Manifest b/dev-util/artifactory-bin/Manifest |
17 |
index 244b471..781756d 100644 |
18 |
--- a/dev-util/artifactory-bin/Manifest |
19 |
+++ b/dev-util/artifactory-bin/Manifest |
20 |
@@ -10,6 +10,7 @@ DIST artifactory-4.13.1.zip 41392021 SHA256 295463b4a6e6c9b1a8ddde6d62f03b206cba |
21 |
DIST artifactory-4.13.2.zip 41396298 SHA256 f228ac35bfc506754c64c45e7a86306434371b37daef0f361f76fc30c13d72cb SHA512 8469a5cbc956cf950ca8db0b8950996f02612996c12493ae45864193f7f9ff19638a1099fc391a1f849fcdb2dc355f7a33085f1136be8d74b6ff971523d83ea6 WHIRLPOOL 3600990597a193f06d1587999087c710950b24e9795fb165e1ef6c126d1441424343f26e8eba6abec070bb5443d1d33a84cfea694c8e527360a5a57a469bb51e |
22 |
DIST artifactory-4.14.0.zip 41394700 SHA256 09d2f77e7cb6f1853cd5b8245312b979d2a0670656993df2672d27bf653554fa SHA512 b922f2af5be087288be7e3a862158a8c68100a842d17a695235ffbdce5566d15be7e3e3c166732faf9a414e54a69d7837b0cbdb983c9e7f7a600e2ce96567268 WHIRLPOOL 11f6d1bd55837722f7f4ef408e9041e507dbd5f92255a32c0353cb79ecb2041c4b1ba3e846398b0c16b3b1c40cfbcdaafa8e419f2856c5dc615439c67e1bd03c |
23 |
DIST artifactory-4.14.1.zip 41393806 SHA256 48deba9f045a0b3b796646043c2c01a26a673eb5706b3f9477cfc9292ddfef7e SHA512 0d096e004ac91728fb7c80c12fbc4e6633de7b481c5b5043c95dab16b9b63df25449532dc8d94a582aa9eb5991d58bf2dd082630f3b3b166fde5ef0e5d2fff1d WHIRLPOOL d70c9516c93390798758018cbf3a0d17c89ba1d7e9fde4c5c3766f883cd95241ab75f64798154370d1f0832d142e734d1e5973dbf284c8651c979fc6cc0a4d9d |
24 |
+DIST artifactory-4.14.2.zip 41412238 SHA256 74ffcb027fc6d6a93acb8f454fe09a90907ed6f8ff7880c282d0ce7f2bef8865 SHA512 c0a4dbab5f9badb451f6ef06878f0eb5f18aa54db8595ae92adc3ced1e1d43f2220b844fd9b782272685f9ddc59e661c27c4c4e0f4e2fa844e78de3c92a95542 WHIRLPOOL c000b3798726ddfda99469ad317dc9c58d9d74ea6611bc86899a40835580f1280dbcf888b3f3e4f330bee8862693a24124a04b81bc3424cab7fd4aced57178ee |
25 |
DIST artifactory-4.7.6.zip 40332783 SHA256 8f2ee405e7b13ea2121a0e1c97ef3097ae54e9753d7288cc4ee95d3831cb01dd SHA512 06d102b8a17172a8f6a67e9f166278b59569ba8439c9eea02bc1a7401182f72bc00da8ea3484a30b1c96ab167d331868169edd3051f6e027d772a9c5ede50852 WHIRLPOOL 296dc74c9698058b2fc020ce0561929a7a75dc47ad48cce37be1d4e86e0c4bbddfb7ab108f58ee1175bb0fff113a4a216a11c6ddf01380d3fd8c826607712990 |
26 |
DIST artifactory-4.7.7.zip 40327123 SHA256 953a208daa35767ca915a9bab20310493c9abd78f238f787387c89077d377716 SHA512 2ebda9b45a819c9f060a7d789878f09ffb5e8791f9913ba5f86498ad69a01731fca9efde7c0ed9e206ea35a98d733052146c407208f28a3efc0b25423b11a894 WHIRLPOOL 57e60d9426849f140fdd67bc775c9d9e08c0c78926347dc5bd64cf0c5d0fd1ab759539756e98183e093e6e9b27301d5bb6192ca5c023c71664a49bded23b8a0e |
27 |
DIST artifactory-4.8.0.zip 41084705 SHA256 2de13962ad1e6f4f1537e1fd86b6e70da6afae67a2449bf0cb369d3a84267647 SHA512 a21310a7699c63a2fe3f305f42fef0aab6a0b9d43b2b8ba89d2360e5f8364d233f6f64616271d6cd4e79c1cecd18b1a7197fbb034a5eabd77d97b257e09b2910 WHIRLPOOL e6a62c25f2927ea069fa512c40f8b7ea4cecb8625acdd8149c1f2db298b7375e362ee616562b37e9a00d5ed5451cb5861bf906d4d5c796eec9735e62b2a46e88 |
28 |
|
29 |
diff --git a/dev-util/artifactory-bin/artifactory-bin-4.14.2.ebuild b/dev-util/artifactory-bin/artifactory-bin-4.14.2.ebuild |
30 |
new file mode 100644 |
31 |
index 00000000..9cea80c |
32 |
--- /dev/null |
33 |
+++ b/dev-util/artifactory-bin/artifactory-bin-4.14.2.ebuild |
34 |
@@ -0,0 +1,97 @@ |
35 |
+# Copyright 1999-2016 Gentoo Foundation |
36 |
+# Distributed under the terms of the GNU General Public License v2 |
37 |
+# $Id$ |
38 |
+ |
39 |
+# Using a binary ebuild until a source ebuild is doable. |
40 |
+# This was previously blocked by two major bugs upstream: |
41 |
+# A lack of documented build instructions - https://www.jfrog.com/jira/browse/RTFACT-8960 |
42 |
+# A lack of source releases - https://www.jfrog.com/jira/browse/RTFACT-8961 |
43 |
+# Upstream now releases source and instructions (yay!), but most of artifactory's |
44 |
+# dependencies are not in portage yet. |
45 |
+ |
46 |
+EAPI=6 |
47 |
+ |
48 |
+inherit user |
49 |
+ |
50 |
+MY_P="${P/-bin}" |
51 |
+MY_PN="${PN/-bin}" |
52 |
+MY_PV="${PV/-bin}" |
53 |
+ |
54 |
+DESCRIPTION="The world's most advanced repository manager for maven" |
55 |
+HOMEPAGE="http://www.jfrog.org/products.php" |
56 |
+SRC_URI="https://bintray.com/artifact/download/jfrog/artifactory/jfrog-artifactory-oss-${MY_PV}.zip -> ${MY_P}.zip" |
57 |
+ |
58 |
+LICENSE="AGPL-3+" |
59 |
+SLOT="0" |
60 |
+KEYWORDS="~x86 ~amd64" |
61 |
+IUSE="ssl" |
62 |
+ |
63 |
+RDEPEND=">=virtual/jre-1.8" |
64 |
+DEPEND=">=virtual/jdk-1.8 |
65 |
+ app-arch/unzip" |
66 |
+ |
67 |
+S="${WORKDIR}/${MY_PN}-oss-${MY_PV}" |
68 |
+ |
69 |
+pkg_setup() { |
70 |
+ enewgroup artifactory |
71 |
+ enewuser artifactory -1 /bin/sh -1 artifactory |
72 |
+} |
73 |
+ |
74 |
+src_prepare() { |
75 |
+ default |
76 |
+ |
77 |
+ if use ssl ; then |
78 |
+ cp "${FILESDIR}/artifactory.xml" tomcat/conf/Catalina/localhost/artifactory.xml || die |
79 |
+ cp "${FILESDIR}/server.xml" tomcat/conf/server.xml || die |
80 |
+ fi |
81 |
+ |
82 |
+ # Reverse https://www.jfrog.com/jira/browse/RTFACT-7123 |
83 |
+ sed -i -e "s%artifactory.repo.global.disabled=true%artifactory.repo.global.disabled=false%g;" \ |
84 |
+ etc/artifactory.system.properties || die |
85 |
+ |
86 |
+ # See FIXME in src_install(), this can probably go away, |
87 |
+ # but catalina.sh may need to be fixed for that: |
88 |
+ sed -i -e "s%/etc/opt/jfrog/artifactory/default%/etc/conf.d/${MY_PN}%g;" \ |
89 |
+ misc/service/setenv.sh || die |
90 |
+} |
91 |
+ |
92 |
+src_install() { |
93 |
+ local ARTIFACTORY_HOME="/opt/artifactory" |
94 |
+ local TOMCAT_HOME="${ARTIFACTORY_HOME}/tomcat" |
95 |
+ |
96 |
+ insinto ${ARTIFACTORY_HOME} |
97 |
+ doins -r etc logs misc tomcat webapps |
98 |
+ |
99 |
+ dodir /etc/opt/jfrog |
100 |
+ dosym ${ARTIFACTORY_HOME}/etc /etc/opt/jfrog/artifactory |
101 |
+ |
102 |
+ dosym ${ARTIFACTORY_HOME}/logs /var/log/artifactory |
103 |
+ |
104 |
+ exeinto ${ARTIFACTORY_HOME}/bin |
105 |
+ doexe bin/* |
106 |
+ |
107 |
+ # FIXME: this is called by catalina.sh (it echoes the variables before starting |
108 |
+ # artifactory, as well as makes sure log dir, etc. exists). Those directories |
109 |
+ # could probably be moved to the ebuild and the script removed from catalina.sh |
110 |
+ # without consequence (and quieter starts). Would need to check if CATALINA_* |
111 |
+ # variables are actually used anywhere (from reading code don't appear to be |
112 |
+ # actually needed) |
113 |
+ exeinto ${TOMCAT_HOME}/bin |
114 |
+ doexe misc/service/setenv.sh |
115 |
+ doexe tomcat/bin/* |
116 |
+ |
117 |
+ keepdir ${ARTIFACTORY_HOME}/backup |
118 |
+ keepdir ${ARTIFACTORY_HOME}/data |
119 |
+ keepdir ${ARTIFACTORY_HOME}/run |
120 |
+ keepdir ${ARTIFACTORY_HOME}/work |
121 |
+ keepdir ${TOMCAT_HOME}/logs/catalina |
122 |
+ keepdir ${TOMCAT_HOME}/temp |
123 |
+ keepdir ${TOMCAT_HOME}/work |
124 |
+ keepdir /var/opt/jfrog/artifactory/run |
125 |
+ |
126 |
+ newconfd "${FILESDIR}/confd" ${MY_PN} |
127 |
+ newinitd "${FILESDIR}/initd-r2" ${MY_PN} |
128 |
+ |
129 |
+ fowners -R artifactory:artifactory ${ARTIFACTORY_HOME} |
130 |
+ fperms -R u+w ${TOMCAT_HOME}/work |
131 |
+} |