|
|
|
@ -94,34 +94,34 @@ find contrib sample -type f -perm /100 \
|
|
|
|
|
# %{__make} -C src/plugins/$plugin
|
|
|
|
|
#done
|
|
|
|
|
|
|
|
|
|
%check
|
|
|
|
|
# Test Crypto:
|
|
|
|
|
./src/openvpn/openvpn --genkey --secret key
|
|
|
|
|
./src/openvpn/openvpn --test-crypto --secret key
|
|
|
|
|
|
|
|
|
|
# Randomize ports for tests to avoid conflicts on the build servers.
|
|
|
|
|
cport=$[ 50000 + ($RANDOM % 15534) ]
|
|
|
|
|
sport=$[ $cport + 1 ]
|
|
|
|
|
sed -e 's/^\(rport\) .*$/\1 '$sport'/' \
|
|
|
|
|
-e 's/^\(lport\) .*$/\1 '$cport'/' \
|
|
|
|
|
< sample/sample-config-files/loopback-client \
|
|
|
|
|
> %{_tmppath}/%{name}-%{version}-%{release}-%(%{__id_u})-loopback-client
|
|
|
|
|
sed -e 's/^\(rport\) .*$/\1 '$cport'/' \
|
|
|
|
|
-e 's/^\(lport\) .*$/\1 '$sport'/' \
|
|
|
|
|
< sample/sample-config-files/loopback-server \
|
|
|
|
|
> %{_tmppath}/%{name}-%{version}-%{release}-%(%{__id_u})-loopback-server
|
|
|
|
|
|
|
|
|
|
pushd sample
|
|
|
|
|
# Test SSL/TLS negotiations (runs for 2 minutes):
|
|
|
|
|
../src/openvpn/openvpn --config \
|
|
|
|
|
%{_tmppath}/%{name}-%{version}-%{release}-%(%{__id_u})-loopback-client &
|
|
|
|
|
../src/openvpn/openvpn --config \
|
|
|
|
|
%{_tmppath}/%{name}-%{version}-%{release}-%(%{__id_u})-loopback-server
|
|
|
|
|
wait
|
|
|
|
|
popd
|
|
|
|
|
|
|
|
|
|
rm -f %{_tmppath}/%{name}-%{version}-%{release}-%(%{__id_u})-loopback-client \
|
|
|
|
|
%{_tmppath}/%{name}-%{version}-%{release}-%(%{__id_u})-loopback-server
|
|
|
|
|
#%check
|
|
|
|
|
## Test Crypto:
|
|
|
|
|
#./src/openvpn/openvpn --genkey --secret key
|
|
|
|
|
#./src/openvpn/openvpn --test-crypto --secret key
|
|
|
|
|
#
|
|
|
|
|
## Randomize ports for tests to avoid conflicts on the build servers.
|
|
|
|
|
#cport=$[ 50000 + ($RANDOM % 15534) ]
|
|
|
|
|
#sport=$[ $cport + 1 ]
|
|
|
|
|
#sed -e 's/^\(rport\) .*$/\1 '$sport'/' \
|
|
|
|
|
# -e 's/^\(lport\) .*$/\1 '$cport'/' \
|
|
|
|
|
# < sample/sample-config-files/loopback-client \
|
|
|
|
|
# > %{_tmppath}/%{name}-%{version}-%{release}-%(%{__id_u})-loopback-client
|
|
|
|
|
#sed -e 's/^\(rport\) .*$/\1 '$cport'/' \
|
|
|
|
|
# -e 's/^\(lport\) .*$/\1 '$sport'/' \
|
|
|
|
|
# < sample/sample-config-files/loopback-server \
|
|
|
|
|
# > %{_tmppath}/%{name}-%{version}-%{release}-%(%{__id_u})-loopback-server
|
|
|
|
|
#
|
|
|
|
|
#pushd sample
|
|
|
|
|
## Test SSL/TLS negotiations (runs for 2 minutes):
|
|
|
|
|
#../src/openvpn/openvpn --config \
|
|
|
|
|
# %{_tmppath}/%{name}-%{version}-%{release}-%(%{__id_u})-loopback-client &
|
|
|
|
|
#../src/openvpn/openvpn --config \
|
|
|
|
|
# %{_tmppath}/%{name}-%{version}-%{release}-%(%{__id_u})-loopback-server
|
|
|
|
|
#wait
|
|
|
|
|
#popd
|
|
|
|
|
#
|
|
|
|
|
#rm -f %{_tmppath}/%{name}-%{version}-%{release}-%(%{__id_u})-loopback-client \
|
|
|
|
|
# %{_tmppath}/%{name}-%{version}-%{release}-%(%{__id_u})-loopback-server
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
#install -D -m 0644 doc/%{name}.8 $RPM_BUILD_ROOT%{_mandir}/man8/%{name}.8
|
|
|
|
@ -206,6 +206,8 @@ fi
|
|
|
|
|
%changelog
|
|
|
|
|
* Fri May 02 2014 Jon Ciesla <limburgher@gmail.com> 2.3.4-1
|
|
|
|
|
- 2.3.4.
|
|
|
|
|
- Disable make check until upstream provides non-md5 sample keys.
|
|
|
|
|
- Filed upstream https://community.openvpn.net/openvpn/ticket/400#ticket
|
|
|
|
|
|
|
|
|
|
* Fri Apr 11 2014 Jon Ciesla <limburgher@gmail.com> 2.3.3-1
|
|
|
|
|
- Latest uptream, needs pkcs11-helper >= 1.11
|
|
|
|
|