Compare commits

..

No commits in common. "a9" and "pre-exit" have entirely different histories.
a9 ... pre-exit

View File

@ -6,7 +6,7 @@
Name: openvpn Name: openvpn
Version: 2.5.9 Version: 2.5.9
Release: 3%{?dist} Release: 2%{?dist}
Summary: A full-featured TLS VPN solution Summary: A full-featured TLS VPN solution
URL: https://community.openvpn.net/ URL: https://community.openvpn.net/
Source0: https://build.openvpn.net/downloads/releases/%{name}-%{version}.tar.gz Source0: https://build.openvpn.net/downloads/releases/%{name}-%{version}.tar.gz
@ -39,7 +39,6 @@ BuildRequires: systemd-devel
%{?systemd_requires} %{?systemd_requires}
Requires(pre): /usr/sbin/useradd Requires(pre): /usr/sbin/useradd
Requires(pre): /usr/bin/getent Requires(pre): /usr/bin/getent
Requires(pre): /usr/sbin/groupadd
%if 0%{?rhel} > 7 || 0%{?fedora} > 29 %if 0%{?rhel} > 7 || 0%{?fedora} > 29
BuildRequires: python3-docutils BuildRequires: python3-docutils
@ -153,7 +152,6 @@ rm -f $RPM_BUILD_ROOT%{_pkgdocdir}/contrib/multilevel-init.patch
rm -rf $RPM_BUILD_ROOT%{_pkgdocdir}/sample/sample-keys rm -rf $RPM_BUILD_ROOT%{_pkgdocdir}/sample/sample-keys
%pre %pre
#!/bin/sh -x
getent group openvpn &>/dev/null || groupadd -r openvpn getent group openvpn &>/dev/null || groupadd -r openvpn
getent passwd openvpn &>/dev/null || \ getent passwd openvpn &>/dev/null || \
/usr/sbin/useradd -r -g openvpn -s /sbin/nologin -c OpenVPN \ /usr/sbin/useradd -r -g openvpn -s /sbin/nologin -c OpenVPN \
@ -206,15 +204,8 @@ done
%changelog %changelog
* Fri Dec 11 2023 Elkhan Mammadli <elkhan.mammadli@protonmail.com> - 2.5.9-3
- Added line to the %%pre section
* Wed Dec 6 2023 Elkhan Mammadli <elkhan.mammadli@protonmail.com> - 2.5.9-3
- Added Requires(pre): /usr/sbin/groupadd
- Added exit 0 to the %%pre section
* Thu Sep 7 2023 Elkhan Mammadli <elkhan.mammadli@protonmail.com> - 2.5.9-2 * Thu Sep 7 2023 Elkhan Mammadli <elkhan.mammadli@protonmail.com> - 2.5.9-2
- Added Requires(pre): /usr/bin/getent - Added Requires(pre): /usr/bin/getent, added exit 0 to %%pre
* Thu Feb 16 2023 David Sommerseth <davids@openvpn.net> - 2.5.9-1 * Thu Feb 16 2023 David Sommerseth <davids@openvpn.net> - 2.5.9-1
- Update to upstream OpenVPN 2.5.9 - Update to upstream OpenVPN 2.5.9