summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Garthe (the_mgt) <themgt@uncensored.citadel.org>2009-10-04 22:23:08 +0000
committerStefan Garthe (the_mgt) <themgt@uncensored.citadel.org>2009-10-04 22:23:08 +0000
commit407c87af0ceb6eeea5c7783fb906ed5a98410a5a (patch)
tree35104650de0d198d76c45a2c61b594480958922f /www-servers
parentmail-mta/citadel: New Ebuild for bug 62119 Thanks for the reviews and help to... (diff)
downloadsunrise-407c87af0ceb6eeea5c7783fb906ed5a98410a5a.tar.gz
sunrise-407c87af0ceb6eeea5c7783fb906ed5a98410a5a.tar.bz2
sunrise-407c87af0ceb6eeea5c7783fb906ed5a98410a5a.zip
www-servers/webcit: New Ebuild for bug 123139. Thanks for the reviews and help to the people of #gentoo-sunrise
svn path=/sunrise/; revision=9331
Diffstat (limited to 'www-servers')
-rw-r--r--www-servers/webcit/ChangeLog10
-rw-r--r--www-servers/webcit/Manifest7
-rw-r--r--www-servers/webcit/files/as-needed.patch30
-rw-r--r--www-servers/webcit/files/webcit.conf.d28
-rw-r--r--www-servers/webcit/files/webcit.init.d29
-rw-r--r--www-servers/webcit/metadata.xml24
-rw-r--r--www-servers/webcit/webcit-7.66.ebuild60
7 files changed, 188 insertions, 0 deletions
diff --git a/www-servers/webcit/ChangeLog b/www-servers/webcit/ChangeLog
new file mode 100644
index 000000000..759749a54
--- /dev/null
+++ b/www-servers/webcit/ChangeLog
@@ -0,0 +1,10 @@
+# ChangeLog for www-servers/webcit
+# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
+# $Header: $
+
+ 04 Oct 2009; the_mgt themgt@mail.ru +webcit-7.66.ebuild,
+ +files/as-needed.patch, +files/webcit.conf.d, +files/webcit.init.d,
+ +metadata.xml:
+ New Ebuild for bug 123139. Thanks for the reviews and help to the people of
+ #gentoo-sunrise
+
diff --git a/www-servers/webcit/Manifest b/www-servers/webcit/Manifest
new file mode 100644
index 000000000..c369ec7cc
--- /dev/null
+++ b/www-servers/webcit/Manifest
@@ -0,0 +1,7 @@
+AUX as-needed.patch 1145 RMD160 ea6c4e24c77f0a3d7ccca4823ec831622bb494d2 SHA1 f799cd1e2199a0b95e488382311afef228a6748e SHA256 b83cef89ba07391e1a2ece789733db7159141424731a3d383b2fac3d11922b7a
+AUX webcit.conf.d 941 RMD160 490ec57f6e6243bc20b31279e879f1122b5fb563 SHA1 636303ff9b3f769894552a431eb3b07a7f60894a SHA256 1868ac4758e678c118987a245049a25d29c5ee5f855aadf7fc018399a5bda576
+AUX webcit.init.d 589 RMD160 4ec78918308426a1bad507cd092ddb2b9eafd8e2 SHA1 1bb5f1c901f74de71f9e930b88493564c9f159d0 SHA256 ea979103b5f53ba52ed3270548d25d59be164c78e1f7611e8e8fedeb1281e53f
+DIST webcit-7.66.tar.gz 1365114 RMD160 631eca1f250a34696b3895e6c692d6da5da12c58 SHA1 80ac71f9ec0264917c603e25657fcce88e13075f SHA256 517683352dd294f759325265ef87a1e06504dd1f4c1ef711cc68cf3e85266617
+EBUILD webcit-7.66.ebuild 1584 RMD160 7e123d0c9d65b52265b6ce5155ca6e79b891ef18 SHA1 1b0a4c66bc77496c63dbc144268e080b226c4485 SHA256 cff80da288f8c904a43a02e832453d8c99aa010d8789de98887b13dc5c7bf5d4
+MISC ChangeLog 362 RMD160 ead27c8469a8f234b7e743eea45008f18b9bce2d SHA1 3500fcfe5a3748e88cef2d7c94bc5d760723840b SHA256 9499ae8cebd9f9fa4cb32be44c0d58ac9af55feace71d1f2f468adb481145931
+MISC metadata.xml 896 RMD160 13c003816eea0e58499b42f710cab7fa07ee6875 SHA1 0f99b8807f6d8b034b90922deb81cdf2fc54f109 SHA256 73183ed9c948b852c3ae1730ebfd9b29cbfb5ff0bc8961e0a35c7eebb0636a09
diff --git a/www-servers/webcit/files/as-needed.patch b/www-servers/webcit/files/as-needed.patch
new file mode 100644
index 000000000..912591076
--- /dev/null
+++ b/www-servers/webcit/files/as-needed.patch
@@ -0,0 +1,30 @@
+--- Makefile.in 2009-09-28 16:09:43.000000000 +0200
++++ Makefile.in.as-needed 2009-10-03 16:42:19.207824900 +0200
+@@ -37,8 +37,8 @@
+ $(srcdir)/TAGS
+
+ setup: setup.o gettext.o
+- $(CC) $(LDFLAGS) $(LIBOBJS) $(LIBS) $(SETUP_LIBS) \
+- gettext.o setup.o -o setup
++ $(CC) $(LDFLAGS) $(LIBOBJS) gettext.o setup.o -o setup \
++ $(LIBS) $(SETUP_LIBS)
+
+ webcit: webserver.o context_loop.o ical_dezonify.o \
+ cookie_conversion.o locate_host.o floors.o summary.o \
+@@ -55,7 +55,7 @@
+ decode.o modules_init.o paramhandling.o utils.o \
+ ical_maps.o ical_subst.o static.o \
+ $(LIBOBJS)
+- $(CC) $(LDFLAGS) $(LIBOBJS) $(LIBS) \
++ $(CC) $(LDFLAGS) $(LIBOBJS) -o webcit \
+ webserver.o context_loop.o cookie_conversion.o marchlist.o \
+ webcit.o auth.o tcp_sockets.o mainmenu.o serv_func.o who.o listsub.o \
+ roomops.o roomlist.o messages.o msg_renderers.o userlist.o paging.o sysmsgs.o \
+@@ -68,7 +68,6 @@
+ groupdav_put.o http_datestring.o setup_wizard.o fmt_date.o modules_init.o \
+ gettext.o downloads.o addressbook_popup.o pushemail.o sysdep.o decode.o \
+ paramhandling.o utils.o ical_maps.o ical_subst.o static.o \
+- -o webcit \
+ $(LIBS)
+
+ .c.o:
diff --git a/www-servers/webcit/files/webcit.conf.d b/www-servers/webcit/files/webcit.conf.d
new file mode 100644
index 000000000..30d79ecc0
--- /dev/null
+++ b/www-servers/webcit/files/webcit.conf.d
@@ -0,0 +1,28 @@
+# Config file for /etc/init.d/webcit
+#See /usr/share/docs/webcit/readme for details.
+WEBCIT_OPTS=""
+
+##[-i ip_addr] The IP address you wish to bind.
+##Leave this out and WebCit will listen on all network interfaces.
+#WEBCIT_OPTS="${WEBCIT_OPTS} -i 127.0.0.1"
+
+##[-p http_port] The TCP port on which to operate.
+##WebCit defaults to port 2000.
+#WEBCIT_OPTS="${WEBCIT_OPTS} -p 2000"
+
+##[-t tracefile] Where you want WebCit to log information.
+WEBCIT_OPTS="${WEBCIT_OPTS} -t /var/log/webcit"
+
+##[-c] Causes WebCit to output an extra cookie containing the
+##identity of the WebCit server.
+#WEBCIT_OPTS="${WEBCIT_OPTS} -c"
+
+##[-s] Causes WebCit to present an HTTPS web service.
+WEBCIT_OPTS="${WEBCIT_OPTS} -s"
+
+##[-f] Tells WebCit to follow "X-Forwarded-For:" HTTP headers
+#WEBCIT_OPTS="${WEBCIT_OPTS} -f"
+
+##[remotehost [remoteport]] IP address and port of your Citadel server.
+##Defaults to localhost 504
+WEBCIT_OPTS="${WEBCIT_OPTS} 127.0.0.1"
diff --git a/www-servers/webcit/files/webcit.init.d b/www-servers/webcit/files/webcit.init.d
new file mode 100644
index 000000000..8d687c38c
--- /dev/null
+++ b/www-servers/webcit/files/webcit.init.d
@@ -0,0 +1,29 @@
+#!/sbin/runscript
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+depend() {
+ need net
+}
+
+svc_start() {
+ ebegin "Starting WebCit"
+ start-stop-daemon --start --quiet --background \
+ --exec /usr/sbin/webcit -- $WEBCIT_OPTS
+ eend $? "Failed to start WebCit"
+}
+
+svc_stop() {
+ ebegin "Stopping WebCit"
+ start-stop-daemon --stop --quiet \
+ --exec /usr/sbin/webcit
+ eend $? "Failed to stop WebCit"
+}
+
+restart() {
+ ebegin "Restarting WebCit"
+ svc_stop && sleep 3 && svc_start
+ eend $? "Failed to restart WebCit"
+}
+
diff --git a/www-servers/webcit/metadata.xml b/www-servers/webcit/metadata.xml
new file mode 100644
index 000000000..69359679b
--- /dev/null
+++ b/www-servers/webcit/metadata.xml
@@ -0,0 +1,24 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>maintainer-wanted</herd>
+ <maintainer>
+ <email>themgt@mail.ru</email>
+ <name>the_mgt</name>
+ <description>You can find me as the_mgt on freenode,
+ usually I am on the channel citadel there</description>
+ </maintainer>
+ <longdescription>WebCit is the modern AJAX-style web interface to the
+ Citadel groupware/email/jabber server. It offers comfortable
+ editing facilities for calender and contacts, BBS style
+ messaging system/forum and a chatroom.
+ </longdescription>
+ <upstream>
+ <maintainer>
+ <email>IGnatiusTFoobar@uncensored.citadel.org</email>
+ <name>IGnatius T Foobar</name>
+ </maintainer>
+ <doc>http://www.citadel.org/doku.php/doku.php?id=documentation:start</doc>
+ <bugs-to>http://bugzilla.citadel.org/</bugs-to>
+ </upstream>
+</pkgmetadata>
diff --git a/www-servers/webcit/webcit-7.66.ebuild b/www-servers/webcit/webcit-7.66.ebuild
new file mode 100644
index 000000000..cb3960184
--- /dev/null
+++ b/www-servers/webcit/webcit-7.66.ebuild
@@ -0,0 +1,60 @@
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI="2"
+inherit eutils
+
+DESCRIPTION="Modern AJAX-style web interface for Citadel"
+HOMEPAGE="http://www.citadel.org/"
+SRC_URI="http://easyinstall.citadel.org/${P}.tar.gz"
+
+LICENSE="GPL-2 MIT LGPL-3 LGPL-2.1"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="ssl"
+
+DEPEND=">=dev-libs/libical-0.43
+ >=dev-libs/libcitadel-${PV}
+ ssl? ( >=dev-libs/openssl-0.9.6 )"
+
+RDEPEND="${DEPEND}"
+
+src_prepare() {
+ epatch "${FILESDIR}/as-needed.patch"
+}
+
+src_configure() {
+ econf \
+ --with-included-gettext \
+ $(use_with ssl) \
+ --with-libical \
+ --without-newt \
+ --prefix=/usr/sbin/ \
+ --with-wwwdir=/usr/share/citadel-webcit \
+ --with-localedir=/usr/share/ \
+ --with-editordir=/usr/share/citadel-webcit/tiny_mce/ \
+ --with-rundir=/var/run/citadel \
+ --with-ssldir=/etc/ssl/webcit/ \
+ --with-datadir=/var/run/citadel
+}
+
+src_install() {
+ emake DESTDIR="${D}" install || die "make install failed"
+ newinitd "${FILESDIR}"/webcit.init.d webcit || die "Installing initscript failed"
+ newconfd "${FILESDIR}"/webcit.conf.d webcit || die "Installing conf for initscript failed"
+
+ ##House cleaning...
+ #We don't use Webcit's setup program
+ #Settings are in /etc/conf.d/webcit
+ rm "${D}"/usr/sbin/setup || "Removing upstreams setup bin failed"
+
+ dodoc *.txt || die "dodoc failed"
+}
+
+pkg_postinst() {
+ einfo "Make sure to configure webcit under /etc/conf.d/webcit."
+ einfo "Then start the server with /etc/init.d/webcit start"
+ einfo
+ einfo "Webcit will listen on port 2000 by default"
+}