1 |
# $Id: smeserver-openvpn-bridge.spec,v 1.6 2015/02/17 12:10:04 vip-ire Exp $ |
# $Id: smeserver-openvpn-bridge.spec,v 1.7 2015/08/06 15:44:52 vip-ire Exp $ |
2 |
# Authority: vip-ire |
# Authority: vip-ire |
3 |
# Name: Daniel Berteaud |
# Name: Daniel Berteaud |
4 |
|
|
6 |
%define name smeserver-openvpn-bridge |
%define name smeserver-openvpn-bridge |
7 |
Name: %{name} |
Name: %{name} |
8 |
%define version 2.0 |
%define version 2.0 |
9 |
%define release 53 |
%define release 54 |
10 |
Version: %{version} |
Version: %{version} |
11 |
Release: %{release}%{?dist} |
Release: %{release}%{?dist} |
12 |
License: GPL |
License: GPL |
93 |
to have a full working openvpn server running in bridge mode. |
to have a full working openvpn server running in bridge mode. |
94 |
|
|
95 |
%changelog |
%changelog |
96 |
|
* Mon Feb 8 2016 Daniel Berteaud <daniel@firewall-services.com> 2.0-54.sme |
97 |
|
- Create /etc/openvpn/bridge/dev/urandom [SME: 9238] |
98 |
|
|
99 |
* Thu Aug 6 2015 Daniel Berteaud <daniel@firewall-services.com> 2.0-53.sme |
* Thu Aug 6 2015 Daniel Berteaud <daniel@firewall-services.com> 2.0-53.sme |
100 |
- Add routes for s2s virtual IP |
- Add routes for s2s virtual IP |
101 |
|
|
380 |
%{__mkdir_p} root/etc/openvpn/bridge/priv |
%{__mkdir_p} root/etc/openvpn/bridge/priv |
381 |
%{__mkdir_p} root/etc/openvpn/bridge/pub |
%{__mkdir_p} root/etc/openvpn/bridge/pub |
382 |
%{__mkdir_p} root/etc/openvpn/bridge/tmp |
%{__mkdir_p} root/etc/openvpn/bridge/tmp |
383 |
|
%{__mkdir_p} root/etc/openvpn/bridge/dev |
384 |
%{__mkdir_p} root/var/log/openvpn-bridge |
%{__mkdir_p} root/var/log/openvpn-bridge |
385 |
|
|
386 |
%install |
%install |
404 |
%clean |
%clean |
405 |
rm -rf $RPM_BUILD_ROOT |
rm -rf $RPM_BUILD_ROOT |
406 |
|
|
|
|
|
407 |
%post |
%post |
408 |
|
if [ \! -c /etc/openvpn/bridge/dev/urandom ]; then |
409 |
|
mknod -m 0444 /etc/openvpn/bridge/dev/urandom c 1 9 |
410 |
|
fi |
411 |
|
|
412 |
%preun |
%preun |