1 |
# $Id: smeserver-openvpn-bridge.spec,v 1.9 2009/03/03 18:34:00 snetram Exp $ |
# $Id: smeserver-openvpn-bridge.spec,v 1.10 2009/03/03 18:34:43 snetram 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 14 |
%define release 15 |
10 |
Version: %{version} |
Version: %{version} |
11 |
Release: %{release}%{?dist} |
Release: %{release}%{?dist} |
12 |
License: GPL |
License: GPL |
13 |
Group: Networking/Remote access |
Group: Networking/Remote access |
14 |
Source: %{name}-%{version}.tar.gz |
Source: %{name}-%{version}.tar.gz |
15 |
|
|
16 |
Patch0: smeserver-openvpn-bridge-2.0-remove_dup_migrate.patch |
Patch0: smeserver-openvpn-bridge-2.0-remove_dup_migrate.patch |
17 |
Patch1: smeserver-openvpn-bridge-2.0-pull.patch |
Patch1: smeserver-openvpn-bridge-2.0-pull.patch |
18 |
Patch2: smeserver-openvpn-bridge-2.0-config_required.patch |
Patch2: smeserver-openvpn-bridge-2.0-config_required.patch |
19 |
Patch3: smeserver-openvpn-bridge-2.0-config_cleanup.patch |
Patch3: smeserver-openvpn-bridge-2.0-config_cleanup.patch |
20 |
Patch4: smeserver-openvpn-bridge-2.0-add_rule.patch |
Patch4: smeserver-openvpn-bridge-2.0-add_rule.patch |
21 |
Patch5: smeserver-openvpn-bridge-2.0-locale1.patch |
Patch5: smeserver-openvpn-bridge-2.0-locale1.patch |
22 |
#Patch6: smeserver-openvpn-bridge-2.0-openvpn_db.patch |
#atch6: smeserver-openvpn-bridge-2.0-openvpn_db.patch |
23 |
Patch7: smeserver-openvpn-bridge-2.0-check_certs.patch |
Patch7: smeserver-openvpn-bridge-2.0-check_certs.patch |
24 |
Patch8: smeserver-openvpn-bridge-2.0-check_bridge.patch |
Patch8: smeserver-openvpn-bridge-2.0-check_bridge.patch |
25 |
Patch9: smeserver-openvpn-bridge-2.0-configure_crl_url.patch |
Patch9: smeserver-openvpn-bridge-2.0-configure_crl_url.patch |
26 |
Patch10: smeserver-openvpn-bridge-2.0-check_certs.patch2 |
Patch10: smeserver-openvpn-bridge-2.0-check_certs.patch2 |
27 |
Patch11: smeserver-openvpn-bridge-2.0-create_openvpn_db.patch |
Patch11: smeserver-openvpn-bridge-2.0-create_openvpn_db.patch |
28 |
Patch12: smeserver-openvpn-bridge-2.0-local_fr_1.patch |
Patch12: smeserver-openvpn-bridge-2.0-local_fr_1.patch |
29 |
Patch13: smeserver-openvpn-bridge-2.0-fixtranslation.patch |
Patch13: smeserver-openvpn-bridge-2.0-fixtranslation.patch |
30 |
Patch14: smeserver-openvpn-bridge-2.0-removedups.patch |
Patch14: smeserver-openvpn-bridge-2.0-removedups.patch |
31 |
Patch15: smeserver-openvpn-bridge-2.0-fixlangtag.patch |
Patch15: smeserver-openvpn-bridge-2.0-fixlangtag.patch |
32 |
Patch16: smeserver-openvpn-bridge-2.0-fix-en-us-locale.patch |
Patch16: smeserver-openvpn-bridge-2.0-fix-en-us-locale.patch |
33 |
Patch17: smeserver-openvpn-bridge-2.0-fix-en-us-locale2.patch |
Patch17: smeserver-openvpn-bridge-2.0-fix-en-us-locale2.patch |
34 |
|
Patch18: smeserver-openvpn-bridge-2.0-fix-en-us-locale2.patch |
35 |
|
|
36 |
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot |
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot |
37 |
BuildArchitectures: noarch |
BuildArchitectures: noarch |
41 |
Requires: e-smith-base |
Requires: e-smith-base |
42 |
Requires: openvpn |
Requires: openvpn |
43 |
Requires: perl(Net::OpenVPN::Manage) |
Requires: perl(Net::OpenVPN::Manage) |
44 |
Obsoletes: smeserver-openvpn-bridge-fws |
Obsoletes: smeserver-openvpn-bridge-fws |
45 |
Obsoletes: smeserver-openvpn-bridge.fws |
Obsoletes: smeserver-openvpn-bridge.fws |
46 |
|
|
47 |
%description |
%description |
48 |
This package contains all the needed scripts and templates |
This package contains all the needed scripts and templates |
51 |
won't have to generate them manually |
won't have to generate them manually |
52 |
|
|
53 |
%changelog |
%changelog |
54 |
|
* Tue Mar 03 2009 Jonathan Martens <smeserver-contribs@snetram.nl> [2.0-15] |
55 |
|
- Fix some more errors in the en-us locale |
56 |
|
- Remove tabs from SPEC file as some editors act weird with them, e.g. nano |
57 |
|
|
58 |
* Tue Mar 03 2009 Jonathan Martens <smeserver-contribs@snetram.nl> [2.0-14] |
* Tue Mar 03 2009 Jonathan Martens <smeserver-contribs@snetram.nl> [2.0-14] |
59 |
- Fix some grammar errors in the en-us locale |
- Fix some grammar errors in the en-us locale |
60 |
|
|
158 |
%patch15 -p1 |
%patch15 -p1 |
159 |
%patch16 -p1 |
%patch16 -p1 |
160 |
%patch17 -p1 |
%patch17 -p1 |
161 |
|
%patch17 -p1 |
162 |
|
|
163 |
%build |
%build |
164 |
perl createlinks |
perl createlinks |
173 |
(cd root ; /usr/bin/find . -depth -print | /bin/cpio -dump $RPM_BUILD_ROOT) |
(cd root ; /usr/bin/find . -depth -print | /bin/cpio -dump $RPM_BUILD_ROOT) |
174 |
/bin/rm -f %{name}-%{version}-filelist |
/bin/rm -f %{name}-%{version}-filelist |
175 |
/sbin/e-smith/genfilelist $RPM_BUILD_ROOT \ |
/sbin/e-smith/genfilelist $RPM_BUILD_ROOT \ |
176 |
--file /var/service/openvpn-bridge/run 'attr(0755,root,root)' \ |
--file /var/service/openvpn-bridge/run 'attr(0755,root,root)' \ |
177 |
--file /var/service/openvpn-bridge/log/run 'attr(0755,root,root)' \ |
--file /var/service/openvpn-bridge/log/run 'attr(0755,root,root)' \ |
178 |
--dir /var/log/openvpn-bridge 'attr(0750,smelog,smelog)' \ |
--dir /var/log/openvpn-bridge 'attr(0750,smelog,smelog)' \ |
179 |
--file /usr/bin/ovpn-bridge-update-crl 'attr(0750,root,root)' \ |
--file /usr/bin/ovpn-bridge-update-crl 'attr(0750,root,root)' \ |
180 |
> %{name}-%{version}-filelist |
> %{name}-%{version}-filelist |
181 |
|
|
182 |
%files -f %{name}-%{version}-filelist |
%files -f %{name}-%{version}-filelist |
183 |
%defattr(-,root,root) |
%defattr(-,root,root) |
190 |
|
|
191 |
%preun |
%preun |
192 |
if [ $1 -eq 0 ] ; then |
if [ $1 -eq 0 ] ; then |
193 |
/sbin/e-smith/db configuration setprop openvpn-bridge status disabled |
/sbin/e-smith/db configuration setprop openvpn-bridge status disabled |
194 |
sv d /service/openvpn-bridge |
sv d /service/openvpn-bridge |
195 |
fi |
fi |
196 |
|
|
197 |
true |
true |
|
|
|