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