summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGunnar Wrobel <wrobel@gentoo.org>2007-10-22 13:41:40 +0000
committerGunnar Wrobel <wrobel@gentoo.org>2007-10-22 13:41:40 +0000
commit02bf84ad37dae5236578508b40a64e4a4ff36123 (patch)
tree8a17a4cf341d13fe8496729de5f0ad35c6257500 /dev-perl
downloadkolab-02bf84ad37dae5236578508b40a64e4a4ff36123.tar.gz
kolab-02bf84ad37dae5236578508b40a64e4a4ff36123.tar.bz2
kolab-02bf84ad37dae5236578508b40a64e4a4ff36123.zip
Clean up the structure.
svn path=/overlay/; revision=2770
Diffstat (limited to 'dev-perl')
-rw-r--r--dev-perl/perl-kolab/ChangeLog7
-rw-r--r--dev-perl/perl-kolab/Manifest24
-rw-r--r--dev-perl/perl-kolab/files/digest-perl-kolab-2.13
-rwxr-xr-xdev-perl/perl-kolab/files/kolab_services93
-rw-r--r--dev-perl/perl-kolab/files/perl-kolab_perl-kolab_Kolab_Kolab.pm.in-2.1.patch63
-rw-r--r--dev-perl/perl-kolab/metadata.xml8
-rw-r--r--dev-perl/perl-kolab/perl-kolab-2.1.ebuild90
7 files changed, 288 insertions, 0 deletions
diff --git a/dev-perl/perl-kolab/ChangeLog b/dev-perl/perl-kolab/ChangeLog
new file mode 100644
index 0000000..079464d
--- /dev/null
+++ b/dev-perl/perl-kolab/ChangeLog
@@ -0,0 +1,7 @@
+# ChangeLog for dev-perl/perl-kolab
+# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2
+# $Header: $
+
+ 11 Oct 2007; Gunnar Wrobel <wrobel@gentoo.org> perl-kolab-2.1.ebuild:
+ Updated to the newer cyrus-imap-admin ebuild.
+
diff --git a/dev-perl/perl-kolab/Manifest b/dev-perl/perl-kolab/Manifest
new file mode 100644
index 0000000..4242438
--- /dev/null
+++ b/dev-perl/perl-kolab/Manifest
@@ -0,0 +1,24 @@
+AUX kolab_services 2862 RMD160 8210ceccd575b61b7738af6f8b0bd16c61185588 SHA1 1d23c96cd04172aa07f0638ad38b41c4ce0cb9b5 SHA256 b0bcc0c7dfb0edfb32fa1239c6d2347620b2dd0c05d3a71201dd6514a52c1184
+MD5 d533c9df73cf8f000a120d5e17f74a03 files/kolab_services 2862
+RMD160 8210ceccd575b61b7738af6f8b0bd16c61185588 files/kolab_services 2862
+SHA256 b0bcc0c7dfb0edfb32fa1239c6d2347620b2dd0c05d3a71201dd6514a52c1184 files/kolab_services 2862
+AUX perl-kolab_perl-kolab_Kolab_Kolab.pm.in-2.1.patch 2242 RMD160 c5071b50b275dedfa7779b16aa0e299ac5e7ee04 SHA1 41f3894f37147da9c1755691066e908864af55d4 SHA256 e677bb60d1bc515c42b621edfcd1a2a89026449080dc114c410da7e0ca98779c
+MD5 7efbc51963868f591d12381980e0e792 files/perl-kolab_perl-kolab_Kolab_Kolab.pm.in-2.1.patch 2242
+RMD160 c5071b50b275dedfa7779b16aa0e299ac5e7ee04 files/perl-kolab_perl-kolab_Kolab_Kolab.pm.in-2.1.patch 2242
+SHA256 e677bb60d1bc515c42b621edfcd1a2a89026449080dc114c410da7e0ca98779c files/perl-kolab_perl-kolab_Kolab_Kolab.pm.in-2.1.patch 2242
+DIST perl-kolab-2.1-gentoo-20070510.tar.bz2 79381 RMD160 68c0c8aeda64fe1104b105cd2669d6156675dc8a SHA1 fd20a7bc5cadfa69e01958ecaea57dbfb2f7e5af SHA256 66a6197a2b37333e88bb46ed286e5a8e3235427e67f0d8d59f2d96712108d427
+EBUILD perl-kolab-2.1.ebuild 1850 RMD160 941aa855b2d9bd76bcc818e64431d7ef8581f1a3 SHA1 49f3ca6ce5f7464a1a1690fddc827d4970ef29ea SHA256 9105c4ef5f7016d33845a451ccac94719255c5fc1a3d55d8d502559978b565db
+MD5 710645070bbe1cf8bb79931f9cccc34f perl-kolab-2.1.ebuild 1850
+RMD160 941aa855b2d9bd76bcc818e64431d7ef8581f1a3 perl-kolab-2.1.ebuild 1850
+SHA256 9105c4ef5f7016d33845a451ccac94719255c5fc1a3d55d8d502559978b565db perl-kolab-2.1.ebuild 1850
+MISC ChangeLog 241 RMD160 4a20ef7cf22da7045c065f755f555f3c496c708c SHA1 c12718fc18475f59158ee1bbd698f3b951c1a2b9 SHA256 2f1c1b4bf5d80f274f983c09dd864635066b8eeb7fd38ad26ececf0e278d0908
+MD5 0088a225f5139204a68ad5ef3b61c4f8 ChangeLog 241
+RMD160 4a20ef7cf22da7045c065f755f555f3c496c708c ChangeLog 241
+SHA256 2f1c1b4bf5d80f274f983c09dd864635066b8eeb7fd38ad26ececf0e278d0908 ChangeLog 241
+MISC metadata.xml 232 RMD160 251750822acfe36f54ec830fa053e985a7278a33 SHA1 fdbcf61b9d99ee20f934ecc104ade9609a229e78 SHA256 d07db54ad168ceedf68191db986ce724abd9add00eb9716d1ea55f5808b2eec1
+MD5 472818759cc5022b4fff0910a12b75d1 metadata.xml 232
+RMD160 251750822acfe36f54ec830fa053e985a7278a33 metadata.xml 232
+SHA256 d07db54ad168ceedf68191db986ce724abd9add00eb9716d1ea55f5808b2eec1 metadata.xml 232
+MD5 ee6a80a58f21b178c51d3fadb22e9775 files/digest-perl-kolab-2.1 292
+RMD160 99ccbddbd312c6b0f18eabe1b97f862f103d6ece files/digest-perl-kolab-2.1 292
+SHA256 015f380b9555f6e6e48163df1eab5d650aee1c3aec9128ea14cbf38f482afad5 files/digest-perl-kolab-2.1 292
diff --git a/dev-perl/perl-kolab/files/digest-perl-kolab-2.1 b/dev-perl/perl-kolab/files/digest-perl-kolab-2.1
new file mode 100644
index 0000000..bf3700d
--- /dev/null
+++ b/dev-perl/perl-kolab/files/digest-perl-kolab-2.1
@@ -0,0 +1,3 @@
+MD5 5f52b380d08abecc441918b548fa447e perl-kolab-2.1-gentoo-20070510.tar.bz2 79381
+RMD160 68c0c8aeda64fe1104b105cd2669d6156675dc8a perl-kolab-2.1-gentoo-20070510.tar.bz2 79381
+SHA256 66a6197a2b37333e88bb46ed286e5a8e3235427e67f0d8d59f2d96712108d427 perl-kolab-2.1-gentoo-20070510.tar.bz2 79381
diff --git a/dev-perl/perl-kolab/files/kolab_services b/dev-perl/perl-kolab/files/kolab_services
new file mode 100755
index 0000000..9838d0c
--- /dev/null
+++ b/dev-perl/perl-kolab/files/kolab_services
@@ -0,0 +1,93 @@
+#!/bin/bash
+##
+## Kolab Service tool
+##
+## Copyright (c) 2007 p@rdus <http://www.pardus.de>
+##
+## Permission to use, copy, modify, and distribute this software for
+## any purpose with or without fee is hereby granted, provided that
+## the above copyright notice and this permission notice appear in all
+## copies.
+##
+## THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
+## WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
+## MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
+## IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR
+## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
+## USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
+## ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
+## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
+## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
+## SUCH DAMAGE.
+##
+
+service=$1
+action=$2
+
+case "${service}" in
+ openldap)
+ case "${action}" in
+ restart)
+ /etc/init.d/slurpd --quiet restart &
+ /etc/init.d/slapd --quiet restart &;;
+ *)
+ echo "kolab:ERROR: Invalid action \"${action}\"." 1>&2;;
+ esac;;
+ saslauthd)
+ case "${action}" in
+ restart)
+ /etc/init.d/saslauthd --quiet restart &;;
+ *)
+ echo "kolab:ERROR: Invalid action \"${action}\"." 1>&2;;
+ esac;;
+ apache)
+ case "${action}" in
+ restart)
+ /etc/init.d/apache2 --quiet restart &;;
+ *)
+ echo "kolab:ERROR: Invalid action \"${action}\"." 1>&2;;
+ esac;;
+ postfix)
+ case "${action}" in
+ restart)
+ /etc/init.d/postfix --quiet restart &;;
+ *)
+ echo "kolab:ERROR: Invalid action \"${action}\"." 1>&2;;
+ esac;;
+ imapd)
+ case "${action}" in
+ restart)
+ /etc/init.d/cyrus --quiet restart &;;
+ *)
+ echo "kolab:ERROR: Invalid action \"${action}\"." 1>&2;;
+ esac;;
+ amavisd)
+ case "${action}" in
+ restart)
+ /etc/init.d/amavisd --quiet restart &;;
+ *)
+ echo "kolab:ERROR: Invalid action \"${action}\"." 1>&2;;
+ esac;;
+ clamav)
+ case "${action}" in
+ restart)
+ /etc/init.d/clamd --quiet restart &;;
+ *)
+ echo "kolab:ERROR: Invalid action \"${action}\"." 1>&2;;
+ esac;;
+ proftpd)
+ case "${action}" in
+ restart)
+ [ -f /etc/init.d/proftpd ] && /etc/init.d/proftpd --quiet restart &;;
+ start)
+ [ -f /etc/init.d/proftpd ] && /etc/init.d/proftpd --quiet status || /etc/init.d/proftpd --quiet start &;;
+ stop)
+ [ -f /etc/init.d/proftpd ] && /etc/init.d/proftpd --quiet status && /etc/init.d/proftpd stop &;;
+ *)
+ echo "kolab:ERROR: Invalid action \"${action}\"." 1>&2;;
+ esac;;
+ *)
+ echo "kolab:ERROR: Invalid service \"${service}\"." 1>&2;;
+esac
diff --git a/dev-perl/perl-kolab/files/perl-kolab_perl-kolab_Kolab_Kolab.pm.in-2.1.patch b/dev-perl/perl-kolab/files/perl-kolab_perl-kolab_Kolab_Kolab.pm.in-2.1.patch
new file mode 100644
index 0000000..38fcd04
--- /dev/null
+++ b/dev-perl/perl-kolab/files/perl-kolab_perl-kolab_Kolab_Kolab.pm.in-2.1.patch
@@ -0,0 +1,63 @@
+--- perl-kolab/perl-kolab/Kolab/Kolab.pm.in 2007-05-10 15:08:45.000000000 +0200
++++ perl-kolab/perl-kolab/Kolab/Kolab.pm.in.gentoo 2007-05-10 15:12:11.000000000 +0200
+@@ -399,50 +399,49 @@
+ {
+ if ($haschanged{'slapd'}) {
+ &log('K', 'Restarting OpenLDAP...');
+- system("@KOLABRC@ rc openldap restart &");
++ system("@KOLABSERVICES@ openldap restart &");
+ }
+
+ if ($haschanged{'saslauthd'}) {
+ &log('K', 'Restarting SASLAuthd...');
+- system("@KOLABRC@ rc sasl stop; sleep 1; @sbindir@/saslauthd -a ldap -n 5");
++ system("@KOLABSERVICES@ saslauthd restart &");
+ }
+
+ if ($haschanged{'apache'}) {
+ &log('K', 'Reloading Apache...');
+- system("@sbindir@/apachectl graceful");
++ system("@KOLABSERVICES@ apache restart &");
+ }
+
+ if ($haschanged{'postfix'}) {
+ &log('K', 'Reloading Postfix...');
+- system("@sbindir@/postfix reload");
++ system("@KOLABSERVICES@ postfix restart &");
+ }
+
+ if ($haschanged{'imapd'}) {
+ &log('K', 'Restarting imapd...');
+- # Would it be enough with a reload here? /steffen
+- system("@KOLABRC@ rc imapd restart");
++ system("@KOLABSERVICES@ cyrus restart &");
+ }
+
+ if ($haschanged{'amavisd'}) {
+ &log('K', 'Restarting amavisd...');
+- system("@KOLABRC@ rc amavisd restart");
++ system("@KOLABSERVICES@ amavisd restart &");
+ }
+
+ if ($haschanged{'clamav'}) {
+ &log('K', 'Restarting clamav...');
+- system("@KOLABRC@ rc clamav restart");
++ system("@KOLABSERVICES@ clamav restart &");
+ }
+
+ if ($config{'proftpd-ftp'} =~ /true/i) {
+ Kolab::log('K', 'Starting ProFTPd if not running');
+- system("@KOLABRC@ rc proftpd start");
++ system("@KOLABSERVICES@ proftpd start &");
+ if ($haschanged{'proftpd'}) {
+ &log('K', 'Reloading ProFTPd...');
+- kill('SIGHUP', `cat @ftpserver_pidfile@`);
++ system("@KOLABSERVICES@ proftpd restart &");
+ }
+ } else {
+ &log('K', 'Stopping ProFTPd, if running...');
+- system("@KOLABRC@ rc proftpd stop");
++ system("@KOLABSERVICES@ proftpd stop &");
+ }
+
+ %Kolab::Conf::haschanged = ();
diff --git a/dev-perl/perl-kolab/metadata.xml b/dev-perl/perl-kolab/metadata.xml
new file mode 100644
index 0000000..393e9ef
--- /dev/null
+++ b/dev-perl/perl-kolab/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer>
+ <email>wrobel@gentoo.org</email>
+ <name>Gunnar Wrobel</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/dev-perl/perl-kolab/perl-kolab-2.1.ebuild b/dev-perl/perl-kolab/perl-kolab-2.1.ebuild
new file mode 100644
index 0000000..81c82ff
--- /dev/null
+++ b/dev-perl/perl-kolab/perl-kolab-2.1.ebuild
@@ -0,0 +1,90 @@
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+inherit eutils perl-module
+
+MY_P=perl-kolab-2.1-gentoo-20070510
+
+DESCRIPTION="Perl modules for the Kolab groupware server"
+HOMEPAGE="http://www.kolab.org"
+SRC_URI="http://build.pardus.de/downloads/${MY_P}.tar.bz2"
+
+SLOT="0"
+
+LICENSE="GPL-2"
+KEYWORDS="x86 amd64"
+IUSE=""
+
+DEPEND=""
+
+RDEPEND="dev-lang/perl
+ perl-core/DB_File
+
+ !>net-mail/cyrus-imap-admin-2.3.9-r20
+ =net-mail/cyrus-imap-admin-2.3.9-r20
+ !<net-mail/cyrus-imap-admin-2.3.9-r20
+
+ dev-perl/perl-ldap
+ dev-perl/MIME-tools
+ dev-perl/MIME-Lite
+ dev-perl/Mail-IMAPClient
+ dev-perl/URI"
+
+S=${WORKDIR}/${MY_P}
+
+pkg_setup() {
+ #############################################################
+ # Create the special kolab users and their groups
+
+ # The kolab groups will have the same name as the kolab users
+ local musr="kolab"
+ local rusr="kolab-r"
+ local nusr="kolab-n"
+
+ local kolabusers="${musr}:kolab-management-account
+ ${rusr}:kolab-restricted-account
+ ${nusr}:kolab-non-priviledged-account"
+
+ for user in ${kolabusers}
+ do
+ enewgroup ${user/:*/}
+ enewuser ${user/:*/} -1 /bin/bash / ${user/:*/} "-cadded by portage for kolab [${user/*:/}]"
+ done
+}
+
+src_unpack() {
+
+ unpack ${A} && cd "${S}"
+
+ ## Patching the code for gentoo
+
+ for PATCH in ${FILESDIR}/*-${PV}.patch
+ do
+ epatch ${PATCH}
+ done
+}
+
+src_compile() {
+
+ perlinfo
+
+ local myconf
+ myconf="${myconf} --localstatedir=/var"
+ myconf="${myconf} --with-dist=gentoo"
+ myconf="${myconf} --libexecdir=/usr/lib"
+
+ econf ${myconf} || die
+ emake || die
+}
+
+src_install() {
+
+ #############################################################
+ # Install perl source code
+
+ make install DESTDIR=${D} || die
+
+ # Add this script until we have a better solution
+ dosbin ${FILESDIR}/kolab_services
+}