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