diff options
author | William Hubbs <williamh@gentoo.org> | 2016-06-21 13:44:28 -0500 |
---|---|---|
committer | William Hubbs <williamh@gentoo.org> | 2016-06-21 15:59:26 -0500 |
commit | 872d068207621fe65cdb1445b60d725b8082fc10 (patch) | |
tree | a58ceb439a985502753a43914ec0e0d53040a86f /app-misc | |
parent | dev-ml/ocamlnet: Remove another := slot op from || dep (diff) | |
download | gentoo-872d068207621fe65cdb1445b60d725b8082fc10.tar.gz gentoo-872d068207621fe65cdb1445b60d725b8082fc10.tar.bz2 gentoo-872d068207621fe65cdb1445b60d725b8082fc10.zip |
app-misc/rundeck-bin: new package
Package-Manager: portage-2.2.28
Diffstat (limited to 'app-misc')
-rw-r--r-- | app-misc/rundeck-bin/Manifest | 2 | ||||
-rw-r--r-- | app-misc/rundeck-bin/files/rundeck-bin-2.6.8-profile.patch | 55 | ||||
-rw-r--r-- | app-misc/rundeck-bin/files/rundeckd.initd | 17 | ||||
-rw-r--r-- | app-misc/rundeck-bin/metadata.xml | 15 | ||||
-rw-r--r-- | app-misc/rundeck-bin/rundeck-bin-2.6.8.ebuild | 50 |
5 files changed, 139 insertions, 0 deletions
diff --git a/app-misc/rundeck-bin/Manifest b/app-misc/rundeck-bin/Manifest new file mode 100644 index 000000000000..7646ea7d36d5 --- /dev/null +++ b/app-misc/rundeck-bin/Manifest @@ -0,0 +1,2 @@ +DIST rundeck-2.6.8-1.20.GA.noarch.rpm 101053077 SHA256 2911cc3efacc9dde54e57e7226d5fbd94d96038baa44ad903825299ac87d8c7c SHA512 15620e306c10cae09eec95c43207cf88ebce69d4c7fd70289fac7f2f580343c623d77605f3dd5aa98cc882ec3512196aa431a2ff72e453780b415d19ee8bcebd WHIRLPOOL 509d514e1e7487f4a6ea1c4890dedf91eac93eb7a49fb8b3f6de47aac86535572c0b5d4154def19ce932cf05b7b5dc917e4da80fed215947e07e2f3804e12ffc +DIST rundeck-config-2.6.8-1.20.GA.noarch.rpm 9460 SHA256 aeb047f9b40b91099a5b6ed7f3c658c488d7b6698b4c703c6982874f400b9386 SHA512 ab4b9933bf942706cc1b8184375122d3e122e960761582d7b00b2a8981dc9b6cd6442ad8e65699db9e80e0a64b921f2916527f4c2263a58f70363e63a99b95d7 WHIRLPOOL 1f6a4c2c475c5cfce376921ac5f5f399febdd693b3d70a3db2cae253f2a33fd21e6c348ec4f4e41779cac18e64e49258847ec71a64e9f632e899297cf1210ac9 diff --git a/app-misc/rundeck-bin/files/rundeck-bin-2.6.8-profile.patch b/app-misc/rundeck-bin/files/rundeck-bin-2.6.8-profile.patch new file mode 100644 index 000000000000..a9ff4acd0a4a --- /dev/null +++ b/app-misc/rundeck-bin/files/rundeck-bin-2.6.8-profile.patch @@ -0,0 +1,55 @@ +--- a/etc/rundeck/profile 2016-06-10 21:37:22.000000000 +0100 ++++ b/etc/rundeck/profile 2016-06-14 00:02:11.630959252 +0100 +@@ -1,27 +1,11 @@ + RDECK_BASE=/var/lib/rundeck + export RDECK_BASE + +-JAVA_CMD=java + RUNDECK_TEMPDIR=/tmp/rundeck + + RDECK_HTTP_PORT=4440 + RDECK_HTTPS_PORT=4443 + +-# +-# If JAVA_HOME is set, then add it to home and set JAVA_CMD to use the version specified in that +-# path. JAVA_HOME can be set in the rundeck profile. Or set in this file. +-#JAVA_HOME=<path/to/JDK or JRE/install> +- +-if [ ! -z $JAVA_HOME ]; then +- PATH=$PATH:$JAVA_HOME/bin +- export PATH +- JAVA_CMD=$JAVA_HOME/bin/java +-fi +- +- +- +-export CLI_CP=$(find /var/lib/rundeck/cli -name \*.jar -printf %p:) +-export BOOTSTRAP_CP=$(find /var/lib/rundeck/bootstrap -name \*.jar -printf %p:) + export RDECK_JVM="-Djava.security.auth.login.config=/etc/rundeck/jaas-loginmodule.conf \ + -Dloginmodule.name=RDpropertyfilelogin \ + -Drdeck.config=/etc/rundeck \ +@@ -36,7 +20,7 @@ + # + # Set min/max heap size + # +-RDECK_JVM="$RDECK_JVM -Xmx1024m -Xms256m -XX:MaxPermSize=256m -server" ++RDECK_JVM="$RDECK_JVM -Xmx1024m -Xms256m -server" + # + # SSL Configuration - Uncomment the following to enable. Check SSL.properties for details. + # +@@ -44,15 +28,4 @@ + + export RDECK_SSL_OPTS="-Djavax.net.ssl.trustStore=/etc/rundeck/ssl/truststore -Djavax.net.ssl.trustStoreType=jks -Djava.protocol.handler.pkgs=com.sun.net.ssl.internal.www.protocol" + +-if test -t 0 -a -z "$RUNDECK_CLI_TERSE" +-then +- RUNDECK_CLI_TERSE=true +- export RUNDECK_CLI_TERSE +-fi +- +-if test -n "$JRE_HOME" +-then +- unset JRE_HOME +-fi +- + umask 002 diff --git a/app-misc/rundeck-bin/files/rundeckd.initd b/app-misc/rundeck-bin/files/rundeckd.initd new file mode 100644 index 000000000000..c9d93313c10b --- /dev/null +++ b/app-misc/rundeck-bin/files/rundeckd.initd @@ -0,0 +1,17 @@ +#!/sbin/openrc-run +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +command=/usr/bin/rundeckd +pidfile=/var/run/rundeckd.pid +command_background=yes +extra_started_commands=reload +servicelog=/var/log/rundeck/service.log +start_stop_daemon_args="-1 ${servicelog} -2 ${servicelog} -u rundeck -g rundeck" + +reload() { + ebegin "Reloading $RC_SVCNAME" + start-stop-daemon -p ${pidfile} -s HUP + eend $? +} diff --git a/app-misc/rundeck-bin/metadata.xml b/app-misc/rundeck-bin/metadata.xml new file mode 100644 index 000000000000..361b8c439fef --- /dev/null +++ b/app-misc/rundeck-bin/metadata.xml @@ -0,0 +1,15 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <email>williamh@gentoo.org</email> + <name>William Hubbs</name> + </maintainer> + <maintainer type="project"> + <email>java@gentoo.org</email> + <name>Gentoo Java team</name> + </maintainer> + <longdescription lang="en"> + Rundeck is a tool for job automation. + </longdescription> +</pkgmetadata> diff --git a/app-misc/rundeck-bin/rundeck-bin-2.6.8.ebuild b/app-misc/rundeck-bin/rundeck-bin-2.6.8.ebuild new file mode 100644 index 000000000000..b4b53a0a2d24 --- /dev/null +++ b/app-misc/rundeck-bin/rundeck-bin-2.6.8.ebuild @@ -0,0 +1,50 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +inherit eutils java-pkg-2 rpm user + +DESCRIPTION="Job Scheduler and Runbook Automation" +HOMEPAGE="http://www.rundeck.org" +SRC_URI="http://download.rundeck.org/rpm/rundeck-${PV}-1.20.GA.noarch.rpm + http://download.rundeck.org/rpm/rundeck-config-${PV}-1.20.GA.noarch.rpm" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~amd64" + +RDEPEND=">=virtual/jre-1.8" + +S="${WORKDIR}" + +java_prepare() { + epatch "${FILESDIR}"/${P}-profile.patch +} + +pkg_setup() { + enewgroup rundeck + enewuser rundeck -1 /bin/bash /var/lib/rundeck rundeck +} + +src_install() { + insinto /etc + doins -r etc/rundeck + insinto /var/lib + doins -r var/lib/rundeck + dodir /var/log/rundeck + dodir /var/rundeck/projects + fowners -R rundeck:rundeck /var/lib/rundeck /var/log/rundeck + fowners -R rundeck:rundeck /var/rundeck + + newinitd "${FILESDIR}"/rundeckd.initd rundeckd + echo . \"${EPREFIX}\"/etc/rundeck/profile > "${T}"/launcher-pre.sh + + java-pkg_regjar "${ED}"/var/lib/rundeck/bootstrap/*.jar + java-pkg_dolauncher rundeckd \ + -pre "${T}"/launcher-pre.sh \ + --main com.dtolabs.rundeck.RunServer \ + --java_args "\${RDECK_JVM}" \ + --pkg_args "${EPREFIX}/var/lib/rundeck \${RDECK_HTTP_PORT}" +} |