Gentoo Archives: gentoo-commits

From: Conrad Kostecki <conikost@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-util/artifactory-bin/
Date: Fri, 16 Apr 2021 21:53:19
Message-Id: 1618609986.7fe220aa121228c611e82fd02ff847a15deafbca.conikost@gentoo
1 commit: 7fe220aa121228c611e82fd02ff847a15deafbca
2 Author: Conrad Kostecki <conikost <AT> gentoo <DOT> org>
3 AuthorDate: Fri Apr 16 21:48:55 2021 +0000
4 Commit: Conrad Kostecki <conikost <AT> gentoo <DOT> org>
5 CommitDate: Fri Apr 16 21:53:06 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7fe220aa
7
8 dev-util/artifactory-bin: drop old version
9
10 Package-Manager: Portage-3.0.18, Repoman-3.0.3
11 Signed-off-by: Conrad Kostecki <conikost <AT> gentoo.org>
12
13 .../artifactory-bin-6.3.3-r1.ebuild | 112 ---------------------
14 1 file changed, 112 deletions(-)
15
16 diff --git a/dev-util/artifactory-bin/artifactory-bin-6.3.3-r1.ebuild b/dev-util/artifactory-bin/artifactory-bin-6.3.3-r1.ebuild
17 deleted file mode 100644
18 index e7b28a6f039..00000000000
19 --- a/dev-util/artifactory-bin/artifactory-bin-6.3.3-r1.ebuild
20 +++ /dev/null
21 @@ -1,112 +0,0 @@
22 -# Copyright 1999-2021 Gentoo Authors
23 -# Distributed under the terms of the GNU General Public License v2
24 -
25 -# Using a binary ebuild until a source ebuild is doable.
26 -# This was previously blocked by two major bugs upstream:
27 -# A lack of documented build instructions - https://www.jfrog.com/jira/browse/RTFACT-8960
28 -# A lack of source releases - https://www.jfrog.com/jira/browse/RTFACT-8961
29 -# Upstream now releases source and instructions (yay!), but most of artifactory's
30 -# dependencies are not in portage yet.
31 -
32 -EAPI=6
33 -
34 -inherit systemd user
35 -
36 -MY_P="${P/-bin}"
37 -MY_PN="${PN/-bin}"
38 -MY_PV="${PV/-bin}"
39 -
40 -DESCRIPTION="The world's most advanced repository manager for maven"
41 -HOMEPAGE="http://www.jfrog.org/products.php"
42 -SRC_URI="https://bintray.com/artifact/download/jfrog/artifactory/jfrog-artifactory-oss-${MY_PV}.zip -> ${MY_P}.zip"
43 -
44 -LICENSE="AGPL-3+"
45 -SLOT="0"
46 -KEYWORDS="~amd64 ~x86"
47 -IUSE="ssl"
48 -
49 -RDEPEND=">=virtual/jre-1.8"
50 -DEPEND=">=virtual/jdk-1.8
51 - app-arch/unzip"
52 -
53 -S="${WORKDIR}/${MY_PN}-oss-${MY_PV}"
54 -
55 -pkg_setup() {
56 - enewgroup artifactory
57 - enewuser artifactory -1 /bin/sh -1 artifactory
58 -}
59 -
60 -limitsdfile=40-${MY_PN}.conf
61 -
62 -print_limitsdfile() {
63 - printf "# Start of ${limitsdfile} from ${P}\n\n"
64 - printf "@${MY_PN}\t-\tnofile\t32000\n"
65 - printf "\n# End of ${limitsdfile} from ${P}\n"
66 -}
67 -
68 -src_prepare() {
69 - default
70 -
71 - if use ssl ; then
72 - cp "${FILESDIR}/artifactory.xml" tomcat/conf/Catalina/localhost/artifactory.xml || die
73 - cp "${FILESDIR}/server.xml" tomcat/conf/server.xml || die
74 - fi
75 -
76 - # Reverse https://www.jfrog.com/jira/browse/RTFACT-7123
77 - sed -i -e "s%artifactory.repo.global.disabled=true%artifactory.repo.global.disabled=false%g;" \
78 - etc/artifactory.system.properties || die
79 -
80 - # See FIXME in src_install(), this can probably go away,
81 - # but catalina.sh may need to be fixed for that:
82 - sed -i -e "s%/etc/opt/jfrog/artifactory/default%/etc/conf.d/${MY_PN}%g;" \
83 - misc/service/setenv.sh || die
84 -
85 - einfo "Generating ${limitsdfile}"
86 - print_limitsdfile > "${S}/${limitsdfile}"
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-r3" ${MY_PN}
125 -
126 - systemd_dounit misc/service/artifactory.service
127 -
128 - fowners -R artifactory:artifactory ${ARTIFACTORY_HOME}
129 - fperms -R u+w ${TOMCAT_HOME}/work
130 -
131 - insinto /etc/security/limits.d
132 - doins "${S}/${limitsdfile}"
133 -}