1 # Copyright 1999-2015 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
6 inherit autotools-utils pam
8 DESCRIPTION="pam_mysql is a module for pam to authenticate users with mysql"
9 HOMEPAGE="http://pam-mysql.sourceforge.net/"
11 SRC_URI="mirror://sourceforge/pam-mysql/${P/_rc/RC}.tar.gz"
13 openssl? ( dev-libs/openssl:0= )
14 >=sys-libs/pam-0.72:0=
20 KEYWORDS="alpha amd64 ppc sparc x86"
22 S="${WORKDIR}/${P/_rc/RC}"
25 "${FILESDIR}/${P}-link-to-pam.diff"
26 "${FILESDIR}/${P}-memleak.diff"
28 DOCS=( CREDITS ChangeLog NEWS README )
29 AUTOTOOLS_AUTORECONF="yes"
30 AUTOTOOLS_PRUNE_LIBTOOL_FILES="modules"
33 # Update autotools deprecated file name and macro for bug 468750
34 mv configure.in configure.ac || die "configure rename failed"
35 sed -i s/AM_CONFIG_HEADER/AC_CONFIG_HEADERS/ configure.ac || die "sed failed"
36 autotools-utils_src_prepare
40 local myeconfargs=( $(use_with openssl) )
41 autotools-utils_src_configure
45 autotools-utils_src_install libdir="$(getpam_mod_dir)"