commit:     19ae21efdfa3c0382d192f19a15ad9632472c8a7
Author:     Samuel Bernardo <samuelbernardo.mail <AT> gmail <DOT> com>
AuthorDate: Sun Nov 17 22:32:12 2019 +0000
Commit:     Samuel Bernardo <samuelbernardo.mail <AT> gmail <DOT> com>
CommitDate: Sun Nov 17 22:32:12 2019 +0000
URL:        https://gitweb.gentoo.org/repo/user/ssnb.git/commit/?id=19ae21ef

update nexus-oss-bin

Signed-off-by: Samuel Bernardo <samuelbernardo.mail <AT> gmail.com>

 dev-java/nexus-oss-bin/Manifest                    |  2 +
 dev-java/nexus-oss-bin/nexus-oss-bin-3.19.1.ebuild | 88 ++++++++++++++++++++++
 2 files changed, 90 insertions(+)

diff --git a/dev-java/nexus-oss-bin/Manifest b/dev-java/nexus-oss-bin/Manifest
index 1566a00..28a14dd 100644
--- a/dev-java/nexus-oss-bin/Manifest
+++ b/dev-java/nexus-oss-bin/Manifest
@@ -1,8 +1,10 @@
 AUX nexus-oss-bin_run_as_user.patch 248 BLAKE2B 
665accd3fbbcac5ffae37c50d03df0d59d445e8cd1ab6753f6e4d497d35d349c05e42e65fd3d7e516d151ef26c140fe712bb8645970b093ac2b43d898aa1304a
 SHA512 
bbc15de98c51e4d6ba43a916bd18d23837bf40ac509222a9e5b539b5ef1ee7f735913130671b8f21d9c003cf7f20d9fdaf1744df6e0c80fb15dced4726c91ab1
 AUX nexus-oss.service 329 BLAKE2B 
68098e91b78caabeafbf7a2ea4b4e604ff4ac00ab9757d65f2a414feffb50ea67c00480c6e8118c28bbb4fdb53a2c1869b94ed1954d4bc06f0e8e6b6c1caacbe
 SHA512 
7a6b3c67bf54e1ae79a3af3587b0de214aa6bb5fdf0ed8a428c0e2ba51028e7ace11a0dcbe865d296a9696b88257f29aef60405ecaa85c916b8889fe41d88b27
 DIST nexus-3.14.0-04-unix.tar.gz 125423547 BLAKE2B 
06b58fe430c72f253ed0d49965aef69860141eca380ccaa76af2ffd12343e8a5cf2ac276e43810cc07a6a5c5fe75768ce908971aec4443caea0a8684fa1ba01e
 SHA512 
2f4ce0bf4b1fdc6854713610892d20850004517b40176c025279c31323b1b81611d8ca109cfd765108640cff26b1a721a5c9d7704d03957521621f615a51b420
+DIST nexus-3.19.1-01-unix.tar.gz 135426386 BLAKE2B 
59ce578864349072551e690322fb43e29d71a0aa79d2a2b6159ae3c1259302821336b550a606a17cff66103e70af13fdba2a12692b0032ae259fb3a932a5a7b5
 SHA512 
6c5c7d4ccbe9fd3e63b67a0909d062b015f32cfb74c677030edc75cc4fd2d3d9e0fda911e1cc3f1c9e30e120e1048dd20ac1a8741595b8adac667e2dc9b2c2b7
 DIST nexus-3.7.0-04-unix.tar.gz 112670551 BLAKE2B 
b158d5ca666199bb7a205c127fad9a1547585d8ccc52ea858957a0aa64a6d3340bfc9476440e245af534df2f31f81871fc3b1e448d789039c616cbcac836e317
 SHA512 
78bca14e145e5c7878c755d74343496d78061ea4d53d75be75f3ba524df2796d7b323d94135ea4442ae297b12cd18f5096467cc765c0209a3ccd4652eabf478a
 EBUILD nexus-oss-bin-3.14.0-r1.ebuild 2400 BLAKE2B 
a0d201503890cda5e673b48f40465ee0d5b854d3294f8d0b448bb4d7f6e62d3125c51357965e711957cc9f91d78a0bce692a21d15cb8ee8ee5f7f2e0a8d0e552
 SHA512 
d38f02b4a63750011c60754823f1f4e857b323e4bd961d68448445bf330af61d58f073fd15903f4b7278a9943c626f165d74b295669a423a3903d2a634a137f9
 EBUILD nexus-oss-bin-3.14.0.ebuild 1777 BLAKE2B 
3450826df52f0ac0b32c33e0f4bf19fba0938d095a7070eaabe686a3de4bf439a100e94620284603310cdb92c7eeb5479b69513061276bd07688d2056bbd83b0
 SHA512 
c119453ad1a5de4211b3749de6b73e20d48d946237bf8f11e1ad60bfe867d0a279b6095bb2feb15a11f08943afb585f232b5faea53d8c0be16506b939cb7e8a0
+EBUILD nexus-oss-bin-3.19.1.ebuild 2388 BLAKE2B 
f618010685438bfc88ada473e212e7c353c3e4862cd27556eb1c1fd478d595cc63ea42d2c79bbc4dbf8de96b14c9dc39a7a3b339e8aaa5774ec837949f1f840c
 SHA512 
d0d91ad02557bcfc2a80f4d5c937ad4f39d9a70fca928702b0bd6b604cfa152d6de7d2c479b0f249fec571be032930a79031297010cb04454a1f4a44e57c9a45
 EBUILD nexus-oss-bin-3.7.0.ebuild 1777 BLAKE2B 
3450826df52f0ac0b32c33e0f4bf19fba0938d095a7070eaabe686a3de4bf439a100e94620284603310cdb92c7eeb5479b69513061276bd07688d2056bbd83b0
 SHA512 
c119453ad1a5de4211b3749de6b73e20d48d946237bf8f11e1ad60bfe867d0a279b6095bb2feb15a11f08943afb585f232b5faea53d8c0be16506b939cb7e8a0
 MISC metadata.xml 1392 BLAKE2B 
deda1cf98f75673bfede9344e3344a522e3bdd974fb19dc62a8185a39b51a80c28ebf6a47d75e5a091563fdc6e412f9b3dfeff67f8f842833bf30625c4415a34
 SHA512 
86204a863173c7d491cdf361f78be360bd8c192ebfdb51d1205439742967b62c196bbe99c20580e05fa2414786787ecdd896ee304ac29c17e28d0d85b3966523

diff --git a/dev-java/nexus-oss-bin/nexus-oss-bin-3.19.1.ebuild 
b/dev-java/nexus-oss-bin/nexus-oss-bin-3.19.1.ebuild
new file mode 100644
index 0000000..f92228c
--- /dev/null
+++ b/dev-java/nexus-oss-bin/nexus-oss-bin-3.19.1.ebuild
@@ -0,0 +1,88 @@
+# Copyright 1999-2019 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI=7
+
+inherit eutils user systemd
+
+DESCRIPTION="Maven Repository Manager"
+HOMEPAGE="http://nexus.sonatype.org/";
+LICENSE="GPL-3"
+MY_PN="nexus"
+MY_PV="${PV}-01-unix"
+#echo "Debug: custom package version: ${MY_PV}"
+MY_P="${MY_PN}-${MY_PV}"
+MY_MV="3"
+
+SRC_URI="http://download.sonatype.com/${MY_PN}/${MY_MV}/${MY_P}.tar.gz";
+RESTRICT="mirror"
+KEYWORDS="~x86 ~amd64"
+SLOT="${MY_MV}"
+IUSE=""
+S="${WORKDIR}"
+#echo "Debug: working directory: ${WORKDIR}"
+RDEPEND=">=virtual/jdk-1.8"
+INSTALL_DIR="/opt/nexus-oss"
+
+pkg_setup() {
+#enewgroup <name> [gid]
+enewgroup nexus
+#enewuser <user> [uid] [shell] [homedir] [groups] [params]
+enewuser nexus -1 /bin/bash "${INSTALL_DIR}" "nexus"
+}
+
+src_unpack() {
+unpack ${A}
+}
+
+src_prepare() {
+cd "${S}"
+if -f "${FILESDIR}/${P}.patch"; then
+       epatch "${FILESDIR}/${P}.patch"
+fi
+epatch_user
+}
+
+src_install() {
+#echo "Debug: install sonatype work dir"
+dodir ${INSTALL_DIR/nexus-oss/sonatype-work}
+insinto ${INSTALL_DIR/nexus-oss/sonatype-work}
+doins -r sonatype-work/*
+
+fowners -R nexus:nexus ${INSTALL_DIR/nexus-oss/sonatype-work}
+
+#echo "Debug: INSTALL_DIR: ${INSTALL_DIR}"
+#echo "Debug: doins nexus-${MY_PV}"
+#echo "Debug: ${WORKDIR}/nexus-${MY_PV}/bin/nexus"
+insinto ${INSTALL_DIR}
+
+dodir ${INSTALL_DIR}/run
+dodir "/etc/init.d/"
+doins -r ${MY_P/-unix/}/*
+doins -r ${MY_P/-unix/}/.??*
+#BUG: nexus init script needs a symlink because it uses program path to find 
their configuration files
+#newinitd "${WORKDIR}/nexus-${MY_PV}/bin/nexus" nexus
+dosym ${INSTALL_DIR}/bin/nexus /etc/init.d/nexus
+systemd_dounit "${FILESDIR}"/nexus-oss.service
+
+fowners -R nexus:nexus ${INSTALL_DIR}
+fperms 755 "${INSTALL_DIR}/bin/nexus"
+
+#echo "Change  NEXUS_HOME  to the absolute folder location in your  .bashrc  
file, then save"
+echo NEXUS_HOME=\"${INSTALL_DIR}\" >> ${ED}/${INSTALL_DIR}/.bashrc
+fowners -R nexus:nexus ${INSTALL_DIR}/.bashrc
+fperms 644 ${INSTALL_DIR}/.bashrc
+}
+
+pkg_postinst() {
+       ewarn "Activate the service with the following commands:"
+       ewarn "sudo systemctl daemon-reload"
+       ewarn "sudo systemctl enable nexus-oss.service"
+       ewarn "sudo systemctl start nexus-oss.service"
+       ewarn " "
+       elog "After starting the service in Gentoo, verify that"
+       elog "the service started successfully."
+       elog "tail -f /opt/sonatype-work/nexus3/log/nexus.log"
+}
+

Reply via email to