Compare commits
2 Commits
Author | SHA1 | Date | |
---|---|---|---|
|
aa42926f6c | ||
|
ccf573eb91 |
22
.gitignore
vendored
22
.gitignore
vendored
@ -71,3 +71,25 @@
|
||||
/gpgkey-1F42418905D8206AA754CCDC29EE58B996865171.gpg
|
||||
/ocserv-0.11.8.tar.xz.sig
|
||||
/ocserv-0.11.8.tar.xz
|
||||
/ocserv.init
|
||||
/gpgkey-56EE7FA9E8173B19FE86268D763712747F343FA7.gpg
|
||||
/ocserv-script
|
||||
/ocserv-genkey
|
||||
/PACKAGE-LICENSING
|
||||
/ocserv-pamd.conf
|
||||
/ocserv.service
|
||||
/ocserv.conf
|
||||
/gpgkey-1F42418905D8206AA754CCDC29EE58B996865171.gpg
|
||||
/ocserv-0.11.9.tar.xz.sig
|
||||
/ocserv-0.11.9.tar.xz
|
||||
/ocserv.init
|
||||
/gpgkey-56EE7FA9E8173B19FE86268D763712747F343FA7.gpg
|
||||
/ocserv-script
|
||||
/ocserv-genkey
|
||||
/PACKAGE-LICENSING
|
||||
/ocserv-pamd.conf
|
||||
/ocserv.service
|
||||
/ocserv.conf
|
||||
/gpgkey-1F42418905D8206AA754CCDC29EE58B996865171.gpg
|
||||
/ocserv-0.11.10.tar.xz.sig
|
||||
/ocserv-0.11.10.tar.xz
|
||||
|
50
ocserv.spec
50
ocserv.spec
@ -1,6 +1,6 @@
|
||||
# This spec file has been automatically updated
|
||||
Version: 0.11.8
|
||||
Release: 3%{?dist}
|
||||
Version: 0.11.10
|
||||
Release: 1%{?dist}
|
||||
%global _hardened_build 1
|
||||
|
||||
%if 0%{?fedora} || 0%{?rhel} >= 7
|
||||
@ -11,6 +11,19 @@ Release: 3%{?dist}
|
||||
%define have_gpgv2 0
|
||||
%endif
|
||||
|
||||
%if 0%{?fedora} >= 28 || 0%{?rhel} > 7
|
||||
%define use_libwrap 0
|
||||
%else
|
||||
%define use_libwrap 1
|
||||
%endif
|
||||
|
||||
%define use_local_protobuf 0
|
||||
%if 0%{?rhel} && 0%{?rhel} == 7
|
||||
%ifarch ppc64
|
||||
%define use_local_protobuf 1
|
||||
%endif
|
||||
%endif
|
||||
|
||||
Name: ocserv
|
||||
Summary: OpenConnect SSL VPN server
|
||||
|
||||
@ -42,7 +55,10 @@ BuildRequires: gnutls-devel
|
||||
BuildRequires: pam-devel
|
||||
BuildRequires: iproute
|
||||
|
||||
%if (0%{?use_local_protobuf} == 0)
|
||||
BuildRequires: protobuf-c-devel
|
||||
%endif
|
||||
|
||||
BuildRequires: libnl3-devel
|
||||
BuildRequires: krb5-devel
|
||||
BuildRequires: libtasn1-devel
|
||||
@ -111,7 +127,10 @@ gpgv2 --keyring %{SOURCE2} %{SOURCE1} %{SOURCE0} || gpgv2 --keyring %{SOURCE10}
|
||||
%setup -q
|
||||
|
||||
rm -f src/http-parser/http_parser.c src/http-parser/http_parser.h
|
||||
%if (0%{?use_local_protobuf} == 0)
|
||||
rm -rf src/protobuf/protobuf-c/
|
||||
touch src/*.proto
|
||||
%endif
|
||||
rm -rf src/ccan/talloc
|
||||
rm -f src/pcl/*.c src/pcl/*.h
|
||||
sed -i 's|/etc/ocserv.conf|/etc/ocserv/ocserv.conf|g' src/config.c
|
||||
@ -119,7 +138,6 @@ sed -i 's/run-as-group = nogroup/run-as-group = nobody/g' tests/data/*.config
|
||||
# GPLv3 in headers is a gnulib bug:
|
||||
# http://lists.gnu.org/archive/html/bug-gnulib/2013-11/msg00062.html
|
||||
sed -i 's/either version 3 of the License/either version 2 of the License/g' build-aux/snippet/*
|
||||
touch src/*.proto
|
||||
|
||||
%if 0%{?rhel} && 0%{?rhel} <= 6
|
||||
echo "int main() { return 77; }" > tests/valid-hostname.c
|
||||
@ -136,12 +154,24 @@ export LIBGNUTLS_LIBS="-L%{_libdir}/gnutls30/ -lgnutls"
|
||||
export CFLAGS="$CFLAGS -I/usr/include/libev -I/usr/include/gnutls30"
|
||||
sed -i 's/AM_PROG_AR//g' configure.ac
|
||||
autoreconf -fvi
|
||||
%endif
|
||||
|
||||
%configure \
|
||||
--disable-systemd \
|
||||
--enable-local-libopts
|
||||
%if %{use_systemd}
|
||||
--enable-systemd \
|
||||
%else
|
||||
%configure \
|
||||
--enable-systemd
|
||||
--disable-systemd \
|
||||
%endif
|
||||
%if 0%{?rhel} && 0%{?rhel} <= 6
|
||||
--enable-local-libopts \
|
||||
%endif
|
||||
%if %{use_local_protobuf}
|
||||
--without-protobuf \
|
||||
%endif
|
||||
%if %{use_libwrap}
|
||||
--with-libwrap
|
||||
%else
|
||||
--without-libwrap
|
||||
%endif
|
||||
|
||||
make #%{?_smp_mflags}
|
||||
@ -232,6 +262,12 @@ rm -rf %{buildroot}
|
||||
%endif
|
||||
|
||||
%changelog
|
||||
* Mon Jan 08 2018 Nikos Mavrogiannopoulos <nmav@redhat.com> - 0.11.10-1
|
||||
- Update to upstream 0.11.10 release
|
||||
|
||||
* Sat Oct 21 2017 Nikos Mavrogiannopoulos <nmav@redhat.com> - 0.11.9-1
|
||||
- Update to upstream 0.11.9 release
|
||||
|
||||
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.11.8-3
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
|
||||
|
||||
|
4
sources
4
sources
@ -7,5 +7,5 @@ SHA512 (ocserv-pamd.conf) = 3a75f19d89ddd164f3faa9c3579c7f675fc58413a194f43ec28e
|
||||
SHA512 (ocserv.service) = 264f3389d88aec1f7d2e4683a4dfc0aa67af2325154de822eecf5fb43f8c221aab0d9f0c6a8eedb893e6d69ed4d94c9397b01e5d0d12e88330017a3bfa5f3644
|
||||
SHA512 (ocserv.conf) = 0a48d394dba183528c1e92df2a8b844a4d7d419244b1c08883f79c8b48843986e786ea4d48478ed4e8d57fd56626bf962dbcf6c76b5839ba5ab5fac8b089c44c
|
||||
SHA512 (gpgkey-1F42418905D8206AA754CCDC29EE58B996865171.gpg) = 7eccc70fb763cf8a6525228230c1f537224809cf553efb3ad6bc88ad96f01122c30a5cd9d8328fa3a97b242d59e00bc9966589a24b1e65dd4a27eb71393f097c
|
||||
SHA512 (ocserv-0.11.8.tar.xz.sig) = 5551591abc54dfc053125c356095138aaecec6c3255cd125bd38e17350a257bc822094c270d5b3bb329afd4a9e37f355d3d16db16b4db804e15b8c5959321214
|
||||
SHA512 (ocserv-0.11.8.tar.xz) = cea5ef084a15de1e16c0d55f418f454f32c77e4303246f3d11e71ddbc7dbea028282b8200b59a49f5509e786970749b0a9795262639209924bbaa1d619c5c25c
|
||||
SHA512 (ocserv-0.11.10.tar.xz.sig) = d88f3e42595df6c3a13dc64cbcdcca2126f22be7143856b00b0c7620358f9d0e5c524019c11ff10549e74ef5eebb0613c25afd9f7244c6ab14fb70b8059188b8
|
||||
SHA512 (ocserv-0.11.10.tar.xz) = 40fe152adf4438ed390406ec46049ff3769208e1d48b40bc0f015d507902a6e81012a52dd4ddd867f56a6d50de1dfb8fa497dc3bb6ece3e666ca14df1d76c561
|
||||
|
Loading…
Reference in New Issue
Block a user