summaryrefslogtreecommitdiff
path: root/community/hula
diff options
context:
space:
mode:
Diffstat (limited to 'community/hula')
-rw-r--r--community/hula/PKGBUILD40
-rw-r--r--community/hula/build-fix.patch52
-rw-r--r--community/hula/hula-script39
-rw-r--r--community/hula/hula.install24
-rw-r--r--community/hula/hula.sh3
5 files changed, 158 insertions, 0 deletions
diff --git a/community/hula/PKGBUILD b/community/hula/PKGBUILD
new file mode 100644
index 000000000..3b2d1ea6c
--- /dev/null
+++ b/community/hula/PKGBUILD
@@ -0,0 +1,40 @@
+# $Id: PKGBUILD 14533 2010-04-04 21:12:01Z spupykin $
+# Maintainer: William Rea <sillywilly@gmail.com>
+# Contributor: Benjamin Andresen <benny@klapmuetz.org>
+# Contributor: eliott <eliott@cactuswax.net>
+
+pkgname=hula
+pkgver=r2661
+pkgrel=3
+pkgdesc="A calendar and mail server"
+arch=('i686' 'x86_64')
+url="http://developer.novell.com/wiki/index.php/Hula"
+options=('!libtool')
+depends=('popt' 'libldap' 'mono' 'perl')
+install=$pkgname.install
+license=('GPL')
+source=(http://archlinux-stuff.googlecode.com/files/hula-$pkgver.tar.gz \
+ hula-script \
+ build-fix.patch)
+md5sums=('4a50509873ea6bfdeb8daf7540d15d85'
+ '6cad58336400ee5d157a1ee4ae150bfd'
+ '004c478d9ea9b781b84f67c68f7d89d2')
+
+build() {
+ export MONO_SHARED_DIR=$startdir/src/.wabi
+ mkdir -p $MONO_SHARED_DIR
+
+ cd $startdir/src/$pkgname
+
+ sed -i '/CONNECTION_TIMEOUT/s/$/ \n#define VERBOSE_SPAMASSASSIN/' src/agents/antispam/antispam.h
+ patch -p1 <$srcdir/build-fix.patch
+
+ unset LDFLAGS
+
+ ./autogen.sh --prefix=/usr
+ make || return 1
+ make DESTDIR=$startdir/pkg install || return 1
+
+ install -D -m755 ../../hula-script $startdir/pkg/etc/rc.d/hula
+ rm -r $MONO_SHARED_DIR
+}
diff --git a/community/hula/build-fix.patch b/community/hula/build-fix.patch
new file mode 100644
index 000000000..850157315
--- /dev/null
+++ b/community/hula/build-fix.patch
@@ -0,0 +1,52 @@
+diff -wbBur hula.org/autogen.sh hula/autogen.sh
+--- hula.org/autogen.sh 2009-02-27 10:55:05.000000000 +0000
++++ hula/autogen.sh 2009-02-27 11:09:41.000000000 +0000
+@@ -7,7 +7,7 @@
+
+ # default version requirements ...
+ REQUIRED_AUTOCONF_VERSION=${REQUIRED_AUTOCONF_VERSION:-2.53}
+-REQUIRED_AUTOMAKE_VERSION=${REQUIRED_AUTOMAKE_VERSION:-1.6}
++REQUIRED_AUTOMAKE_VERSION=${REQUIRED_AUTOMAKE_VERSION:-1.10}
+ REQUIRED_LIBTOOL_VERSION=${REQUIRED_LIBTOOL_VERSION:-1.4.3}
+ REQUIRED_GETTEXT_VERSION=${REQUIRED_GETTEXT_VERSION:-0.10.40}
+ REQUIRED_GLIB_GETTEXT_VERSION=${REQUIRED_GLIB_GETTEXT_VERSION:-2.2.0}
+@@ -276,14 +276,7 @@
+ "http://ftp.gnu.org/pub/gnu/autoconf/autoconf-$REQUIRED_AUTOCONF_VERSION.tar.gz" || DIE=1
+ AUTOHEADER=`echo $AUTOCONF | sed s/autoconf/autoheader/`
+
+-case $REQUIRED_AUTOMAKE_VERSION in
+- 1.4*) automake_progs="automake-1.4" ;;
+- 1.5*) automake_progs="automake-1.5 automake-1.6 automake-1.7 automake-1.8 automake-1.9" ;;
+- 1.6*) automake_progs="automake-1.6 automake-1.7 automake-1.8 automake-1.9 automake19" ;;
+- 1.7*) automake_progs="automake-1.7 automake-1.8 automake-1.9" ;;
+- 1.8*) automake_progs="automake-1.8 automake-1.9" ;;
+- 1.9*) automake_progs="automake-1.9" ;;
+-esac
++automake_progs="automake"
+ version_check automake AUTOMAKE "$automake_progs" $REQUIRED_AUTOMAKE_VERSION \
+ "http://ftp.gnu.org/pub/gnu/automake/automake-$REQUIRED_AUTOMAKE_VERSION.tar.gz" || DIE=1
+ ACLOCAL=`echo $AUTOMAKE | sed s/automake/aclocal/`
+diff -wbBur hula.org/src/libs/hula-sharp/Hula.Dav/AddressbookQueryReport.cs hula/src/libs/hula-sharp/Hula.Dav/AddressbookQueryReport.cs
+--- hula.org/src/libs/hula-sharp/Hula.Dav/AddressbookQueryReport.cs 2009-02-27 10:52:29.000000000 +0000
++++ hula/src/libs/hula-sharp/Hula.Dav/AddressbookQueryReport.cs 2009-02-27 11:21:17.000000000 +0000
+@@ -42,7 +42,7 @@
+ break;
+ case "text-match" :
+ // FIXME: Don't do caseless param filters for now.
+- TermQuery q = new TermQuery (new Term("vcard." + prop + ".param", + name + "=" + child.InnerText));
++ TermQuery q = new TermQuery (new Term("vcard." + prop + ".param", name + "=" + child.InnerText));
+
+ query.Add(q, true, false);
+ break;
+diff -wbBur hula.org/src/libs/hula-sharp/Hula.Dav/CalQueryReport.cs hula/src/libs/hula-sharp/Hula.Dav/CalQueryReport.cs
+--- hula.org/src/libs/hula-sharp/Hula.Dav/CalQueryReport.cs 2009-02-27 10:52:29.000000000 +0000
++++ hula/src/libs/hula-sharp/Hula.Dav/CalQueryReport.cs 2009-02-27 11:21:45.000000000 +0000
+@@ -59,7 +59,7 @@
+ break;
+ case "text-match" :
+ // FIXME: Don't do caseless param filters for now.
+- TermQuery q = new TermQuery (new Term("ical." + prop + ".param", + name + "=" + child.InnerText));
++ TermQuery q = new TermQuery (new Term("ical." + prop + ".param", name + "=" + child.InnerText));
+
+ query.Add(q, true, false);
+ break;
diff --git a/community/hula/hula-script b/community/hula/hula-script
new file mode 100644
index 000000000..ccfd52aba
--- /dev/null
+++ b/community/hula/hula-script
@@ -0,0 +1,39 @@
+#!/bin/bash
+
+. /etc/rc.conf
+. /etc/rc.d/functions
+
+DAEMON_NAME="hulamanager"
+DAEMON_PATH="/usr/sbin/${DAEMON_NAME}"
+
+PID=`pidof -o %PPID ${DAEMON_NAME}`
+case "$1" in
+ start)
+ stat_busy "Starting ${DAEMON_NAME}"
+ [ -z "$PID" ] && ${DAEMON_PATH} -d
+ if [ $? -gt 0 ]; then
+ stat_fail
+ else
+ add_daemon ${DAEMON_NAME}
+ stat_done
+ fi
+ ;;
+ stop)
+ stat_busy "Stopping ${DAEMON_NAME}"
+ [ ! -z "$PID" ] && ${DAEMON_PATH} --stop &>/dev/null
+ if [ $? -gt 0 ]; then
+ stat_fail
+ else
+ rm_daemon ${DAEMON_NAME}
+ stat_done
+ fi
+ ;;
+ restart)
+ $0 stop
+ sleep 3
+ $0 start
+ ;;
+ *)
+ echo "usage: $0 {start|stop|restart}"
+esac
+exit 0
diff --git a/community/hula/hula.install b/community/hula/hula.install
new file mode 100644
index 000000000..eaca1d08e
--- /dev/null
+++ b/community/hula/hula.install
@@ -0,0 +1,24 @@
+post_install() {
+/bin/cat <<THEEND
+cd to /opt/hula/sbin/ and run:
+
+ $ ./hulasetup --domain=your.domain.com --dns=ip.of.dns.server
+
+If you don't specify the --domain argument, then it will default to localhost.localdomain as your domain.
+
+Specifying the IP address of your DNS server is useful; hula doesn't pick it up from /etc/resolv.conf. You need to set it in order to send mail out.
+
+If you already have servers running for services that hula provides, you can change the port hula will use for them with hulamanager too. For example, if you already have apache running on port 80, you can make the hula webserver use port 8080:
+
+ $ ./hulasetup --http=8080
+
+Parameters for other services are --https, --ldap, --webadmin and --webadmins. The smtp port can't be changed.
+
+THEEND
+}
+
+post_remove() {
+ # too many files and dirs created by setup. just rm it all
+ rm -rf /opt/hula
+}
+
diff --git a/community/hula/hula.sh b/community/hula/hula.sh
new file mode 100644
index 000000000..4a6b8825f
--- /dev/null
+++ b/community/hula/hula.sh
@@ -0,0 +1,3 @@
+export HULADIR=/opt/hula
+export PATH=$PATH:$HULADIR/bin
+export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:$HULADIR/lib/pkgconfig