Compare commits
5 Commits
Author | SHA1 | Date | |
---|---|---|---|
|
e2ddcc48f7 | ||
|
7b6490cfcc | ||
|
4b1df610cc | ||
|
ed02277df9 | ||
|
3310446910 |
@ -6,7 +6,7 @@
|
||||
|
||||
Name: openvpn
|
||||
Version: 2.5.9
|
||||
Release: 2%{?dist}
|
||||
Release: 3%{?dist}
|
||||
Summary: A full-featured TLS VPN solution
|
||||
URL: https://community.openvpn.net/
|
||||
Source0: https://build.openvpn.net/downloads/releases/%{name}-%{version}.tar.gz
|
||||
@ -39,6 +39,7 @@ BuildRequires: systemd-devel
|
||||
%{?systemd_requires}
|
||||
Requires(pre): /usr/sbin/useradd
|
||||
Requires(pre): /usr/bin/getent
|
||||
Requires(pre): /usr/sbin/groupadd
|
||||
|
||||
%if 0%{?rhel} > 7 || 0%{?fedora} > 29
|
||||
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
|
||||
|
||||
%pre
|
||||
#!/bin/sh -x
|
||||
getent group openvpn &>/dev/null || groupadd -r openvpn
|
||||
getent passwd openvpn &>/dev/null || \
|
||||
/usr/sbin/useradd -r -g openvpn -s /sbin/nologin -c OpenVPN \
|
||||
@ -204,8 +206,15 @@ done
|
||||
|
||||
%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
|
||||
- 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
|
||||
- Update to upstream OpenVPN 2.5.9
|
||||
|
Loading…
Reference in New Issue
Block a user