1 |
# $Id: smeserver-bridge-interface.spec,v 1.3 2009/05/29 07:39:45 vip-ire Exp $ |
2 |
# Authority: vip-ire |
3 |
# Name: Daniel Berteaud |
4 |
|
5 |
%define version 0.1 |
6 |
%define release 5 |
7 |
%define name smeserver-bridge-interface |
8 |
|
9 |
|
10 |
Summary: Configure a bridge interface |
11 |
Name: %{name} |
12 |
Version: %{version} |
13 |
Release: %{release}%{?dist} |
14 |
License: GPL |
15 |
Group: System/Servers |
16 |
Source: %{name}-%{version}.tar.gz |
17 |
|
18 |
Patch0: smeserver-bridge-interface-0.1-set_internal_to_br.patch |
19 |
Patch1: smeserver-bridge-interface-0.1-migrate_db_when_disabled.patch |
20 |
Patch2: smeserver-bridge-interface-0.1-init_script.patch |
21 |
Patch3: smeserver-bridge-interface-0.1-status_enabled.patch |
22 |
Patch4: smeserver-bridge-interface-0.1-display_stop_start.patch |
23 |
Patch5: smeserver-bridge-interface-0.1-disable_bridge_during_console_save.patch |
24 |
|
25 |
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot |
26 |
URL: http://www.firewall-services.com/ |
27 |
|
28 |
BuildRequires: e-smith-devtools |
29 |
|
30 |
Requires: bridge-utils |
31 |
Requires: openvpn |
32 |
Buildarch: noarch |
33 |
Conflicts: smeserver-openvpn-bridge.fws |
34 |
Conflicts: smeserver-openvpn-bridge-fws |
35 |
AutoReqProv: no |
36 |
|
37 |
%description |
38 |
This package allows you to replace the internal interface with a bridge |
39 |
interface (and the original internal interface enslaved to it). |
40 |
It's usefull for OpenVPN in bridge mode but can also be used for virtual host |
41 |
configuration |
42 |
|
43 |
%changelog |
44 |
* Tue Apr 19 2011 Daniel B. <daniel@firewall-services.com> - 0.1-5.sme |
45 |
- Fix ifcfg templates expension on SME8 [SME: 6092] |
46 |
|
47 |
* Fri May 29 2009 Daniel B. <daniel@firewall-services.com> [0.1-4] |
48 |
- Enhance init script to display what it's doing (starting/stoping etc...) |
49 |
- Cleanup in spec file |
50 |
|
51 |
* Fri Jan 16 2009 Daniel B. <daniel@firewall-services.com> [0.1-3] |
52 |
- Set default status to enabled |
53 |
|
54 |
* Mon Jan 12 2009 Daniel B. <daniel@firewall-services.com> [0.1-2] |
55 |
- possibility to set multiple tap interfaces separated with commas |
56 |
|
57 |
* Fri Dec 12 2008 Daniel B. <daniel@firewall-services.com> [0.1-1] |
58 |
- Set the Name of InternalInterface to br0 when starting |
59 |
- Do not set the Name of InternalInterface to br0 if service is disabled |
60 |
(during databases initialization) |
61 |
|
62 |
* Tue Dec 02 2008 Daniel B. <daniel@firewall-services.com> [0.1-0] |
63 |
- initial release |
64 |
|
65 |
%prep |
66 |
|
67 |
%setup -q -n %{name}-%{version} |
68 |
%patch0 -p1 |
69 |
%patch1 -p1 |
70 |
%patch2 -p1 |
71 |
%patch3 -p1 |
72 |
%patch4 -p1 |
73 |
%patch5 -p1 |
74 |
|
75 |
%build |
76 |
# Build symlinks |
77 |
perl createlinks |
78 |
|
79 |
%install |
80 |
rm -rf $RPM_BUILD_ROOT |
81 |
(cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT) |
82 |
/sbin/e-smith/genfilelist $RPM_BUILD_ROOT \ |
83 |
> %{name}-%{version}-%{release}-filelist |
84 |
|
85 |
%clean |
86 |
rm -rf $RPM_BUILD_ROOT |
87 |
|
88 |
%files -f %{name}-%{version}-%{release}-filelist |
89 |
%defattr(-,root,root) |
90 |
|
91 |
|
92 |
%post |
93 |
|
94 |
%preun |
95 |
if [ $1 = 0 ] ; then |
96 |
/etc/rc.d/init.d/bridge stop >& /dev/null || : |
97 |
fi |
98 |
|
99 |
true |
100 |
|