1 |
# $Id: smeserver-bridge-interface.spec,v 1.1 2021/01/14 20:08:15 brianr Exp $ |
# $Id: smeserver-bridge-interface.spec,v 1.9 2022/12/15 19:19:21 terryfage Exp $ |
2 |
# Authority: vip-ire |
# Authority: vip-ire |
3 |
# Name: Daniel Berteaud |
# Name: Daniel Berteaud |
4 |
|
|
5 |
%define version 0.2 |
%define version 0.2 |
6 |
%define release 2 |
%define release 9 |
7 |
%define name smeserver-bridge-interface |
%define name smeserver-bridge-interface |
8 |
|
|
9 |
|
|
22 |
|
|
23 |
Requires: bridge-utils |
Requires: bridge-utils |
24 |
Requires: openvpn |
Requires: openvpn |
25 |
|
Requires: e-smith-base >= 5.8.1-23 |
26 |
Buildarch: noarch |
Buildarch: noarch |
27 |
Conflicts: smeserver-openvpn-bridge.fws |
Conflicts: smeserver-openvpn-bridge.fws |
28 |
Conflicts: smeserver-openvpn-bridge-fws |
Conflicts: smeserver-openvpn-bridge-fws |
29 |
AutoReqProv: no |
AutoReqProv: no |
30 |
|
|
31 |
|
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 |
|
Patch4: smeserver-bridge-interface-0.2-makeitcompatible.patch |
36 |
|
Patch5: smeserver-bridge-interface.0.2-dhcp-conflict-systemd-bz12271.patch |
37 |
|
Patch6: smeserver-bridge-interface.0.2-dhcp-base-compat--bz12271.patch |
38 |
|
|
39 |
%description |
%description |
40 |
This package allows you to replace the internal interface with a bridge |
This package allows you to replace the internal interface with a bridge |
41 |
interface (and the original internal interface enslaved to it). |
interface (and the original internal interface enslaved to it). |
43 |
configuration |
configuration |
44 |
|
|
45 |
%changelog |
%changelog |
46 |
|
* 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 |
|
- make bridge interface up on install [SME: 12271] |
51 |
|
|
52 |
|
* 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 |
|
* 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 |
|
* 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 |
|
* 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 |
|
|
65 |
* Thu Jan 14 2021 Brian Read <brianr@bjsystems.co.uk> 0.2-2.sme |
* Thu Jan 14 2021 Brian Read <brianr@bjsystems.co.uk> 0.2-2.sme |
66 |
- Initial Import to SME10 [SME: 11324] |
- Initial Import to SME10 [SME: 11324] |
67 |
|
- Update-Createlinks-for-systemd.patch |
68 |
|
|
69 |
* Mon Nov 11 2013 Daniel B. <daniel@firewall-services.com> - 0.2-1.sme |
* Mon Nov 11 2013 Daniel B. <daniel@firewall-services.com> - 0.2-1.sme |
70 |
- Rebuild for SME9 |
- Rebuild for SME9 |
99 |
%prep |
%prep |
100 |
|
|
101 |
%setup -q -n %{name}-%{version} |
%setup -q -n %{name}-%{version} |
102 |
|
%patch0 -p1 |
103 |
|
%patch1 -p1 |
104 |
|
%patch2 -p1 |
105 |
|
%patch3 -p1 |
106 |
|
%patch4 -p1 |
107 |
|
%patch5 -p1 |
108 |
|
%patch6 -p1 |
109 |
|
|
110 |
%build |
%build |
111 |
# Build symlinks |
# Build symlinks |
117 |
/sbin/e-smith/genfilelist $RPM_BUILD_ROOT \ |
/sbin/e-smith/genfilelist $RPM_BUILD_ROOT \ |
118 |
> %{name}-%{version}-%{release}-filelist |
> %{name}-%{version}-%{release}-filelist |
119 |
|
|
120 |
|
chmod +x %{buildroot}/sbin/e-smith/systemd/bridge-run |
121 |
|
|
122 |
|
|
123 |
%clean |
%clean |
124 |
rm -rf $RPM_BUILD_ROOT |
rm -rf $RPM_BUILD_ROOT |
125 |
|
|
130 |
%post |
%post |
131 |
|
|
132 |
%preun |
%preun |
133 |
if [ $1 = 0 ] ; then |
#if [ $1 = 0 ] ; then |
134 |
/etc/rc.d/init.d/bridge stop >& /dev/null || : |
# /etc/rc.d/init.d/bridge stop >& /dev/null || : |
135 |
fi |
#fi |
136 |
|
|
137 |
true |
true |
|
|
|