From c2ec7c1ec215803c023d5ecc4cff4ad8968df680 Mon Sep 17 00:00:00 2001 From: Manuel Friedli Date: Fri, 3 Jun 2016 11:35:28 +0200 Subject: [PATCH] added ebuild for nexus-3.0.0 i hope it works. it's untested. --- dev-java/nexus-oss-bin/Manifest | 2 + .../nexus-oss-bin/nexus-oss-bin-3.0.0.ebuild | 53 +++++++++++++++++++ 2 files changed, 55 insertions(+) create mode 100644 dev-java/nexus-oss-bin/nexus-oss-bin-3.0.0.ebuild diff --git a/dev-java/nexus-oss-bin/Manifest b/dev-java/nexus-oss-bin/Manifest index 5729673..e9ab634 100644 --- a/dev-java/nexus-oss-bin/Manifest +++ b/dev-java/nexus-oss-bin/Manifest @@ -3,6 +3,8 @@ AUX nexus-wrapper-2.11.2.patch 1193 SHA256 f77229f2dddaae7205eec13188487ff73a663 AUX nexus-wrapper-2.11.4.patch 1193 SHA256 031a5caf1355ab11ec474a77ca2b972b441a61caabeca14ad409ab53f2743549 SHA512 c6f3f978a0b96bd696bb5e1a12f67eb81063e98e2552169597f3c944e0e6ea42c734f398712959936538ac5f9d5f5eb6c7f1fc3e43a489325e5f3a69a7543bd7 WHIRLPOOL eff81fa1037b105096e10a940d51b5288d559a2a66fa852987c2f3aa072957c7e81d60d173de26c6f9302efbe52c667c2bdcbd7e745fb590ceb208945dbde875 DIST nexus-2.11.2-06-bundle.tar.gz 70793247 SHA256 e3fe7811d932ef449fafc4287a27fae62127154297d073f594ca5cba4721f59e SHA512 31b33afad7f31d33af78f9430c04c20ea6a9f4c7391c014493ecd0d02837f9eef99443012682ac0f463ae113b11fb2736078a36f25c1e69f510abc2c5c3a7f7d WHIRLPOOL c4ad2eb6bf1c78ae60de923e741e99bc85c61a68799f8329194648cc6669d0c6a411d0440620069637b480f7cd79ebbbba507a9ef846c678e218c81a084a37f1 DIST nexus-2.11.4-01-bundle.tar.gz 70938260 SHA256 2901d00c7a5c287d0ab51980b0ea8ad6a3db936e6a9bc7aea573ec4e2b516719 SHA512 6d44422cb87d9b229b21ed564a9275cc3cda38ecf32de1002909750b421787c196702a811eb9f6e15726662ea13614c9d2715a8f944c8a67d5e9162b1e4eae93 WHIRLPOOL a73c37b4126f72b6b83ff9d043da46b01bb41342c7bf28a53503dd44a4c22a2da6e8af33aeb7e7229ed5b01c873576b955d5a7b9c536ed79a050ce49b0c1aa3d +DIST nexus-3.0.0-03-unix.tar.gz 79751162 SHA256 0666769effc200a520825cce22d59a5a296d03795f72f57d0a97fbe61836d0ca SHA512 e4f728097f0b7e1232538cca2077a20cbd3ed487d86d6360cfb947a9439c9eab82fb286acb1d167f909bb158ef5914d0752e9c26f02bcce60864b7a6cec0ebe7 WHIRLPOOL 2cddeb27ed44ffd844a2c724f2db33206a331eb7dd9ad3e3de42a23afc703bed0eb8c5b76e3363f7c71c4f5897ae49a07a9801aaf424ec44baeff5c2a1c1450c EBUILD nexus-oss-bin-2.11.2.ebuild 1077 SHA256 a6764695b07366aaebb582698277df84897a958a5476222549da496e3997287b SHA512 5a312b18e201bd46cb26dd7de974b01c58d11cc15665d4c9e5192f915dbf41fcf7ebad5985198d9061825d1ea929c701586260493f708eeb996c2f255387dbdb WHIRLPOOL abd2162cd46c2e0ca09cdb048a5297eaa1600cdf77945405154e00fa517c26a70c89c7e67225c89b5c77bade9ed6ce5974fec9e2cff1eae3e1e058ee3cb9898c EBUILD nexus-oss-bin-2.11.4.ebuild 1077 SHA256 960db2f4b017aeee080298e6bebc6bc599cfe5fa3fae1f4295392f422ad0fc70 SHA512 880a7762fdad21284c82b876cd862b61200b56ac8e0678c69dc7e2517166a5e29f8f2b280990f2c1e6600d8b08975643e9d363c7a4742067847e1e894957fcf4 WHIRLPOOL 35016da52fae3d885981475f592b444bda726c0e353ed2e506aa7deeb057a233d3eaabd8c1b78f54757dbfb4ed2c95060d664dc66e39d11978809c62d4fbf446 +EBUILD nexus-oss-bin-3.0.0.ebuild 1109 SHA256 93093f0d859006c9b53dc780d01d768e60608aa6defbb401b1734f9330d24730 SHA512 37c49202d5474891fdaea455f04c6376c365646727e98671e3ca15f623d31fd4bb80fac3b17dae3bda17f770d878f5acf5185913c0e02cc2b1d12058d9d12785 WHIRLPOOL 1f8427174ed6b9db6295f668ae76aa0390f55c977e248c05358747dd98b1c3da404e0b67e3a9ec259a17c9a393e76b153437c59effdff874cc92c4521836ba02 MISC metadata.xml 234 SHA256 f35b97f99a26d73cc441e1d93bfe25aaa4e9f7f6d90c8d05a74f7b7bc5b68472 SHA512 59d8156b3ca3e99c40d5a2a32de7edf2eb53279b2424998862589d6bad77617d23fc852afec0a92f8ac5bb54a88ebc504cc0641029c1936412e90ab03dfdd447 WHIRLPOOL 935a1401910a42f888c991e443a49275ea8b87976c5aa977f670053d97d18754231749749bc92d37d4b5f45ecf65914480942a11b5827b6c08fb24313a428431 diff --git a/dev-java/nexus-oss-bin/nexus-oss-bin-3.0.0.ebuild b/dev-java/nexus-oss-bin/nexus-oss-bin-3.0.0.ebuild new file mode 100644 index 0000000..e812ca2 --- /dev/null +++ b/dev-java/nexus-oss-bin/nexus-oss-bin-3.0.0.ebuild @@ -0,0 +1,53 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="5" + +inherit eutils user + +DESCRIPTION="Maven Repository Manager" +HOMEPAGE="http://nexus.sonatype.org/" +LICENSE="GPL-3" +MAJOR_VERSION="3" +SUB_VERSION="-03" +SRC_URI="http://download.sonatype.com/nexus/${MAJOR_VERSION}/nexus-${PV}${SUB_VERSION}-unix.tar.gz" +RESTRICT="mirror" +KEYWORDS="~x86 ~amd64" +SLOT="0" +IUSE="" + +S="${WORKDIR}" + +RDEPEND=">=virtual/jdk-1.8" + +INSTALL_DIR="/opt/nexus" + +WEBAPP_DIR="${INSTALL_DIR}/nexus-oss-webapp" + +pkg_setup() { + enewgroup nexus + enewuser nexus -1 /bin/bash /opt/nexus "nexus" +} + +src_unpack() { + unpack ${A} + cd "${S}" +} + +src_prepare() { +# epatch "${FILESDIR}/nexus-wrapper-${PV}.patch" +: +} + +src_install() { + insinto ${WEBAPP_DIR} + doins -r nexus-${PV}${SUB_VERSION}/* + + newinitd "${FILESDIR}/init.sh" nexus + + fowners -R nexus:nexus ${INSTALL_DIR} + fperms 755 "${INSTALL_DIR}/nexus-oss-webapp/bin/jsw/linux-x86-64/wrapper" + fperms 755 "${INSTALL_DIR}/nexus-oss-webapp/bin/jsw/linux-x86-32/wrapper" + fperms 755 "${INSTALL_DIR}/nexus-oss-webapp/bin/nexus" +}