From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id DEF56138252 for ; Wed, 11 May 2016 23:13:11 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id CA68B224048; Wed, 11 May 2016 23:13:08 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 4B3CC224048 for ; Wed, 11 May 2016 23:13:08 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id DE05F340890 for ; Wed, 11 May 2016 23:13:05 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 7B5BC334 for ; Wed, 11 May 2016 23:13:01 +0000 (UTC) From: "Austin English" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Austin English" Message-ID: <1463008361.2896d62989731bd6123abcceadca76281d845433.wizardedit@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-util/artifactory-bin/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-util/artifactory-bin/Manifest dev-util/artifactory-bin/artifactory-bin-4.7.6.ebuild dev-util/artifactory-bin/metadata.xml X-VCS-Directories: dev-util/artifactory-bin/ X-VCS-Committer: wizardedit X-VCS-Committer-Name: Austin English X-VCS-Revision: 2896d62989731bd6123abcceadca76281d845433 X-VCS-Branch: master Date: Wed, 11 May 2016 23:13:01 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: de8432f9-c569-45c9-a57b-04c99507084b X-Archives-Hash: 813d7134c36221db759c426250276d8b commit: 2896d62989731bd6123abcceadca76281d845433 Author: Austin English gentoo org> AuthorDate: Wed May 11 23:07:34 2016 +0000 Commit: Austin English gentoo org> CommitDate: Wed May 11 23:12:41 2016 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2896d629 dev-util/artifactory-bin: initial packaging for 4.7.6 Using a binary ebuild for now, as upstream is very unfriendly to building from source. See bugs below for references. Bug: https://www.jfrog.com/jira/browse/RTFACT-8960 Bug: https://www.jfrog.com/jira/browse/RTFACT-8961 Package-Manager: portage-2.2.26 dev-util/artifactory-bin/Manifest | 1 + .../artifactory-bin/artifactory-bin-4.7.6.ebuild | 97 ++++++++++++++++++++++ dev-util/artifactory-bin/metadata.xml | 11 +++ 3 files changed, 109 insertions(+) diff --git a/dev-util/artifactory-bin/Manifest b/dev-util/artifactory-bin/Manifest new file mode 100644 index 0000000..45ed7f8 --- /dev/null +++ b/dev-util/artifactory-bin/Manifest @@ -0,0 +1 @@ +DIST artifactory-4.7.6.zip 40332783 SHA256 8f2ee405e7b13ea2121a0e1c97ef3097ae54e9753d7288cc4ee95d3831cb01dd SHA512 06d102b8a17172a8f6a67e9f166278b59569ba8439c9eea02bc1a7401182f72bc00da8ea3484a30b1c96ab167d331868169edd3051f6e027d772a9c5ede50852 WHIRLPOOL 296dc74c9698058b2fc020ce0561929a7a75dc47ad48cce37be1d4e86e0c4bbddfb7ab108f58ee1175bb0fff113a4a216a11c6ddf01380d3fd8c826607712990 diff --git a/dev-util/artifactory-bin/artifactory-bin-4.7.6.ebuild b/dev-util/artifactory-bin/artifactory-bin-4.7.6.ebuild new file mode 100644 index 0000000..693071d --- /dev/null +++ b/dev-util/artifactory-bin/artifactory-bin-4.7.6.ebuild @@ -0,0 +1,97 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +# Using a binary ebuild until a source ebuild is doable. +# This is currently blocked by two major bugs upstream: +# A lack of documented build instructions - https://www.jfrog.com/jira/browse/RTFACT-8960 +# A lack of source releases - https://www.jfrog.com/jira/browse/RTFACT-8961 + +EAPI=6 + +inherit user + +MY_P="${P/-bin}" +MY_PN="${PN/-bin}" +MY_PV="${PV/-bin}" + +DESCRIPTION="The world's most advanced repository manager for maven" +HOMEPAGE="http://www.jfrog.org/products.php" +SRC_URI="https://bintray.com/artifact/download/jfrog/artifactory/jfrog-artifactory-oss-${MY_PV}.zip -> ${MY_P}.zip" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~x86 ~amd64" +IUSE="ssl" + +RDEPEND=">=virtual/jre-1.8" +DEPEND=">=virtual/jdk-1.8 + app-arch/unzip" + +S="${WORKDIR}/${MY_PN}-oss-${MY_PV}" + +pkg_setup() { + enewgroup artifactory + enewuser artifactory -1 /bin/sh -1 artifactory +} + +src_prepare() { + default + + if use ssl ; then + cp "${FILESDIR}/artifactory-4.4.0-artifactory.xml" \ + tomcat/conf/Catalina/localhost/artifactory.xml || die + cp "${FILESDIR}/artifactory-4.4.0-server.xml" \ + tomcat/conf/server.xml || die + fi + + # Reverse https://www.jfrog.com/jira/browse/RTFACT-7123 + sed -i -e "s%artifactory.repo.global.disabled=true%artifactory.repo.global.disabled=false%g;" \ + etc/artifactory.system.properties || die + + # See FIXME in src_install(), this can probably go away, + # but catalina.sh may need to be fixed for that: + sed -i -e "s%/etc/opt/jfrog/artifactory/default%/etc/conf.d/${MY_PN}%g;" \ + misc/service/setenv.sh || die +} + +src_install() { + local ARTIFACTORY_HOME="/opt/artifactory" + local TOMCAT_HOME="${ARTIFACTORY_HOME}/tomcat" + + insinto ${ARTIFACTORY_HOME} + doins -r etc logs misc tomcat webapps + + dodir /etc/opt/jfrog + dosym ${ARTIFACTORY_HOME}/etc /etc/opt/jfrog/artifactory + + dosym ${ARTIFACTORY_HOME}/logs /var/log/artifactory + + exeinto ${ARTIFACTORY_HOME}/bin + doexe bin/* + + # FIXME: this is called by catalina.sh (it echoes the variables before starting + # artifactory, as well as makes sure log dir, etc. exists). Those directories + # could probably be moved to the ebuild and the script removed from catalina.sh + # without consequence (and quieter starts). Would need to check if CATALINA_* + # variables are actually used anywhere (from reading code don't appear to be + # actually needed) + exeinto ${TOMCAT_HOME}/bin + doexe misc/service/setenv.sh + doexe tomcat/bin/* + + keepdir ${ARTIFACTORY_HOME}/backup + keepdir ${ARTIFACTORY_HOME}/data + keepdir ${ARTIFACTORY_HOME}/run + keepdir ${ARTIFACTORY_HOME}/work + keepdir ${TOMCAT_HOME}/logs/catalina + keepdir ${TOMCAT_HOME}/temp + keepdir ${TOMCAT_HOME}/work + keepdir /var/opt/jfrog/artifactory/run + + newconfd "${FILESDIR}/confd" ${MY_PN} + newinitd "${FILESDIR}/initd" ${MY_PN} + + fowners -R artifactory:artifactory ${ARTIFACTORY_HOME} + fperms -R u+w ${TOMCAT_HOME}/work +} diff --git a/dev-util/artifactory-bin/metadata.xml b/dev-util/artifactory-bin/metadata.xml new file mode 100644 index 0000000..b9b43a4 --- /dev/null +++ b/dev-util/artifactory-bin/metadata.xml @@ -0,0 +1,11 @@ + + + + + wizardedit@gentoo.org + Austin English + + + Respository manager for Maven (among other binary package formats). + +