diff options
author | Samuel Bernardo <samuelbernardo.mail@gmail.com> | 2020-03-08 23:35:32 +0000 |
---|---|---|
committer | Samuel Bernardo <samuelbernardo.mail@gmail.com> | 2020-03-08 23:35:32 +0000 |
commit | 32dd06fc01581052d6045d1ff7c3c2c92a5ca026 (patch) | |
tree | 6788377ca8b9c131078c530a25c7df7f84e767d5 /dev-java | |
parent | Update eclipse (diff) | |
download | ssnb-32dd06fc01581052d6045d1ff7c3c2c92a5ca026.tar.gz ssnb-32dd06fc01581052d6045d1ff7c3c2c92a5ca026.tar.bz2 ssnb-32dd06fc01581052d6045d1ff7c3c2c92a5ca026.zip |
Update nexus-oss-bin
Signed-off-by: Samuel Bernardo <samuelbernardo.mail@gmail.com>
Diffstat (limited to 'dev-java')
-rw-r--r-- | dev-java/nexus-oss-bin/Manifest | 2 | ||||
-rw-r--r-- | dev-java/nexus-oss-bin/nexus-oss-bin-3.21.0.ebuild | 88 |
2 files changed, 90 insertions, 0 deletions
diff --git a/dev-java/nexus-oss-bin/Manifest b/dev-java/nexus-oss-bin/Manifest index 575d336..151d85d 100644 --- a/dev-java/nexus-oss-bin/Manifest +++ b/dev-java/nexus-oss-bin/Manifest @@ -2,9 +2,11 @@ AUX nexus-oss-bin_run_as_user.patch 248 BLAKE2B 665accd3fbbcac5ffae37c50d03df0d5 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.21.0-05-unix.tar.gz 140732808 BLAKE2B e8638cc48cd07e31750e9abb182f3176c2a57c1735d2ac29d0383e13d0f5daa048a83e45ce2d965abd43b05c2bd7e6c6e769e6e12648aa0ea37494268388042c SHA512 95b34c28f9810d8677b8501d1841d3fa172dda615fb1b81148c6f5c5dde4dbeceab5d6eb7c2ba30b590a9e39497182f85df5f95adca927cd4ea71bf51461c8f1 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 18f514c08b2eca96ef0088488be0d030e18dd72a16af8636d37cced6e96f6f09168eb4fafcf7fc52a03bcef4663e8696dcca060570b2ac8a11152c33b3ee1899 SHA512 394348e367b5a5cff568070264eb63c6dbc5fac21523889516be9fb0004ec2f60c7de3379d1234fa8503d336df23eb9f9eaa7a1629b999c18e251c5c85107f31 +EBUILD nexus-oss-bin-3.21.0.ebuild 2388 BLAKE2B be6f1bedec5a5f6af772be27825497be6abe890eb8a8b685a7376f2ea3a99dd97d5ffac2da38dc8b592ecfa1d9423327534a2390ac0fc09b990835ee57e2e855 SHA512 39572390fc90dba5c2c5d6c7114d7046cda5dd3f75e32cdc3ff8f322f171bbc2a28d4b744b6a4c90c8bacc671864caecf9952d05bb47ef95e888b438969fb3a7 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.21.0.ebuild b/dev-java/nexus-oss-bin/nexus-oss-bin-3.21.0.ebuild new file mode 100644 index 0000000..d2f8bc5 --- /dev/null +++ b/dev-java/nexus-oss-bin/nexus-oss-bin-3.21.0.ebuild @@ -0,0 +1,88 @@ +# Copyright 1999-2020 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}-05-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 +eapply_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" +} + |