1 |
# $Id: smeserver-bridge-interface.spec,v 1.1 2013/11/11 17:21:01 vip-ire Exp $ |
# $Id: smeserver-bridge-interface.spec,v 1.8 2021/03/23 17:19:55 jpp 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 1 |
%define release 8 |
7 |
%define name smeserver-bridge-interface |
%define name smeserver-bridge-interface |
8 |
|
|
9 |
|
|
27 |
Conflicts: smeserver-openvpn-bridge-fws |
Conflicts: smeserver-openvpn-bridge-fws |
28 |
AutoReqProv: no |
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 |
|
Patch3: smeserver-bridge-interface-0.2-Change-After-in-Service-file-to-network-service-from-target.patch |
34 |
|
Patch4: smeserver-bridge-interface-0.2-makeitcompatible.patch |
35 |
|
Patch5: smeserver-bridge-interface.0.2-dhcp-conflict-systemd-bz12271.patch |
36 |
|
|
37 |
%description |
%description |
38 |
This package allows you to replace the internal interface with a bridge |
This package allows you to replace the internal interface with a bridge |
39 |
interface (and the original internal interface enslaved to it). |
interface (and the original internal interface enslaved to it). |
41 |
configuration |
configuration |
42 |
|
|
43 |
%changelog |
%changelog |
44 |
|
* Fri Dec 16 2022 Terry Fage <terry@fage.ud.au> 0.2-8.sme |
45 |
|
- make bridge interface up on install [SME: 12271] |
46 |
|
|
47 |
|
* Tue Mar 23 2021 Jean-Philippe Pialasse <tests@pialasse.com> 0.2-7.sme |
48 |
|
- make bridge interface up on install [SME: 11485] |
49 |
|
- modify support for dhcp with bridge |
50 |
|
|
51 |
|
* Thu Jan 28 2021 Brian Read <brianr@bjsystems.co.uk> 0.2-6.sme |
52 |
|
- Change-After-in-Service-file-to-network-service-from-target [SME: 11324] |
53 |
|
|
54 |
|
* Sun Jan 24 2021 Brian Read <brianr@bjsystems.co.uk> 0.2-5.sme |
55 |
|
- Add-Restart-to-service-file.patch [SME: 11324 ] |
56 |
|
|
57 |
|
* Sat Jan 23 2021 Brian Read <brianr@bjsystems.co.uk> 0.2-4.sme |
58 |
|
- Move exec to /sbin/e-smith/systemd/bridge-run, add service file [SME: 11324] |
59 |
|
|
60 |
|
* Thu Jan 14 2021 Brian Read <brianr@bjsystems.co.uk> 0.2-2.sme |
61 |
|
- Initial Import to SME10 [SME: 11324] |
62 |
|
- Update-Createlinks-for-systemd.patch |
63 |
|
|
64 |
* 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 |
65 |
- Rebuild for SME9 |
- Rebuild for SME9 |
66 |
|
|
94 |
%prep |
%prep |
95 |
|
|
96 |
%setup -q -n %{name}-%{version} |
%setup -q -n %{name}-%{version} |
97 |
|
%patch0 -p1 |
98 |
|
%patch1 -p1 |
99 |
|
%patch2 -p1 |
100 |
|
%patch3 -p1 |
101 |
|
%patch4 -p1 |
102 |
|
%patch5 -p1 |
103 |
|
|
104 |
%build |
%build |
105 |
# Build symlinks |
# Build symlinks |
111 |
/sbin/e-smith/genfilelist $RPM_BUILD_ROOT \ |
/sbin/e-smith/genfilelist $RPM_BUILD_ROOT \ |
112 |
> %{name}-%{version}-%{release}-filelist |
> %{name}-%{version}-%{release}-filelist |
113 |
|
|
114 |
|
chmod +x %{buildroot}/sbin/e-smith/systemd/bridge-run |
115 |
|
|
116 |
|
|
117 |
%clean |
%clean |
118 |
rm -rf $RPM_BUILD_ROOT |
rm -rf $RPM_BUILD_ROOT |
119 |
|
|
124 |
%post |
%post |
125 |
|
|
126 |
%preun |
%preun |
127 |
if [ $1 = 0 ] ; then |
#if [ $1 = 0 ] ; then |
128 |
/etc/rc.d/init.d/bridge stop >& /dev/null || : |
# /etc/rc.d/init.d/bridge stop >& /dev/null || : |
129 |
fi |
#fi |
130 |
|
|
131 |
true |
true |
132 |
|
|