Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 120842 | Differences between
and this patch

Collapse All | Expand All

(-)/usr/portage/sys-auth/pam_mysql/pam_mysql-0.7_rc1.ebuild (-6 / +25 lines)
Lines 1-18 Link Here
1
# Copyright 1999-2006 Gentoo Foundation
1
# Copyright 2006 Ossdl.de, Hurrikane Systems
2
# Distributed under the terms of the GNU General Public License v2
2
# Distributed under the terms of the GNU General Public License v2
3
# $Header: /var/cvsroot/gentoo-x86/sys-auth/pam_mysql/pam_mysql-0.7_rc1.ebuild,v 1.2 2006/05/18 00:32:57 halcy0n Exp $
3
# $Header: $
4
4
5
inherit libtool
5
inherit eutils libtool
6
6
7
DESCRIPTION="pam_mysql is a module for pam to authenticate users with mysql"
7
DESCRIPTION="pam_mysql is a module for pam to authenticate users with mysql"
8
HOMEPAGE="http://pam-mysql.sourceforge.net/"
8
HOMEPAGE="http://pam-mysql.sourceforge.net/"
9
9
10
SRC_URI="mirror://sourceforge/pam-mysql/${P/_rc/RC}.tar.gz"
10
SRC_URI="mirror://sourceforge/pam-mysql/${P/_rc/RC}.tar.gz"
11
DEPEND=">=sys-libs/pam-0.72 >=dev-db/mysql-3.23.38"
11
DEPEND=">=sys-libs/pam-0.72 
12
	>=dev-db/mysql-3.23.38
13
	ssl? ( dev-libs/openssl )
14
	sasl? ( =dev-libs/cyrus-sasl-2* )
15
	"
12
LICENSE="GPL-2"
16
LICENSE="GPL-2"
13
SLOT="0"
17
SLOT="0"
14
KEYWORDS="~alpha ~amd64 ~ppc ~sparc x86"
18
KEYWORDS="~alpha ~amd64 ~ppc ~sparc x86"
15
IUSE=""
19
IUSE="ssl sasl"
16
S="${WORKDIR}/${P/_rc/RC}"
20
S="${WORKDIR}/${P/_rc/RC}"
17
21
18
src_unpack() {
22
src_unpack() {
Lines 23-29 Link Here
23
}
27
}
24
28
25
src_compile() {
29
src_compile() {
26
	econf
30
	local myconf="--with-mysql=/usr"
31
	if use ssl; then
32
		myconf="${myconf} --with-openssl"
33
	fi
34
	if use sasl; then
35
		myconf="${myconf} --with-sasl2"
36
	fi
37
	econf ${myconf}
38
39
	if use ssl; then
40
		sed 's/DEFS = /DEFS = -DHAVE_OPENSSL /g' Makefile > Makefile.new \
41
		&& mv Makefile.new Makefile
42
	elif use sasl; then
43
		sed 's/DEFS = /DEFS = -DHAVE_SASL_MD5_H -DHAVE_CYRUS_SASL_V2 /g' Makefile > Makefile.new \
44
		&& mv Makefile.new Makefile
45
	fi
27
	emake
46
	emake
28
}
47
}
29
48

Return to bug 120842