1 # Copyright 1999-2019 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
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:*"
26 eapply "${FILESDIR}/${P}-gentoo.patch"
32 emake DESTDIR="${D}" install
33 find "${D}" -name '*.la' -delete || die
35 dodoc AUTHORS ChangeLog NEWS README
42 elog "1. Create the required tables in the database:"
43 elog " $ psql a_database -f /usr/share/doc/${PF}/examples/dbschema.sql"
44 elog "2. Create the configuration file '/etc/nss-pgsql.conf'"
45 elog " You can copy the example from /usr/share/doc/${PF}/examples/nss-pgsql.conf"
46 elog "3. Edit /etc/nsswitch.conf to use the NSS service 'pgsql'"
47 elog " An example is available here: /usr/share/doc/${PF}/examples/nsswitch.conf"