Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 13116
Collapse All | Expand All

(-)dev-libs/cyrus-sasl.orig/cyrus-sasl-2.1.10-r2.ebuild (+120 lines)
Line 0 Link Here
1
# Copyright 1999-2002 Gentoo Technologies, Inc.
2
# Distributed under the terms of the GNU General Public License, v2 or later
3
# $Header: /home/cvsroot/gentoo-x86/dev-libs/cyrus-sasl/cyrus-sasl-2.1.10-r1.ebuild,v 1.1 2003/01/23 20:34:42 raker Exp $
4
5
S=${WORKDIR}/${P}
6
7
DESCRIPTION="The Cyrus SASL (Simple Authentication and Security Layer)"
8
HOMEPAGE="http://asg.web.cmu.edu/sasl/"
9
SRC_URI="ftp://ftp.andrew.cmu.edu/pub/cyrus-mail/${P}.tar.gz"
10
11
LICENSE="as-is"
12
SLOT="2"
13
KEYWORDS="x86 ~ppc -sparc "
14
15
IUSE="gdbm berkdb ldap mysql kerberos"
16
17
inherit eutils
18
19
RDEPEND=">=sys-libs/db-3.2
20
	>=sys-libs/pam-0.75
21
	>=dev-libs/openssl-0.9.6d
22
	gdbm? ( >=sys-libs/gdbm-1.8.0 )
23
	berkdb? ( >=sys-libs/db-3.2.9 )
24
	ldap? ( >=net-nds/openldap-2.0.25 )
25
	mysql? ( >=dev-db/mysql-3.23.51 )
26
	kerberos? ( virtual/krb5 )"
27
	
28
DEPEND="${RDEPEND}
29
	sys-devel/libtool
30
	sys-devel/autoconf
31
	sys-devel/automake"
32
33
src_unpack() {
34
	unpack ${A} ; cd ${S}
35
	
36
	# Fix depends for heimdal needed in saslv2 too
37
	epatch ${FILESDIR}/${PN}2-heimdal-deps.patch
38
39
	# Fix for gssapi seg faulting problem?
40
	epatch ${FILESDIR}/gssapi-sefault.patch
41
42
	# Fix for digestmd5 segfault with sendmail/smart host.
43
	epatch ${FILESDIR}/digestmd5.patch
44
}
45
46
src_compile() {
47
48
	local myconf
49
50
	libtoolize --copy --force
51
	aclocal -I config -I cmulocal || die
52
	autoheader || die
53
	automake -a --foreign || die
54
	autoconf || die
55
	autoconf saslauthd/configure.in > saslauthd/configure || die
56
	chmod +x saslauthd/configure || die
57
58
	use ldap && myconf="${myconf} --with-ldap" \
59
		|| myconf="${myconf} --without-ldap"
60
61
	use mysql && myconf="${myconf} --with-mysql" \
62
		|| myconf="${myconf} --without-mysql"
63
64
	if use berkdb; then
65
		myconf="${myconf} --with-dblib=berkeley"
66
	elif use gdbm; then
67
		myconf="${myconf} --with-dblib=gdbm --with-gdbm=/usr"
68
	else
69
		myconf="${myconf} --with-dblib=berkeley"
70
	fi
71
72
	use static && myconf="${myconf} --enable-static --with-staticsasl" \
73
		|| myconf="${myconf} --disable-static --without-staticsasl"
74
75
	use kerberos && myconf="${myconf} --enable-gssapi=/usr" \
76
		|| myconf="${myconf} --disable-gssapi"
77
78
	econf \
79
		--with-saslauthd=/var/lib/sasl2 \
80
		--with-pwcheck=/var/lib/sasl2 \
81
		--with-configdir=/etc/sasl2 \
82
		--with-openssl \
83
		--with-plugindir=/usr/lib/sasl2 \
84
		--with-dbpath=/etc/sasl2/sasldb2 \
85
		--with-des \
86
		--with-rc4 \
87
		--disable-krb4 \
88
		--with-gnu-ld \
89
		--enable-shared \
90
		--disable-sample \
91
		--enable-login \
92
		${myconf} || die "bad ./configure"
93
94
	make MAKE=emake || die "compile problem"
95
}
96
97
src_install () {
98
99
	einstall || die "install problem"
100
101
	dodoc AUTHORS ChangeLog COPYING NEWS README doc/*.txt
102
	docinto examples ; dodoc sample/{*.[ch],Makefile}
103
	newdoc pwcheck/README README.pwcheck
104
	dohtml doc/*
105
106
	dodir /var/lib/sasl2
107
	dodir /etc/sasl2
108
	# generate an empty sasldb2 with correct permissions
109
	LD_OLD=${LD_LIBRARY_PATH}
110
	export LD_LIBRARY_PATH=${S}/lib/.libs
111
	echo "gentoo" | ${D}usr/sbin/saslpasswd2 -f ${D}etc/sasl2/sasldb2 -p cyrus
112
	${D}usr/sbin/saslpasswd2 -f ${D}etc/sasl2/sasldb2 -d cyrus
113
	export LD_LIBRARY_PATH=${LD_OLD}
114
	chown root.mail ${D}etc/sasl2/sasldb2
115
	chmod 0640 ${D}etc/sasl2/sasldb2
116
																
117
	insinto /etc/conf.d ; newins ${FILESDIR}/saslauthd.confd saslauthd
118
	exeinto /etc/init.d ; newexe ${FILESDIR}/saslauthd2.rc6 saslauthd
119
	exeinto /etc/init.d ; newexe ${FILESDIR}/pwcheck.rc6 pwcheck
120
}
(-)dev-libs/cyrus-sasl.orig/files/digest-cyrus-sasl-2.1.10-r2 (+1 lines)
Line 0 Link Here
1
MD5 3ac2a696c091a76ce6c7db27e5d859d4 cyrus-sasl-2.1.10.tar.gz 1325286

Return to bug 13116