Gentoo Archives: gentoo-commits

From: Samuel Bernardo <samuelbernardo.mail@×××××.com>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/user/ssnb:master commit in: dev-java/nexus-oss-bin/
Date: Sat, 09 May 2020 21:22:36
Message-Id: 1589059332.d57aa2af86b1aa7527d47bd52025419fdd49ce53.samuelbernardo@gentoo
1 commit: d57aa2af86b1aa7527d47bd52025419fdd49ce53
2 Author: Samuel Bernardo <samuelbernardo.mail <AT> gmail <DOT> com>
3 AuthorDate: Sat May 9 21:22:12 2020 +0000
4 Commit: Samuel Bernardo <samuelbernardo.mail <AT> gmail <DOT> com>
5 CommitDate: Sat May 9 21:22:12 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/user/ssnb.git/commit/?id=d57aa2af
7
8 Update nexus oss
9
10 Signed-off-by: Samuel Bernardo <samuelbernardo.mail <AT> gmail.com>
11
12 dev-java/nexus-oss-bin/Manifest | 2 +
13 dev-java/nexus-oss-bin/nexus-oss-bin-3.23.0.ebuild | 88 ++++++++++++++++++++++
14 2 files changed, 90 insertions(+)
15
16 diff --git a/dev-java/nexus-oss-bin/Manifest b/dev-java/nexus-oss-bin/Manifest
17 index 151d85d..e711ba1 100644
18 --- a/dev-java/nexus-oss-bin/Manifest
19 +++ b/dev-java/nexus-oss-bin/Manifest
20 @@ -3,10 +3,12 @@ AUX nexus-oss.service 329 BLAKE2B 68098e91b78caabeafbf7a2ea4b4e604ff4ac00ab9757d
21 DIST nexus-3.14.0-04-unix.tar.gz 125423547 BLAKE2B 06b58fe430c72f253ed0d49965aef69860141eca380ccaa76af2ffd12343e8a5cf2ac276e43810cc07a6a5c5fe75768ce908971aec4443caea0a8684fa1ba01e SHA512 2f4ce0bf4b1fdc6854713610892d20850004517b40176c025279c31323b1b81611d8ca109cfd765108640cff26b1a721a5c9d7704d03957521621f615a51b420
22 DIST nexus-3.19.1-01-unix.tar.gz 135426386 BLAKE2B 59ce578864349072551e690322fb43e29d71a0aa79d2a2b6159ae3c1259302821336b550a606a17cff66103e70af13fdba2a12692b0032ae259fb3a932a5a7b5 SHA512 6c5c7d4ccbe9fd3e63b67a0909d062b015f32cfb74c677030edc75cc4fd2d3d9e0fda911e1cc3f1c9e30e120e1048dd20ac1a8741595b8adac667e2dc9b2c2b7
23 DIST nexus-3.21.0-05-unix.tar.gz 140732808 BLAKE2B e8638cc48cd07e31750e9abb182f3176c2a57c1735d2ac29d0383e13d0f5daa048a83e45ce2d965abd43b05c2bd7e6c6e769e6e12648aa0ea37494268388042c SHA512 95b34c28f9810d8677b8501d1841d3fa172dda615fb1b81148c6f5c5dde4dbeceab5d6eb7c2ba30b590a9e39497182f85df5f95adca927cd4ea71bf51461c8f1
24 +DIST nexus-3.23.0-03-unix.tar.gz 153445934 BLAKE2B e736b3c78da329b34a0f8024d1c0412fd0f9f0a510e72e0cb94e09608828fb210e24d800a1921b3549e1cefbdd864fc77f9a3f92a2bf4d55ac48911bb4175385 SHA512 af1d3c5a7b864d4697ba198f2b4c504527d26aab018c918650c2a79e00c02b8059d2ce70e3e36b9af30c4d7e8515e42c7af3a679600688206919ab297efe7c78
25 DIST nexus-3.7.0-04-unix.tar.gz 112670551 BLAKE2B b158d5ca666199bb7a205c127fad9a1547585d8ccc52ea858957a0aa64a6d3340bfc9476440e245af534df2f31f81871fc3b1e448d789039c616cbcac836e317 SHA512 78bca14e145e5c7878c755d74343496d78061ea4d53d75be75f3ba524df2796d7b323d94135ea4442ae297b12cd18f5096467cc765c0209a3ccd4652eabf478a
26 EBUILD nexus-oss-bin-3.14.0-r1.ebuild 2400 BLAKE2B a0d201503890cda5e673b48f40465ee0d5b854d3294f8d0b448bb4d7f6e62d3125c51357965e711957cc9f91d78a0bce692a21d15cb8ee8ee5f7f2e0a8d0e552 SHA512 d38f02b4a63750011c60754823f1f4e857b323e4bd961d68448445bf330af61d58f073fd15903f4b7278a9943c626f165d74b295669a423a3903d2a634a137f9
27 EBUILD nexus-oss-bin-3.14.0.ebuild 1777 BLAKE2B 3450826df52f0ac0b32c33e0f4bf19fba0938d095a7070eaabe686a3de4bf439a100e94620284603310cdb92c7eeb5479b69513061276bd07688d2056bbd83b0 SHA512 c119453ad1a5de4211b3749de6b73e20d48d946237bf8f11e1ad60bfe867d0a279b6095bb2feb15a11f08943afb585f232b5faea53d8c0be16506b939cb7e8a0
28 EBUILD nexus-oss-bin-3.19.1.ebuild 2388 BLAKE2B 18f514c08b2eca96ef0088488be0d030e18dd72a16af8636d37cced6e96f6f09168eb4fafcf7fc52a03bcef4663e8696dcca060570b2ac8a11152c33b3ee1899 SHA512 394348e367b5a5cff568070264eb63c6dbc5fac21523889516be9fb0004ec2f60c7de3379d1234fa8503d336df23eb9f9eaa7a1629b999c18e251c5c85107f31
29 EBUILD nexus-oss-bin-3.21.0.ebuild 2388 BLAKE2B be6f1bedec5a5f6af772be27825497be6abe890eb8a8b685a7376f2ea3a99dd97d5ffac2da38dc8b592ecfa1d9423327534a2390ac0fc09b990835ee57e2e855 SHA512 39572390fc90dba5c2c5d6c7114d7046cda5dd3f75e32cdc3ff8f322f171bbc2a28d4b744b6a4c90c8bacc671864caecf9952d05bb47ef95e888b438969fb3a7
30 +EBUILD nexus-oss-bin-3.23.0.ebuild 2388 BLAKE2B 953d48984df68ee96b21b27f2d20b96421c33559a2d9988ced612144e4f5cffbb61772f9bbb53a03a44a0ebe14f552a6b615668bf936673d97dd4099729b0b17 SHA512 dfb57693ee2b16ef31e715b6edba220bb3872759fe993086de747125bad7fc311e6a522fdbd3a5c98d81cf18ef0897fd9e4d6b5b1a7f1e9b0b54ce807dba1d4a
31 EBUILD nexus-oss-bin-3.7.0.ebuild 1777 BLAKE2B 3450826df52f0ac0b32c33e0f4bf19fba0938d095a7070eaabe686a3de4bf439a100e94620284603310cdb92c7eeb5479b69513061276bd07688d2056bbd83b0 SHA512 c119453ad1a5de4211b3749de6b73e20d48d946237bf8f11e1ad60bfe867d0a279b6095bb2feb15a11f08943afb585f232b5faea53d8c0be16506b939cb7e8a0
32 MISC metadata.xml 1392 BLAKE2B deda1cf98f75673bfede9344e3344a522e3bdd974fb19dc62a8185a39b51a80c28ebf6a47d75e5a091563fdc6e412f9b3dfeff67f8f842833bf30625c4415a34 SHA512 86204a863173c7d491cdf361f78be360bd8c192ebfdb51d1205439742967b62c196bbe99c20580e05fa2414786787ecdd896ee304ac29c17e28d0d85b3966523
33
34 diff --git a/dev-java/nexus-oss-bin/nexus-oss-bin-3.23.0.ebuild b/dev-java/nexus-oss-bin/nexus-oss-bin-3.23.0.ebuild
35 new file mode 100644
36 index 0000000..c5fc5c0
37 --- /dev/null
38 +++ b/dev-java/nexus-oss-bin/nexus-oss-bin-3.23.0.ebuild
39 @@ -0,0 +1,88 @@
40 +# Copyright 1999-2020 Gentoo Foundation
41 +# Distributed under the terms of the GNU General Public License v2
42 +# $Header: $
43 +
44 +EAPI=7
45 +
46 +inherit eutils user systemd
47 +
48 +DESCRIPTION="Maven Repository Manager"
49 +HOMEPAGE="http://nexus.sonatype.org/"
50 +LICENSE="GPL-3"
51 +MY_PN="nexus"
52 +MY_PV="${PV}-03-unix"
53 +#echo "Debug: custom package version: ${MY_PV}"
54 +MY_P="${MY_PN}-${MY_PV}"
55 +MY_MV="3"
56 +
57 +SRC_URI="http://download.sonatype.com/${MY_PN}/${MY_MV}/${MY_P}.tar.gz"
58 +RESTRICT="mirror"
59 +KEYWORDS="~x86 ~amd64"
60 +SLOT="${MY_MV}"
61 +IUSE=""
62 +S="${WORKDIR}"
63 +#echo "Debug: working directory: ${WORKDIR}"
64 +RDEPEND=">=virtual/jdk-1.8"
65 +INSTALL_DIR="/opt/nexus-oss"
66 +
67 +pkg_setup() {
68 +#enewgroup <name> [gid]
69 +enewgroup nexus
70 +#enewuser <user> [uid] [shell] [homedir] [groups] [params]
71 +enewuser nexus -1 /bin/bash "${INSTALL_DIR}" "nexus"
72 +}
73 +
74 +src_unpack() {
75 +unpack ${A}
76 +}
77 +
78 +src_prepare() {
79 +cd "${S}"
80 +if -f "${FILESDIR}/${P}.patch"; then
81 + epatch "${FILESDIR}/${P}.patch"
82 +fi
83 +eapply_user
84 +}
85 +
86 +src_install() {
87 +#echo "Debug: install sonatype work dir"
88 +dodir ${INSTALL_DIR/nexus-oss/sonatype-work}
89 +insinto ${INSTALL_DIR/nexus-oss/sonatype-work}
90 +doins -r sonatype-work/*
91 +
92 +fowners -R nexus:nexus ${INSTALL_DIR/nexus-oss/sonatype-work}
93 +
94 +#echo "Debug: INSTALL_DIR: ${INSTALL_DIR}"
95 +#echo "Debug: doins nexus-${MY_PV}"
96 +#echo "Debug: ${WORKDIR}/nexus-${MY_PV}/bin/nexus"
97 +insinto ${INSTALL_DIR}
98 +
99 +dodir ${INSTALL_DIR}/run
100 +dodir "/etc/init.d/"
101 +doins -r ${MY_P/-unix/}/*
102 +doins -r ${MY_P/-unix/}/.??*
103 +#BUG: nexus init script needs a symlink because it uses program path to find their configuration files
104 +#newinitd "${WORKDIR}/nexus-${MY_PV}/bin/nexus" nexus
105 +dosym ${INSTALL_DIR}/bin/nexus /etc/init.d/nexus
106 +systemd_dounit "${FILESDIR}"/nexus-oss.service
107 +
108 +fowners -R nexus:nexus ${INSTALL_DIR}
109 +fperms 755 "${INSTALL_DIR}/bin/nexus"
110 +
111 +#echo "Change NEXUS_HOME to the absolute folder location in your .bashrc file, then save"
112 +echo NEXUS_HOME=\"${INSTALL_DIR}\" >> ${ED}/${INSTALL_DIR}/.bashrc
113 +fowners -R nexus:nexus ${INSTALL_DIR}/.bashrc
114 +fperms 644 ${INSTALL_DIR}/.bashrc
115 +}
116 +
117 +pkg_postinst() {
118 + ewarn "Activate the service with the following commands:"
119 + ewarn "sudo systemctl daemon-reload"
120 + ewarn "sudo systemctl enable nexus-oss.service"
121 + ewarn "sudo systemctl start nexus-oss.service"
122 + ewarn " "
123 + elog "After starting the service in Gentoo, verify that"
124 + elog "the service started successfully."
125 + elog "tail -f /opt/sonatype-work/nexus3/log/nexus.log"
126 +}
127 +