1 |
jpp |
1.8 |
# $Id: smeserver-bridge-interface.spec,v 1.7 2021/01/28 07:20:28 brianr Exp $ |
2 |
brianr |
1.1 |
# Authority: vip-ire |
3 |
|
|
# Name: Daniel Berteaud |
4 |
|
|
|
5 |
|
|
%define version 0.2 |
6 |
jpp |
1.8 |
%define release 7 |
7 |
brianr |
1.1 |
%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.xz |
17 |
|
|
|
18 |
|
|
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot |
19 |
|
|
URL: http://www.firewall-services.com/ |
20 |
|
|
|
21 |
|
|
BuildRequires: e-smith-devtools |
22 |
|
|
|
23 |
|
|
Requires: bridge-utils |
24 |
|
|
Requires: openvpn |
25 |
|
|
Buildarch: noarch |
26 |
|
|
Conflicts: smeserver-openvpn-bridge.fws |
27 |
|
|
Conflicts: smeserver-openvpn-bridge-fws |
28 |
|
|
AutoReqProv: no |
29 |
|
|
|
30 |
brianr |
1.3 |
Patch0:smeserver-bridge-interface-0.2-Update-Createlinks-for-systemd.patch |
31 |
brianr |
1.5 |
Patch1:smeserver-bridge-interface-0.2-Move-exec-to-sbin-e-smith-and-add-service-file.patch |
32 |
brianr |
1.6 |
Patch2:smeserver-bridge-interface-0.2-Add-Restart-to-service-file.patch |
33 |
brianr |
1.7 |
Patch3:smeserver-bridge-interface-0.2-Change-After-in-Service-file-to-network-service-from-target.patch |
34 |
jpp |
1.8 |
Patch4: smeserver-bridge-interface-0.2-makeitcompatible.patch |
35 |
brianr |
1.3 |
|
36 |
brianr |
1.1 |
%description |
37 |
|
|
This package allows you to replace the internal interface with a bridge |
38 |
|
|
interface (and the original internal interface enslaved to it). |
39 |
|
|
It's usefull for OpenVPN in bridge mode but can also be used for virtual host |
40 |
|
|
configuration |
41 |
|
|
|
42 |
|
|
%changelog |
43 |
jpp |
1.8 |
* Tue Mar 23 2021 Jean-Philippe Pialasse <tests@pialasse.com> 0.2-7.sme |
44 |
|
|
- make bridge interface up on install [SME: 11485] |
45 |
|
|
- modify support for dhcp with bridge |
46 |
|
|
|
47 |
brianr |
1.7 |
* Thu Jan 28 2021 Brian Read <brianr@bjsystems.co.uk> 0.2-6.sme |
48 |
|
|
- Change-After-in-Service-file-to-network-service-from-target [SME: 11324] |
49 |
|
|
|
50 |
brianr |
1.6 |
* Sun Jan 24 2021 Brian Read <brianr@bjsystems.co.uk> 0.2-5.sme |
51 |
|
|
- Add-Restart-to-service-file.patch [SME: 11324 ] |
52 |
|
|
|
53 |
brianr |
1.5 |
* Sat Jan 23 2021 Brian Read <brianr@bjsystems.co.uk> 0.2-4.sme |
54 |
|
|
- Move exec to /sbin/e-smith/systemd/bridge-run, add service file [SME: 11324] |
55 |
brianr |
1.4 |
|
56 |
brianr |
1.2 |
* Thu Jan 14 2021 Brian Read <brianr@bjsystems.co.uk> 0.2-2.sme |
57 |
|
|
- Initial Import to SME10 [SME: 11324] |
58 |
brianr |
1.3 |
- Update-Createlinks-for-systemd.patch |
59 |
brianr |
1.2 |
|
60 |
brianr |
1.1 |
* Mon Nov 11 2013 Daniel B. <daniel@firewall-services.com> - 0.2-1.sme |
61 |
|
|
- Rebuild for SME9 |
62 |
|
|
|
63 |
|
|
* Tue Jun 19 2012 Daniel B. <daniel@firewall-services.com> - 0.1-6.sme |
64 |
|
|
- Wait after physical interface config |
65 |
|
|
(fix a random bug in serveronly mode) |
66 |
|
|
- Ensure the bridge takes the MAC address of the physical interface |
67 |
|
|
- Optionally set the bridge interface in promiscuous mode |
68 |
|
|
|
69 |
|
|
* Tue Apr 19 2011 Daniel B. <daniel@firewall-services.com> - 0.1-5.sme |
70 |
|
|
- Fix ifcfg templates expension on SME8 [SME: 6092] |
71 |
|
|
|
72 |
|
|
* Fri May 29 2009 Daniel B. <daniel@firewall-services.com> [0.1-4] |
73 |
|
|
- Enhance init script to display what it's doing (starting/stoping etc...) |
74 |
|
|
- Cleanup in spec file |
75 |
|
|
|
76 |
|
|
* Fri Jan 16 2009 Daniel B. <daniel@firewall-services.com> [0.1-3] |
77 |
|
|
- Set default status to enabled |
78 |
|
|
|
79 |
|
|
* Mon Jan 12 2009 Daniel B. <daniel@firewall-services.com> [0.1-2] |
80 |
|
|
- possibility to set multiple tap interfaces separated with commas |
81 |
|
|
|
82 |
|
|
* Fri Dec 12 2008 Daniel B. <daniel@firewall-services.com> [0.1-1] |
83 |
|
|
- Set the Name of InternalInterface to br0 when starting |
84 |
|
|
- Do not set the Name of InternalInterface to br0 if service is disabled |
85 |
|
|
(during databases initialization) |
86 |
|
|
|
87 |
|
|
* Tue Dec 02 2008 Daniel B. <daniel@firewall-services.com> [0.1-0] |
88 |
|
|
- initial release |
89 |
|
|
|
90 |
|
|
%prep |
91 |
|
|
|
92 |
|
|
%setup -q -n %{name}-%{version} |
93 |
brianr |
1.3 |
%patch0 -p1 |
94 |
brianr |
1.4 |
%patch1 -p1 |
95 |
brianr |
1.6 |
%patch2 -p1 |
96 |
brianr |
1.7 |
%patch3 -p1 |
97 |
jpp |
1.8 |
%patch4 -p1 |
98 |
brianr |
1.1 |
|
99 |
|
|
%build |
100 |
|
|
# Build symlinks |
101 |
|
|
perl createlinks |
102 |
|
|
|
103 |
|
|
%install |
104 |
|
|
rm -rf $RPM_BUILD_ROOT |
105 |
|
|
(cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT) |
106 |
|
|
/sbin/e-smith/genfilelist $RPM_BUILD_ROOT \ |
107 |
|
|
> %{name}-%{version}-%{release}-filelist |
108 |
|
|
|
109 |
brianr |
1.5 |
chmod +x %{buildroot}/sbin/e-smith/systemd/bridge-run |
110 |
brianr |
1.4 |
|
111 |
|
|
|
112 |
brianr |
1.1 |
%clean |
113 |
|
|
rm -rf $RPM_BUILD_ROOT |
114 |
|
|
|
115 |
|
|
%files -f %{name}-%{version}-%{release}-filelist |
116 |
|
|
%defattr(-,root,root) |
117 |
|
|
|
118 |
|
|
|
119 |
|
|
%post |
120 |
|
|
|
121 |
|
|
%preun |
122 |
brianr |
1.3 |
#if [ $1 = 0 ] ; then |
123 |
|
|
# /etc/rc.d/init.d/bridge stop >& /dev/null || : |
124 |
|
|
#fi |
125 |
brianr |
1.1 |
|
126 |
|
|
true |
127 |
|
|
|