--- rpms/smeserver-bridge-interface/contribs10/smeserver-bridge-interface.spec 2021/01/14 20:08:15 1.1 +++ rpms/smeserver-bridge-interface/contribs10/smeserver-bridge-interface.spec 2021/01/22 08:50:42 1.4 @@ -1,9 +1,9 @@ -# $Id: smeserver-bridge-interface.spec,v 1.1 2013/11/11 17:21:01 vip-ire Exp $ +# $Id: smeserver-bridge-interface.spec,v 1.3 2021/01/20 15:45:26 brianr Exp $ # Authority: vip-ire # Name: Daniel Berteaud %define version 0.2 -%define release 1 +%define release 3 %define name smeserver-bridge-interface @@ -27,6 +27,9 @@ Conflicts: smeserver-openvpn-bridge.fws Conflicts: smeserver-openvpn-bridge-fws AutoReqProv: no +Patch0:smeserver-bridge-interface-0.2-Update-Createlinks-for-systemd.patch +Patch1:smeserver-bridge-interface-0.2-Move-exec-to-usr-sbin-and-add-service-file.patch + %description This package allows you to replace the internal interface with a bridge interface (and the original internal interface enslaved to it). @@ -34,6 +37,13 @@ It's usefull for OpenVPN in bridge mode configuration %changelog +* Thu Jan 21 2021 Brian Read 0.2-3.sme +- Move exec to /usr/sbin, add service file [SME: 11324] + +* Thu Jan 14 2021 Brian Read 0.2-2.sme +- Initial Import to SME10 [SME: 11324] +- Update-Createlinks-for-systemd.patch + * Mon Nov 11 2013 Daniel B. - 0.2-1.sme - Rebuild for SME9 @@ -67,6 +77,8 @@ configuration %prep %setup -q -n %{name}-%{version} +%patch0 -p1 +%patch1 -p1 %build # Build symlinks @@ -78,6 +90,9 @@ rm -rf $RPM_BUILD_ROOT /sbin/e-smith/genfilelist $RPM_BUILD_ROOT \ > %{name}-%{version}-%{release}-filelist +chmod +x %{buildroot}/usr/sbin/bridge-interface + + %clean rm -rf $RPM_BUILD_ROOT @@ -88,9 +103,9 @@ rm -rf $RPM_BUILD_ROOT %post %preun -if [ $1 = 0 ] ; then - /etc/rc.d/init.d/bridge stop >& /dev/null || : -fi +#if [ $1 = 0 ] ; then +# /etc/rc.d/init.d/bridge stop >& /dev/null || : +#fi true