network/zarafa-webaccess-ajax: Added (Zarafa web access module)

Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
This commit is contained in:
Niels Horn 2010-06-12 15:37:15 -05:00 committed by Robby Workman
parent 9cdde68e96
commit 29c2f4c373
5 changed files with 127 additions and 0 deletions

View file

@ -0,0 +1,24 @@
The webaccess module of Zarafa is a Ajax / PHP based solution to
access your e-mail, agenda, contacts, etcetera via a browser.
This SlackBuild uses the following defaults:
* DOCROOT=/var/www/htdocs
* DOCDIR=webaccess
* PHPUSER=root
* PHPGROUP=apache
With the defaults, Zarafa will be accessible from http://<yourserver>/webaccess/
Change these at build time if preferred:
# DOCROOT=/your/preferred/directory \
PHPUSER=youruser PHPGROUP=yourgroup \
./zarafa-webaccess-ajax.SlackBuild
This requires zarafa.
This needs the following settings in your /etc/httpd/php.ini:
extension = mapi.so
short_open_tag = On
Check /etc/zarafa/config.php after installation if you need any
non-standard configuration.

View file

@ -0,0 +1,13 @@
config() {
NEW="$1"
OLD="$(dirname $NEW)/$(basename $NEW .new)"
# If there's no config file by that name, mv it over:
if [ ! -r $OLD ]; then
mv $NEW $OLD
elif [ "$(cat $OLD | md5sum)" = "$(cat $NEW | md5sum)" ]; then
# toss the redundant copy
rm $NEW
fi
# Otherwise, we leave the .new copy for the admin to consider...
}

View file

@ -0,0 +1,19 @@
# HOW TO EDIT THIS FILE:
# The "handy ruler" below makes it easier to edit a package description. Line
# up the first '|' above the ':' following the base package name, and the '|'
# on the right side marks the last column you can put a character in. You must
# make exactly 11 lines for the formatting to be correct. It's also
# customary to leave one space after the ':'.
|-----handy-ruler------------------------------------------------------|
zarafa-webaccess-ajax: zarafa-webaccess-ajax (web access module for zarafa)
zarafa-webaccess-ajax:
zarafa-webaccess-ajax: The webaccess module of Zarafa is a Ajax / PHP based solution to
zarafa-webaccess-ajax: access your e-mail, agenda, contacts, etc. via a browser.
zarafa-webaccess-ajax:
zarafa-webaceess-ajax: http://www.zarafa.com/
zarafa-webaccess-ajax:
zarafa-webaccess-ajax:
zarafa-webaccess-ajax:
zarafa-webaccess-ajax:
zarafa-webaccess-ajax:

View file

@ -0,0 +1,61 @@
#!/bin/sh
# Slackware build script for zarafa-webaccess-ajax:
# Ajax-based solution for webaccess to zarafa
# Written by Niels Horn <niels.horn@gmail.com>
# revision date 2010/05/28
PRGNAM=zarafa-webaccess-ajax
VERSION=${VERSION:-6.30.14}
ARCH=noarch
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
DOCROOT=${DOCROOT:-/var/www/htdocs}
DOCDIR=${DOCDIR:-webaccess}
PHPUSER=${PHPUSER:-root}
PHPGROUP=${PHPGROUP:-apache}
UNTARDIR=php-webclient-ajax
CONFDIR=etc/zarafa
CWD=$(pwd)
TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
set -e
rm -rf $TMP/$UNTARDIR $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
cd $UNTARDIR
chown -R root:root .
chmod -R u+w,go+r-w,a-s .
# "Install" to $DOCROOT/$DOCDIR
mkdir -p $PKG/$DOCROOT/$DOCDIR/tmp
cp -a * $PKG/$DOCROOT/$DOCDIR/
chown -R $PHPUSER:$PHPGROUP $PKG/$DOCROOT/$DOCDIR
chmod 660 $PKG/$DOCROOT/$DOCDIR/tmp
# Move configuration & create symbolic link
mkdir -p $PKG/$CONFDIR
mv $PKG/$DOCROOT/$DOCDIR/config.php.dist $PKG/$CONFDIR/config.php.new
chown root:$PHPGROUP $PKG/$CONFDIR/config.php.new
chmod 640 $PKG/$CONFDIR/config.php.new
( cd $PKG/$DOCROOT/$DOCDIR ; ln -s /$CONFDIR/config.php )
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
cat $CWD/doinst.sh > $PKG/install/doinst.sh
printf "config $CONFDIR/config.php.new\n" >> $PKG/install/doinst.sh
cd $PKG
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}

View file

@ -0,0 +1,10 @@
PRGNAM="zarafa-webaccess-ajax"
VERSION="6.30.14"
HOMEPAGE="http://www.zarafa.com/"
DOWNLOAD="http://download.zarafa.com/zarafa/drupal/ondemand.php?version=6.30.14&src=zarafa-webaccess-ajax-6.30.14"
MD5SUM="914dc200e5ffdfb8cc1ea797d9149730"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
MAINTAINER="Niels Horn"
EMAIL="niels.horn@gmail.com"
APPROVED="rworkman"