/[smecontribs]/rpms/smeserver-openvpn-s2s/contribs10/smeserver-openvpn-s2s.spec
ViewVC logotype

Contents of /rpms/smeserver-openvpn-s2s/contribs10/smeserver-openvpn-s2s.spec

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.8 - (show annotations) (download)
Wed Sep 8 05:23:55 2021 UTC (2 years, 8 months ago) by terryfage
Branch: MAIN
CVS Tags: smeserver-openvpn-s2s-0_2-15_el7_sme
Changes since 1.7: +7 -2 lines
* Wed Sep 08 2021 Terry Fage <terry.fage@gmail.com> 0.2-14.sme
- apply locale 2021-09-08 patch

1 # $Id: smeserver-openvpn-s2s.spec,v 1.7 2021/08/23 02:19:38 terryfage Exp $
2 # Authority: vip-ire
3 # Name: Daniel Berteaud
4
5 Summary: OpenVPN, a strong VPN solution built over SSL, for site to site tunnels
6 %define name smeserver-openvpn-s2s
7 Name: %{name}
8 %define version 0.2
9 %define release 15
10 Version: %{version}
11 Release: %{release}%{?dist}
12 License: GPL
13 Group: Networking/Remote access
14 Source: %{name}-%{version}.tar.xz
15
16 Patch0: smeserver-openvpn-s2s-0.2-use_verify_x509_name.patch
17 Patch1: smeserver-openvpn-s2s-0.2-locale-2015-02-17.patch
18 Patch2: smeserver-openvpn-s2s-0.2-locale-2015-07-01.patch
19 Patch3: smeserver-openvpn-s2s-0.2-fix_daemon_id_validation.patch
20 Patch4: smeserver-openvpn-s2s-0.2-locale-2017-12-02.patch
21 Patch5: smeserver-openvpn-s2s-0.2-Alter-for-systemd-startup.patch
22 Patch6: smeserver-openvpn-s2s-0.2-sme10.patch
23 Patch7: smeserver-openvpn-s2s-0.2-locale-2021-08-23.patch
24 Patch8: smeserver-openvpn-s2s-0.2-locale-2021-09-08.patch
25
26 BuildArchitectures: noarch
27
28 BuildRequires: e-smith-devtools
29 BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot
30
31 Requires: e-smith-base
32 Requires: openvpn >= 2.1
33
34 %description
35 This package contains all the needed scripts and templates
36 to run openvpn in client or server mode for site to site tunnels
37
38 %changelog
39 * Wed Sep 08 2021 Terry Fage <terry.fage@gmail.com> 0.2-14.sme
40 - apply locale 2021-09-08 patch
41
42 * Mon Aug 23 2021 Terry Fage <terry.fage@gmail.com> 0.2-14.sme
43 - apply locale 2021-08-23 patch
44
45 * Thu Apr 01 2021 Jean-Philippe Pialasse <tests@pialasse.com> 0.2-13.sme
46 - fix permission on log dir [SME: 11516]
47
48 * Wed Mar 31 2021 Jean-Philippe Pialasse <tests@pialasse.com> 0.2-12.sme
49 - fix typos [SME: 11498]
50
51 * Tue Mar 30 2021 Jean-Philippe Pialasse <tests@pialasse.com> 0.2-11.sme
52 - enforce better cipher with settings [SME: 11498]
53 - enforce better HMAC with setting [SME: 11498]
54 - enforce TLS 1.2 or better with setting [SME: 11498]
55 - enforce strong TLS ciphers with setting [SME: 11498]
56 - better list of vpn connections [SME: 11337]
57 - allow soft reload of individual connection [SME: 11337]
58 - fix incorect permission on private keys [SME: 11337]
59
60 * Thu Feb 04 2021 Brian Read <brianr@bjsystems.co.uk> 0.2-9.sme
61 - Initial import to SME10 [SME: 11337]
62 - Alter-for-systemd-startup
63
64 * Sat Dec 02 2017 SME Translation Server <translations@contribs.org> 0.2-8.sme
65 - apply locale 2017-12-02 patch
66
67 * Wed Oct 25 2017 Daniel Berteaud <daniel@firewall-services.com> 0.2-7.sme
68 - Fix daemon ID validation [SME: 10446]
69
70 * Mon Feb 8 2016 Daniel Berteaud <daniel@firewall-services.com> 0.2-6.sme
71 - Create /etc/openvpn/s2s/dev/urandom [SME: 9238]
72
73 * Wed Jul 1 2015 stephane de Labrusse <stephdl@de-labrusse.fr> 0.2-5.sme
74 - Apply smeserver-openvpn-s2s-0.2-locale-2015-07-01.patch [SME: 8967]
75
76 * Tue Feb 17 2015 Daniel Berteaud <daniel@firewall-services.com> 0.2-4.sme
77 - Apply locale 2015-02-17 patch
78
79 * Thu Dec 18 2014 Daniel Berteaud <daniel@firewall-services.com> 0.2-3.sme
80 - Create required (but unused) /etc/openvpn/s2s/tmp dir
81
82 * Thu Nov 14 2013 Daniel Berteaud <daniel@firewall-services.com> 0.2-2.sme
83 - Use verify-x509-name instead of tls-remote
84
85 * Mon Nov 11 2013 Daniel Berteaud <daniel@firewall-services.com> 0.2-1.sme
86 - Rebuild for SME9
87
88 * Sun Jul 14 2013 JP Pialasse <tests@pialasse.com> 0.1-22.sme
89 - apply locale 2013-07-14 patch
90
91 * Thu Oct 13 2011 Daniel Berteaud <daniel@firewall-services.com> 0.1-21.sme
92 - Apply locale 2011-10-13 patch
93
94 * Thu Jun 2 2011 Daniel Berteaud <daniel@firewall-services.com> 0.1-20.sme
95 - Fix remote host description
96
97 * Wed Jun 1 2011 Daniel Berteaud <daniel@firewall-services.com> 0.1-19.sme
98 - SNAT outbound connexions to use the local IP as source
99
100 * Tue Apr 19 2011 Daniel Berteaud <daniel@firewall-services.com> 0.1-18.sme
101 - Reduce inactivity timeout
102
103 * Sun Mar 06 2011 SME Translation Server <translations@contribs.org> 0.1-17.sme
104 - apply locale 2011-03-06 patch
105
106 * Tue Jan 25 2011 Daniel Berteaud <daniel@firewall-services.com> 0.1-16.sme
107 - Stop disabling service on rpm removal (spec change only)
108
109 * Tue Dec 7 2010 Daniel Berteaud <daniel@firewall-services.com> 0.1-15.sme
110 - Remove useless smb.conf template
111
112 * Tue Dec 7 2010 Daniel Berteaud <daniel@firewall-services.com> 0.1-14.sme
113 - Fix type variable (thks M. Doerner)
114
115 * Mon Nov 8 2010 Daniel Berteaud <daniel@firewall-services.com> 0.1-13.sme
116 - Apply locale 2010-11-08 patch
117
118 * Thu Nov 4 2010 Daniel Berteaud <daniel@firewall-services.com> 0.1-12.sme
119 - Apply locale 2010-11-04 patch
120
121 * Tue Nov 02 2010 Daniel Berteaud <daniel@firewall-services.com> 0.1-11.sme
122 - Remove the nice directive
123
124 * Mon Oct 18 2010 Daniel Berteaud <daniel@firewall-services.com> 0.1-10.sme
125 - Expand smb.conf and restart samba services
126
127 * Mon Oct 18 2010 Daniel Berteaud <daniel@firewall-services.com> 0.1-9.sme
128 - Fix typo in up script
129
130 * Mon Oct 18 2010 Daniel Berteaud <daniel@firewall-services.com> 0.1-8.sme
131 - Various enhancement in templates
132 - Set wget timeout
133 - Fix crontab templates
134
135 * Sun Oct 17 2010 Daniel Berteaud <daniel@firewall-services.com> 0.1-7.sme
136 - Implement CRL updates and verification
137 - Fix masq template
138
139 * Sun Oct 17 2010 Daniel Berteaud <daniel@firewall-services.com> 0.1-6.sme
140 - Set VPN networks non removable
141
142 * Sun Oct 17 2010 Daniel Berteaud <daniel@firewall-services.com> 0.1-5.sme
143 - Rename logrotate configuration file
144 - Add missingok to logrotate conf
145 - Support per configuration customization
146 - Add TLS auth support
147
148 * Mon Oct 4 2010 Daniel Berteaud <daniel@firewall-services.com> 0.1-4.sme
149 - Fix adding routes in up script
150 - Log drop trafic
151 - Fix multiple net validation
152
153 * Mon Oct 4 2010 Daniel Berteaud <daniel@firewall-services.com> 0.1-3.sme
154 - allow one-way VPN with AllowInbound prop
155
156 * Mon Oct 4 2010 Daniel Berteaud <daniel@firewall-services.com> 0.1-3.sme
157 - Various fixes
158
159 * Mon Oct 4 2010 Daniel Berteaud <daniel@firewall-services.com> 0.1-1.sme
160 - initiale release (based on work from Florian Dejan)
161
162 %prep
163
164 %setup -q -n %{name}-%{version}
165 %patch0 -p1
166 %patch1 -p1
167 %patch2 -p1
168 %patch3 -p1
169 %patch4 -p1
170 %patch5 -p1
171 %patch6 -p1
172 %patch7 -p1
173 %patch8 -p1
174
175 %build
176 perl createlinks
177
178 %{__mkdir_p} root/etc/openvpn/s2s/priv
179 %{__mkdir_p} root/etc/openvpn/s2s/pub
180 %{__mkdir_p} root/etc/openvpn/s2s/tmp
181 %{__mkdir_p} root/etc/openvpn/s2s/dev
182 %{__mkdir_p} root/var/run/openvpn-s2s
183 %{__mkdir_p} root/var/log/openvpn-s2s
184
185 %install
186 /bin/rm -rf $RPM_BUILD_ROOT
187 (cd root ; /usr/bin/find . -depth -print | /bin/cpio -dump $RPM_BUILD_ROOT)
188 /bin/chmod +x $RPM_BUILD_ROOT/usr/sbin/systemd/openvpn-s2s
189 /bin/rm -f %{name}-%{version}-filelist
190 /sbin/e-smith/genfilelist $RPM_BUILD_ROOT \
191 --dir /etc/openvpn/s2s/pub 'attr(0755,root,root)' \
192 --dir /etc/openvpn/s2s/priv 'attr(0750,root,root)' \
193 --dir /etc/openvpn/s2s/tmp 'attr(0750,root,root)' \
194 --dir /var/log/openvpn-s2s 'attr(0770,root,root)' \
195 --file /etc/openvpn/s2s/bin/up 'attr(4750,root,openvpn)' \
196 > %{name}-%{version}-filelist
197
198 %files -f %{name}-%{version}-filelist
199 %defattr(-,root,root)
200
201 %clean
202 rm -rf $RPM_BUILD_ROOT
203
204 %post
205 if [ \! -c /etc/openvpn/s2s/dev/urandom ]; then
206 mknod -m 0444 /etc/openvpn/s2s/dev/urandom c 1 9
207 fi
208 #chown root:root /var/log/openvpn-s2s
209 %preun

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed