/[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.2 - (show annotations) (download)
Fri Feb 5 12:17:48 2021 UTC (3 years, 3 months ago) by brianr
Branch: MAIN
CVS Tags: smeserver-openvpn-s2s-0_2-9_el7_sme
Changes since 1.1: +10 -2 lines
* Thu Feb 04 2021 Brian Read <brianr@bjsystems.co.uk> 0.2-9.sme
- Initial import to SME10 [SME: 11337]
- Alter-for-systemd-startup

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

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