--- rpms/smeserver-openvpn-s2s/contribs8/smeserver-openvpn-s2s.spec 2015/02/17 12:14:06 1.6 +++ rpms/smeserver-openvpn-s2s/contribs8/smeserver-openvpn-s2s.spec 2016/02/08 09:39:39 1.7 @@ -1,4 +1,4 @@ -# $Id: smeserver-openvpn-s2s.spec,v 1.5 2014/12/18 08:33:09 vip-ire Exp $ +# $Id: smeserver-openvpn-s2s.spec,v 1.6 2015/02/17 12:14:06 vip-ire Exp $ # Authority: vip-ire # Name: Daniel Berteaud @@ -6,7 +6,7 @@ Summary: OpenVPN, a strong VPN solution %define name smeserver-openvpn-s2s Name: %{name} %define version 0.1 -%define release 26 +%define release 27 Version: %{version} Release: %{release}%{?dist} License: GPL @@ -66,6 +66,9 @@ This package contains all the needed scr to run openvpn in client or server mode for site to site tunnels %changelog +* Mon Feb 8 2016 Daniel Berteaud 0.1-27.sme +- Create /etc/openvpn/s2s/dev/urandom [SME: 9238] + * Tue Feb 17 2015 Daniel Berteaud 0.1-26.sme - Apply locale 2015-02-17 patch @@ -201,6 +204,7 @@ perl createlinks %{__mkdir_p} root/etc/openvpn/s2s/priv %{__mkdir_p} root/etc/openvpn/s2s/pub %{__mkdir_p} root/etc/openvpn/s2s/tmp +%{__mkdir_p} root/etc/openvpn/s2s/dev %{__mkdir_p} root/var/run/openvpn-s2s %{__mkdir_p} root/var/log/openvpn-s2s @@ -222,8 +226,10 @@ perl createlinks %clean rm -rf $RPM_BUILD_ROOT - %post +if [ \! -c /etc/openvpn/s2s/dev/urandom ]; then + mknod -m 0444 /etc/openvpn/s2s/dev/urandom c 1 9 +fi %preun