# $Id: smeserver-bridge-interface.spec,v 1.4 2011/04/19 12:00:15 vip-ire Exp $ # Authority: vip-ire # Name: Daniel Berteaud %define version 0.1 %define release 6 %define name smeserver-bridge-interface Summary: Configure a bridge interface Name: %{name} Version: %{version} Release: %{release}%{?dist} License: GPL Group: System/Servers Source: %{name}-%{version}.tar.gz Patch0: smeserver-bridge-interface-0.1-set_internal_to_br.patch Patch1: smeserver-bridge-interface-0.1-migrate_db_when_disabled.patch Patch2: smeserver-bridge-interface-0.1-init_script.patch Patch3: smeserver-bridge-interface-0.1-status_enabled.patch Patch4: smeserver-bridge-interface-0.1-display_stop_start.patch Patch5: smeserver-bridge-interface-0.1-disable_bridge_during_console_save.patch Patch6: smeserver-bridge-interface-0.1-sleep_after_ifconfig_eth.patch Patch7: smeserver-bridge-interface-0.1-br_takes_eth_mac.patch Patch8: smeserver-bridge-interface-0.1-bridge_promisc.patch BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot URL: http://www.firewall-services.com/ BuildRequires: e-smith-devtools Requires: bridge-utils Requires: openvpn Buildarch: noarch Conflicts: smeserver-openvpn-bridge.fws Conflicts: smeserver-openvpn-bridge-fws AutoReqProv: no %description This package allows you to replace the internal interface with a bridge interface (and the original internal interface enslaved to it). It's usefull for OpenVPN in bridge mode but can also be used for virtual host configuration %changelog * Tue Jun 19 2012 Daniel B. - 0.1-6.sme - Wait after physical interface config (fix a random bug in serveronly mode) - Ensure the bridge takes the MAC address of the physical interface - Optionally set the bridge interface in promiscuous mode * Tue Apr 19 2011 Daniel B. - 0.1-5.sme - Fix ifcfg templates expension on SME8 [SME: 6092] * Fri May 29 2009 Daniel B. [0.1-4] - Enhance init script to display what it's doing (starting/stoping etc...) - Cleanup in spec file * Fri Jan 16 2009 Daniel B. [0.1-3] - Set default status to enabled * Mon Jan 12 2009 Daniel B. [0.1-2] - possibility to set multiple tap interfaces separated with commas * Fri Dec 12 2008 Daniel B. [0.1-1] - Set the Name of InternalInterface to br0 when starting - Do not set the Name of InternalInterface to br0 if service is disabled (during databases initialization) * Tue Dec 02 2008 Daniel B. [0.1-0] - initial release %prep %setup -q -n %{name}-%{version} %patch0 -p1 %patch1 -p1 %patch2 -p1 %patch3 -p1 %patch4 -p1 %patch5 -p1 %patch6 -p1 %patch7 -p1 %patch8 -p1 %build # Build symlinks perl createlinks %install rm -rf $RPM_BUILD_ROOT (cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT) /sbin/e-smith/genfilelist $RPM_BUILD_ROOT \ > %{name}-%{version}-%{release}-filelist %clean rm -rf $RPM_BUILD_ROOT %files -f %{name}-%{version}-%{release}-filelist %defattr(-,root,root) %post %preun if [ $1 = 0 ] ; then /etc/rc.d/init.d/bridge stop >& /dev/null || : fi true