From 89dcf7c3925dd2067e6f0cc48062e4ec9a315d92 Mon Sep 17 00:00:00 2001 From: geos_one Date: Sun, 31 Jan 2010 07:10:29 +0000 Subject: [PATCH] add davical git-svn-id: https://svn.disconnected-by-peer.at/svn/linamh/trunk/mds@1906 6952d904-891a-0410-993b-d76249ca496b --- dev-php/awl/ChangeLog | 43 +++ dev-php/awl/Manifest | 4 + dev-php/awl/awl-0.39.ebuild | 45 +++ dev-php/awl/metadata.xml | 5 + www-apps/davical/ChangeLog | 66 +++++ .../davical/files/postinstall-en-0.9.8.txt | 12 + www-apps/davical/files/rscds.conf | 279 ++++++++++++++++++ www-apps/davical/metadata.xml | 5 + 8 files changed, 459 insertions(+) create mode 100644 dev-php/awl/ChangeLog create mode 100644 dev-php/awl/Manifest create mode 100644 dev-php/awl/awl-0.39.ebuild create mode 100644 dev-php/awl/metadata.xml create mode 100644 www-apps/davical/ChangeLog create mode 100644 www-apps/davical/files/postinstall-en-0.9.8.txt create mode 100644 www-apps/davical/files/rscds.conf create mode 100644 www-apps/davical/metadata.xml diff --git a/dev-php/awl/ChangeLog b/dev-php/awl/ChangeLog new file mode 100644 index 0000000..6855bf9 --- /dev/null +++ b/dev-php/awl/ChangeLog @@ -0,0 +1,43 @@ +# ChangeLog for dev-php/awl +# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 +# $Header: $ + + 07 Jan 2010; lebarjack + -awl-0.38.ebuild, +awl-0.39.ebuild: + Version bump, now depends on php with pdo + + 14 Oct 2009; lebarjack + -awl-0.37.ebuild, +awl-0.38.ebuild: + New version for the awl library + + 01 Jul 2009; lebarjack + -awl-0.36.ebuild, +awl-0.37.ebuild: + New version for the awl library + + 22 Apr 2009; Christian Ruppert awl-0.36.ebuild: + Removed unused eutils inherite, added depend.php. + + 22 Apr 2009; lebarjack + -awl-0.34.ebuild, +awl-0.36.ebuild: + Version bump to 0.36 + + 16 Mar 2009; Nick Fortino (nfortino) awl-0.34.ebuild: + Update ebuild to use EAPI 2. Thanks to Cristian Ruppert and Thomas Sachau + for review + + 24 Nov 2008; lebarjack + -awl-0.33.ebuild, +awl-0.34.ebuild: + New version for awl + + 05 Nov 2008; lebarjack + -libawl-php-0.31.ebuild, +awl-0.33.ebuild: + New version. Renamed to dev-php/awl to reflect upstream naming scheme + + 16 Sep 2008; lebarjack + -libawl-php-0.29.ebuild, +libawl-php-0.31.ebuild: + New version for awl (libawl-php) + + 23 Jun 2008; lebarjack + +libawl-php-0.29.ebuild, +metadata.xml: + New ebuild for bug 229025 - (initial work by Cory Coager ) + diff --git a/dev-php/awl/Manifest b/dev-php/awl/Manifest new file mode 100644 index 0000000..b95c096 --- /dev/null +++ b/dev-php/awl/Manifest @@ -0,0 +1,4 @@ +DIST awl-0.39.tar.gz 222970 RMD160 534ebc5d09752d14c1024c912ab27f901e40ad75 SHA1 52a1b09b9190f29fde5bd3123090dfaf6a0b8ebe SHA256 d4b761ca7f36bf899aebaeeb3b036cebb37bd6ef908f3b6e264c61c84f8f5662 +EBUILD awl-0.39.ebuild 1080 RMD160 c21da7d4f03f69bf8f8af09b7a531ed81b528dab SHA1 326e190931805c714eaa8eebb48e689aaa1f2891 SHA256 0a5c0425ab21c165eabd806a2913e6ac7da4e3c597278569febc781c4eb62300 +MISC ChangeLog 1562 RMD160 7a77683f0a61077fe40eeb8c5edcee6eba568780 SHA1 7e370860da578b2f538fa39f0e410ffbae9f6b81 SHA256 cac8918f1163f7cbad7cf526ddb7e6766fdaa08a61d66aabdf14d7edbcf59329 +MISC metadata.xml 170 RMD160 645927a396fdc21cdeb089fe42c5397332420ea6 SHA1 ac7f48a14fec325926f9ce1be8fbf1f311b4f2e4 SHA256 d797a2ec6f9dc516c9f9c1a758ee87ad3e8c43101b5dc76c2f872d5bd4639b42 diff --git a/dev-php/awl/awl-0.39.ebuild b/dev-php/awl/awl-0.39.ebuild new file mode 100644 index 0000000..d1e7569 --- /dev/null +++ b/dev-php/awl/awl-0.39.ebuild @@ -0,0 +1,45 @@ +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +EAPI="2" + +inherit depend.php php-lib-r1 + +DESCRIPTION="Andrew McMillan's web libraries: A collection of generic classes +used by the davical calendar server" +HOMEPAGE="http://andrew.mcmillan.net.nz/projects/awl" +SRC_URI="http://debian.mcmillan.net.nz/packages/awl/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="doc" + +DEPEND="dev-lang/php[pcre,pdo,postgres,xml] + doc? ( dev-php/PEAR-PhpDocumentor )" +RDEPEND="${DEPEND}" + +need_php5 + +src_compile() { + if use doc ; then + ebegin "Generating documentation" + phpdoc -c "docs/api/phpdoc.ini" || die "phpdoc failed" + eend $? || die "Documentation failed to build" + fi +} + +src_install() { + local docs="debian/README.Debian debian/changelog" + dodoc-php ${docs} || die "dodoc failed" + + if use doc ; then + dohtml -r "docs/api/" || die "dohtml failed" + fi + + insinto /usr/share/awl + doins -r dba || die "doins failed" + + php-lib-r1_src_install ./inc `find ./inc -type f -print | sed -e "s|./inc||g"` +} diff --git a/dev-php/awl/metadata.xml b/dev-php/awl/metadata.xml new file mode 100644 index 0000000..7e32869 --- /dev/null +++ b/dev-php/awl/metadata.xml @@ -0,0 +1,5 @@ + + + +maintainer-wanted + diff --git a/www-apps/davical/ChangeLog b/www-apps/davical/ChangeLog new file mode 100644 index 0000000..adf748d --- /dev/null +++ b/www-apps/davical/ChangeLog @@ -0,0 +1,66 @@ +# ChangeLog for www-apps/davical +# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 +# $Header: $ + + 07 Jan 2010; lebarjack + -davical-0.9.7.6.ebuild, -files/postinstall-en-0.9.7.6.txt, + +davical-0.9.8.ebuild, +files/postinstall-en-0.9.8.txt: + Version bump, now depends on php with pdo + + 28 Oct 2009; lebarjack + -davical-0.9.7.4.ebuild, -files/postinstall-en-0.9.7.4.txt, + +davical-0.9.7.6.ebuild, +files/postinstall-en-0.9.7.6.txt: + version bump + + 12 Oct 2009; lebarjack + -davical-0.9.7.2.ebuild, -files/postinstall-en-0.9.7.2.txt, + +davical-0.9.7.4.ebuild, +files/postinstall-en-0.9.7.4.txt: + New version for davical + + 17 Sep 2009; lebarjack + -davical-0.9.7.1.ebuild, -files/postinstall-en-0.9.7.1.txt, + +davical-0.9.7.2.ebuild, +files/postinstall-en-0.9.7.2.txt: + New version + + 03 Sep 2009; lebarjack + -davical-0.9.7.ebuild, +davical-0.9.7.1.ebuild, + +files/postinstall-en-0.9.7.1.txt, -files/postinstall-en-0.9.7.txt: + Version bump for davical + + 01 Jul 2009; lebarjack + -davical-0.9.6.3.ebuild, -files/postinstall-en-0.9.6.3.txt, + +davical-0.9.7.ebuild, +files/postinstall-en-0.9.7.txt: + New version for davical + + 22 Apr 2009; Christian Ruppert davical-0.9.6.3.ebuild: + Removed unused inherits, added missing die statements. + + 22 Apr 2009; lebarjack + -davical-0.9.6.2.ebuild, -files/postinstall-en-0.9.6.2.txt, + +davical-0.9.6.3.ebuild, +files/postinstall-en-0.9.6.3.txt: + Version bump to 0.9.6.3 + + 16 Mar 2009; Nick Fortino (nfortino) + davical-0.9.6.2.ebuild: + Update ebuild to use EAPI 2. Thanks to Cristian Ruppert and Thomas Sachau + for review + + 24 Nov 2008; lebarjack + -davical-0.9.6.1.ebuild, -files/postinstall-en-0.9.6.1.txt, + +davical-0.9.6.2.ebuild, +files/postinstall-en-0.9.6.2.txt: + New version for davical - Better ical calendar support + + 05 Nov 2008; lebarjack + -davical-0.9.5.2.ebuild, -files/postinstall-en-0.9.5.txt, + +davical-0.9.6.1.ebuild, +files/postinstall-en-0.9.6.1.txt: + New version + + 16 Sep 2008; lebarjack + -davical-0.9.5.ebuild, +davical-0.9.5.2.ebuild, -files/driver_ldap.patch: + New version for davical (Ex-rscds) + + 23 Jun 2008; lebarjack + +davical-0.9.5.ebuild, +files/postinstall-en-0.9.5.txt, + +files/driver_ldap.patch, +files/rscds.conf, +metadata.xml: + New ebuild for bug 195118 - (initial work by Cory Coager ) + diff --git a/www-apps/davical/files/postinstall-en-0.9.8.txt b/www-apps/davical/files/postinstall-en-0.9.8.txt new file mode 100644 index 0000000..57e4af2 --- /dev/null +++ b/www-apps/davical/files/postinstall-en-0.9.8.txt @@ -0,0 +1,12 @@ +You will need access to postgresql database to use davical. + +Read /usr/share/doc/www-apps/davical-${PV}/INSTALL.gz for installation +instructions. +Release notes are available at +http://wiki.davical.org/w/Release_Notes/${PV}. +Full documentation and wiki on http://davical.org + +If you are upgrading from a previous version of davical, don't forget to +upgrade the database structure with + cd /usr/share/webapps/davical/${PV}/sqlscripts/ + ./update-davical-database -dbuser xxxxxxx -appuser xxxxxx diff --git a/www-apps/davical/files/rscds.conf b/www-apps/davical/files/rscds.conf new file mode 100644 index 0000000..0288764 --- /dev/null +++ b/www-apps/davical/files/rscds.conf @@ -0,0 +1,279 @@ +pg_connect[] = 'dbname=davical 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=davical user=general"; +// $c->pg_connect[] = "dbname=davical 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 +*

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 DAViCal +* administration pages.

+*/ +// $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('auth-functions.php'); +// $c->authenticate_hook = array( +// 'call' => 'AuthExternalAwl', +// 'config' => array( +// // A PgSQL database connection string for the database containing user records +// 'connection' => 'dbname=wrms host=otherhost 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", +// // a WHERE clause to limit the records returned. +// 'where' => "active AND org_code=7" +// ) +// ); + + +/********************************/ +/*********** LDAP hook **********/ +/********************************/ +/* + * For Active Directory go down to the next example. + */ + +//$c->authenticate_hook['call'] = 'LDAP_check'; +//$c->authenticate_hook['config'] = array( +// 'host' => 'www.tennaxia.net', //host name of your LDAP Server +// 'port' => '389', //port + + /* For the initial bind to be anonymous leave bindDN and passDN + commented out */ +// DN to bind to this server enabling to perform request +// 'bindDN'=> 'cn=manager,cn=internal,dc=tennaxia,dc=net', +// Password of the previous bindDN to bind to this server enabling to perform request +// 'passDN'=> 'xxxxxxxx', + +// 'protocolVersion' => '3', //Version of LDAP protocol to use +// 'baseDNUsers'=> 'dc=tennaxia,dc=net', //where to look at valid user +// 'filterUsers' => 'objectClass=kolabInetOrgPerson', //filter which must validate a user according to RFC4515, i.e. surrounded by brackets +// '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" +// ), //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" => "E","locale" => "fr_FR"), + /** foreach key set start and length in the string provided by ldap + example for openLDAP timestamp : 20070503162215Z **/ +// 'format_updated'=> 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)), +// 'startTLS' => 'yes', // Require that TLS is used for LDAP? + // If ldap_start_tls is not working, it is probably + // because php wants to validate the server's + // certificate. Try adding "TLS_REQCERT never" to the + // ldap configuration file that php uses (e.g. /etc/ldap.conf + // or /etc/ldap/ldap.conf). Of course, this lessens security! +// 'scope' => 'subtree', // Search scope to use, defaults to subtree. +// // Allowed values: base, onelevel, subtree. +// +// ); +// +//include('drivers_ldap.php'); + +/* + * Use the following LDAP example if you are using Active Directory + * + * You will need to change host, passDN and DOMAIN in bindDN + * and baseDNUsers. + */ +//$c->authenticate_hook['call'] = 'LDAP_check'; +//$c->authenticate_hook['config'] = array( +// 'host' => 'ldap://ldap.example.net', +// 'bindDN' => 'auth@DOMAIN', +// 'passDN' => 'secret', +// 'baseDNUsers' => 'dc=DOMAIN,dc=local', +// 'protocolVersion' => 3, +// 'optReferrals' => 0, +// 'filterUsers' => '(&(objectcategory=person)(objectclass=user)(givenname=*))', +// 'mapping_field' => array("username" => "uid", +// "fullname" => "cn" , +// "email" => "mail"), +// 'default_value' => array("date_format_type" => "E","locale" => "en_NZ"), +// 'format_updated' => 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'); + + +/** +* Authentication against PAM using the Squid helper script. +*/ +//$c->authenticate_hook = array( +// 'call' => 'SQUID_PAM_check', +// 'config' => array( 'script' => '/usr/bin/pam_auth', 'email_base' => 'example.com' ); +// ); +//include('drivers_squid_pam.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; diff --git a/www-apps/davical/metadata.xml b/www-apps/davical/metadata.xml new file mode 100644 index 0000000..7e32869 --- /dev/null +++ b/www-apps/davical/metadata.xml @@ -0,0 +1,5 @@ + + + +maintainer-wanted +