aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Sulfrian <alexander@sulfrian.net>2011-09-08 21:32:20 +0200
committerAlexander Sulfrian <alexander@sulfrian.net>2011-09-08 21:32:20 +0200
commit7d0b31af62ca1e4c10554f6906424f62b70c50fb (patch)
tree99bc1166c32ce25d5aa66fcb9bbf2bbfd0a35d37
parent8cb793c2ff10463f518ab850b5de6f4bf6208bfb (diff)
downloadoverlay-7d0b31af62ca1e4c10554f6906424f62b70c50fb.tar.gz
overlay-7d0b31af62ca1e4c10554f6906424f62b70c50fb.tar.xz
overlay-7d0b31af62ca1e4c10554f6906424f62b70c50fb.zip
net-irc/qwebirc: added ebuild
-rw-r--r--net-irc/qwebirc/Manifest2
-rw-r--r--net-irc/qwebirc/files/init-script27
-rw-r--r--net-irc/qwebirc/qwebirc-9999.ebuild56
3 files changed, 85 insertions, 0 deletions
diff --git a/net-irc/qwebirc/Manifest b/net-irc/qwebirc/Manifest
new file mode 100644
index 0000000..0c687a0
--- /dev/null
+++ b/net-irc/qwebirc/Manifest
@@ -0,0 +1,2 @@
+AUX init-script 653 RMD160 679dafc2192b3f17e8ce9b47c9f1e70f142f4cf8 SHA1 1edeb61a8998d015c36a4d7259c2161b081d3909 SHA256 5dd46bca8edf76b7f01490347aa7166fc2977fb513c2bed50886021bad31736a
+EBUILD qwebirc-9999.ebuild 1374 RMD160 f436b392e35e2106cf2de646ee661ddf900eaece SHA1 f999765aba12114b0bd2ea5cede66445b5007bc4 SHA256 e9f2e0f7e4ca0ed994324207955fe9e7854b66e6f9847b953cf893cc1a6fa6d7
diff --git a/net-irc/qwebirc/files/init-script b/net-irc/qwebirc/files/init-script
new file mode 100644
index 0000000..2b35b6a
--- /dev/null
+++ b/net-irc/qwebirc/files/init-script
@@ -0,0 +1,27 @@
+#!/sbin/runscript
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: qwebirc.initd,v 1.0 2011/03/11 12:11:50 lkraav Exp $
+
+SVCHOME="/var/www/qwebirc"
+LOGFILE="/var/log/qwebirc"
+
+depend() {
+ use net
+ need localmount
+ after bootmisc
+}
+
+start() {
+ ebegin "Starting ${SVCNAME}"
+ start-stop-daemon --start --chuid qwebirc:qwebirc --chdir ${SVCHOME} \
+ --quiet --exec ${SVCHOME}/run.py \
+ -- -l ${LOGFILE} -p ${PORT} -P /var/run/qwebirc/${SVCNAME}.pid
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping ${SVCNAME}"
+ start-stop-daemon --stop --quiet --pidfile /var/run/qwebirc/${SVCNAME}.pid
+ eend $?
+}
diff --git a/net-irc/qwebirc/qwebirc-9999.ebuild b/net-irc/qwebirc/qwebirc-9999.ebuild
new file mode 100644
index 0000000..ac98b6c
--- /dev/null
+++ b/net-irc/qwebirc/qwebirc-9999.ebuild
@@ -0,0 +1,56 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EHG_REPO_URI=http://hg.qwebirc.org/qwebirc/
+
+inherit eutils mercurial
+
+EAPI=2
+
+DESCRIPTION="qwebirc is a fast, easy to use, free and open source IRC client designed by and originally just for the QuakeNet IRC network."
+HOMEPAGE="http://www.qwebirc.org"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+RDEPEND=">=dev-lang/python-2.5
+ dev-python/simplejson
+ >=dev-python/twisted-mail-8.2
+ >=dev-python/twisted-names-8.2
+ >=dev-python/twisted-web-8.2
+ >=dev-python/twisted-words-8.2
+ >=virtual/jre-1.6
+"
+DEPEND="${RDEPEND}"
+
+pkg_setup() {
+ enewgroup qwebirc
+ enewuser qwebirc -1 /bin/true /var/lib/qwebirc qwebirc -r -d /var/www/qwebirc
+}
+
+src_compile() {
+ ./compile.py
+}
+
+src_install() {
+ mkdir -p ${D}/var/www
+ # copy the whole repository, including the .hg stuff
+ cp -rp ${S} ${D}/var/www/qwebirc
+ chown -R qwebirc:qwebirc ${D}/var/www/qwebirc
+
+ # create the logfile as qwebirc does not have the permission to create it itself
+ mkdir -p ${D}/var/log
+ touch ${D}/var/log/qwebirc
+ chown qwebirc:qwebirc ${D}/var/log/qwebirc
+ chmod 640 ${D}/var/log/qwebirc
+
+ mkdir -p ${D}/etc/init.d
+ cp ${FILESDIR}/init-script ${D}/etc/init.d/qwebirc
+ chmod 755 ${D}/etc/init.d/qwebirc
+
+ mkdir -p ${D}/etc/conf.d
+ echo "PORT=9090" > ${D}/etc/conf.d/qwebirc
+}