cf22ae9
Summary:   NSS library for MySQL
cf22ae9
Name:      libnss-mysql
cf22ae9
Version:   1.5
89b406e
Release:   12%{?dist}
cf22ae9
Source0:   http://prdownloads.sourceforge.net/libnss-mysql/libnss-mysql-%{version}.tar.gz
cf22ae9
Patch1:    libnss-mysql-multiarch.patch
cf22ae9
URL:       http://libnss-mysql.sourceforge.net
cf22ae9
License:   GPLv2+
cf22ae9
Group:     System Environment/Base
cf22ae9
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
cf22ae9
cf22ae9
BuildRequires: mysql-devel, libtool, autoconf, automake
cf22ae9
cf22ae9
%description
cf22ae9
Store your UNIX user accounts in MySQL. "libnss-mysql" enables the following:
cf22ae9
cf22ae9
* System-wide authentication and name service using a MySQL database.
cf22ae9
  Applications do not need to be MySQL-aware or modified in any way.
cf22ae9
cf22ae9
* Storing authentication information in a database instead of text files.
cf22ae9
cf22ae9
* Creation of a single authentication database for multiple servers.
cf22ae9
  This is often referred to as the "Single Sign-on" problem.
cf22ae9
cf22ae9
* Writing data-modification routines (IE self-management web interface).
cf22ae9
cf22ae9
libnss-mysql is similar to NIS or LDAP. It provides the same centralized
cf22ae9
authentication service through a database. What does this mean? Username,
cf22ae9
uid, gid, password, etc comes from a MySQL database instead of
cf22ae9
/etc/password, /etc/shadow, and /etc/group. A user configured in MySQL will
cf22ae9
look and behave just like a user configured in /etc/passwd. Your
cf22ae9
applications such as ls, finger, sendmail, qmail, exim, postfix, proftpd,
cf22ae9
X, sshd, etc. will all 'see' these users!
cf22ae9
cf22ae9
%prep
cf22ae9
%setup -q -a 0
cf22ae9
%patch1 -p1
cf22ae9
cf22ae9
%build
1bbd212
libtoolize -f
1bbd212
autoreconf -f
cf22ae9
%configure
cf22ae9
make %{?_smp_mflags}
cf22ae9
# remove non linux samples
cf22ae9
rm -rf sample/freebsd sample/solaris
cf22ae9
cf22ae9
%install
cf22ae9
rm -rf $RPM_BUILD_ROOT
cf22ae9
mkdir -p $RPM_BUILD_ROOT/{etc,lib}
cf22ae9
make DESTDIR=$RPM_BUILD_ROOT install
cf22ae9
cf22ae9
%clean
cf22ae9
rm -rf $RPM_BUILD_ROOT
cf22ae9
cf22ae9
%post -p /sbin/ldconfig
cf22ae9
%postun -p /sbin/ldconfig
cf22ae9
cf22ae9
%files
cf22ae9
%defattr(-,root,root)
cf22ae9
%exclude %{_libdir}/libnss_mysql.la
cf22ae9
%exclude %{_libdir}/*.so
cf22ae9
%{_libdir}/*.so.*
cf22ae9
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/libnss-mysql.cfg
cf22ae9
%attr(0600,root,root) %config(noreplace) %{_sysconfdir}/libnss-mysql-root.cfg
cf22ae9
%doc README ChangeLog AUTHORS THANKS NEWS COPYING FAQ DEBUGGING UPGRADING TODO
cf22ae9
%doc sample
cf22ae9
cf22ae9
%changelog
89b406e
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.5-12
89b406e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
89b406e
b40094a
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.5-11
b40094a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
b40094a
c905d49
* Fri Jan 23 2009 Jan ONDREJ (SAL) <ondrejj(at)salstar.sk> - 1.5-10
1bbd212
- added libtoolize -f and readded autoreconf -f
1bbd212
1bbd212
* Fri Jan 23 2009 Jan ONDREJ (SAL) <ondrejj(at)salstar.sk> - 1.5-9
59b581f
- build fails with autoreconf, removed
59b581f
5ade0c2
* Fri Jan 23 2009 Jan ONDREJ (SAL) <ondrejj(at)salstar.sk> - 1.5-8
7e69581
- rebuild against new mysql
7e69581
30cafe7
* Sat Feb 9 2008 Jan ONDREJ (SAL) <ondrejj(at)salstar.sk> - 1.5-7
30cafe7
- rebuild against gcc4.3
30cafe7
cf22ae9
* Tue Nov 27 2007 Jan ONDREJ (SAL) <ondrejj(at)salstar.sk> - 1.5-6
cf22ae9
- updated buildroot according to packaging guidelines
cf22ae9
- removed comment before ldconfig
cf22ae9
- removed provides libnss_mysql (compatibility with my old packages)
cf22ae9
- autoreconf used
cf22ae9
- description bullets updated
cf22ae9
cf22ae9
* Sun Nov 18 2007 Jan ONDREJ (SAL) <ondrejj(at)salstar.sk> - 1.5-5
cf22ae9
- added a patch to build on x86_64 and may be other
cf22ae9
- regenerated autoconf to use added patch
cf22ae9
- provides cleanup
cf22ae9
cf22ae9
* Sun Nov 18 2007 Jan ONDREJ (SAL) <ondrejj(at)salstar.sk> - 1.5-4
cf22ae9
- buildroot changed
cf22ae9
cf22ae9
* Sat Nov 17 2007 Jan ONDREJ (SAL) <ondrejj(at)salstar.sk> - 1.5-3
cf22ae9
- removed devel files
cf22ae9
- removed non-linux documentation
cf22ae9
- added buildrequires
cf22ae9
cf22ae9
* Fri Aug 31 2007 Jan ONDREJ (SAL) <ondrejj(at)salstar.sk> - 1.5-2
cf22ae9
- Fedora updates
cf22ae9
cf22ae9
* Sat Sep 3 2005 Ben Goodwin <cinergi@users.sourceforge.net> - 1.5-1
cf22ae9
- Update to 1.4
cf22ae9
cf22ae9
* Sat Apr 10 2004 Ben Goodwin <cinergi@users.sourceforge.net> - 1.4-1
cf22ae9
- Update to 1.4
cf22ae9
cf22ae9
* Sat Apr 10 2004 Ben Goodwin <cinergi@users.sourceforge.net> - 1.3-1
cf22ae9
- Update to 1.3
cf22ae9
- Remove manual static re-link (1.3 relieves the need for this)
cf22ae9
- doc += TODO
cf22ae9
cf22ae9
* Sun Mar 28 2004 Ben Goodwin <cinergi@users.sourceforge.net> - 1.2-1
cf22ae9
- Update to 1.2
cf22ae9
cf22ae9
* Tue Mar 02 2004 Ben Goodwin <cinergi@users.sourceforge.net> - 1.1-1
cf22ae9
- s#exports.linux#.libs/libnss_mysql.ver#
cf22ae9
- Oops, libs/*.o not *.lo
cf22ae9
cf22ae9
* Sat Jul 12 2003 Ben Goodwin <cinergi@users.sourceforge.net> - 1.0-2
cf22ae9
- Link with version script
cf22ae9
cf22ae9
* Sat Jul 12 2003 Ben Goodwin <cinergi@users.sourceforge.net> - 1.0-1
cf22ae9
- Update to 1.0
cf22ae9
- Use *.lo instead of individual .lo names in re-link
cf22ae9
- Removed -Bgroup and --allow-shlib-undefined linker options
cf22ae9
cf22ae9
* Thu Jun 19 2003 Ben Goodwin <cinergi@users.sourceforge.net> - 0.9-2
cf22ae9
- Added ugly hack to relink some libraries static.  It will probably
cf22ae9
  break rpm builds on some hosts ...
cf22ae9
cf22ae9
* Wed Jun 18 2003 Ben Goodwin <cinergi@users.sourceforge.net> - 0.9-1
cf22ae9
- Update to 0.9
cf22ae9
cf22ae9
* Sun Dec 29 2002 Ben Goodwin <cinergi@users.sourceforge.net> - 0.8-1
cf22ae9
- Initial version