You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
52 lines
1.2 KiB
52 lines
1.2 KiB
3 years ago
|
# Copyright 1999-2021 Gentoo Authors
|
||
9 years ago
|
# Distributed under the terms of the GNU General Public License v2
|
||
|
|
||
4 years ago
|
EAPI=7
|
||
9 years ago
|
|
||
4 years ago
|
inherit pam
|
||
9 years ago
|
|
||
3 years ago
|
DESCRIPTION="PAM module to authenticate users via PostgreSQL"
|
||
8 years ago
|
HOMEPAGE="https://sourceforge.net/projects/pam-pgsql/"
|
||
9 years ago
|
|
||
|
if [[ ${PV} == *_p* ]]; then
|
||
|
SRC_URI="http://www.flameeyes.eu/gentoo-distfiles/${P}.tar.gz"
|
||
|
else
|
||
|
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
|
||
|
fi
|
||
|
|
||
|
LICENSE="GPL-2"
|
||
|
SLOT="0"
|
||
|
KEYWORDS="~amd64 ~x86"
|
||
|
|
||
3 years ago
|
RDEPEND=">=dev-db/postgresql-8.0:=
|
||
|
>=dev-libs/libgcrypt-1.2.0:0=
|
||
|
sys-libs/pam
|
||
|
virtual/libcrypt:="
|
||
|
DEPEND="${RDEPEND}"
|
||
|
|
||
9 years ago
|
src_configure() {
|
||
|
econf \
|
||
|
--sysconfdir=/etc/security \
|
||
4 years ago
|
--libdir=/$(get_libdir)
|
||
9 years ago
|
}
|
||
|
|
||
|
src_compile() {
|
||
5 years ago
|
emake pammoddir="$(getpam_mod_dir)"
|
||
9 years ago
|
}
|
||
|
|
||
|
src_install() {
|
||
|
emake DESTDIR="${D}" pammoddir="$(getpam_mod_dir)" install
|
||
4 years ago
|
|
||
|
find "${ED}" -name '*.la' -delete || die
|
||
9 years ago
|
}
|
||
|
|
||
|
pkg_postinst() {
|
||
|
if [[ -z ${REPLACING_VERSIONS} ]] ; then
|
||
|
elog "Please see the documentation and configuration examples in the"
|
||
|
elog "documentation directory at /usr/share/doc/${PF}."
|
||
|
elog ""
|
||
|
elog "Please note that the default configuration file in Gentoo has been"
|
||
|
elog "moved to /etc/security/pam-pgsql.conf to follow the other PAM modules."
|
||
|
fi
|
||
|
}
|