public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] dev/dev-zero:master commit in: www-servers/jetty-hightide-bin/, www-servers/jetty-hightide-bin/files/
@ 2011-07-19  9:41 Tiziano Müller
  0 siblings, 0 replies; only message in thread
From: Tiziano Müller @ 2011-07-19  9:41 UTC (permalink / raw
  To: gentoo-commits

commit:     55e7f0c3136f9f265ff441a2b4105cf74273b212
Author:     Tiziano Mueller <dev-zero <AT> gentoo <DOT> org>
AuthorDate: Tue Jul 19 09:39:40 2011 +0000
Commit:     Tiziano Müller <dev-zero <AT> gentoo <DOT> org>
CommitDate: Tue Jul 19 09:39:40 2011 +0000
URL:        http://git.overlays.gentoo.org/gitweb/?p=dev/dev-zero.git;a=commit;h=55e7f0c3

initial

---
 www-servers/jetty-hightide-bin/Manifest            |    4 ++
 .../jetty-hightide-bin/files/jetty-hightide.confd  |    4 ++
 .../jetty-hightide-bin/files/jetty-hightide.initd  |   23 ++++++++
 .../jetty-hightide-bin-7.4.4_p20110707.ebuild      |   57 ++++++++++++++++++++
 4 files changed, 88 insertions(+), 0 deletions(-)

diff --git a/www-servers/jetty-hightide-bin/Manifest b/www-servers/jetty-hightide-bin/Manifest
new file mode 100644
index 0000000..0645907
--- /dev/null
+++ b/www-servers/jetty-hightide-bin/Manifest
@@ -0,0 +1,4 @@
+AUX jetty-hightide.confd 103 RMD160 8b4b8378512c4bdb845e4f13e88b6c8287f857c0 SHA1 f38b24b208f0c7c16c0fe2623bfaceda48828093 SHA256 4fdaacfdf448b70c2f0b4d702e39f7d4832dbdab2b491c4c58c37c6d4168adaa
+AUX jetty-hightide.initd 527 RMD160 30b6a967bb6001fa2f72ca0e2f69f399ea34edfb SHA1 3fb1dfb9d5a6e87f905527f065af156fbb0dca54 SHA256 0ce9469af1e2df57520a23d318d3b73c66530a9913536084efa660dcc5ecc4c1
+EBUILD jetty-hightide-bin-7.4.4_p20110707.ebuild 1186 RMD160 d8091642b06f5cb98d5a63cb62a1754a768208a3 SHA1 3076c2cda07c7b87db9adf559211e842a4228a7d SHA256 766c08ddb3f45aab888af7382d52994590b1f0a76312b602f81933c0c654407a
+DIST jetty-hightide-7.4.4.v20110707.zip 22022063 RMD160 439c1397005dd6f8c4aedda9014e4d717f79140b SHA1 23d25d71bb617ad73a06bafcd61214313da29751 SHA256 dd36ae87957a17b4e4c1b65a1e61aaecef68bf200023e5906f7f8ec696e6f92c

diff --git a/www-servers/jetty-hightide-bin/files/jetty-hightide.confd b/www-servers/jetty-hightide-bin/files/jetty-hightide.confd
new file mode 100644
index 0000000..5d9ade9
--- /dev/null
+++ b/www-servers/jetty-hightide-bin/files/jetty-hightide.confd
@@ -0,0 +1,4 @@
+#Configuration options for jetty server
+
+# the following options are passed to start.jar
+JETTY_CONF=""

diff --git a/www-servers/jetty-hightide-bin/files/jetty-hightide.initd b/www-servers/jetty-hightide-bin/files/jetty-hightide.initd
new file mode 100644
index 0000000..11bed3e
--- /dev/null
+++ b/www-servers/jetty-hightide-bin/files/jetty-hightide.initd
@@ -0,0 +1,23 @@
+#!/sbin/runscript
+
+depend() {
+  need net
+}
+
+start() {
+    ebegin "Starting ${SVCNAME}"
+
+    JETTY_HOME="/opt/${SVCNAME}"
+
+    start-stop-daemon --start --background --make-pidfile --user jetty:jetty \
+	  --pidfile /var/run/${SVCNAME}.pid --chdir "${JETTY_HOME}" \
+	  --exec java -- ${JETTY_OPTS} -jar ${JETTY_HOME}/start.jar \
+	  	--ini="/etc/${SVCNAME}/start.ini" --daemon ${JETTY_CONF}
+    eend $?
+}
+
+stop() {
+   ebegin "Stopping ${SVCNAME}"
+   start-stop-daemon --stop --quiet --pidfile /var/run/${SVCNAME}.pid
+   eend $?
+}

diff --git a/www-servers/jetty-hightide-bin/jetty-hightide-bin-7.4.4_p20110707.ebuild b/www-servers/jetty-hightide-bin/jetty-hightide-bin-7.4.4_p20110707.ebuild
new file mode 100644
index 0000000..5d31851
--- /dev/null
+++ b/www-servers/jetty-hightide-bin/jetty-hightide-bin-7.4.4_p20110707.ebuild
@@ -0,0 +1,57 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI="4"
+
+inherit eutils versionator
+
+MY_PN="jetty-hightide"
+MY_PV="${PV/_p/.v}"
+MY_P="${MY_PN}-${MY_PV}"
+MY_JETTY="${PN}-${SLOT}"
+
+DESCRIPTION="Jetty Web Server; Java Servlet container"
+HOMEPAGE="http://jetty.codehaus.org/"
+KEYWORDS="~amd64"
+LICENSE="Apache-2.0"
+SLOT="7"
+SRC_URI="http://dist.codehaus.org/jetty/${MY_PN}-$(get_version_component_range 1-3)/${MY_P}.zip"
+
+IUSE=""
+
+DEPEND=""
+RDEPEND="${DEPEND}
+	>=virtual/jre-1.6"
+
+S="${WORKDIR}/${MY_P}"
+
+src_install() {
+	insinto "/etc/${MY_JETTY}"
+	doins etc/*
+	doins "start.ini"
+
+	newconfd "${FILESDIR}/${MY_PN}.confd" "${MY_JETTY}"
+	newinitd "${FILESDIR}/${MY_PN}.initd" "${MY_JETTY}"
+
+	JETTY_HOME="/opt/${MY_JETTY}"
+
+	keepdir "/var/log/${MY_JETTY}"
+
+	insinto "${JETTY_HOME}"
+	doins -r lib start.jar
+
+	dodir "${JETTY_HOME}/webapps"
+	dodir "${JETTY_HOME}/contexts"
+	dodir "${JETTY_HOME}/resources"
+
+	dosym "/var/log/${MY_JETTY}" "${JETTY_HOME}/logs"
+	dosym "/etc/${MY_JETTY}" "${JETTY_HOME}/etc"
+}
+
+pkg_preinst () {
+	enewuser jetty
+	fowners jetty:jetty "/var/log/${MY_JETTY}"
+	fperms g+w "/var/log/${MY_JETTY}"
+}
+



^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2011-07-19  9:41 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-07-19  9:41 [gentoo-commits] dev/dev-zero:master commit in: www-servers/jetty-hightide-bin/, www-servers/jetty-hightide-bin/files/ Tiziano Müller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox