Gentoo Archives: gentoo-commits

From: "Aaron W. Swenson" <titanofold@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-auth/libnss-pgsql/
Date: Sat, 02 Nov 2019 16:14:29
Message-Id: 1572711057.681f42e078527a1a2f7a47d8cb00e72e3f8990d2.titanofold@gentoo
1 commit: 681f42e078527a1a2f7a47d8cb00e72e3f8990d2
2 Author: Aaron W. Swenson <titanofold <AT> gentoo <DOT> org>
3 AuthorDate: Sat Nov 2 16:10:51 2019 +0000
4 Commit: Aaron W. Swenson <titanofold <AT> gentoo <DOT> org>
5 CommitDate: Sat Nov 2 16:10:57 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=681f42e0
7
8 sys-auth/libnss-pgsql: Bump EAPI to 7
9
10 Package-Manager: Portage-2.3.76, Repoman-2.3.16
11 Signed-off-by: Aaron W. Swenson <titanofold <AT> gentoo.org>
12
13 .../libnss-pgsql/libnss-pgsql-1.5.0_beta-r1.ebuild | 48 ++++++++++++++++++++++
14 1 file changed, 48 insertions(+)
15
16 diff --git a/sys-auth/libnss-pgsql/libnss-pgsql-1.5.0_beta-r1.ebuild b/sys-auth/libnss-pgsql/libnss-pgsql-1.5.0_beta-r1.ebuild
17 new file mode 100644
18 index 00000000000..62a4efe9017
19 --- /dev/null
20 +++ b/sys-auth/libnss-pgsql/libnss-pgsql-1.5.0_beta-r1.ebuild
21 @@ -0,0 +1,48 @@
22 +# Copyright 1999-2019 Gentoo Authors
23 +# Distributed under the terms of the GNU General Public License v2
24 +
25 +EAPI=7
26 +
27 +inherit autotools
28 +
29 +KEYWORDS="~amd64 ~x86"
30 +
31 +DESCRIPTION="Name Service Switch module for use with PostgreSQL"
32 +HOMEPAGE="http://pgfoundry.org/projects/sysauth/"
33 +
34 +MY_P="${P/_/-}"
35 +SRC_URI="http://pgfoundry.org/frs/download.php/1878/${MY_P}.tgz"
36 +S="${WORKDIR}/${MY_P}"
37 +
38 +LICENSE="GPL-2"
39 +SLOT="0"
40 +IUSE=""
41 +
42 +RDEPEND="dev-db/postgresql:*"
43 +DEPEND="${RDEPEND}
44 + app-text/xmlto"
45 +
46 +src_prepare() {
47 + eapply "${FILESDIR}/${P}-gentoo.patch"
48 + eapply_user
49 + eautoreconf
50 +}
51 +
52 +src_install() {
53 + emake DESTDIR="${D}" install
54 + find "${D}" -name '*.la' -delete || die
55 +
56 + dodoc AUTHORS ChangeLog NEWS README
57 + insinto /usr/share/doc/${PF}/examples
58 + doins conf/*
59 +}
60 +
61 +pkg_postinst() {
62 + elog "Next steps:"
63 + elog "1. Create the required tables in the database:"
64 + elog " $ psql a_database -f /usr/share/doc/${PF}/examples/dbschema.sql"
65 + elog "2. Create the configuration file '/etc/nss-pgsql.conf'"
66 + elog " You can copy the example from /usr/share/doc/${PF}/examples/nss-pgsql.conf"
67 + elog "3. Edit /etc/nsswitch.conf to use the NSS service 'pgsql'"
68 + elog " An example is available here: /usr/share/doc/${PF}/examples/nsswitch.conf"
69 +}