Summary: NSS library for postgresql Name: nss_postgresql Version: 0.6.1 Release: %mkrel 10 Source0: http://ovh.dl.sourceforge.net/sourceforge/authpgsql/%{name}-%{version}.tar.bz2 Patch0: nss_postgresql_include_path.patch Patch1: nss_postgresql_lock.patch License: GPL Group: System/Libraries Url: http://www.sourceforge.net/projects/authpgsql BuildRequires: libpq-devel BuildRequires: postgresql-devel %description This library provide the capability to have all classical users definitions in a PostgreSQL server instead than in the old plain text files in /etc passwd,group,shadow. All is done without any trick or something like, simply connecting to the nss (name servica switch) facility offered by the libc (2.x) as nis and nisplus already did. All without recompiling or touching any application configurations. Just compile and install nss_postgresql library and set up a PostgreSQL server. %prep %setup -q %patch0 -p0 -b .path_include %patch1 -p0 -b .lock %build %make CFLAGS="%optflags -fPIC" %install mkdir -p %buildroot/{%_lib,%_sysconfdir} install -m755 libnss_pgsql.so.2 %buildroot/%_lib/libnss_pgsql.so.2 install -m644 nss-pgsql.conf %buildroot/%_sysconfdir/nss-pgsql.conf install -m600 nss-pgsql-root.conf %buildroot/%_sysconfdir/nss-pgsql-root.conf %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %files %doc sampleschema README* TODO AUTHORS /%_lib/libnss_pgsql.so.2 %config(noreplace) %_sysconfdir/*.conf %changelog * Tue Nov 25 2014 cjw <cjw> 0.6.1-10.mga5 + Revision: 799052 - rebuild against postgresql9.4 * Wed Oct 15 2014 umeabot <umeabot> 0.6.1-9.mga5 + Revision: 748750 - Second Mageia 5 Mass Rebuild * Tue Sep 16 2014 umeabot <umeabot> 0.6.1-8.mga5 + Revision: 682943 - Mageia 5 Mass Rebuild * Fri Oct 18 2013 umeabot <umeabot> 0.6.1-7.mga4 + Revision: 508345 - Mageia 4 Mass Rebuild - Mass Rebuild - https://wiki.mageia.org/en/Feature:Mageia3MassRebuild * Mon Aug 13 2012 nanardon <nanardon> 0.6.1-5.mga3 + Revision: 281184 - patch1: use pthread lock instead libc one (thx misc) * Sat Aug 11 2012 nanardon <nanardon> 0.6.1-4.mga3 + Revision: 280549 - imported package nss_postgresql