View | Details | Raw Unified
Collapse All | Expand All

(-) /usr/portage/sys-auth/pam_mysql/pam_mysql-0.7_rc1.ebuild (-6 / +25 lines)
 Lines 1-18    Link Here 
# Copyright 1999-2006 Gentoo Foundation
# Copyright 2006 Ossdl.de, Hurrikane Systems
# Distributed under the terms of the GNU General Public License v2
# Distributed under the terms of the GNU General Public License v2
# $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 $
# $Header: $
inherit libtool
inherit eutils libtool
DESCRIPTION="pam_mysql is a module for pam to authenticate users with mysql"
DESCRIPTION="pam_mysql is a module for pam to authenticate users with mysql"
HOMEPAGE="http://pam-mysql.sourceforge.net/"
HOMEPAGE="http://pam-mysql.sourceforge.net/"
SRC_URI="mirror://sourceforge/pam-mysql/${P/_rc/RC}.tar.gz"
SRC_URI="mirror://sourceforge/pam-mysql/${P/_rc/RC}.tar.gz"
DEPEND=">=sys-libs/pam-0.72 >=dev-db/mysql-3.23.38"
DEPEND=">=sys-libs/pam-0.72 
	>=dev-db/mysql-3.23.38
	ssl? ( dev-libs/openssl )
	sasl? ( =dev-libs/cyrus-sasl-2* )
	"
LICENSE="GPL-2"
LICENSE="GPL-2"
SLOT="0"
SLOT="0"
KEYWORDS="~alpha ~amd64 ~ppc ~sparc x86"
KEYWORDS="~alpha ~amd64 ~ppc ~sparc x86"
IUSE=""
IUSE="ssl sasl"
S="${WORKDIR}/${P/_rc/RC}"
S="${WORKDIR}/${P/_rc/RC}"
src_unpack() {
src_unpack() {
 Lines 23-29    Link Here 
}
}
src_compile() {
src_compile() {
	econf
	local myconf="--with-mysql=/usr"
	if use ssl; then
		myconf="${myconf} --with-openssl"
	fi
	if use sasl; then
		myconf="${myconf} --with-sasl2"
	fi
	econf ${myconf}
	if use ssl; then
		sed 's/DEFS = /DEFS = -DHAVE_OPENSSL /g' Makefile > Makefile.new \
		&& mv Makefile.new Makefile
	elif use sasl; then
		sed 's/DEFS = /DEFS = -DHAVE_SASL_MD5_H -DHAVE_CYRUS_SASL_V2 /g' Makefile > Makefile.new \
		&& mv Makefile.new Makefile
	fi
	emake
	emake
}
}