2014-03-11 14:15:55 +00:00
|
|
|
Name: nss_wrapper
|
2016-03-23 14:50:20 +00:00
|
|
|
Version: 1.1.3
|
2017-07-27 01:19:25 +00:00
|
|
|
Release: 3%{?dist}
|
2014-03-11 14:15:55 +00:00
|
|
|
|
|
|
|
License: BSD
|
|
|
|
Summary: A wrapper for the user, group and hosts NSS API
|
2015-11-20 11:25:11 +00:00
|
|
|
Url: https://cwrap.org/
|
2014-03-11 14:15:55 +00:00
|
|
|
|
|
|
|
Source0: https://ftp.samba.org/pub/cwrap/%{name}-%{version}.tar.gz
|
|
|
|
|
|
|
|
BuildRequires: cmake
|
|
|
|
BuildRequires: libcmocka-devel
|
2016-06-24 07:49:01 +00:00
|
|
|
BuildRequires: perl-generators
|
2014-03-11 14:15:55 +00:00
|
|
|
|
2014-12-15 16:27:21 +00:00
|
|
|
Requires: cmake
|
2014-12-15 16:30:00 +00:00
|
|
|
Requires: pkgconfig
|
2014-12-15 16:27:21 +00:00
|
|
|
|
2014-03-11 14:15:55 +00:00
|
|
|
%description
|
|
|
|
There are projects which provide daemons needing to be able to create, modify
|
|
|
|
and delete Unix users. Or just switch user ids to interact with the system e.g.
|
|
|
|
a user space file server. To be able to test that you need the privilege to
|
|
|
|
modify the passwd and groups file. With nss_wrapper it is possible to define
|
|
|
|
your own passwd and groups file which will be used by software to act correctly
|
|
|
|
while under test.
|
|
|
|
|
|
|
|
If you have a client and server under test they normally use functions to
|
|
|
|
resolve network names to addresses (dns) or vice versa. The nss_wrappers allow
|
|
|
|
you to create a hosts file to setup name resolution for the addresses you use
|
|
|
|
with socket_wrapper.
|
|
|
|
|
|
|
|
To use it set the following environment variables:
|
|
|
|
|
|
|
|
LD_PRELOAD=libuid_wrapper.so
|
|
|
|
NSS_WRAPPER_PASSWD=/path/to/passwd
|
|
|
|
NSS_WRAPPER_GROUP=/path/to/group
|
|
|
|
NSS_WRAPPER_HOSTS=/path/to/host
|
|
|
|
|
|
|
|
This package doesn't have a devel package cause this project is for
|
|
|
|
development/testing.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q
|
|
|
|
|
|
|
|
%build
|
|
|
|
if test ! -e "obj"; then
|
|
|
|
mkdir obj
|
|
|
|
fi
|
|
|
|
pushd obj
|
|
|
|
%cmake \
|
|
|
|
-DUNIT_TESTING=ON \
|
|
|
|
%{_builddir}/%{name}-%{version}
|
|
|
|
|
|
|
|
make %{?_smp_mflags} VERBOSE=1
|
|
|
|
popd
|
|
|
|
|
|
|
|
%install
|
|
|
|
pushd obj
|
|
|
|
make DESTDIR=%{buildroot} install
|
|
|
|
popd
|
|
|
|
|
|
|
|
%post -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%postun -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%check
|
|
|
|
pushd obj
|
|
|
|
make test
|
|
|
|
popd
|
|
|
|
|
|
|
|
%files
|
|
|
|
%doc AUTHORS README ChangeLog COPYING
|
|
|
|
%{_bindir}/nss_wrapper.pl
|
|
|
|
%{_libdir}/libnss_wrapper.so*
|
2014-09-11 16:10:24 +00:00
|
|
|
%dir %{_libdir}/cmake/nss_wrapper
|
|
|
|
%{_libdir}/cmake/nss_wrapper/nss_wrapper-config-version.cmake
|
|
|
|
%{_libdir}/cmake/nss_wrapper/nss_wrapper-config.cmake
|
2014-03-11 14:15:55 +00:00
|
|
|
%{_libdir}/pkgconfig/nss_wrapper.pc
|
2014-09-11 16:10:24 +00:00
|
|
|
%{_mandir}/man1/nss_wrapper.1*
|
2014-03-11 14:15:55 +00:00
|
|
|
|
|
|
|
%changelog
|
2017-07-27 01:19:25 +00:00
|
|
|
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.3-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
|
|
|
|
2017-02-11 00:22:15 +00:00
|
|
|
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.3-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
|
|
|
|
2016-03-23 14:50:20 +00:00
|
|
|
* Wed Mar 23 2016 Andreas Schneider <asn@redhat.com> - 1.1.3-1
|
|
|
|
- Update to version 1.1.3
|
|
|
|
* Added support for BSD 'struct passwd' members
|
|
|
|
* Replaced strcpy() with snprintf()
|
|
|
|
* Fixed segfault while reloading hosts file
|
|
|
|
* Fixed issue where are not fault tolerant if an alias has already
|
|
|
|
been added
|
|
|
|
* Fixed nss_wrapper build on Solaris
|
|
|
|
|
2016-02-04 10:58:06 +00:00
|
|
|
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.0-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
|
|
|
|
2015-11-20 11:25:11 +00:00
|
|
|
* Fri Nov 20 2015 Andreas Schneider <asn@redhat.com> - 1.1.0-1
|
|
|
|
- Update to version 1.1.0
|
|
|
|
* Added support for initgroups()
|
|
|
|
* Added support for shadow files (getspnam(), etc.)
|
|
|
|
* Improved support for multi address handling in getaddrinfo()
|
|
|
|
* Improved file parser
|
|
|
|
* Fixed compilation on machines without IPv4 support
|
|
|
|
* Fixed service string sanity check in getaddrinfo() (bso #11501)
|
|
|
|
* Fixed AI_NUMERICHOST handling in getaddrinfo() (bso #11477)
|
|
|
|
|
2015-06-17 23:25:10 +00:00
|
|
|
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.3-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
|
|
|
|
2014-12-15 14:56:49 +00:00
|
|
|
* Mon Dec 15 2014 Michael Adam <madam@redhat.com> - 1.0.3-2
|
|
|
|
- Fix format of changelog entries.
|
2014-12-15 16:27:21 +00:00
|
|
|
- Require cmake.
|
2014-12-15 16:30:00 +00:00
|
|
|
- Don't own _libdir/pkgconfig, and require pkgconfig instead.
|
2014-12-15 14:56:49 +00:00
|
|
|
|
|
|
|
* Thu Sep 11 2014 Andreas Schneider <asn@redhat.com> - 1.0.3-1
|
2014-09-11 15:56:25 +00:00
|
|
|
- Update to version 1.0.3.
|
|
|
|
|
2014-08-17 12:25:25 +00:00
|
|
|
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.2-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
|
|
|
|
|
2014-06-07 15:13:08 +00:00
|
|
|
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.2-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
|
|
|
|
2014-12-15 14:56:49 +00:00
|
|
|
* Wed Apr 09 2014 Andreas Schneider <asn@redhat.com> - 1.0.2-1
|
2014-04-09 09:54:48 +00:00
|
|
|
- Update to version 1.0.2.
|
|
|
|
|
2014-12-15 14:56:49 +00:00
|
|
|
* Fri Mar 14 2014 Andreas Schneider <asn@redhat.com> - 1.0.1-3
|
2014-03-14 10:18:30 +00:00
|
|
|
- resolves: #1075932 - Fix segfault in 'getent hosts'.
|
|
|
|
|
2014-12-15 14:56:49 +00:00
|
|
|
* Tue Feb 11 2014 Andreas Schneider <asn@redhat.com> - 1.0.1-2
|
2014-03-11 14:15:55 +00:00
|
|
|
- resolves: #1060906 - Fedora package.
|
|
|
|
- Remove Group
|
|
|
|
- Remove glibc-devel build requirement
|
|
|
|
- Do not create a subpackage.
|
|
|
|
|
2014-12-15 14:56:49 +00:00
|
|
|
* Tue Feb 04 2014 Andreas Schneider <asn@redhat.com> - 1.0.1-1
|
2014-03-11 14:15:55 +00:00
|
|
|
- Update to version 1.0.1
|
|
|
|
* Added --libs to pkg-config.
|
|
|
|
* Added nss_wrapper-config.cmake
|
|
|
|
* Fixed a bug packaging the obj directory.
|
|
|
|
|
2014-12-15 14:56:49 +00:00
|
|
|
* Mon Feb 03 2014 Andreas Schneider <asn@redhat.com> - 1.0.0-1
|
2014-03-11 14:15:55 +00:00
|
|
|
- Initial version 1.0.0
|