summaryrefslogtreecommitdiff
path: root/sys-auth/libnss-pgsql
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /sys-auth/libnss-pgsql
reinit the tree, so we can have metadata
Diffstat (limited to 'sys-auth/libnss-pgsql')
-rw-r--r--sys-auth/libnss-pgsql/Manifest10
-rw-r--r--sys-auth/libnss-pgsql/files/libnss-pgsql-1.4.0-gentoo.patch12
-rw-r--r--sys-auth/libnss-pgsql/files/libnss-pgsql-1.4.0-schema.patch22
-rw-r--r--sys-auth/libnss-pgsql/files/libnss-pgsql-1.5.0_beta-gentoo.patch44
-rw-r--r--sys-auth/libnss-pgsql/libnss-pgsql-1.4.0.ebuild54
-rw-r--r--sys-auth/libnss-pgsql/libnss-pgsql-1.5.0_beta.ebuild53
-rw-r--r--sys-auth/libnss-pgsql/metadata.xml8
7 files changed, 203 insertions, 0 deletions
diff --git a/sys-auth/libnss-pgsql/Manifest b/sys-auth/libnss-pgsql/Manifest
new file mode 100644
index 000000000000..c25eaf6266cf
--- /dev/null
+++ b/sys-auth/libnss-pgsql/Manifest
@@ -0,0 +1,10 @@
+AUX libnss-pgsql-1.4.0-gentoo.patch 398 SHA256 9c6d4f5cc7f0006ab8045a501ab07321bd4e873d278f517919f12381423cc7ae SHA512 a9865c1d5325937d02f5684f1e69238a3e6b5a2234a36d60c1825285fbe6ea2612a9254d3d5312f6c804b488ecefc9425745ce4ca2ca333fc874dc1ba6e7ad05 WHIRLPOOL a6ddcd699731c3ffe01aa81ba2c685a56232575690e14a12b3a48da833d50fbbd87536e071aa52912740adce31af910b78db584963869a3f0ae593a00c095878
+AUX libnss-pgsql-1.4.0-schema.patch 811 SHA256 0ff80679cde52330ff4decdd3e739817e0ab57ecfe425dc7adb117b7bbd2f5a6 SHA512 07f08fdec30b46426a27a01dccc0d01dbe90a1d535333b6260fdf515e3159325b48994a98e12d9eee7fcbe6b3f63c71a187a327e0dab26a91208ff5531daf346 WHIRLPOOL b967bdac1439d570ca9999417f10595cc5cb66497139a96d3b7e83d6a862e208387d0f68a7bb42f5ce90b3a221d0a1917b8e5928fe564c609cb8a0fb09ef1bd2
+AUX libnss-pgsql-1.5.0_beta-gentoo.patch 1479 SHA256 d03b1c30c8e547838e99015a1d3dc74356abde73487b3acaf2e41d83b5aff6d0 SHA512 b02b7cdfb711bf1b857c313df73c89544338917c0cccae2bedce43e85c0d6bfd3d15128c6024dad23f1ce23f9041e36f8c1644e3b5b24cbae9677b12c63e506b WHIRLPOOL e410dad981c2badc9fe13992bbeaf7c7c4acce30a5031befc29a121403cdb79e93a87aa9dc64570c87c74565fb2f5236dc1b1287ce76abb0c9c562b94ab24094
+DIST libnss-pgsql-1.4.0.tgz 244076 SHA256 776efc43b21323380f9b1cf32b4463eddd7050d19912418ea58b856b96c9ee25 SHA512 e7d0ea5198e44c1cad2c22f8346ff7198c028bf664fe5dbd23ec4d4a0ade32ba4aa5174eae071982a2cc385782d3d7e1a804650e4ed25c2b2b2fb5187bc8f5f8 WHIRLPOOL 79360c93cf6613dc11d5b3b1779717eab7ff0263119a9b56367b3d7e65d78dcf1f002a993c04553932939d89b4f3cb79e54fde32e7356cb3664ecd43e63728b3
+DIST libnss-pgsql-1.5.0-beta.tgz 305543 SHA256 84808c47fd21a09e2c487a0efc72cc18b352275082335be8c6de39d325e6c000 SHA512 cabc09337841aadb27790fb66bb55f7da70b52d4e28c717d83ad63b440ac65d8e72505e602b1324d8091ace8b9fe90510492ce0dec17148b74288a2524726cc8 WHIRLPOOL 34f4c79b738c96c07be2cc562b63a127c63428c32aa811e1e42d272845736ab1385427e13472349a5a181caa2927c05164950491106dfd8e0d1cb636ce37901a
+EBUILD libnss-pgsql-1.4.0.ebuild 1488 SHA256 cbe01294e20bbd631e97925cfacda61aeab7e3fcbbd6fa419d27d7f23a40096e SHA512 eb85ca9e04d1a1df7546917e494c93fb342292008d6b67dd71eaaa684805f9f410aeb65176cfeccda6e68ab4ea5275174a89ec3268a1048d8d720eeede9b2ec4 WHIRLPOOL ba2a299526191cea4d10458ad0951643d72a43e9bdb916899889b154750005b27ae2bfe98e7d06d8b985b3d267df500d3fe6aba3c55e9145c918a5e4b0457639
+EBUILD libnss-pgsql-1.5.0_beta.ebuild 1371 SHA256 3b55358411b8bd07e0a48ce8c47df318bc9dd0ff5de30b87b448ada2e6b6a2a3 SHA512 b9fd2fef2337c1f79b2de9fdba54b84725db983c71e098d7347aaec9df38fb18e20a7c09c6c24143b02f4f85b8a0f94c286b5353c142e929ead4d138244c7406 WHIRLPOOL b22799031f9b9a2431da326bb761fd11f5ca3a2bc541f61039e46a421e74d2f814e5afccfd6b210423cde0ec6b471579ce605b0c5048171955b180f6e9b1e1df
+MISC ChangeLog 2645 SHA256 e5be11988b16b5781d3bd919a3ed436b5479112cd7d4a608697bc98433949d30 SHA512 19805e4e0f79a94aee50f40b7036e2e1909f4c3afbc5ae909d28560550d4dbf3430642f9c046df7457f3ec690099a60562c3561891e76b3ed1284b43c3912838 WHIRLPOOL 8b80b3278a759bd1d37cf78330f6da16b9ca9a8bc0b3d3b20f1841e61fa08d727b90a7243b7449e64c22e5ac6632e1ae4a519f1f84aa6497f3d19b5d2fb8996e
+MISC ChangeLog-2015 2553 SHA256 3e52dd9a9cae61e3cba1cd1cb09056a68b600057dbad06df425e12fca6fcc5c3 SHA512 e7f00758ea75a21bad4a5530574885bd5bf87489c87c9b7686cf95f18e9baa616ce308de44df5f5d089fdd4513a8cb7e41765645825385bb0851b6a7fa446aaf WHIRLPOOL 644afb60137aad0649e52c437c0fda8bcc8b1dc31626b83873336e3b5f43f0cf154a61fbd90e7241c431b2fa9ea57474f7a0cb5118523b5e6ad8f82262bbd9b2
+MISC metadata.xml 276 SHA256 209456996c1a24f1f3f20ac3ae0bd554c5fe6b4f80419f5ddd3b0629c7c91705 SHA512 9baebf6fa9794fac7cdd2157f9bddcf341cf8cbddcc63f24db64322a662eddb6ff9940d85b2f9fc7809af0554ae6a038b7916c5ccea7ccce30ff7bf6aca33db1 WHIRLPOOL 9854a94d916d1666359889b827e010413840aa8f50ed01658ed3ac5d48edcab7b1086b3f2a02b83ac4e7114c13c62bef2def43f7c92e876a5390a26af80ee2cd
diff --git a/sys-auth/libnss-pgsql/files/libnss-pgsql-1.4.0-gentoo.patch b/sys-auth/libnss-pgsql/files/libnss-pgsql-1.4.0-gentoo.patch
new file mode 100644
index 000000000000..7a2a938b5c78
--- /dev/null
+++ b/sys-auth/libnss-pgsql/files/libnss-pgsql-1.4.0-gentoo.patch
@@ -0,0 +1,12 @@
+diff -Nur libnss-pgsql-1.4.0.orig/src/backend.c libnss-pgsql-1.4.0/src/backend.c
+--- libnss-pgsql-1.4.0.orig/src/backend.c 2001-10-18 13:32:52.000000000 +0200
++++ libnss-pgsql-1.4.0/src/backend.c 2003-11-28 16:14:38.000000000 +0100
+@@ -9,7 +9,7 @@
+ */
+
+ #include "nss-pgsql.h"
+-#include <postgresql/libpq-fe.h>
++#include <libpq-fe.h>
+ #include <stdlib.h>
+ #include <string.h>
+ #include <stdio.h>
diff --git a/sys-auth/libnss-pgsql/files/libnss-pgsql-1.4.0-schema.patch b/sys-auth/libnss-pgsql/files/libnss-pgsql-1.4.0-schema.patch
new file mode 100644
index 000000000000..6d2b338f45cf
--- /dev/null
+++ b/sys-auth/libnss-pgsql/files/libnss-pgsql-1.4.0-schema.patch
@@ -0,0 +1,22 @@
+--- conf/dbschema.sql.orig 2005-05-04 04:27:51.000000000 +0200
++++ conf/dbschema.sql 2006-11-11 22:37:01.000000000 +0100
+@@ -19,15 +19,16 @@
+ "gecos" character varying(128),
+ "homedir" character varying(256) NOT NULL,
+ "shell" character varying DEFAULT '/bin/bash' NOT NULL,
+- PRIMARY KEY ("username")
++ PRIMARY KEY ("username"),
++ UNIQUE ("uid")
+ );
+
+ CREATE TABLE "usergroups" (
+ "gid" int4 NOT NULL,
+ "uid" int4 NOT NULL,
+ PRIMARY KEY ("gid", "uid"),
+- CONSTRAINT "ug_gid_fkey" FOREIGN KEY ("gid") REFERENCES "groups"("gid"),
+- CONSTRAINT "ug_uid_fkey" FOREIGN KEY ("uid") REFERENCES "accounts"("uid")
++ CONSTRAINT "ug_gid_fkey" FOREIGN KEY ("gid") REFERENCES "group_table"("gid"),
++ CONSTRAINT "ug_uid_fkey" FOREIGN KEY ("uid") REFERENCES "passwd_table"("uid")
+ );
+
+ CREATE TABLE "shadow_table" (
diff --git a/sys-auth/libnss-pgsql/files/libnss-pgsql-1.5.0_beta-gentoo.patch b/sys-auth/libnss-pgsql/files/libnss-pgsql-1.5.0_beta-gentoo.patch
new file mode 100644
index 000000000000..69aefa8c6064
--- /dev/null
+++ b/sys-auth/libnss-pgsql/files/libnss-pgsql-1.5.0_beta-gentoo.patch
@@ -0,0 +1,44 @@
+Index: libnss-pgsql-1.5.0-beta/src/backend.c
+===================================================================
+--- libnss-pgsql-1.5.0-beta.orig/src/backend.c
++++ libnss-pgsql-1.5.0-beta/src/backend.c
+@@ -11,7 +11,7 @@
+ */
+
+ #include "nss-pgsql.h"
+-#include <postgresql/libpq-fe.h>
++#include <libpq-fe.h>
+ #include <stdlib.h>
+ #include <string.h>
+ #include <stdio.h>
+Index: libnss-pgsql-1.5.0-beta/doc/Makefile.am
+===================================================================
+--- libnss-pgsql-1.5.0-beta.orig/doc/Makefile.am
++++ libnss-pgsql-1.5.0-beta/doc/Makefile.am
+@@ -1,14 +1,6 @@
+ TARGETS = nss-pgsql.html
+
+-all html: $(TARGETS)
+-
+-install-data-local: $(TARGETS)
+- $(mkinstalldirs) $(DESTDIR)$(docdir)
+- $(INSTALL_DATA) nss-pgsql.html $(DESTDIR)$(docdir)
+- $(INSTALL_DATA) $(srcdir)/caution.png $(DESTDIR)$(docdir)
+-
+-clean-local:
+- rm -f $(TARGETS)
++html_DATA = $(TARGETS) caution.png
+
+ nss-pgsql.html: config.xsl nss-pgsql.xml
+ xmlto xhtml-nochunks -m $(srcdir)/config.xsl $(srcdir)/nss-pgsql.xml
+Index: libnss-pgsql-1.5.0-beta/src/Makefile.am
+===================================================================
+--- libnss-pgsql-1.5.0-beta.orig/src/Makefile.am
++++ libnss-pgsql-1.5.0-beta/src/Makefile.am
+@@ -1,5 +1,5 @@
+ lib_LTLIBRARIES = libnss_pgsql.la
+ libnss_pgsql_la_SOURCES = interface.c config.c backend.c util.c
+-libnss_pgsql_la_LDFLAGS = -module -version-info 2
++libnss_pgsql_la_LDFLAGS = -module -version-info 2 -shared
+ EXTRA_DIST = nss-pgsql.h
+
diff --git a/sys-auth/libnss-pgsql/libnss-pgsql-1.4.0.ebuild b/sys-auth/libnss-pgsql/libnss-pgsql-1.4.0.ebuild
new file mode 100644
index 000000000000..00300cdb9c3e
--- /dev/null
+++ b/sys-auth/libnss-pgsql/libnss-pgsql-1.4.0.ebuild
@@ -0,0 +1,54 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+inherit autotools eutils multilib
+
+KEYWORDS="~x86"
+
+DESCRIPTION="Name Service Switch module for use with PostgreSQL"
+HOMEPAGE="http://pgfoundry.org/projects/sysauth/"
+SRC_URI="http://pgfoundry.org/frs/download.php/605/${P}.tgz"
+LICENSE="GPL-2"
+SLOT="0"
+IUSE=""
+
+DEPEND="dev-db/postgresql
+ app-text/xmlto"
+RDEPEND="${DEPEND}"
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+ epatch "${FILESDIR}/${P}-gentoo.patch"
+ epatch "${FILESDIR}/${P}-schema.patch"
+ eautoreconf
+}
+
+src_compile() {
+ econf \
+ --libdir=/lib \
+ --with-docdir=/usr/share/doc/${PF}/html || die "econf failed"
+ emake || die "emake failed"
+}
+
+src_install() {
+ insinto /$(get_libdir)
+ doins src/.libs/libnss_pgsql.so.2.0.0
+ dosym libnss_pgsql.so.2.0.0 /lib/libnss_pgsql.so.2
+ dosym libnss_pgsql.so.2.0.0 /lib/libnss_pgsql.so
+
+ dodoc AUTHORS ChangeLog NEWS README
+ dohtml doc/*.{png,html}
+ insinto /usr/share/doc/${PF}/examples
+ doins conf/*
+}
+
+pkg_postinst() {
+ elog "Next steps:"
+ elog "1. Create the required tables in the database:"
+ elog " $ psql a_database -f ${ROOT}usr/share/${PN}/conf/dbschema.sql"
+ elog "2. Create the configuration file '/etc/nss-pgsql.conf'"
+ elog " You can copy the example from ${ROOT}usr/share/doc/${PF}/examples/nss-pgsql.conf"
+ elog "3. Edit /etc/nsswitch.conf to use the NSS service 'pgsql'"
+ elog " An example is available here: ${ROOT}usr/share/doc/${PF}/examples/nsswitch.conf"
+}
diff --git a/sys-auth/libnss-pgsql/libnss-pgsql-1.5.0_beta.ebuild b/sys-auth/libnss-pgsql/libnss-pgsql-1.5.0_beta.ebuild
new file mode 100644
index 000000000000..5a7e23e6b5d2
--- /dev/null
+++ b/sys-auth/libnss-pgsql/libnss-pgsql-1.5.0_beta.ebuild
@@ -0,0 +1,53 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+inherit autotools eutils multilib
+
+KEYWORDS="~amd64 ~x86"
+
+DESCRIPTION="Name Service Switch module for use with PostgreSQL"
+HOMEPAGE="http://pgfoundry.org/projects/sysauth/"
+
+MY_P="${P/_/-}"
+SRC_URI="http://pgfoundry.org/frs/download.php/1878/${MY_P}.tgz"
+S="${WORKDIR}/${MY_P}"
+
+LICENSE="GPL-2"
+SLOT="0"
+IUSE=""
+
+RDEPEND="dev-db/postgresql"
+DEPEND="${RDEPEND}
+ app-text/xmlto"
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+ epatch "${FILESDIR}/${P}-gentoo.patch"
+ eautoreconf
+}
+
+src_compile() {
+ econf \
+ --htmldir=/usr/share/doc/${PF}/html || die "econf failed"
+ emake || die "emake failed"
+}
+
+src_install() {
+ emake DESTDIR="${D}" install || die
+ find "${D}" -name '*.la' -delete || die
+
+ dodoc AUTHORS ChangeLog NEWS README || die
+ insinto /usr/share/doc/${PF}/examples
+ doins conf/* || die
+}
+
+pkg_postinst() {
+ elog "Next steps:"
+ elog "1. Create the required tables in the database:"
+ elog " $ psql a_database -f /usr/share/doc/${PF}/examples/dbschema.sql"
+ elog "2. Create the configuration file '/etc/nss-pgsql.conf'"
+ elog " You can copy the example from /usr/share/doc/${PF}/examples/nss-pgsql.conf"
+ elog "3. Edit /etc/nsswitch.conf to use the NSS service 'pgsql'"
+ elog " An example is available here: /usr/share/doc/${PF}/examples/nsswitch.conf"
+}
diff --git a/sys-auth/libnss-pgsql/metadata.xml b/sys-auth/libnss-pgsql/metadata.xml
new file mode 100644
index 000000000000..3ff7fac5a02a
--- /dev/null
+++ b/sys-auth/libnss-pgsql/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<maintainer type="project">
+ <email>pgsql-bugs@gentoo.org</email>
+ <name>PostgreSQL and Related Package Development</name>
+</maintainer>
+</pkgmetadata>