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