1 |
# $Id: smeserver-bridge-interface.spec,v 1.1 2021/01/14 20:08:15 brianr Exp $ |
# $Id: smeserver-bridge-interface.spec,v 1.3 2021/01/20 15:45:26 brianr 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 3 |
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-usr-sbin-and-add-service-file.patch |
32 |
|
|
33 |
%description |
%description |
34 |
This package allows you to replace the internal interface with a bridge |
This package allows you to replace the internal interface with a bridge |
35 |
interface (and the original internal interface enslaved to it). |
interface (and the original internal interface enslaved to it). |
37 |
configuration |
configuration |
38 |
|
|
39 |
%changelog |
%changelog |
40 |
|
* Thu Jan 21 2021 Brian Read <brianr@bjsystems.co.uk> 0.2-3.sme |
41 |
|
- Move exec to /usr/sbin, add service file [SME: 11324] |
42 |
|
|
43 |
* 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 |
44 |
- Initial Import to SME10 [SME: 11324] |
- Initial Import to SME10 [SME: 11324] |
45 |
|
- Update-Createlinks-for-systemd.patch |
46 |
|
|
47 |
* 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 |
48 |
- Rebuild for SME9 |
- Rebuild for SME9 |
77 |
%prep |
%prep |
78 |
|
|
79 |
%setup -q -n %{name}-%{version} |
%setup -q -n %{name}-%{version} |
80 |
|
%patch0 -p1 |
81 |
|
%patch1 -p1 |
82 |
|
|
83 |
%build |
%build |
84 |
# Build symlinks |
# Build symlinks |
90 |
/sbin/e-smith/genfilelist $RPM_BUILD_ROOT \ |
/sbin/e-smith/genfilelist $RPM_BUILD_ROOT \ |
91 |
> %{name}-%{version}-%{release}-filelist |
> %{name}-%{version}-%{release}-filelist |
92 |
|
|
93 |
|
chmod +x %{buildroot}/usr/sbin/bridge-interface |
94 |
|
|
95 |
|
|
96 |
%clean |
%clean |
97 |
rm -rf $RPM_BUILD_ROOT |
rm -rf $RPM_BUILD_ROOT |
98 |
|
|
103 |
%post |
%post |
104 |
|
|
105 |
%preun |
%preun |
106 |
if [ $1 = 0 ] ; then |
#if [ $1 = 0 ] ; then |
107 |
/etc/rc.d/init.d/bridge stop >& /dev/null || : |
# /etc/rc.d/init.d/bridge stop >& /dev/null || : |
108 |
fi |
#fi |
109 |
|
|
110 |
true |
true |
111 |
|
|