blob: 77bb2cfe8ceec63c51e9b1089c03f11b28e8d29f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
|
# Copyright 1999-2008 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.12
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
}
|