bo: server/perl-kolab/Kolab-LDAP-Backend-dirservd Changes, NONE, 1.1 MANIFEST, NONE, 1.1 META.yml, NONE, 1.1 Makefile.PL, NONE, 1.1 README, NONE, 1.1 dirservd.pm, NONE, 1.1
cvs at intevation.de
cvs at intevation.de
Wed Mar 31 17:36:51 CEST 2004
Author: bo
Update of /kolabrepository/server/perl-kolab/Kolab-LDAP-Backend-dirservd
In directory doto:/tmp/cvs-serv3870/perl-kolab/Kolab-LDAP-Backend-dirservd
Added Files:
Changes MANIFEST META.yml Makefile.PL README dirservd.pm
Log Message:
perl-kolab packages imported
--- NEW FILE: Changes ---
Revision history for Perl extension Kolab::LDAP::Backend::dirservd.
0.01 Fri Dec 5 23:15:38 2003
- original version; created by h2xs 1.22 with options
-XA -n Kolab::LDAP::Backend::dirservd
--- NEW FILE: MANIFEST ---
Changes
dirservd.pm
Makefile.PL
MANIFEST
README
t/1.t
META.yml Module meta-data (added by MakeMaker)
--- NEW FILE: META.yml ---
# http://module-build.sourceforge.net/META-spec.html
#XXXXXXX This is a prototype!!! It will change in the future!!! XXXXX#
name: Kolab-LDAP-Backend-dirservd
version: 0.91
version_from: dirservd.pm
installdirs: site
requires:
distribution_type: module
generated_by: ExtUtils::MakeMaker version 6.17
--- NEW FILE: Makefile.PL ---
use 5.008;
use ExtUtils::MakeMaker;
# See lib/ExtUtils/MakeMaker.pm for details of how to influence
# the contents of the Makefile that is written.
WriteMakefile(
'NAME' => 'Kolab::LDAP::Backend::dirservd',
'VERSION_FROM' => 'dirservd.pm', # finds $VERSION
'PREREQ_PM' => {}, # e.g., Module::Name => 1.1
($] >= 5.005 ? ## Add these new keywords supported since 5.005
(ABSTRACT_FROM => 'dirservd.pm', # retrieve abstract from module
AUTHOR => 'root <root at gentoo.org>') : ()),
);
--- NEW FILE: README ---
Kolab/LDAP/Backend/dirservd version 0.01
========================================
The README is used to introduce the module and provide instructions on
how to install the module, any machine dependencies it may have (for
example C compilers and installed libraries) and any other information
that should be provided before the module is installed.
A README file is required for CPAN modules since CPAN extracts the
README file from a module distribution so that people browsing the
archive can use it get an idea of the modules uses. It is usually a
good idea to provide version information here so that people can
decide whether fixes for the module are worth downloading.
INSTALLATION
To install this module type the following:
perl Makefile.PL
make
make test
make install
DEPENDENCIES
This module requires these other modules and libraries:
blah blah blah
COPYRIGHT AND LICENCE
Put the correct copyright and licence information here.
Copyright (C) 2003 root
This library is free software; you can redistribute it and/or modify
it under the same terms as Perl itself.
--- NEW FILE: dirservd.pm ---
package Kolab::LDAP::Backend::dirservd;
##
## Copyright (c) 2003 Code Fusion cc
##
## Writen by Stuart Bingë <s.binge at codefusion.co.za>
##
## This program is free software; you can redistribute it and/or
## modify it under the terms of the GNU General Public License as
## published by the Free Software Foundation; either version 2, or
## (at your option) any later version.
##
## This program is distributed in the hope that it will be useful,
## but WITHOUT ANY WARRANTY; without even the implied warranty of
## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
## General Public License for more details.
##
## You can view the GNU General Public License, online, at the GNU
## Project's homepage; see <http://www.gnu.org/licenses/gpl.html>.
##
use 5.008;
use strict;
use warnings;
use Kolab;
use Kolab::Util;
use Kolab::LDAP;
use Net::LDAP;
use Net::LDAP::Control;
use vars qw($ldap $cyrus);
require Exporter;
our @ISA = qw(Exporter);
our %EXPORT_TAGS = (
'all' => [ qw(
&startup
&run
) ]
);
our @EXPORT_OK = ( @{ $EXPORT_TAGS{'all'} } );
our @EXPORT = qw(
);
our $VERSION = '0.91';
sub startup { 1; }
sub shutdown
{
Kolab::log('DSd', 'Shutting down');
exit(0);
}
sub abort
{
Kolab::log('DSd', 'Aborting');
exit(1);
}
sub run
{
# This should be called from a separate thread, as we set our
# own interrupt handlers here
$SIG{'INT'} = \&shutdown;
$SIG{'TERM'} = \&shutdown;
END {
alarm 0;
}
my $mesg;
Kolab::log('DSd', 'Listener starting up, refresh is: '.$Kolab::config{'dirserv_poll_period'}." seconds");
#while ($Kolab::config{'dirserv_mailbox_server'} ne '') {
while (1) {
if ($Kolab::config{'dirserv_mailbox_user'} ne "") {
Kolab::log('DSd', 'Polling for DirServ updates', KOLAB_DEBUG);
Kolab::DirServ::handleNotifications(
$Kolab::config{'dirserv_mailbox_server'},
$Kolab::config{'dirserv_mailbox_user'},
$Kolab::config{'dirserv_mailbox_password'},
);
}
sleep($Kolab::config{'dirserv_poll_period'});
};
1;
}
1;
__END__
# Below is stub documentation for your module. You'd better edit it!
=head1 NAME
Kolab::LDAP::Backend::dirservd - Perl extension for the Directory
Services updater.
=head1 ABSTRACT
Kolab::LDAP::Backend::dirservd handles an DirServ updater
backend to the kolab daemon.
=head1 AUTHOR
Stuart Bingë, E<lt>s.buys at codefusion.co.zaE<gt>
=head1 COPYRIGHT AND LICENSE
Copyright (c) 2003 Code Fusion cc
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License as
published by the Free Software Foundation; either version 2, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
General Public License for more details.
You can view the GNU General Public License, online, at the GNU
Project's homepage; see <http://www.gnu.org/licenses/gpl.html>.
=cut
More information about the commits
mailing list