1 |
# $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 $ |
2 |
# Authority: vip-ire |
# Authority: vip-ire |
3 |
# Name: Daniel Berteaud |
# Name: Daniel Berteaud |
4 |
|
|
6 |
%define name smeserver-openvpn-s2s |
%define name smeserver-openvpn-s2s |
7 |
Name: %{name} |
Name: %{name} |
8 |
%define version 0.1 |
%define version 0.1 |
9 |
%define release 26 |
%define release 27 |
10 |
Version: %{version} |
Version: %{version} |
11 |
Release: %{release}%{?dist} |
Release: %{release}%{?dist} |
12 |
License: GPL |
License: GPL |
66 |
to run openvpn in client or server mode for site to site tunnels |
to run openvpn in client or server mode for site to site tunnels |
67 |
|
|
68 |
%changelog |
%changelog |
69 |
|
* Mon Feb 8 2016 Daniel Berteaud <daniel@firewall-services.com> 0.1-27.sme |
70 |
|
- Create /etc/openvpn/s2s/dev/urandom [SME: 9238] |
71 |
|
|
72 |
* Tue Feb 17 2015 Daniel Berteaud <daniel@firewall-services.com> 0.1-26.sme |
* Tue Feb 17 2015 Daniel Berteaud <daniel@firewall-services.com> 0.1-26.sme |
73 |
- Apply locale 2015-02-17 patch |
- Apply locale 2015-02-17 patch |
74 |
|
|
204 |
%{__mkdir_p} root/etc/openvpn/s2s/priv |
%{__mkdir_p} root/etc/openvpn/s2s/priv |
205 |
%{__mkdir_p} root/etc/openvpn/s2s/pub |
%{__mkdir_p} root/etc/openvpn/s2s/pub |
206 |
%{__mkdir_p} root/etc/openvpn/s2s/tmp |
%{__mkdir_p} root/etc/openvpn/s2s/tmp |
207 |
|
%{__mkdir_p} root/etc/openvpn/s2s/dev |
208 |
%{__mkdir_p} root/var/run/openvpn-s2s |
%{__mkdir_p} root/var/run/openvpn-s2s |
209 |
%{__mkdir_p} root/var/log/openvpn-s2s |
%{__mkdir_p} root/var/log/openvpn-s2s |
210 |
|
|
226 |
%clean |
%clean |
227 |
rm -rf $RPM_BUILD_ROOT |
rm -rf $RPM_BUILD_ROOT |
228 |
|
|
|
|
|
229 |
%post |
%post |
230 |
|
if [ \! -c /etc/openvpn/s2s/dev/urandom ]; then |
231 |
|
mknod -m 0444 /etc/openvpn/s2s/dev/urandom c 1 9 |
232 |
|
fi |
233 |
|
|
234 |
%preun |
%preun |
235 |
|
|