|
|
|
@ -1,7 +1,7 @@
|
|
|
|
|
%global _hardened_build 1
|
|
|
|
|
|
|
|
|
|
Name: ocserv
|
|
|
|
|
Version: 0.11.1
|
|
|
|
|
Version: 0.11.2
|
|
|
|
|
Release: 1%{?dist}
|
|
|
|
|
Summary: OpenConnect SSL VPN server
|
|
|
|
|
|
|
|
|
@ -10,13 +10,14 @@ Summary: OpenConnect SSL VPN server
|
|
|
|
|
License: GPLv2+ and BSD and MIT and CC0
|
|
|
|
|
URL: http://www.infradead.org/ocserv/
|
|
|
|
|
Source0: ftp://ftp.infradead.org/pub/ocserv/%{name}-%{version}.tar.xz
|
|
|
|
|
Source1: ocserv.conf
|
|
|
|
|
Source2: ocserv.service
|
|
|
|
|
Source3: ocserv-pamd.conf
|
|
|
|
|
Source4: PACKAGE-LICENSING
|
|
|
|
|
Source6: ftp://ftp.infradead.org/pub/ocserv/%{name}-%{version}.tar.xz.sig
|
|
|
|
|
Source7: ocserv-genkey
|
|
|
|
|
Source8: ocserv-script
|
|
|
|
|
Source1: ftp://ftp.infradead.org/pub/ocserv/%{name}-%{version}.tar.xz.sig
|
|
|
|
|
Source2: gpgkey-1F42418905D8206AA754CCDC29EE58B996865171.gpg
|
|
|
|
|
Source3: ocserv.conf
|
|
|
|
|
Source4: ocserv.service
|
|
|
|
|
Source5: ocserv-pamd.conf
|
|
|
|
|
Source6: PACKAGE-LICENSING
|
|
|
|
|
Source8: ocserv-genkey
|
|
|
|
|
Source9: ocserv-script
|
|
|
|
|
|
|
|
|
|
# Taken from upstream:
|
|
|
|
|
# http://git.infradead.org/ocserv.git/commitdiff/7d70006a2dbddf783213f1856374bacc74217e09
|
|
|
|
@ -47,9 +48,8 @@ BuildRequires: tcp_wrappers-devel
|
|
|
|
|
BuildRequires: automake, autoconf
|
|
|
|
|
BuildRequires: radcli-devel
|
|
|
|
|
BuildRequires: lz4-devel
|
|
|
|
|
|
|
|
|
|
# we don't build with dbus support
|
|
|
|
|
#BuildRequires: dbus-devel
|
|
|
|
|
BuildRequires: uid_wrapper
|
|
|
|
|
BuildRequires: socket_wrapper
|
|
|
|
|
|
|
|
|
|
Requires: gnutls-utils
|
|
|
|
|
Requires: iproute
|
|
|
|
@ -74,6 +74,7 @@ uses the standard IETF security protocols such as TLS 1.2, and Datagram TLS
|
|
|
|
|
to provide the secure VPN service.
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
gpgv2 --keyring %{SOURCE2} %{SOURCE1} %{SOURCE0}
|
|
|
|
|
%setup -q
|
|
|
|
|
|
|
|
|
|
rm -f src/http-parser/http_parser.c src/http-parser/http_parser.h
|
|
|
|
@ -118,19 +119,19 @@ make check %{?_smp_mflags}
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
rm -rf %{buildroot}
|
|
|
|
|
cp -a %{SOURCE4} PACKAGE-LICENSING
|
|
|
|
|
cp -a %{SOURCE6} PACKAGE-LICENSING
|
|
|
|
|
mkdir -p %{buildroot}/%{_sysconfdir}/pam.d/
|
|
|
|
|
mkdir -p %{buildroot}/%{_sysconfdir}/ocserv/
|
|
|
|
|
install -p -m 644 %{SOURCE3} %{buildroot}/%{_sysconfdir}/pam.d/ocserv
|
|
|
|
|
install -p -m 644 %{SOURCE1} %{buildroot}/%{_sysconfdir}/ocserv/
|
|
|
|
|
install -p -m 644 %{SOURCE5} %{buildroot}/%{_sysconfdir}/pam.d/ocserv
|
|
|
|
|
install -p -m 644 %{SOURCE3} %{buildroot}/%{_sysconfdir}/ocserv/
|
|
|
|
|
mkdir -p %{buildroot}/%{_unitdir}
|
|
|
|
|
install -p -m 644 %{SOURCE2} %{buildroot}/%{_unitdir}
|
|
|
|
|
install -p -m 644 %{SOURCE4} %{buildroot}/%{_unitdir}
|
|
|
|
|
mkdir -p %{buildroot}%{_localstatedir}/lib/ocserv/
|
|
|
|
|
install -p -m 644 doc/profile.xml %{buildroot}%{_localstatedir}/lib/ocserv/
|
|
|
|
|
mkdir -p %{buildroot}/%{_sbindir}
|
|
|
|
|
install -p -m 755 %{SOURCE7} %{buildroot}/%{_sbindir}
|
|
|
|
|
install -p -m 755 %{SOURCE8} %{buildroot}/%{_sbindir}
|
|
|
|
|
mkdir -p %{buildroot}/%{_bindir}
|
|
|
|
|
install -p -m 755 %{SOURCE8} %{buildroot}/%{_bindir}
|
|
|
|
|
install -p -m 755 %{SOURCE9} %{buildroot}/%{_bindir}
|
|
|
|
|
%make_install
|
|
|
|
|
|
|
|
|
|
%clean
|
|
|
|
@ -160,6 +161,10 @@ rm -rf %{buildroot}
|
|
|
|
|
%{_localstatedir}/lib/ocserv/profile.xml
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|
* Mon Mar 21 2016 Nikos Mavrogiannopoulos <nmav@redhat.com> - 0.11.2-1
|
|
|
|
|
- New upstream release
|
|
|
|
|
- Added automatic verification of signature during build
|
|
|
|
|
|
|
|
|
|
* Mon Mar 21 2016 Nikos Mavrogiannopoulos <nmav@redhat.com> - 0.11.1-1
|
|
|
|
|
- new upstream release
|
|
|
|
|
|
|
|
|
|