From 81c1524a98fcf839e975a3dc383766006a083dee Mon Sep 17 00:00:00 2001 From: CentOS Sources Date: Tue, 7 May 2019 05:33:29 -0400 Subject: [PATCH] import nss_nis-3.0-8.el8 --- .gitignore | 1 + .nss_nis.metadata | 1 + SOURCES/nss_nis.conf | 3 ++ SPECS/nss_nis.spec | 70 ++++++++++++++++++++++++++++++++++++++++++++ 4 files changed, 75 insertions(+) create mode 100644 .gitignore create mode 100644 .nss_nis.metadata create mode 100644 SOURCES/nss_nis.conf create mode 100644 SPECS/nss_nis.spec diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..b425ea3 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/v3.0.tar.gz diff --git a/.nss_nis.metadata b/.nss_nis.metadata new file mode 100644 index 0000000..789ab78 --- /dev/null +++ b/.nss_nis.metadata @@ -0,0 +1 @@ +e2149cd227975e94378901a0daffd00c66b6167d SOURCES/v3.0.tar.gz diff --git a/SOURCES/nss_nis.conf b/SOURCES/nss_nis.conf new file mode 100644 index 0000000..a0e74f7 --- /dev/null +++ b/SOURCES/nss_nis.conf @@ -0,0 +1,3 @@ +[Service] +IPAddressAllow=any +RestrictAddressFamilies=AF_UNIX AF_NETLINK AF_INET AF_INET6 diff --git a/SPECS/nss_nis.spec b/SPECS/nss_nis.spec new file mode 100644 index 0000000..8fb2acb --- /dev/null +++ b/SPECS/nss_nis.spec @@ -0,0 +1,70 @@ +Name: nss_nis +Version: 3.0 +Release: 8%{?dist} +Summary: Name Service Switch (NSS) module using NIS +License: LGPLv2+ +Group: System Environment/Base +Url: https://github.com/thkukuk/libnss_nis +Source: https://github.com/thkukuk/libnss_nis/archive/v%{version}.tar.gz + +# https://github.com/systemd/systemd/issues/7074 +Source2: nss_nis.conf + +BuildRequires: libnsl2-devel +BuildRequires: libtirpc-devel +BuildRequires: autoconf, automake, libtool +BuildRequires: systemd + + +%description +The nss_nis Name Service Switch module uses the Network Information System (NIS) +to obtain user, group, host name, and other data. + +%prep +%setup -q -n libnss_nis-%{version} + +%build + +export CFLAGS="%{optflags}" + +autoreconf -fiv + +%configure --libdir=%{_libdir} --includedir=%{_includedir} +%make_build + +%install +%make_install +rm %{buildroot}/%{_libdir}/libnss_nis.{a,la} +rm %{buildroot}/%{_libdir}/libnss_nis.so + +install -D -m 644 %{SOURCE2} %{buildroot}/%{_unitdir}/systemd-logind.service.d/nss_nis.conf + +%check +make check + +%post -p /sbin/ldconfig +%postun -p /sbin/ldconfig + + +%files +%{_libdir}/libnss_nis.so.2 +%{_libdir}/libnss_nis.so.2.0.0 +%{_unitdir}/systemd-logind.service.d/* + + +%license COPYING + +%changelog +* Mon Jan 28 2019 Matej Mužila 3.0-8 +- Add systemd-logind snippet (RestrictAddressFamilies) + Resolves: #1647911 + +* Wed Aug 1 2018 Matej Mužila - 3.0-7 +- BuildRequire systemd + +* Wed Aug 1 2018 Matej Mužila - 3.0-6 +- Add systemd-logind snippet (IPAddressAllow=any) +- Resolves: #1574959 + +* Tue Jan 30 2018 Matej Mužila - 3.0-3 +- Inital release