blob: 1152c58aeae6b1ed7a42cdd5694693991143cf9e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
|
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sys-auth/pam-pgsql/pam-pgsql-0.7.1.ebuild,v 1.1 2010/03/16 11:56:16 flameeyes Exp $
EAPI=2
inherit eutils pam
DESCRIPTION="pam_pgsql is a module for pam to authenticate users with PostgreSQL"
HOMEPAGE="http://sourceforge.net/projects/pam-pgsql/"
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
DEPEND="virtual/pam
>=dev-db/postgresql-base-8.0"
RDEPEND="${DEPEND}"
LICENSE="GPL-2"
IUSE=""
SLOT="0"
KEYWORDS="~amd64 ~x86"
src_configure() {
econf \
--sysconfdir=/etc/security \
--libdir=/$(get_libdir) \
--docdir=/usr/share/doc/${PF} || die "econf failed"
}
src_compile() {
emake pammoddir="$(getpam_mod_dir)" || die "emake failed"
}
src_install() {
emake DESTDIR="${D}" pammoddir="$(getpam_mod_dir)" install || die "emake install failed"
find "${D}" -name '*.la' -delete
}
pkg_postinst() {
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."
}
|