Compare commits

...

5 Commits
a9-exit ... a9

Author SHA1 Message Date
Sofia Boldyreva
e2ddcc48f7 Added line to the pre section, fix attempt 2 2023-12-11 11:59:01 +01:00
Sofia Boldyreva
7b6490cfcc Changes in the getent command 2023-12-08 14:10:26 +01:00
Sofia Boldyreva
4b1df610cc Version 2.5.9-3 with getent and exit 0 2023-12-06 19:02:16 +01:00
Sofia Boldyreva
ed02277df9 Version 2.5.9-3 with getent and exit 0 2023-12-06 18:41:17 +01:00
sboldyreva
3310446910 Изменил(а) на 'SPECS/openvpn.spec' 2023-09-07 16:37:29 +00:00

View File

@ -6,7 +6,7 @@
Name: openvpn Name: openvpn
Version: 2.5.9 Version: 2.5.9
Release: 2%{?dist} Release: 3%{?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,6 +39,7 @@ 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
@ -152,6 +153,7 @@ 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 \
@ -204,8 +206,15 @@ 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 exit 0 to %%pre - Added Requires(pre): /usr/bin/getent
* 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