added ebuild for nexus-oss-bin-2.11.2-06

This commit is contained in:
Manuel Friedli 2015-04-27 16:49:54 +02:00
parent 6260c2070c
commit c8b2f56041
3 changed files with 94 additions and 0 deletions

View file

@ -1,7 +1,10 @@
AUX init.sh 381 SHA256 7adb00b5de411223dcdaf017005e7103d8716e885a008f19aa8d56db2afa47de SHA512 b458fda89207b327f34c3e14f0c51ab86e7aa271867ec9a6c72634e1b8d81aebafba8ac6279f359fc9ba520920bee64fb439588b3f771d647ee8f3fde0ea742d WHIRLPOOL ac4d4fc6facc926f697706beb7b95d9c3bceb35a2e2d04eb656a73b2ed397c4dac521b3566307189655d6afcaa1ea116fbb8ff645a32cad484bf3ed0380b2dc8
AUX nexus-wrapper-2.10.0.patch 1193 SHA256 0ae0408df651d2bbf55a00f871e6640caa7161adf0936bfe32fa24e9b1658fff SHA512 2e54a97b288db451953d2bef2fe7bef1c1aad5f344acaad2e84d4e1c466dd7d169c84a9be7eefdbf974d20b903b598290bc6a189dcc199c6ebc31c917767af2e WHIRLPOOL c3288dc11f31dfca4c43aa6ecc6e4a2ea9c0bb181380ef373d1370b3d588614d5a33ef7db6b9523c6993424882266f4a57c19cac2e5314a82cb30e1267c5ed7a
AUX nexus-wrapper-2.11.0.patch 1193 SHA256 aa6b5ed79964383bcbbda6350ca7a3312b82c4d022e6ca1023a09f2a16446b21 SHA512 7913d7899da5b524d30c69a49b9d57c943c2c60da223f3384f9860bee82cc86a945bea8439b7b4977a6917a42cdfd119366fced23c2fa340cfe746b2acfc6a67 WHIRLPOOL 6f1a66e73d0fc5fa2f96a97aac212212cb15e3370ca35c15e24930b017a4a988d0e8c2ee7065347c7639cb62a85236f599bbfb12e149b193e883190d3bf4d86e
AUX nexus-wrapper-2.11.2.patch 1193 SHA256 f77229f2dddaae7205eec13188487ff73a663bbcd5d45b01201706044c1f18e0 SHA512 6f7230eeebe94e2cee426ffb3f1939c0a5e3b637002de7aef36608c4e95e399db1c9e28883f6e6a67cdff08804baa69efaae310871c3a9442508c72af556da6f WHIRLPOOL 2c3b48a30f4202177deb75d437a3aedc4ecf86870d4ab8e2ea79b5cb909a34630677f1fa006328554ea08807a88c1959fbf7e86ea49981dd1847687183d4ed70
DIST nexus-2.10.0-02-bundle.tar.gz 50071813 SHA256 730442be2ca4918b44a69b98bb62abfcbf8ce8f997385349510dd807c1bf88d6 SHA512 22a75a71d279b34ad2c43c4360a5fcf6218494ab3772e7419a6817e86ee8682843402a727c720d410e79e0015dddd63a38049afddeb20dfb8a7860fa3bf057e2 WHIRLPOOL d025400ff050744a4632c6f30a7708ae912506dc9e924adccf73ce1ababeaf99c701b57ea9594370a71dbf41d8cc91917cbcbb3dada360f1eb990796923b8ea2
DIST nexus-2.11.0-02-bundle.tar.gz 71803785 SHA256 c55cee79c527d6275c2f00576ca152c823ac7de4311c9257851d3dbe21f6329c SHA512 016b99cbe529a713f29492255b1c11fb8c71055bf19d3612a035f62c230705e8f5a724801af86790e06a8ef62f093ed9a8d49fc2a3430a2f5b996d73d8520701 WHIRLPOOL 31dd1a3fe49e29e036736e3b83aba7a26aece555ba7407877f20947134d01dc2f5906a47b0da3fa4547962cbc9506d8a2984fc6aa8a0ea0e456bc147427d47b0
DIST nexus-2.11.2-06-bundle.tar.gz 70793247 SHA256 e3fe7811d932ef449fafc4287a27fae62127154297d073f594ca5cba4721f59e SHA512 31b33afad7f31d33af78f9430c04c20ea6a9f4c7391c014493ecd0d02837f9eef99443012682ac0f463ae113b11fb2736078a36f25c1e69f510abc2c5c3a7f7d WHIRLPOOL c4ad2eb6bf1c78ae60de923e741e99bc85c61a68799f8329194648cc6669d0c6a411d0440620069637b480f7cd79ebbbba507a9ef846c678e218c81a084a37f1
EBUILD nexus-oss-bin-2.10.0.ebuild 1207 SHA256 73da7df4a618bc7b8be13ea0a05069a7e5075ce7ef5e2c504c92fc7719c7167e SHA512 bdfd7e517d7ae5efa46c7cc1bf2c652888460247af769e745be0a9384e302351e2bb0bb9c6c679351b41a62e267de41b8b32e4264d041d389c59792f4dc57d05 WHIRLPOOL 863e2881e689e7615d8e6a329e1cbdd48be46c009cd5ac75512563839422a7c3f7a97b2113eb2240dc9dc3e37480a127e64799aa4a5cb03078796cb1acd42f0f
EBUILD nexus-oss-bin-2.11.0.ebuild 1089 SHA256 0ecf89add82e5150e5cf4f067bce8b7c72d479f5b5cec12d1f5a985c74470ce6 SHA512 862da4bbac1b40a3aedd2bfc2053c61eeef4771dc76ea8ac4b9b42aa510727b42cf30a4c385fae47b22de567f779ff1b746956c861ec2230811d56a67a3725e4 WHIRLPOOL abb54b585b8ba6f92d4c275cc0ed614001ca2d69058c8aeec300fba378de29a3ae9a1a4f2197ef32c14d5fa734e9a31965abccc4ddd1f81dd3f7a66041917956
EBUILD nexus-oss-bin-2.11.2.ebuild 1089 SHA256 0d5aeb1e44ed49c269f0113aa7b7b66cabd3999ecbeacceef1c47d116aefcc9d SHA512 99ce64c548fdf6361a4faeb42927841354ffe9e77a8be77aea2a231db35a4c4509456b8c22f03efc7c0aac39c9bb8ced22b68a2398426ea4c28bc9403abf4265 WHIRLPOOL 18e5712133f11c4ea00e0a1ed1597e2e0117f683277d90740a2f423eebeab993c897c69c62e41bdee0cb51dfc792926bedc295c844757ae1abe01005655e7b58

View file

@ -0,0 +1,42 @@
diff --git a/bin/nexus b/bin/nexus
index 3f3a23c..4f69c5e 100755
--- a/nexus-2.11.2-06/bin/nexus
+++ b/nexus-2.11.2-06/bin/nexus
@@ -161,6 +161,37 @@ case "$DIST_ARCH" in
'9000/800')
DIST_ARCH="parisc"
;;
+ *)
+ DIST_ARCH=`uname -m | tr [:upper:] [:lower:] | tr -d [:blank:]`
+ case "$DIST_ARCH" in
+ 'athlon' | 'ia32' | 'i386' | 'i486' | 'i586' | 'i686')
+ DIST_ARCH="x86"
+ ;;
+ 'amd64' | 'x86_64' | 'ia64')
+ DIST_ARCH="x86"
+ DIST_BITS=64
+ ;;
+ 'ip27')
+ DIST_ARCH="mips"
+ ;;
+ 'power' | 'powerpc' | 'power_pc')
+ DIST_ARCH="ppc"
+ ;;
+ 'ppc64')
+ DIST_ARCH="ppc"
+ DIST_BITS=64
+ ;;
+ 'pa_risc' | 'pa-risc')
+ DIST_ARCH="parisc"
+ ;;
+ 'sun4u' | 'sparcv9')
+ DIST_ARCH="sparc"
+ ;;
+ '9000/800')
+ DIST_ARCH="parisc"
+ ;;
+ esac
+ ;;
esac
# Extra architecture detection

View file

@ -0,0 +1,49 @@
EAPI="5"
inherit eutils user
DESCRIPTION="Maven Repository Manager"
HOMEPAGE="http://nexus.sonatype.org/"
LICENSE="GPL-3"
SUB_VERSION="-06"
SRC_URI="http://download.sonatype.com/nexus/oss/nexus-${PV}${SUB_VERSION}-bundle.tar.gz"
RESTRICT="mirror"
KEYWORDS="~x86 ~amd64"
SLOT="0"
IUSE=""
S="${WORKDIR}"
RDEPEND=">=virtual/jdk-1.6"
INSTALL_DIR="/opt/nexus"
WEBAPP_DIR="${INSTALL_DIR}/nexus-oss-webapp"
pkg_setup() {
#enewgroup <name> [gid]
enewgroup nexus
#enewuser <user> [uid] [shell] [homedir] [groups] [params]
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"
}