mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2025-12-21 21:17:37 -08:00
md5_calc is implicitly declared in "checking if md5.h is Solaris's" test Closes: https://bugs.gentoo.org/908580 Signed-off-by: NHOrus <jy6x2b32pie9@yahoo.com> Closes: https://github.com/gentoo/gentoo/pull/40290 Signed-off-by: Sam James <sam@gentoo.org>
52 lines
969 B
Bash
52 lines
969 B
Bash
# Copyright 1999-2025 Gentoo Authors
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
EAPI=8
|
|
|
|
inherit autotools pam
|
|
|
|
DESCRIPTION="pam_mysql is a module for pam to authenticate users with mysql"
|
|
HOMEPAGE="https://github.com/NigelCunningham/pam-MySQL"
|
|
SRC_URI="https://github.com/NigelCunningham/pam-MySQL/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
|
S="${WORKDIR}/pam-MySQL-${PV}"
|
|
|
|
LICENSE="GPL-2"
|
|
SLOT="0"
|
|
KEYWORDS="~alpha amd64 ~ppc ~sparc x86"
|
|
IUSE="openssl"
|
|
|
|
DEPEND="
|
|
>=sys-libs/pam-0.72:0=
|
|
dev-db/mysql-connector-c:0=
|
|
virtual/libcrypt:=
|
|
openssl? ( dev-libs/openssl:0= )
|
|
"
|
|
RDEPEND="${DEPEND}"
|
|
|
|
DOCS=( AUTHORS ChangeLog NEWS README )
|
|
|
|
QA_CONFIG_IMPL_DECL_SKIP=(
|
|
md5_calc # for Solaris, bug #908580
|
|
)
|
|
|
|
src_prepare() {
|
|
default
|
|
|
|
eautoreconf
|
|
}
|
|
|
|
src_configure() {
|
|
local myeconfargs=(
|
|
--with-pam-mods-dir="$(getpam_mod_dir)"
|
|
$(use_with openssl)
|
|
)
|
|
|
|
econf "${myeconfargs[@]}"
|
|
}
|
|
|
|
src_install() {
|
|
default
|
|
|
|
find "${ED}" -name '*.la' -delete || die
|
|
}
|