[packages/pwdutils] - added no-nisplus patch (disable obsolete NIS+ functionality, requires getsecretkey() missing in li
qboosh
qboosh at pld-linux.org
Sat Dec 4 17:13:42 CET 2021
commit e64b87d0d1d1d7c79d3ac8f778f18f4fc2f33ad1
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Sat Dec 4 17:13:59 2021 +0100
- added no-nisplus patch (disable obsolete NIS+ functionality, requires getsecretkey() missing in libtirpc)
- drop oudated URLs, this project is abandoned
pwdutils-no-nisplus.patch | 35 +++++++++++++++++++++++++++++++++++
pwdutils.spec | 17 ++++++++++-------
2 files changed, 45 insertions(+), 7 deletions(-)
---
diff --git a/pwdutils.spec b/pwdutils.spec
index 4ce27dd..c815e8f 100644
--- a/pwdutils.spec
+++ b/pwdutils.spec
@@ -14,8 +14,9 @@ Version: 3.2.19
Release: 7
License: GPL v2
Group: Base
-#Source0: ftp://ftp.kernel.org/pub/linux/utils/net/NIS/%{name}-%{version}.tar.bz2
-Source0: http://www.linux-nis.org/download/pwdutils/%{name}-%{version}.tar.bz2
+#Source0: https://www.kernel.org/pub/linux/utils/net/NIS/%{name}-%{version}.tar.bz2
+#Source0: http://www.linux-nis.org/download/pwdutils/%{name}-%{version}.tar.bz2
+Source0: %{name}-%{version}.tar.bz2
# Source0-md5: 25a77a0ab376eacf24ad5eab7af4cdce
Source1: %{name}.useradd
Source2: %{name}.rpasswdd.init
@@ -37,7 +38,7 @@ Patch6: %{name}-libc-lock.patch
Patch7: %{name}-format-security.patch
Patch8: dlsym.patch
Patch9: build.patch
-URL: http://www.thkukuk.de/pam/pwdutils/
+Patch10: %{name}-no-nisplus.patch
%{?with_audit:BuildRequires: audit-libs-devel}
BuildRequires: autoconf
BuildRequires: automake >= 1:1.9
@@ -172,6 +173,7 @@ funkcjonalność tylko dla jednej grupy zarządzania PAM: zmiany haseł.
%patch7 -p1
%patch8 -p1
%patch9 -p1
+%patch10 -p1
%{__rm} po/stamp-po
@@ -183,14 +185,14 @@ funkcjonalność tylko dla jednej grupy zarządzania PAM: zmiany haseł.
%{__autoheader}
%{__automake}
%configure \
- %{?with_bioapi:CPPFLAGS="-I/usr/include/bioapi"} \
+ CPPFLAGS="%{rpmcppflags} %{?with_bioapi:-I/usr/include/bioapi}" \
%{!?with_bioapi:ac_cv_header_bioapi_h=no ac_cv_lib_bioapi100_BioAPI_Init=no} \
%{?with_audit:--enable-audit-plugin} \
%{!?with_gnutls:--disable-gnutls} \
- --%{?with_ldap:en}%{!?with_ldap:dis}able-ldap \
+ --enable-ldap%{!?with_ldap:=no} \
--enable-nls \
--enable-pam_rpasswd \
- --%{?with_selinux:en}%{!?with_selinux:dis}able-selinux \
+ --enable-selinux%{!?with_selinux:=no} \
--enable-slp \
--disable-rpath
%{__make}
@@ -198,10 +200,11 @@ funkcjonalność tylko dla jednej grupy zarządzania PAM: zmiany haseł.
%install
rm -rf $RPM_BUILD_ROOT
install -d $RPM_BUILD_ROOT/etc/{rc.d/init.d,pwdutils,security,skel/tmp}
+
%{__make} install \
DESTDIR=$RPM_BUILD_ROOT
-mv -f $RPM_BUILD_ROOT%{_sbindir}/*.local $RPM_BUILD_ROOT%{_sysconfdir}/pwdutils
+%{__mv} $RPM_BUILD_ROOT%{_sbindir}/*.local $RPM_BUILD_ROOT%{_sysconfdir}/pwdutils
install %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/default/useradd
install %{SOURCE2} $RPM_BUILD_ROOT/etc/rc.d/init.d/rpasswdd
install %{SOURCE3} $RPM_BUILD_ROOT%{_sysconfdir}/login.defs
diff --git a/pwdutils-no-nisplus.patch b/pwdutils-no-nisplus.patch
new file mode 100644
index 0000000..199dc9c
--- /dev/null
+++ b/pwdutils-no-nisplus.patch
@@ -0,0 +1,35 @@
+--- pwdutils-3.2.19/lib/passwd_nisplus.c.orig 2021-12-04 16:36:18.968083529 +0100
++++ pwdutils-3.2.19/lib/passwd_nisplus.c 2021-12-04 16:36:21.648069010 +0100
+@@ -19,6 +19,8 @@
+ #include <config.h>
+ #endif
+
++#ifdef USE_NISPLUS
++
+ #include <pwd.h>
+ #include <time.h>
+ #include <ctype.h>
+@@ -615,3 +617,5 @@ npd_upd_pwd (const char *domainname, use
+ else
+ return update_npd (obj, data);
+ }
++
++#endif
+--- pwdutils-3.2.19/lib/user.c.orig 2011-05-23 10:13:39.000000000 +0200
++++ pwdutils-3.2.19/lib/user.c 2021-12-04 16:35:44.674935978 +0100
+@@ -983,6 +983,7 @@ write_user_data (user_t *data, int is_lo
+ retval = -1;
+ }
+ }
++#ifdef USE_NISPLUS
+ else if (data->service == S_NISPLUS)
+ {
+ retval = npd_upd_pwd ("", data);
+@@ -992,6 +993,7 @@ write_user_data (user_t *data, int is_lo
+ retval = -1;
+ }
+ }
++#endif
+ #ifdef USE_LDAP
+ else if (data->service == S_LDAP)
+ {
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/pwdutils.git/commitdiff/e64b87d0d1d1d7c79d3ac8f778f18f4fc2f33ad1
More information about the pld-cvs-commit
mailing list