1 # Copyright 1999-2013 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
8 DESCRIPTION="Groupdav compliant AJAX'ed Blog/Forum/Wiki/Webserver for Citadel groupware"
9 HOMEPAGE="http://www.citadel.org/"
10 SRC_URI="http://easyinstall.citadel.org/${P}.tar.gz"
12 LICENSE="GPL-2 MIT LGPL-3 LGPL-2.1"
14 KEYWORDS="~amd64 ~x86"
17 DEPEND=">=dev-libs/libical-0.43
18 >=dev-libs/libcitadel-${PV}
19 ssl? ( dev-libs/openssl )
23 WWWDIR="/usr/share/citadel-webcit"
26 #Homedir needs to be the same as --with-datadir
27 einfo "Adding Citadel User/Group"
29 enewuser webcit -1 -1 ${WWWDIR} webcit
36 --with-datadir=/var/run/citadel \
37 --with-editordir=/usr/share/citadel-webcit/tiny_mce/ \
38 --with-localedir=/usr/share/ \
39 --with-rundir=/var/run/citadel \
40 --with-ssldir=/etc/ssl/webcit/ \
41 --with-wwwdir="${WWWDIR}"
45 emake DESTDIR="${D}" install
46 newinitd "${FILESDIR}"/webcit.init.d webcit
47 newconfd "${FILESDIR}"/webcit.conf.d webcit
50 #We don't use the setup program, settings are in /etc/conf.d/webcit
51 rm "${D}"/usr/sbin/setup || "Removing upstreams setup bin failed"
57 elog "You can now connect more than one Citadel server with different configs:"
58 elog "Make sure to configure webcit under /etc/conf.d/webcit(.yourinstance)."
59 elog "Then start the server with /etc/init.d/webcit(.yourinstance) start"
61 elog "Webcit will listen on port 2000 by default"