New webapp: rscds aka caldav-Server
This commit is contained in:
parent
500dae5595
commit
03f4fc4ac0
16
net-libs/libawl-php/Manifest
Normal file
16
net-libs/libawl-php/Manifest
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
DIST libawl-php-0.22-2.noarch.rpm 197932 RMD160 db76ece5a9f129c73e073f67ac9eafd1fd4cd761 SHA1 0f7248af8e28216cbe59680af7b1fe433b1505e6 SHA256 7484998040fa0036c76acd921c9a1e0ca2e7d47411cf16220feb739bf6636ca9
|
||||||
|
DIST libawl-php-0.25-2.noarch.rpm 200246 RMD160 87dfd1f927c6f7cdcf223155950e5a256e849486 SHA1 de6725ea6ab835ff5c126a67374f3072d248ae77 SHA256 50b3e91ffd46d3036f31cdb0f73236210151d0aca745c1cd485f387d29202bf2
|
||||||
|
EBUILD libawl-php-0.22.ebuild 810 RMD160 11524769b9faa13059dbc47566809d7781d29d9e SHA1 984d74e84c7b5046405e5844758aab0877f109b1 SHA256 95ea28c15af1962acdf0dc2ef4626d089b3ef5da09dcfce5e9d3bd0ccd8bf3e6
|
||||||
|
MD5 f5cc8c70d65e17e948768721e05672ec libawl-php-0.22.ebuild 810
|
||||||
|
RMD160 11524769b9faa13059dbc47566809d7781d29d9e libawl-php-0.22.ebuild 810
|
||||||
|
SHA256 95ea28c15af1962acdf0dc2ef4626d089b3ef5da09dcfce5e9d3bd0ccd8bf3e6 libawl-php-0.22.ebuild 810
|
||||||
|
EBUILD libawl-php-0.25.ebuild 813 RMD160 b63dffabc6c73bea3f514d2ac34894378fa1775c SHA1 f59309d9529914dbea41b42ebabd2091c096452a SHA256 9cfaea09f91af469c207f438b3bfc23ba302c1947b16b976f490d1c9271f7524
|
||||||
|
MD5 b28dade0611d241fbfe658a71afa44b9 libawl-php-0.25.ebuild 813
|
||||||
|
RMD160 b63dffabc6c73bea3f514d2ac34894378fa1775c libawl-php-0.25.ebuild 813
|
||||||
|
SHA256 9cfaea09f91af469c207f438b3bfc23ba302c1947b16b976f490d1c9271f7524 libawl-php-0.25.ebuild 813
|
||||||
|
MD5 f681bf3b776391bf1be8e103776e0253 files/digest-libawl-php-0.22 265
|
||||||
|
RMD160 eb5ba0d2928a969dbca58c4335dac01babe7634b files/digest-libawl-php-0.22 265
|
||||||
|
SHA256 292066af2500fa499d62fe4520a96cd054b08b4466baf8464d8688f20c6c60fc files/digest-libawl-php-0.22 265
|
||||||
|
MD5 b9f5c69bc33fe01fe58658e6a6739849 files/digest-libawl-php-0.25 265
|
||||||
|
RMD160 eac0fe619ebd24da78f6ca6484c77f37a63dfda2 files/digest-libawl-php-0.25 265
|
||||||
|
SHA256 3dc9bc6fe8b3534ba546a8134e9ede8da2b29fc69abff75fd7eb6696690ea51f files/digest-libawl-php-0.25 265
|
3
net-libs/libawl-php/files/digest-libawl-php-0.22
Normal file
3
net-libs/libawl-php/files/digest-libawl-php-0.22
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
MD5 8213dbe115142ff98541f308dd50c6dc libawl-php-0.22-2.noarch.rpm 197932
|
||||||
|
RMD160 db76ece5a9f129c73e073f67ac9eafd1fd4cd761 libawl-php-0.22-2.noarch.rpm 197932
|
||||||
|
SHA256 7484998040fa0036c76acd921c9a1e0ca2e7d47411cf16220feb739bf6636ca9 libawl-php-0.22-2.noarch.rpm 197932
|
3
net-libs/libawl-php/files/digest-libawl-php-0.25
Normal file
3
net-libs/libawl-php/files/digest-libawl-php-0.25
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
MD5 35b1871a61570c1f351b7627aceb7302 libawl-php-0.25-2.noarch.rpm 200246
|
||||||
|
RMD160 87dfd1f927c6f7cdcf223155950e5a256e849486 libawl-php-0.25-2.noarch.rpm 200246
|
||||||
|
SHA256 50b3e91ffd46d3036f31cdb0f73236210151d0aca745c1cd485f387d29202bf2 libawl-php-0.25-2.noarch.rpm 200246
|
33
net-libs/libawl-php/libawl-php-0.22.ebuild
Normal file
33
net-libs/libawl-php/libawl-php-0.22.ebuild
Normal file
@ -0,0 +1,33 @@
|
|||||||
|
# Copyright 1999-2007 Gentoo Foundation
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
# $Header: $
|
||||||
|
|
||||||
|
inherit eutils rpm
|
||||||
|
MY_P="${PN}-0.22-2.noarch"
|
||||||
|
DESCRIPTION="Andrew McMillan's web libraries"
|
||||||
|
HOMEPAGE="http://rscds.sourceforge.net/
|
||||||
|
http://bugs.gentoo.org/show_bug.cgi?id=195118"
|
||||||
|
SRC_URI="http://downloads.sourceforge.net/rscds/${MY_P}.rpm"
|
||||||
|
SLOT=1
|
||||||
|
|
||||||
|
LICENSE="GPL-1"
|
||||||
|
KEYWORDS="-* ~x86 ~amd64"
|
||||||
|
IUSE=""
|
||||||
|
|
||||||
|
DEPEND="app-arch/rpm2targz"
|
||||||
|
RDEPEND="${DEPEND}"
|
||||||
|
|
||||||
|
S="${WORKDIR}"
|
||||||
|
|
||||||
|
src_unpack() {
|
||||||
|
rpm_src_unpack
|
||||||
|
}
|
||||||
|
|
||||||
|
src_install() {
|
||||||
|
cd "${S}/usr/share/doc/${PN}"
|
||||||
|
local docs="README.Debian changelog copyright"
|
||||||
|
dodoc ${docs} || die "dodoc failed"
|
||||||
|
dohtml -r "${S}/usr/share/doc/${PN}/api/" || die "dohtml failed"
|
||||||
|
cp -pPR "${S}/usr/share/awl/" "${D}/usr/share/" || die "failed \
|
||||||
|
to copy awl"
|
||||||
|
}
|
33
net-libs/libawl-php/libawl-php-0.25.ebuild
Normal file
33
net-libs/libawl-php/libawl-php-0.25.ebuild
Normal file
@ -0,0 +1,33 @@
|
|||||||
|
# Copyright 1999-2007 Gentoo Foundation
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
# $Header: $
|
||||||
|
|
||||||
|
inherit eutils rpm
|
||||||
|
MY_P="${PN}""-${PV}-2.noarch"
|
||||||
|
DESCRIPTION="Andrew McMillan's web libraries"
|
||||||
|
HOMEPAGE="http://rscds.sourceforge.net/
|
||||||
|
http://bugs.gentoo.org/show_bug.cgi?id=195118"
|
||||||
|
SRC_URI="http://downloads.sourceforge.net/rscds/${MY_P}.rpm"
|
||||||
|
SLOT=1
|
||||||
|
|
||||||
|
LICENSE="GPL-1"
|
||||||
|
KEYWORDS="-* ~x86 ~amd64"
|
||||||
|
IUSE=""
|
||||||
|
|
||||||
|
DEPEND="app-arch/rpm2targz"
|
||||||
|
RDEPEND="${DEPEND}"
|
||||||
|
|
||||||
|
S="${WORKDIR}"
|
||||||
|
|
||||||
|
src_unpack() {
|
||||||
|
rpm_src_unpack
|
||||||
|
}
|
||||||
|
|
||||||
|
src_install() {
|
||||||
|
cd "${S}/usr/share/doc/${PN}"
|
||||||
|
local docs="README.Debian changelog copyright"
|
||||||
|
dodoc ${docs} || die "dodoc failed"
|
||||||
|
dohtml -r "${S}/usr/share/doc/${PN}/api/" || die "dohtml failed"
|
||||||
|
cp -pPR "${S}/usr/share/awl/" "${D}/usr/share/" || die "failed \
|
||||||
|
to copy awl"
|
||||||
|
}
|
28
www-apps/rscds/Manifest
Normal file
28
www-apps/rscds/Manifest
Normal file
@ -0,0 +1,28 @@
|
|||||||
|
AUX postinstall-en-0.9.2.txt 1012 RMD160 2e501f0e0d6994d94a3fe65e7e9bf73f560fc2d4 SHA1 fe27a4c42e7b45c862dc381e405ddbfad88ce1d1 SHA256 b2555e002e7dd22ac6b543dc0d8f981b6b0ae8e294bb8c8a2f63b00d94a49b27
|
||||||
|
MD5 8b9ea559d32d6d1d34efb8735992bb77 files/postinstall-en-0.9.2.txt 1012
|
||||||
|
RMD160 2e501f0e0d6994d94a3fe65e7e9bf73f560fc2d4 files/postinstall-en-0.9.2.txt 1012
|
||||||
|
SHA256 b2555e002e7dd22ac6b543dc0d8f981b6b0ae8e294bb8c8a2f63b00d94a49b27 files/postinstall-en-0.9.2.txt 1012
|
||||||
|
AUX postinstall-en-0.9.4.txt 1012 RMD160 2e501f0e0d6994d94a3fe65e7e9bf73f560fc2d4 SHA1 fe27a4c42e7b45c862dc381e405ddbfad88ce1d1 SHA256 b2555e002e7dd22ac6b543dc0d8f981b6b0ae8e294bb8c8a2f63b00d94a49b27
|
||||||
|
MD5 8b9ea559d32d6d1d34efb8735992bb77 files/postinstall-en-0.9.4.txt 1012
|
||||||
|
RMD160 2e501f0e0d6994d94a3fe65e7e9bf73f560fc2d4 files/postinstall-en-0.9.4.txt 1012
|
||||||
|
SHA256 b2555e002e7dd22ac6b543dc0d8f981b6b0ae8e294bb8c8a2f63b00d94a49b27 files/postinstall-en-0.9.4.txt 1012
|
||||||
|
AUX rscds.conf 12223 RMD160 d3f1aa3dd10cb2a90aed8e74683db95ec37ad7a5 SHA1 d008638caede94522896f56abae7bb12124cca92 SHA256 71eec4ff45eef6ee472abff969f71c970821782a6942187906e7693bf9cdc2c5
|
||||||
|
MD5 5cbe510c8b6a0b06e50ffdcf88d5d318 files/rscds.conf 12223
|
||||||
|
RMD160 d3f1aa3dd10cb2a90aed8e74683db95ec37ad7a5 files/rscds.conf 12223
|
||||||
|
SHA256 71eec4ff45eef6ee472abff969f71c970821782a6942187906e7693bf9cdc2c5 files/rscds.conf 12223
|
||||||
|
DIST rscds-0.9.2-2.noarch.rpm 667825 RMD160 08fbdd4b53fc64de0df3ed099ede87a751d6d084 SHA1 67c6aa4bb3fb70c10c0b02dd50cfd9702fe70c92 SHA256 01dc8b9ac2a4db6998d530be27cf0271dde43465604bdb751a47706519a27033
|
||||||
|
DIST rscds-0.9.4-2.noarch.rpm 680420 RMD160 12da700f6a52433c42030b978ea15170371e1cd4 SHA1 c84cd67a6061f966e803cd79164581a298305f2c SHA256 1242442c46de6ddeb4cabd4108633c25898805efa172afefa4488ae5375acc90
|
||||||
|
EBUILD rscds-0.9.2.ebuild 1817 RMD160 dbecad4a2ab882e97289d502c7cd28cbc1505b8d SHA1 a9fa2fad7ec2f2fa9b6c7bd7fa2a11975344f576 SHA256 40b94dc4c0c26b8c25549a53b1ced8b0c11424975dead1579a5eed3ee9f185f6
|
||||||
|
MD5 3eb2e2f9c405bc299e2a6983cc607706 rscds-0.9.2.ebuild 1817
|
||||||
|
RMD160 dbecad4a2ab882e97289d502c7cd28cbc1505b8d rscds-0.9.2.ebuild 1817
|
||||||
|
SHA256 40b94dc4c0c26b8c25549a53b1ced8b0c11424975dead1579a5eed3ee9f185f6 rscds-0.9.2.ebuild 1817
|
||||||
|
EBUILD rscds-0.9.4.ebuild 1817 RMD160 dbecad4a2ab882e97289d502c7cd28cbc1505b8d SHA1 a9fa2fad7ec2f2fa9b6c7bd7fa2a11975344f576 SHA256 40b94dc4c0c26b8c25549a53b1ced8b0c11424975dead1579a5eed3ee9f185f6
|
||||||
|
MD5 3eb2e2f9c405bc299e2a6983cc607706 rscds-0.9.4.ebuild 1817
|
||||||
|
RMD160 dbecad4a2ab882e97289d502c7cd28cbc1505b8d rscds-0.9.4.ebuild 1817
|
||||||
|
SHA256 40b94dc4c0c26b8c25549a53b1ced8b0c11424975dead1579a5eed3ee9f185f6 rscds-0.9.4.ebuild 1817
|
||||||
|
MD5 04b4960eaead420a3d6dea7d6129567d files/digest-rscds-0.9.2 253
|
||||||
|
RMD160 e6875c723c4febac3ff26a0d6aabbaf9b28bba1d files/digest-rscds-0.9.2 253
|
||||||
|
SHA256 1b3220af2ec16e4430655d3b0499211f73ff0904fbc1d174cff87f90ec9712ab files/digest-rscds-0.9.2 253
|
||||||
|
MD5 2ed20c69ac5f200a5c80e774d9acee07 files/digest-rscds-0.9.4 253
|
||||||
|
RMD160 095cdf1e118fefa2b53e7e85bd1d3373dd401d03 files/digest-rscds-0.9.4 253
|
||||||
|
SHA256 906c4b491b7a17ef05da9e7135ad9a31b59531b581e358f0ea7ccccec60d1042 files/digest-rscds-0.9.4 253
|
3
www-apps/rscds/files/digest-rscds-0.9.2
Normal file
3
www-apps/rscds/files/digest-rscds-0.9.2
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
MD5 af6113b692956cd73dc546e9e6ff03f0 rscds-0.9.2-2.noarch.rpm 667825
|
||||||
|
RMD160 08fbdd4b53fc64de0df3ed099ede87a751d6d084 rscds-0.9.2-2.noarch.rpm 667825
|
||||||
|
SHA256 01dc8b9ac2a4db6998d530be27cf0271dde43465604bdb751a47706519a27033 rscds-0.9.2-2.noarch.rpm 667825
|
3
www-apps/rscds/files/digest-rscds-0.9.4
Normal file
3
www-apps/rscds/files/digest-rscds-0.9.4
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
MD5 129a4b3a4bbd2cb410808d9c17c44877 rscds-0.9.4-2.noarch.rpm 680420
|
||||||
|
RMD160 12da700f6a52433c42030b978ea15170371e1cd4 rscds-0.9.4-2.noarch.rpm 680420
|
||||||
|
SHA256 1242442c46de6ddeb4cabd4108633c25898805efa172afefa4488ae5375acc90 rscds-0.9.4-2.noarch.rpm 680420
|
27
www-apps/rscds/files/postinstall-en-0.9.2.txt
Normal file
27
www-apps/rscds/files/postinstall-en-0.9.2.txt
Normal file
@ -0,0 +1,27 @@
|
|||||||
|
1. You must setup a configuration file in the follow location:
|
||||||
|
/etc/rscds/<servername>-conf.php
|
||||||
|
|
||||||
|
2. Apache must be configured, here is a template:
|
||||||
|
<VirtualHost *:80>
|
||||||
|
DocumentRoot /var/www/<vhost>/htdocs/rscds/htdocs
|
||||||
|
DirectoryIndex index.php index.html
|
||||||
|
ServerName calendar.example.com
|
||||||
|
ServerAlias calendar.example.com
|
||||||
|
Alias /images/ /var/www/<vhost>/htdocs/images/
|
||||||
|
php_value include_path /usr/share/awl/inc
|
||||||
|
php_value magic_quotes_gpc 0
|
||||||
|
php_value register_globals 0
|
||||||
|
<Directory "/var/www/<vhost>/htdocs/rscds/htdocs">
|
||||||
|
Order deny,allow
|
||||||
|
Allow from all
|
||||||
|
</Directory>
|
||||||
|
</VirtualHost>
|
||||||
|
|
||||||
|
3. You must setup a database in PostGreSQL. Follow these instructions:
|
||||||
|
su postgres -c createuser --no-createdb general
|
||||||
|
su postgres -c \
|
||||||
|
/usr/share/webapps/rscds/<version>/sqlscripts/create-database.sh
|
||||||
|
|
||||||
|
|
||||||
|
The full installation documentation can be found here:
|
||||||
|
http://rscds.sourceforge.net/installation.php
|
27
www-apps/rscds/files/postinstall-en-0.9.4.txt
Normal file
27
www-apps/rscds/files/postinstall-en-0.9.4.txt
Normal file
@ -0,0 +1,27 @@
|
|||||||
|
1. You must setup a configuration file in the follow location:
|
||||||
|
/etc/rscds/<servername>-conf.php
|
||||||
|
|
||||||
|
2. Apache must be configured, here is a template:
|
||||||
|
<VirtualHost *:80>
|
||||||
|
DocumentRoot /var/www/<vhost>/htdocs/rscds/htdocs
|
||||||
|
DirectoryIndex index.php index.html
|
||||||
|
ServerName calendar.example.com
|
||||||
|
ServerAlias calendar.example.com
|
||||||
|
Alias /images/ /var/www/<vhost>/htdocs/images/
|
||||||
|
php_value include_path /usr/share/awl/inc
|
||||||
|
php_value magic_quotes_gpc 0
|
||||||
|
php_value register_globals 0
|
||||||
|
<Directory "/var/www/<vhost>/htdocs/rscds/htdocs">
|
||||||
|
Order deny,allow
|
||||||
|
Allow from all
|
||||||
|
</Directory>
|
||||||
|
</VirtualHost>
|
||||||
|
|
||||||
|
3. You must setup a database in PostGreSQL. Follow these instructions:
|
||||||
|
su postgres -c createuser --no-createdb general
|
||||||
|
su postgres -c \
|
||||||
|
/usr/share/webapps/rscds/<version>/sqlscripts/create-database.sh
|
||||||
|
|
||||||
|
|
||||||
|
The full installation documentation can be found here:
|
||||||
|
http://rscds.sourceforge.net/installation.php
|
317
www-apps/rscds/files/rscds.conf
Normal file
317
www-apps/rscds/files/rscds.conf
Normal file
@ -0,0 +1,317 @@
|
|||||||
|
<?php
|
||||||
|
/***************************************************************************
|
||||||
|
* *
|
||||||
|
* These apply everywhere and will need setting *
|
||||||
|
* *
|
||||||
|
***************************************************************************/
|
||||||
|
|
||||||
|
/****************************
|
||||||
|
********* Mandatory *********
|
||||||
|
*****************************/
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Ex : $c->pg_connect[] = 'dbname=rscds port=5432 user=general'
|
||||||
|
* The application will attempt to
|
||||||
|
* connect to the database, successively applying connection parameters from
|
||||||
|
* the array in $c->pg_connect.
|
||||||
|
* used in the web interface but also the caldav Server
|
||||||
|
*/
|
||||||
|
$c->pg_connect[] = "dbname=rscds user=general";
|
||||||
|
// $c->pg_connect[] = "dbname=rscds user=general port=5433 host=somehost password=mypass";
|
||||||
|
|
||||||
|
|
||||||
|
/****************************
|
||||||
|
********* Desirable *********
|
||||||
|
*****************************/
|
||||||
|
|
||||||
|
/**
|
||||||
|
* default : Really Simple CalDAV Store
|
||||||
|
* Is used to specify the authentication realm of the server, as well as
|
||||||
|
* being used as a name to display in various places.
|
||||||
|
*/
|
||||||
|
$c->system_name = "Really Simple CalDAV Store";
|
||||||
|
|
||||||
|
/**
|
||||||
|
* default is false
|
||||||
|
* If true, then events requested from someone other than the admmin or owner
|
||||||
|
* of a calendar will not get any alarm for it. Some client software also
|
||||||
|
* allows you to configure calendar by calendar which ones allow alarms.
|
||||||
|
*/
|
||||||
|
$c->hide_alarm = true;
|
||||||
|
|
||||||
|
/**
|
||||||
|
*default is false
|
||||||
|
*If true, then TODO requested from someone other than the admmin or owner
|
||||||
|
* of a calendar will not get any answer
|
||||||
|
*/
|
||||||
|
$c->hide_TODO = true;
|
||||||
|
|
||||||
|
/***************************************************************************
|
||||||
|
* *
|
||||||
|
* ADMIN web Interface *
|
||||||
|
* *
|
||||||
|
***************************************************************************/
|
||||||
|
/**
|
||||||
|
* Displayed on the login page to indicate who you should ask if you have
|
||||||
|
* problems logging on. Also for the "From" of the email sent when a user
|
||||||
|
* has lost his password and click on the login page
|
||||||
|
* on "Help! I've forgotten my password"
|
||||||
|
*/
|
||||||
|
$c->admin_email ='calendar-admin@example.com';
|
||||||
|
|
||||||
|
/**
|
||||||
|
* default=true
|
||||||
|
* if true the admin web interface will
|
||||||
|
* have link on name to access details
|
||||||
|
* <p>The "enable_row_linking" option controls whether javascript is used
|
||||||
|
* to make the entire row clickable in browse lists in the administration
|
||||||
|
* pages. Since this doesn't work in Konqueror you may want to set this
|
||||||
|
* to false if you expect people to be using Konqueror with the RSCDS
|
||||||
|
* administration pages.</p>
|
||||||
|
*/
|
||||||
|
// $c->enable_row_linking = true;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* These should be an array of style sheets with a path specified relative
|
||||||
|
* to the root directory. Used for overriding display styles in the admin
|
||||||
|
* interface.
|
||||||
|
* e.g. : $c->local_styles = array('/css/my.css');
|
||||||
|
**/
|
||||||
|
// $c->local_styles = array();
|
||||||
|
// $c->print_styles = array();
|
||||||
|
|
||||||
|
|
||||||
|
/***************************************************************************
|
||||||
|
* *
|
||||||
|
* Caldav Server *
|
||||||
|
* *
|
||||||
|
***************************************************************************/
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The "collections_always_exist" value defines whether a MKCALENDAR
|
||||||
|
* command is needed to create a calendar collection before calendar
|
||||||
|
* resources can be stored in it. You will want to leave this to the
|
||||||
|
* default (true) if people will be using Evolution or Sunbird /
|
||||||
|
* Lightning against this because that software does not support the
|
||||||
|
* creation of calendar collections.
|
||||||
|
* Default: true
|
||||||
|
*/
|
||||||
|
// $c->collections_always_exist = true;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The name of a user's "home" calendar. This will be created for each
|
||||||
|
* new user.
|
||||||
|
* Default: 'home'
|
||||||
|
*/
|
||||||
|
// $c->home_calendar_name = 'home';
|
||||||
|
|
||||||
|
/**
|
||||||
|
* An array of groups / permissions which should be automatically added
|
||||||
|
* for each new user created. This is a crude mechanism which we
|
||||||
|
* will hopefully manage to work out some better approach for in the
|
||||||
|
* future. For now, create an array that looks something like:
|
||||||
|
* array( 9 => 'R', 4 => 'A' )
|
||||||
|
* to create a 'read' relationship to user_no 9 and an 'all' relation
|
||||||
|
* with user_no 4.
|
||||||
|
* Default: none
|
||||||
|
*/
|
||||||
|
// $c->default_relationships = array();
|
||||||
|
|
||||||
|
|
||||||
|
/***************************************************************************
|
||||||
|
* *
|
||||||
|
* External Authentication Sources *
|
||||||
|
* *
|
||||||
|
***************************************************************************/
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Allow specifying another way to control access of the user by authenticating
|
||||||
|
* him against other drivers such has LDAP (the default is the PgSQL DB)
|
||||||
|
* $c->authenticate_hook['call'] should be set to the name of the plugin and must
|
||||||
|
* be a valid function that will be call like this:
|
||||||
|
* call_user_func( $c->authenticate_hook['call'], $username, $password )
|
||||||
|
*
|
||||||
|
* The login mecanism is made in 2 places:
|
||||||
|
* - for the web interface in: index.php that calls RSCDSSession.php that extends
|
||||||
|
* Session.php (from AWL libraries)
|
||||||
|
* - for the caldav client in: caldav.php that calls BasicAuthSession.php
|
||||||
|
* Both Session.php and BasicAuthSession.php check against the
|
||||||
|
* authenticate_hook['call'], although for BasicAuthSession.php this will be for
|
||||||
|
* each page. For Session.php this will only occur during login.
|
||||||
|
*
|
||||||
|
* $c->authenticate_hook['config'] should be set up with any configuration data
|
||||||
|
* needed by the authenticate call for the moment used only in awl/inc/AuthPlugins.php
|
||||||
|
* and he used to authenticate the user should be at least 'password,user_no'
|
||||||
|
* awl/inc/AuthPlugins.php is a sample file not used by showing what could be
|
||||||
|
* a hook
|
||||||
|
*/
|
||||||
|
|
||||||
|
/********************************/
|
||||||
|
/******* Other AWL hook *********/
|
||||||
|
/********************************/
|
||||||
|
//require_once('AuthPlugins.php');
|
||||||
|
// $c->authenticate_hook = array(
|
||||||
|
// 'call' => 'auth_other_awl',
|
||||||
|
// 'config' => array(
|
||||||
|
/** A PgSQL database connection string for the database containing user records */
|
||||||
|
// 'connection' => 'dbname=wrms host=otherhose port=5433 user=general',
|
||||||
|
/** Which columns should be fetched from the database */
|
||||||
|
// 'columns' => "user_no, active, email_ok, joined, last_update AS updated, last_used, username, password, fullname, email"
|
||||||
|
// )
|
||||||
|
// );
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/********************************/
|
||||||
|
/*********** LDAP hook **********/
|
||||||
|
/********************************/
|
||||||
|
//$c->authenticate_hook['call'] = 'LDAP_check';
|
||||||
|
//$c->authenticate_hook['config'] = array(
|
||||||
|
// 'host' => 'www.tennaxia.net', //host name of your LDAP Server
|
||||||
|
// 'port' => '389', //port
|
||||||
|
// 'bindDN'=> 'cn=manager,cn=internal,dc=tennaxia,dc=net', //DN to bind to this server enabling to perform request
|
||||||
|
// 'passDN'=> 'xxxxxxxx', //Password of the previous bindDN to bind to this server enabling to perform request
|
||||||
|
// 'baseDNUsers'=> 'dc=tennaxia,dc=net', //where to look at valid user
|
||||||
|
// 'filterUsers' => 'objectClass=kolabInetOrgPerson', //filter that must validate an valid user
|
||||||
|
// 'baseDNGroups' => 'ou=divisions,dc=tennaxia,dc=net', //not used ATM
|
||||||
|
// 'filterGroups' => 'objectClass=groupOfUniqueNames', //not used ATM
|
||||||
|
/** /!\ "username" should be set and "updated" must be set **/
|
||||||
|
// 'mapping_field' => array("username" => "uid",
|
||||||
|
// "updated" => "modifyTimestamp",
|
||||||
|
// "fullname" => "cn" ,
|
||||||
|
// "email" =>"mail",
|
||||||
|
// "active" => ), //used to create the user based on his ldap properties
|
||||||
|
/** used to set default value for all users, will be overcharged by ldap if defined also in mapping_field **/
|
||||||
|
// 'default_value' => array("date_format_type" => "U","locale" => "en_NZ"),
|
||||||
|
/** foreach key set start and length in the string provided by ldap
|
||||||
|
example for openLDAP timestamp : 20070503162215Z **/
|
||||||
|
// 'format_udpated'=> array('Y' => array(0,4),'m' => array(4,2),'d'=> array(6,2),'H' => array(8,2),'M'=>array(10,2),'S' => array(12,2))
|
||||||
|
//
|
||||||
|
// );
|
||||||
|
//
|
||||||
|
//include('drivers_ldap.php');
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The default locale will be "en_NZ";
|
||||||
|
* If you are in a non-English locale, you can set the default_locale
|
||||||
|
* configuration to one of the supported locales.
|
||||||
|
*
|
||||||
|
* Supported Locales (at present, see: "select * from supported_locales ;" for a full list)
|
||||||
|
*
|
||||||
|
* "de_DE", "en_NZ", "es_AR", "fr_FR", "nl_NL", "ru_RU"
|
||||||
|
*
|
||||||
|
* If you want locale support you probably know more about configuring it than me, but
|
||||||
|
* at this stage it should be noted that all translations are UTF-8, and pages are
|
||||||
|
* served as UTF-8, so you will need to ensure that the UTF-8 versions of these locales
|
||||||
|
* are supported on your system.
|
||||||
|
*
|
||||||
|
* People interested in providing new translations are directed to the Wiki:
|
||||||
|
* http://rscds.sourceforge.net/moin/TranslatingRscds
|
||||||
|
**/
|
||||||
|
// $c->default_locale = "en_NZ";
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Default will be $_SERVER['SERVER_NAME'];
|
||||||
|
* This is used to construct URLs which are passed in the answers to the client. You may
|
||||||
|
* want to force this to a specific domain in responses if your system is accessed by
|
||||||
|
* multiple names, otherwise you probably won't need to change it.
|
||||||
|
*/
|
||||||
|
// $c->domain_name;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Used as a fallback for the TZID of an event where one is not supplied as part
|
||||||
|
* of a VEVENT. The local (server) time zone will be used as a default.
|
||||||
|
*/
|
||||||
|
// $c->local_tzid;
|
||||||
|
|
||||||
|
|
||||||
|
/********************************/
|
||||||
|
/********* Other options ********/
|
||||||
|
/********************************/
|
||||||
|
/**
|
||||||
|
* For the curious, there are a number of other references to $c->something
|
||||||
|
* which are (or might appear to be) configuration items. This file contains
|
||||||
|
* some documentation for them, but it is strongly recommended that you should
|
||||||
|
* not touch any of these. Either you will break the application or they will
|
||||||
|
* have no effect because they are simply calculated internally.
|
||||||
|
*/
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set automatically according to $_SERVER['SCRIPT_NAME']
|
||||||
|
* It will be used to set the adress of each tab of the web interface,
|
||||||
|
* to set the relative address of images and so forth. You probably should
|
||||||
|
* not change it unless you know why you want to.
|
||||||
|
*/
|
||||||
|
// $c->base_url
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Automatically set according to $_SERVER['DOCUMENT_ROOT'], but could be overridden
|
||||||
|
* if that gets it wrong for some reason.
|
||||||
|
*/
|
||||||
|
// $c->base_directory = "/not/here";
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Used to set the timeouts applying to the LOCK method.
|
||||||
|
*/
|
||||||
|
// $c->default_lock_timeout;
|
||||||
|
// $c->maximum_lock_timeout;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* default = true;
|
||||||
|
* If set, RSCDS will store each unique time zone used in any calendar to speed
|
||||||
|
* future timezone interpretation.
|
||||||
|
*/
|
||||||
|
// $c->save_time_zone_defs;
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Internal variable used to contain arrays of stylesheets or javascripts
|
||||||
|
* which are needed by the page being displayed.
|
||||||
|
*/
|
||||||
|
// Usually internally assigned, but you may want to set it to something meaningful
|
||||||
|
// if you are writing your own pages within the admin interface.
|
||||||
|
// $c->scripts = array();
|
||||||
|
// $c->stylesheets = array();
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Internal variable to display page's title
|
||||||
|
* in the web interface
|
||||||
|
*/
|
||||||
|
// Usually internally assigned, but you may want to set it to something meaningful
|
||||||
|
// if you are writing your own pages within the admin interface.
|
||||||
|
// $c->page_title;
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Internal array variable to hold error messages to be displayed on top of page
|
||||||
|
* in the web interface
|
||||||
|
*/
|
||||||
|
// Usually internally assigned, but you may want to append meaningful messages
|
||||||
|
// to this array if you are writing your own pages within the admin interface.
|
||||||
|
//$c->messages;
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* These 6 next properties are extracted automatically from the Changelog
|
||||||
|
* used to give informtion for debugging
|
||||||
|
*/
|
||||||
|
// Internally assigned
|
||||||
|
// $c->code_debian,
|
||||||
|
// $c->code_major,
|
||||||
|
// $c->code_minor,
|
||||||
|
// $c->code_patch,
|
||||||
|
// $c->code_pkgver,
|
||||||
|
// $c->code_version,
|
||||||
|
/**
|
||||||
|
* Used internally to know the revision of the database schema and display
|
||||||
|
* in HTTP error anwser in the header
|
||||||
|
*/
|
||||||
|
// Internally assigned
|
||||||
|
// $c->schema_major
|
||||||
|
// $c->schema_minor
|
||||||
|
// $c->schema_patch
|
||||||
|
// $c->schema_version
|
||||||
|
|
||||||
|
?>
|
72
www-apps/rscds/rscds-0.9.2.ebuild
Normal file
72
www-apps/rscds/rscds-0.9.2.ebuild
Normal file
@ -0,0 +1,72 @@
|
|||||||
|
# Copyright 1999-2007 Gentoo Foundation
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
# $Header: $
|
||||||
|
|
||||||
|
inherit eutils rpm webapp depend.php versionator
|
||||||
|
MY_P="rscds-${PV}-2.noarch"
|
||||||
|
DESCRIPTION="A CalDAV and iCal server"
|
||||||
|
HOMEPAGE="http://rscds.sourceforge.net/"
|
||||||
|
SRC_URI="http://downloads.sourceforge.net/rscds/${MY_P}.rpm"
|
||||||
|
|
||||||
|
LICENSE="GPL-1"
|
||||||
|
KEYWORDS="-* ~x86 ~amd64"
|
||||||
|
IUSE="vhosts"
|
||||||
|
|
||||||
|
DEPEND="www-servers/apache
|
||||||
|
dev-lang/php
|
||||||
|
dev-db/postgresql
|
||||||
|
app-admin/pwgen
|
||||||
|
app-arch/rpm2targz
|
||||||
|
net-libs/libawl-php"
|
||||||
|
RDEPEND="${DEPEND}"
|
||||||
|
|
||||||
|
S="${WORKDIR}"
|
||||||
|
|
||||||
|
need_php
|
||||||
|
|
||||||
|
pkg_setup() {
|
||||||
|
webapp_pkg_setup
|
||||||
|
|
||||||
|
if ! PHPCHECKNODIE="yes" require_php_with_use postgres; then
|
||||||
|
eerror
|
||||||
|
eerror "${PHP_PKG} needs to be re-installed with all of the following"
|
||||||
|
eerror "USE flags enabled:"
|
||||||
|
eerror
|
||||||
|
eerror "postgres"
|
||||||
|
eerror
|
||||||
|
die "Re-install ${PHP_PKG}"
|
||||||
|
fi
|
||||||
|
if ! PHPCHECKNODIE="yes" require_php_with_use ldap; then
|
||||||
|
ewarn
|
||||||
|
ewarn "${PHP_PKG} needs to be re-installed with ldap if you want"
|
||||||
|
ewarn "LDAP support"
|
||||||
|
ewarn
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
src_unpack() {
|
||||||
|
rpm_src_unpack
|
||||||
|
}
|
||||||
|
|
||||||
|
src_install() {
|
||||||
|
webapp_src_preinst
|
||||||
|
|
||||||
|
cd "${S}/usr/share/doc/${PN}/"
|
||||||
|
local docs="INSTALL README README.Debian README.regression_tests \
|
||||||
|
TODO changelog copyright"
|
||||||
|
dodoc ${docs} || die "dodoc failed"
|
||||||
|
dohtml -r "${S}/usr/share/doc/${PN}/website/" || die "dohtml failed"
|
||||||
|
dohtml -r "${S}/usr/share/doc/${PN}/api/" || die "dohtml failed"
|
||||||
|
|
||||||
|
cd "${S}/usr/share/${PN}"
|
||||||
|
local dirs="htdocs inc locale"
|
||||||
|
cp -pPR ${dirs} "${D}/${MY_HTDOCSDIR}" || die "failed to copy htdocs"
|
||||||
|
cp -pPR ${S}/usr/share/${PN}/dba/* "${D}/${MY_SQLSCRIPTSDIR}" || \
|
||||||
|
die "failed to copy dba"
|
||||||
|
insinto /etc/rscds/
|
||||||
|
newins "${FILESDIR}/rscds.conf" calendar.example.com-conf.php || \
|
||||||
|
die "failed to copy config"
|
||||||
|
|
||||||
|
webapp_postinst_txt en "${FILESDIR}"/postinstall-en-${PV}.txt
|
||||||
|
webapp_src_install
|
||||||
|
}
|
72
www-apps/rscds/rscds-0.9.4.ebuild
Normal file
72
www-apps/rscds/rscds-0.9.4.ebuild
Normal file
@ -0,0 +1,72 @@
|
|||||||
|
# Copyright 1999-2007 Gentoo Foundation
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
# $Header: $
|
||||||
|
|
||||||
|
inherit eutils rpm webapp depend.php versionator
|
||||||
|
MY_P="rscds-${PV}-2.noarch"
|
||||||
|
DESCRIPTION="A CalDAV and iCal server"
|
||||||
|
HOMEPAGE="http://rscds.sourceforge.net/"
|
||||||
|
SRC_URI="http://downloads.sourceforge.net/rscds/${MY_P}.rpm"
|
||||||
|
|
||||||
|
LICENSE="GPL-1"
|
||||||
|
KEYWORDS="-* ~x86 ~amd64"
|
||||||
|
IUSE="vhosts"
|
||||||
|
|
||||||
|
DEPEND="www-servers/apache
|
||||||
|
dev-lang/php
|
||||||
|
dev-db/postgresql
|
||||||
|
app-admin/pwgen
|
||||||
|
app-arch/rpm2targz
|
||||||
|
net-libs/libawl-php"
|
||||||
|
RDEPEND="${DEPEND}"
|
||||||
|
|
||||||
|
S="${WORKDIR}"
|
||||||
|
|
||||||
|
need_php
|
||||||
|
|
||||||
|
pkg_setup() {
|
||||||
|
webapp_pkg_setup
|
||||||
|
|
||||||
|
if ! PHPCHECKNODIE="yes" require_php_with_use postgres; then
|
||||||
|
eerror
|
||||||
|
eerror "${PHP_PKG} needs to be re-installed with all of the following"
|
||||||
|
eerror "USE flags enabled:"
|
||||||
|
eerror
|
||||||
|
eerror "postgres"
|
||||||
|
eerror
|
||||||
|
die "Re-install ${PHP_PKG}"
|
||||||
|
fi
|
||||||
|
if ! PHPCHECKNODIE="yes" require_php_with_use ldap; then
|
||||||
|
ewarn
|
||||||
|
ewarn "${PHP_PKG} needs to be re-installed with ldap if you want"
|
||||||
|
ewarn "LDAP support"
|
||||||
|
ewarn
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
src_unpack() {
|
||||||
|
rpm_src_unpack
|
||||||
|
}
|
||||||
|
|
||||||
|
src_install() {
|
||||||
|
webapp_src_preinst
|
||||||
|
|
||||||
|
cd "${S}/usr/share/doc/${PN}/"
|
||||||
|
local docs="INSTALL README README.Debian README.regression_tests \
|
||||||
|
TODO changelog copyright"
|
||||||
|
dodoc ${docs} || die "dodoc failed"
|
||||||
|
dohtml -r "${S}/usr/share/doc/${PN}/website/" || die "dohtml failed"
|
||||||
|
dohtml -r "${S}/usr/share/doc/${PN}/api/" || die "dohtml failed"
|
||||||
|
|
||||||
|
cd "${S}/usr/share/${PN}"
|
||||||
|
local dirs="htdocs inc locale"
|
||||||
|
cp -pPR ${dirs} "${D}/${MY_HTDOCSDIR}" || die "failed to copy htdocs"
|
||||||
|
cp -pPR ${S}/usr/share/${PN}/dba/* "${D}/${MY_SQLSCRIPTSDIR}" || \
|
||||||
|
die "failed to copy dba"
|
||||||
|
insinto /etc/rscds/
|
||||||
|
newins "${FILESDIR}/rscds.conf" calendar.example.com-conf.php || \
|
||||||
|
die "failed to copy config"
|
||||||
|
|
||||||
|
webapp_postinst_txt en "${FILESDIR}"/postinstall-en-${PV}.txt
|
||||||
|
webapp_src_install
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user