1 # Copyright 1999-2018 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
6 inherit autotools eutils multilib
10 DESCRIPTION="Name Service Switch module for use with PostgreSQL"
11 HOMEPAGE="http://pgfoundry.org/projects/sysauth/"
14 SRC_URI="http://pgfoundry.org/frs/download.php/1878/${MY_P}.tgz"
15 S="${WORKDIR}/${MY_P}"
21 RDEPEND="dev-db/postgresql"
28 epatch "${FILESDIR}/${P}-gentoo.patch"
34 --htmldir=/usr/share/doc/${PF}/html || die "econf failed"
35 emake || die "emake failed"
39 emake DESTDIR="${D}" install || die
40 find "${D}" -name '*.la' -delete || die
42 dodoc AUTHORS ChangeLog NEWS README || die
43 insinto /usr/share/doc/${PF}/examples
49 elog "1. Create the required tables in the database:"
50 elog " $ psql a_database -f /usr/share/doc/${PF}/examples/dbschema.sql"
51 elog "2. Create the configuration file '/etc/nss-pgsql.conf'"
52 elog " You can copy the example from /usr/share/doc/${PF}/examples/nss-pgsql.conf"
53 elog "3. Edit /etc/nsswitch.conf to use the NSS service 'pgsql'"
54 elog " An example is available here: /usr/share/doc/${PF}/examples/nsswitch.conf"