Compare commits

..

20 commits

Author SHA1 Message Date
Packit
b2425a8560 Update to 1.4.0 upstream release
- Resolves: rhbz#2427015

Upstream tag: 1.4.0
Upstream commit: 5f5ac6fe

Commit authored by Packit automation (https://packit.dev/)
2026-01-04 15:16:00 +00:00
Nikos Mavrogiannopoulos
ce9770cf6f Depend on llhttp from epel9 2024-05-08 10:10:30 +02:00
Nikos Mavrogiannopoulos
b900866285 removed http-parser dependency
Signed-off-by: Nikos Mavrogiannopoulos <n.mavrogiannopoulos@gmail.com>
2024-05-08 09:57:05 +02:00
Nikos Mavrogiannopoulos
9411bfddbb updated URI and added bundled
Signed-off-by: Nikos Mavrogiannopoulos <n.mavrogiannopoulos@gmail.com>
2024-05-06 08:34:11 +02:00
Packit
c4b1aba35b Update to 1.3.0 upstream release
- Resolves: rhbz#2279186

Upstream tag: 1.3.0
Upstream commit: 92dba6e4

Commit authored by Packit automation (https://packit.dev/)
2024-05-05 20:20:07 +00:00
Nikos Mavrogiannopoulos
d688442e67 spec: added ipcalc and updated the location of ocserv-fw
Signed-off-by: Nikos Mavrogiannopoulos <n.mavrogiannopoulos@gmail.com>
2024-01-25 09:16:08 +01:00
Packit
97c153bd43 [packit] 1.2.4 upstream release
Upstream tag: 1.2.4
Upstream commit: 7ced730f
2024-01-24 22:32:17 +00:00
Nikos Mavrogiannopoulos
a84f3ca3a7 Added packit config 2023-09-22 14:44:26 +02:00
Packit
a6589987fd [packit] 1.2.2 upstream release
Upstream tag: 1.2.2
Upstream commit: f6164756
2023-09-21 19:44:33 +00:00
Nikos Mavrogiannopoulos
32b4c1e85e config: increased log level to 3
Signed-off-by: Nikos Mavrogiannopoulos <n.mavrogiannopoulos@gmail.com>
2023-08-29 11:00:45 +02:00
Nikos Mavrogiannopoulos
9808a6f48f make check: no longer use xfail for missing file 2023-08-23 09:57:09 +02:00
Packit
5ceb96715a [packit] 1.2.1 upstream release
Upstream tag: 1.2.1
Upstream commit: 895a23f3

If you need to do any change in this pull request, you need to locally fetch the source branch of it and push it (with a fix) to your fork (as it is not possible to push to the branch created in the Packit’s fork):
```
git fetch https://src.fedoraproject.org/forks/packit/rpms/ocserv.git refs/heads/*:refs/remotes/packit/*
git checkout packit/1.2.1-epel9-update-pull_from_upstream
```
2023-08-23 07:25:56 +00:00
Nikos Mavrogiannopoulos
1699efe272 corrected download link 2023-08-23 09:21:27 +02:00
Nikos Mavrogiannopoulos
e054a61e96 updated URIs of source 2023-08-22 19:33:29 +02:00
Nikos Mavrogiannopoulos
4335142cbc use %systemd_postun_with_restart
Signed-off-by: Nikos Mavrogiannopoulos <n.mavrogiannopoulos@gmail.com>
2023-08-15 19:55:54 +02:00
Nikos Mavrogiannopoulos
6894bf2ad7 Updated to 1.2.0 2023-07-11 18:32:49 +02:00
Nikos Mavrogiannopoulos
025342a309 use %autorelease and %autochangelog 2023-07-11 18:22:22 +02:00
Nikos Mavrogiannopoulos
33bcc9a3c8 Backported fixes for expired certificates 2023-06-22 12:27:36 +02:00
Nikos Mavrogiannopoulos
3d604603d9 updated to 1.1.7 2023-05-07 14:51:47 +02:00
Nikos Mavrogiannopoulos
60aa82821b Updated to 1.1.6 2022-02-17 13:14:17 +01:00
2 changed files with 9 additions and 29 deletions

View file

@ -1,25 +1,9 @@
#!/bin/sh
#default key type:rsa
KEY_TYPE="rsa"
#check key type 'rsa', 'rsa-pss', 'dsa', 'ecdsa', 'ed25519, 'ed448', 'x25519', and 'x448'
if [ $# -gt 0 ]; then
case "$1" in
rsa|rsa-pss|dsa|ecdsa|ed25519|ed448|x25519|x448)
KEY_TYPE="$1"
;;
*)
echo "Usage: $0 [rsa|rsa-pss|dsa|ecdsa|ed25519|ed448|x25519|x448]"
echo "Default key type: rsa"
exit 1
;;
esac
fi
#generate CA certificate/key
if test ! -f /etc/pki/ocserv/private/ca.key;then
mkdir -p /etc/pki/ocserv/private
certtool --generate-privkey --key-type=$KEY_TYPE --outfile /etc/pki/ocserv/private/ca.key >/dev/null 2>&1
certtool --generate-privkey --outfile /etc/pki/ocserv/private/ca.key >/dev/null 2>&1
echo "cn=`hostname -f` CA" >/etc/pki/ocserv/ca.tmpl
echo "expiration_days=-1" >>/etc/pki/ocserv/ca.tmpl
echo "serial=1" >>/etc/pki/ocserv/ca.tmpl
@ -33,7 +17,7 @@ fi
#generate server certificate/key
if test ! -f /etc/pki/ocserv/private/server.key;then
certtool --generate-privkey --key-type=$KEY_TYPE --outfile /etc/pki/ocserv/private/server.key >/dev/null 2>&1
certtool --generate-privkey --outfile /etc/pki/ocserv/private/server.key >/dev/null 2>&1
echo "cn=`hostname -f`" >/etc/pki/ocserv/server.tmpl
echo "serial=2" >>/etc/pki/ocserv/server.tmpl
echo "expiration_days=-1" >>/etc/pki/ocserv/server.tmpl

View file

@ -25,8 +25,8 @@ Summary: OpenConnect SSL VPN server
# For a breakdown of the licensing, see PACKAGE-LICENSING
# To simplify licenses LGPLv2+ files have been promoted to GPLv2+.
License: GPL-2.0-or-later AND BSD-3-Clause AND MIT AND CC0-1.0
URL: https://ocserv.openconnect-vpn.net/
License: GPLv2+ and BSD and MIT and CC0
URL: https://gui.openconnect-vpn.net
Source0: https://www.infradead.org/ocserv/download/%{name}-%{version}.tar.xz
Source1: https://www.infradead.org/ocserv/download/%{name}-%{version}.tar.xz.sig
Source2: gpgkey-1F42418905D8206AA754CCDC29EE58B996865171.gpg
@ -43,7 +43,6 @@ Source11: ocserv.init
# http://git.infradead.org/ocserv.git/commitdiff/7d70006a2dbddf783213f1856374bacc74217e09
BuildRequires: make
BuildRequires: libxcrypt-devel
BuildRequires: gcc
%if 0%{?rhel} && 0%{?rhel} <= 6
BuildRequires: gnutls30-devel
@ -101,6 +100,7 @@ BuildRequires: rubygem-ronn-ng
Recommends: gnutls-utils
Recommends: iproute
Recommends: pam
Requires(pre): shadow-utils
%if %{use_systemd}
Requires(post): systemd
Requires(preun): systemd
@ -141,11 +141,6 @@ sed -i 's/run-as-group = nogroup/run-as-group = nobody/g' tests/data/*.config
echo "int main() { return 77; }" > tests/valid-hostname.c
%endif
# Create a sysusers.d config file
cat >ocserv.sysusers.conf <<EOF
u ocserv - 'ocserv' %{_localstatedir}/lib/ocserv -
EOF
%build
%if 0%{?rhel} && 0%{?rhel} <= 6
@ -176,6 +171,10 @@ autoreconf -fvi
make %{?_smp_mflags}
%pre
getent group ocserv &>/dev/null || groupadd -r ocserv
getent passwd ocserv &>/dev/null || \
/usr/sbin/useradd -r -g ocserv -s /sbin/nologin -c ocserv \
-d %{_localstatedir}/lib/ocserv ocserv
mkdir -p %{_sysconfdir}/pki/ocserv/public
mkdir -p -m 700 %{_sysconfdir}/pki/ocserv/private
mkdir -p %{_sysconfdir}/pki/ocserv/cacerts
@ -226,8 +225,6 @@ install -D -m 0755 %{SOURCE11} %{buildroot}/%{_initrddir}/%{name}
%make_install
install -m0644 -D ocserv.sysusers.conf %{buildroot}%{_sysusersdir}/ocserv.conf
%files
%defattr(-,root,root,-)
@ -258,7 +255,6 @@ install -m0644 -D ocserv.sysusers.conf %{buildroot}%{_sysusersdir}/ocserv.conf
%else
%{_initrddir}/%{name}
%endif
%{_sysusersdir}/ocserv.conf
%changelog
%autochangelog