From d17273c183f950fae2148ded4bd666326b038ed9 Mon Sep 17 00:00:00 2001 From: Manuel Friedli Date: Fri, 2 Oct 2015 19:26:11 +0200 Subject: [PATCH 1/4] added ebuild for nexus-2.11.4 --- dev-java/nexus-oss-bin/Manifest | 3 ++ .../files/nexus-wrapper-2.11.4.patch | 42 +++++++++++++++ .../nexus-oss-bin/nexus-oss-bin-2.11.4.ebuild | 51 +++++++++++++++++++ 3 files changed, 96 insertions(+) create mode 100644 dev-java/nexus-oss-bin/files/nexus-wrapper-2.11.4.patch create mode 100644 dev-java/nexus-oss-bin/nexus-oss-bin-2.11.4.ebuild diff --git a/dev-java/nexus-oss-bin/Manifest b/dev-java/nexus-oss-bin/Manifest index 5c58898..29b4bde 100644 --- a/dev-java/nexus-oss-bin/Manifest +++ b/dev-java/nexus-oss-bin/Manifest @@ -1,5 +1,8 @@ AUX init.sh 381 SHA256 7adb00b5de411223dcdaf017005e7103d8716e885a008f19aa8d56db2afa47de SHA512 b458fda89207b327f34c3e14f0c51ab86e7aa271867ec9a6c72634e1b8d81aebafba8ac6279f359fc9ba520920bee64fb439588b3f771d647ee8f3fde0ea742d WHIRLPOOL ac4d4fc6facc926f697706beb7b95d9c3bceb35a2e2d04eb656a73b2ed397c4dac521b3566307189655d6afcaa1ea116fbb8ff645a32cad484bf3ed0380b2dc8 AUX nexus-wrapper-2.11.2.patch 1193 SHA256 f77229f2dddaae7205eec13188487ff73a663bbcd5d45b01201706044c1f18e0 SHA512 6f7230eeebe94e2cee426ffb3f1939c0a5e3b637002de7aef36608c4e95e399db1c9e28883f6e6a67cdff08804baa69efaae310871c3a9442508c72af556da6f WHIRLPOOL 2c3b48a30f4202177deb75d437a3aedc4ecf86870d4ab8e2ea79b5cb909a34630677f1fa006328554ea08807a88c1959fbf7e86ea49981dd1847687183d4ed70 +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 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 0b56fbb5fffa3986b0e58ededa1d456b26dbecc2fbd27623b4edaa8a71d2c7ab SHA512 4ee0287dc522dc6f914d82b37185a86fd424c62a6992f81265cf31a0dc63e9c227d95533892cc2458b486635f4da2f65a03d9703e3b8a80f9a50604f7c12dc17 WHIRLPOOL 9affa211c59854c343c3af0222c6ebc7dcc50785a500866b8c6b60195a713ab38a23354d51fd859155866429770c9bb4cf4d8af26f91f822b6135a1dc93cfa07 MISC metadata.xml 234 SHA256 f35b97f99a26d73cc441e1d93bfe25aaa4e9f7f6d90c8d05a74f7b7bc5b68472 SHA512 59d8156b3ca3e99c40d5a2a32de7edf2eb53279b2424998862589d6bad77617d23fc852afec0a92f8ac5bb54a88ebc504cc0641029c1936412e90ab03dfdd447 WHIRLPOOL 935a1401910a42f888c991e443a49275ea8b87976c5aa977f670053d97d18754231749749bc92d37d4b5f45ecf65914480942a11b5827b6c08fb24313a428431 diff --git a/dev-java/nexus-oss-bin/files/nexus-wrapper-2.11.4.patch b/dev-java/nexus-oss-bin/files/nexus-wrapper-2.11.4.patch new file mode 100644 index 0000000..b0dee28 --- /dev/null +++ b/dev-java/nexus-oss-bin/files/nexus-wrapper-2.11.4.patch @@ -0,0 +1,42 @@ +diff --git a/bin/nexus b/bin/nexus +index 3f3a23c..4f69c5e 100755 +--- a/nexus-2.11.4-01/bin/nexus ++++ b/nexus-2.11.4-01/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 diff --git a/dev-java/nexus-oss-bin/nexus-oss-bin-2.11.4.ebuild b/dev-java/nexus-oss-bin/nexus-oss-bin-2.11.4.ebuild new file mode 100644 index 0000000..4578b81 --- /dev/null +++ b/dev-java/nexus-oss-bin/nexus-oss-bin-2.11.4.ebuild @@ -0,0 +1,51 @@ +# 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" +SUB_VERSION="-01" +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 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" +} From 154709114b781e1ea74214be6ce27026681eb4b6 Mon Sep 17 00:00:00 2001 From: Manuel Friedli Date: Sun, 4 Oct 2015 03:45:00 +0200 Subject: [PATCH 2/4] added inherit cdrom to games-rpg/ankh --- games-rpg/ankh/Manifest | 2 +- games-rpg/ankh/ankh-1.0.ebuild | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/games-rpg/ankh/Manifest b/games-rpg/ankh/Manifest index fb66a47..3eaef91 100644 --- a/games-rpg/ankh/Manifest +++ b/games-rpg/ankh/Manifest @@ -1,2 +1,2 @@ -EBUILD ankh-1.0.ebuild 1873 SHA256 93a3b8f2e43d0639cc6ad98b85a6eb5ba7ed1f4b8c44f6a11274747cde1b6282 SHA512 7a96bfbe33c1ca7f407c032e48d9dc2a70cde38b4db7ebc639b978e1d58cced8221acc23578d262ec228bed3d1fd875db3de06757159f2347d7acce0c0172ed5 WHIRLPOOL 5bde0cc3678a763f0655898bc86fdaafc876167c2c8eb619277911e46a751da897588fdc40002cfd784bd79fc8658912dd58bf662509f43f58f6957231522228 +EBUILD ankh-1.0.ebuild 1890 SHA256 834bc2bf4c96932a0194bf7f7fdafd14bb74fcf881c3b6b7286de037735468f0 SHA512 79e2e4a4a058afad3757eb21ebac948a9ada0986c8b58f03276258ce44364601fc7629e3fb77a74b133ad6f3a010e39663588a50fe229f371b819840a587c781 WHIRLPOOL bb67f0a47308b2603a7b8a7f537d3c85c0c16de66571ac101d3e155b7395b33c0ca3033ea24cd9e29492734b72d759fb5fd0cdd9af39e43c2b7d944a340d1d4e MISC metadata.xml 234 SHA256 f35b97f99a26d73cc441e1d93bfe25aaa4e9f7f6d90c8d05a74f7b7bc5b68472 SHA512 59d8156b3ca3e99c40d5a2a32de7edf2eb53279b2424998862589d6bad77617d23fc852afec0a92f8ac5bb54a88ebc504cc0641029c1936412e90ab03dfdd447 WHIRLPOOL 935a1401910a42f888c991e443a49275ea8b87976c5aa977f670053d97d18754231749749bc92d37d4b5f45ecf65914480942a11b5827b6c08fb24313a428431 diff --git a/games-rpg/ankh/ankh-1.0.ebuild b/games-rpg/ankh/ankh-1.0.ebuild index 65a0fdf..d837f5a 100644 --- a/games-rpg/ankh/ankh-1.0.ebuild +++ b/games-rpg/ankh/ankh-1.0.ebuild @@ -4,7 +4,7 @@ EAPI="5" -inherit eutils games +inherit eutils cdrom games DESCRIPTION="Ankh a Adventure like Monkey Island" HOMEPAGE="http://www.ankh-game.de/ankh.html" LICENSE="all-rights-reserved" @@ -15,7 +15,7 @@ IUSE="+abi_x86_32" RESTRICT="strip" ABI="x86" -REQUIRED_USE="abi_x86_32" +REQUIRED_USE="amd64? ( abi_x86_32 )" DEPEND="app-arch/bzip2 app-arch/tar From 2d49a348a92ba74684aec49f1fc58fe971ddf0da Mon Sep 17 00:00:00 2001 From: Manuel Friedli Date: Sun, 4 Oct 2015 03:59:23 +0200 Subject: [PATCH 3/4] depend on [abi_x86_32(-)] unconditionally --- games-rpg/ankh/Manifest | 2 +- games-rpg/ankh/ankh-1.0.ebuild | 30 ++++++++++-------------------- 2 files changed, 11 insertions(+), 21 deletions(-) diff --git a/games-rpg/ankh/Manifest b/games-rpg/ankh/Manifest index 3eaef91..7dbfa54 100644 --- a/games-rpg/ankh/Manifest +++ b/games-rpg/ankh/Manifest @@ -1,2 +1,2 @@ -EBUILD ankh-1.0.ebuild 1890 SHA256 834bc2bf4c96932a0194bf7f7fdafd14bb74fcf881c3b6b7286de037735468f0 SHA512 79e2e4a4a058afad3757eb21ebac948a9ada0986c8b58f03276258ce44364601fc7629e3fb77a74b133ad6f3a010e39663588a50fe229f371b819840a587c781 WHIRLPOOL bb67f0a47308b2603a7b8a7f537d3c85c0c16de66571ac101d3e155b7395b33c0ca3033ea24cd9e29492734b72d759fb5fd0cdd9af39e43c2b7d944a340d1d4e +EBUILD ankh-1.0.ebuild 1756 SHA256 5982d78b258f56ebdbe63d422086454ef2f90e6605d22bec1229913a251da14a SHA512 9905397c3094df90b950654e867d1cae7a0b8442e06d79e1ea9aaa2a645b844dbde4ac0e64406e3200e7cd76380f1e67063ef0412348b93deef9a63d55f5c475 WHIRLPOOL 13636cad5bf165c4d887bdbe808b2d6afd18339900c4d3bb2a1fe3bc71986ac8fceef2eb5884d74f82b95b3e8e62e954517adf3cbc661e89470a3e2bbcaf76d9 MISC metadata.xml 234 SHA256 f35b97f99a26d73cc441e1d93bfe25aaa4e9f7f6d90c8d05a74f7b7bc5b68472 SHA512 59d8156b3ca3e99c40d5a2a32de7edf2eb53279b2424998862589d6bad77617d23fc852afec0a92f8ac5bb54a88ebc504cc0641029c1936412e90ab03dfdd447 WHIRLPOOL 935a1401910a42f888c991e443a49275ea8b87976c5aa977f670053d97d18754231749749bc92d37d4b5f45ecf65914480942a11b5827b6c08fb24313a428431 diff --git a/games-rpg/ankh/ankh-1.0.ebuild b/games-rpg/ankh/ankh-1.0.ebuild index d837f5a..6d19d5f 100644 --- a/games-rpg/ankh/ankh-1.0.ebuild +++ b/games-rpg/ankh/ankh-1.0.ebuild @@ -22,27 +22,17 @@ DEPEND="app-arch/bzip2 app-arch/unzip" RDEPEND="sys-libs/glibc - amd64? ( - virtual/opengl[abi_x86_32(-)] - x11-libs/libXext[abi_x86_32(-)] - x11-libs/libX11[abi_x86_32(-)] - x11-libs/libXau[abi_x86_32(-)] - x11-libs/libXdmcp[abi_x86_32(-)] - || ( - x11-drivers/nvidia-drivers[multilib(-)] - x11-drivers/ati-drivers[abi_x86_32(-)] - ) - ) - x86? ( - virtual/opengl - x11-libs/libXext - x11-libs/libX11 - x11-libs/libXau - x11-libs/libXdmcp - || ( - x11-drivers/nvidia-drivers - x11-drivers/ati-drivers + virtual/opengl[abi_x86_32(-)] + x11-libs/libXext[abi_x86_32(-)] + x11-libs/libX11[abi_x86_32(-)] + x11-libs/libXau[abi_x86_32(-)] + x11-libs/libXdmcp[abi_x86_32(-)] + || ( + ( + amd64? ( x11-drivers/nvidia-drivers[multilib(-)] ) + x86? ( x11-drivers/nvidia-drivers ) ) + x11-drivers/ati-drivers[abi_x86_32(-)] )" S=${WORKDIR} From 09a31c4e0df28b22c3a841b1926f2617c8017c2f Mon Sep 17 00:00:00 2001 From: Manuel Friedli Date: Sun, 4 Oct 2015 04:07:42 +0200 Subject: [PATCH 4/4] is this finally it? a correct ebuild for ankh??? --- games-rpg/ankh/Manifest | 2 +- games-rpg/ankh/ankh-1.0.ebuild | 39 ++++++++++++++++++++++------------ 2 files changed, 27 insertions(+), 14 deletions(-) diff --git a/games-rpg/ankh/Manifest b/games-rpg/ankh/Manifest index 7dbfa54..dcfd0e9 100644 --- a/games-rpg/ankh/Manifest +++ b/games-rpg/ankh/Manifest @@ -1,2 +1,2 @@ -EBUILD ankh-1.0.ebuild 1756 SHA256 5982d78b258f56ebdbe63d422086454ef2f90e6605d22bec1229913a251da14a SHA512 9905397c3094df90b950654e867d1cae7a0b8442e06d79e1ea9aaa2a645b844dbde4ac0e64406e3200e7cd76380f1e67063ef0412348b93deef9a63d55f5c475 WHIRLPOOL 13636cad5bf165c4d887bdbe808b2d6afd18339900c4d3bb2a1fe3bc71986ac8fceef2eb5884d74f82b95b3e8e62e954517adf3cbc661e89470a3e2bbcaf76d9 +EBUILD ankh-1.0.ebuild 1966 SHA256 2fc1db10d0d931930b8dcee297e7e5967cb55f7ce510ef50f2764dff2998036e SHA512 92feab4cdc973eb594156bd682a095110af8b33b5312b366d55d8f6d4dd9220aa0110fc33735692bbb61400c25fe4458923ae163ca06cbb718fa098acf68bfd0 WHIRLPOOL 8765c5bd5ee1c87d0eaed9ab36990816515affa0c0d548447996f75f295d3334ef6fe83920413c2d5a8f87de3b890b4d417bea529c6b5ce751b4ff9894828caa MISC metadata.xml 234 SHA256 f35b97f99a26d73cc441e1d93bfe25aaa4e9f7f6d90c8d05a74f7b7bc5b68472 SHA512 59d8156b3ca3e99c40d5a2a32de7edf2eb53279b2424998862589d6bad77617d23fc852afec0a92f8ac5bb54a88ebc504cc0641029c1936412e90ab03dfdd447 WHIRLPOOL 935a1401910a42f888c991e443a49275ea8b87976c5aa977f670053d97d18754231749749bc92d37d4b5f45ecf65914480942a11b5827b6c08fb24313a428431 diff --git a/games-rpg/ankh/ankh-1.0.ebuild b/games-rpg/ankh/ankh-1.0.ebuild index 6d19d5f..5784edf 100644 --- a/games-rpg/ankh/ankh-1.0.ebuild +++ b/games-rpg/ankh/ankh-1.0.ebuild @@ -4,35 +4,48 @@ EAPI="5" -inherit eutils cdrom games +inherit eutils cdrom games multilib DESCRIPTION="Ankh a Adventure like Monkey Island" HOMEPAGE="http://www.ankh-game.de/ankh.html" LICENSE="all-rights-reserved" SLOT="0" KEYWORDS="-* ~amd64 ~x86" -IUSE="+abi_x86_32" +IUSE="+multilib" RESTRICT="strip" ABI="x86" -REQUIRED_USE="amd64? ( abi_x86_32 )" +REQUIRED_USE="amd64? ( multilib )" DEPEND="app-arch/bzip2 app-arch/tar app-arch/unzip" RDEPEND="sys-libs/glibc - virtual/opengl[abi_x86_32(-)] - x11-libs/libXext[abi_x86_32(-)] - x11-libs/libX11[abi_x86_32(-)] - x11-libs/libXau[abi_x86_32(-)] - x11-libs/libXdmcp[abi_x86_32(-)] - || ( - ( - amd64? ( x11-drivers/nvidia-drivers[multilib(-)] ) - x86? ( x11-drivers/nvidia-drivers ) + multilib? ( + virtual/opengl[abi_x86_32(-)] + x11-libs/libXext[abi_x86_32(-)] + x11-libs/libX11[abi_x86_32(-)] + x11-libs/libXau[abi_x86_32(-)] + x11-libs/libXdmcp[abi_x86_32(-)] + || ( + ( + amd64? ( x11-drivers/nvidia-drivers[multilib(-)] ) + x86? ( x11-drivers/nvidia-drivers ) + ) + x11-drivers/ati-drivers[abi_x86_32(-)] + ) + ) + !multilib? ( + virtual/opengl + x11-libs/libXext + x11-libs/libX11 + x11-libs/libXau + x11-libs/libXdmcp + || ( + x11-drivers/nvidia-drivers + x11-drivers/ati-drivers ) - x11-drivers/ati-drivers[abi_x86_32(-)] )" S=${WORKDIR}