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