summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKacper Kowalik <xarthisius@gentoo.org>2012-08-27 11:01:40 +0000
committerKacper Kowalik <xarthisius@gentoo.org>2012-08-27 11:01:40 +0000
commit20a0beab0436e04e730c4a80ffdb749403076c4c (patch)
treed56863d8cc1931bad2722250867cc46669ea0c0e /www-apps
parentInitial import, ebuild written by me, dependency required for www-apps/bitten (diff)
downloadgentoo-2-20a0beab0436e04e730c4a80ffdb749403076c4c.tar.gz
gentoo-2-20a0beab0436e04e730c4a80ffdb749403076c4c.tar.bz2
gentoo-2-20a0beab0436e04e730c4a80ffdb749403076c4c.zip
Initial import, ebuild based on work of Nikolaj Sjujskij <sterkrig@myopera.com>. Fixes bug #189378 by Ole Trenner <ogardiner.23444071@bloglines.com>
(Portage version: 2.2.0_alpha123/cvs/Linux x86_64)
Diffstat (limited to 'www-apps')
-rw-r--r--www-apps/bitten/ChangeLog11
-rw-r--r--www-apps/bitten/bitten-0.6.ebuild50
-rw-r--r--www-apps/bitten/files/bitten.confd19
-rw-r--r--www-apps/bitten/files/bitten.initd20
-rw-r--r--www-apps/bitten/metadata.xml12
5 files changed, 112 insertions, 0 deletions
diff --git a/www-apps/bitten/ChangeLog b/www-apps/bitten/ChangeLog
new file mode 100644
index 000000000000..14bb01c35054
--- /dev/null
+++ b/www-apps/bitten/ChangeLog
@@ -0,0 +1,11 @@
+# ChangeLog for www-apps/bitten
+# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/www-apps/bitten/ChangeLog,v 1.1 2012/08/27 11:01:40 xarthisius Exp $
+
+*bitten-0.6 (27 Aug 2012)
+
+ 27 Aug 2012; Kacper Kowalik <xarthisius@gentoo.org> +bitten-0.6.ebuild,
+ +files/bitten.confd, +files/bitten.initd, +metadata.xml:
+ Initial import, ebuild based on work of Nikolaj Sjujskij
+ <sterkrig@myopera.com>. Fixes bug #189378 by Ole Trenner
+ <ogardiner.23444071@bloglines.com>
diff --git a/www-apps/bitten/bitten-0.6.ebuild b/www-apps/bitten/bitten-0.6.ebuild
new file mode 100644
index 000000000000..a67db4c6f5b8
--- /dev/null
+++ b/www-apps/bitten/bitten-0.6.ebuild
@@ -0,0 +1,50 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/www-apps/bitten/bitten-0.6.ebuild,v 1.1 2012/08/27 11:01:40 xarthisius Exp $
+
+EAPI=4
+
+MY_PN=Bitten
+MY_P=${MY_PN}-${PV}
+
+PYTHON_DEPEND="2"
+SUPPORT_PYTHON_ABIS="1"
+RESTRICT_PYTHON_ABIS="3.* 2.7-pypy-*"
+DISTUTILS_SRC_TEST="setup.py"
+
+inherit distutils user
+
+DESCRIPTION="Continuous integration plugin for Trac"
+HOMEPAGE="http://bitten.edgewall.org/"
+SRC_URI="http://ftp.edgewall.com/pub/${PN}/${MY_P}.tar.gz"
+
+LICENSE="BSD Apache-2.0"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="server test"
+
+CDEPEND="dev-python/setuptools"
+DEPEND="${CDEPEND}
+ test? ( dev-python/figleaf )"
+RDEPEND="${CDEPEND}
+ server? ( www-apps/trac )"
+
+S=${WORKDIR}/${MY_P}
+
+pkg_setup() {
+ python_pkg_setup
+ DISTUTILS_GLOBAL_OPTIONS=("2.* $(use_with server master)")
+ enewgroup tracd
+ enewuser ${PN} -1 -1 -1 tracd
+}
+
+src_install() {
+ distutils_src_install
+ newinitd "${FILESDIR}"/${PN}.initd ${PN}
+ newconfd "${FILESDIR}"/${PN}.confd ${PN}
+}
+
+pkg_postinst() {
+ touch "${ROOT}"/var/log/${PN}.log
+ chown -f ${PN}:tracd "${ROOT}"/var/log/${PN}.log
+}
diff --git a/www-apps/bitten/files/bitten.confd b/www-apps/bitten/files/bitten.confd
new file mode 100644
index 000000000000..49af46916070
--- /dev/null
+++ b/www-apps/bitten/files/bitten.confd
@@ -0,0 +1,19 @@
+# The commented variables in this file are the defaults that are used
+# in the init-script. You don't need to uncomment them except to
+# customize them to different values.
+
+# Server running bitten
+#BITTEN_SERVER="http://localhost/trac/builds"
+
+# Temporary dir wher builds take place
+#BITTEN_TMPDIR="/var/tmp/bitten"
+
+# Log file
+#BITTEN_LOG="/var/log/bitten.log"
+
+# Additional options for bitten
+#BITTEN_OPTS=""
+
+# User and group as which to run bitten
+#BITTEN_USER="bitten"
+#BITTEN_GROUP="tracd"
diff --git a/www-apps/bitten/files/bitten.initd b/www-apps/bitten/files/bitten.initd
new file mode 100644
index 000000000000..4691480d0c2e
--- /dev/null
+++ b/www-apps/bitten/files/bitten.initd
@@ -0,0 +1,20 @@
+#!/sbin/runscript
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License, v2 or later
+# $Header: /var/cvsroot/gentoo-x86/www-apps/bitten/files/bitten.initd,v 1.1 2012/08/27 11:01:40 xarthisius Exp $
+
+start() {
+ ebegin "Starting Bitten slave"
+ start-stop-daemon --start --user ${BITTEN_USER:-bitten} --group ${BITTEN_GROUP:-tracd} \
+ --pidfile /var/run/bitten.pid --make-pidfile --background \
+ --exec /usr/bin/bitten-slave -- \
+ ${BITTEN_SERVER} -d ${BITTEN_TMPDIR:-/var/tmp/bitten} -l ${BITTEN_LOG:-/var/log/bitten.log} \
+ ${BITTEN_OPTS}
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping Bitten slave"
+ start-stop-daemon --stop --quiet --pidfile /var/run/bitten.pid
+ eend $?
+}
diff --git a/www-apps/bitten/metadata.xml b/www-apps/bitten/metadata.xml
new file mode 100644
index 000000000000..808d9a1d247e
--- /dev/null
+++ b/www-apps/bitten/metadata.xml
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>python</herd>
+ <maintainer>
+ <email>xarthisius@gentoo.org</email>
+ <name>Kacper Kowalik</name>
+ </maintainer>
+ <use>
+ <flag name='server'>Install master instance that integrates itself with Trac</flag>
+ </use>
+</pkgmetadata>