blob: cf550265fcc7784d9b025c04e207f12efa369105 (
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
|
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-libs/courier-authlib/courier-authlib-0.50.20041116.ebuild,v 1.1 2004/11/20 00:28:36 swtaylor Exp $
inherit eutils
DESCRIPTION="courier authentication library"
[ -z "${PV/?.??/}" ] && SRC_URI="mirror://sourceforge/courier-authlib/${P}.tar.bz2" || SRC_URI="http://www.courier-mta.org/beta/courier-authlib/${P}.tar.bz2"
HOMEPAGE="http://www.courier-mta.org/"
SLOT="0"
LICENSE="GPL-2"
#KEYWORDS="~x86 ~alpha ~ppc ~sparc ~amd64"
KEYWORDS="-*"
IUSE="postgres ldap mysql gdbm pam crypt uclibc debug"
DEPEND="virtual/libc"
RDEPEND="${DEPEND}"
src_unpack() {
if ! has_version 'dev-tcltk/expect' ; then
einfo 'The dev-tcltk/expect package is not installed.'
fi
unpack ${A}
cd ${S}
sed -e"s|^chk_file .* |&\${DESTDIR}|g" -i.orig authmigrate.in
use uclibc && sed -i -e 's:linux-gnu\*:linux-gnu\*\ \|\ linux-uclibc:' config.sub
}
src_compile() {
local myconf
myconf="`use_with pam authpam` `use_with ldap authldap`"
use gdbm && myconf="${myconf} --with-db=gdbm"
if [ -f /var/vpopmail/etc/lib_deps ]; then
myconf="${myconf} --with-authvchkpw --without-authmysql --without-authpgsql"
use mysql && ewarn "vpopmail found. authmysql will not be built."
use postgres && ewarn "vpopmail found. authpgsql will not be built."
else
myconf="${myconf} --without-authvchkpw `use_with mysql authmysql` `use_with postgres authpostgres`"
fi
use debug && myconf="${myconf} debug=true"
ewarn "${myconf}"
./configure \
--prefix=/usr \
--mandir=/usr/share/man \
--sysconfdir=/etc/courier \
--libexecdir=/usr/lib/courier \
--datadir=/usr/share/courier \
--sharedstatedir=/var/lib/courier/com \
--localstatedir=/var/lib/courier \
--with-authdaemonvar=/var/lib/courier/authdaemon \
--with-mailuser=mail \
--with-mailgroup=mail \
--cache-file=${S}/configuring.cache \
--host=${CHOST} ${myconf} || die "bad ./configure"
emake || die "Compile problem"
}
src_install() {
dodir /etc/courier/authlib
dodir /var/lib/courier
emake install DESTDIR="${D}" || die "install"
emake install-migrate DESTDIR="${D}" || die "migrate"
emake install-configure DESTDIR="${D}" || die "configure"
rm ${D}/etc/courier/authlib/*.bak
dodoc AUTHORS COPYING ChangeLog* INSTALL NEWS README
dohtml README.html README_authlib.html NEWS.html INSTALL.html README.authdebug.html
use ldap && dodoc authldap.schema
use mysql && ( dodoc README.authmysql.myownquery ; dohtml README.authmysql.html )
use postgres && dohtml README.authpostgres.html
}
|