#Maintainer: Thorsten Muehlfelder # Mandatory pkgname=bridge-utils pkgver=20081119 pkgrel=1 zenver=54 arch=i486 source=("rc.netbridge" "http://thenktor.dyndns.org/packages/$pkgname/$pkgname-$pkgver.src.tar.gz") sourcetemplate=http://thenktor.dyndns.org/packages/$pkgname/ dotnew=('etc/rc.d/rc.netbridge.conf') url="http://www.linuxfoundation.org/en/Net:Bridge" docs=('FAQ' 'FIREWALL' 'HOWTO' 'README' 'COPYING' 'PROJECTS') slackdesc=\ ( #|-----handy-ruler------------------------------------------------------| "$pkgname - (network Ethernet bridging utilities)" "This package contains utilities for configuring Linux Ethernet" "bridges. The Linux Ethernet bridge can be used for connecting" "multiple Ethernet devices together. The connecting is fully" "transparent. Hosts connected to one Ethernet device see hosts" "connected through a bridge to the other Ethernet devices directly." ) build() { cd $startdir/src/${pkgname} aclocal || return 1 autoconf || return 1 ./configure --prefix=/usr --sysconfdir=/etc || return 1 make -j3 || return 1 make DESTDIR=$startdir/pkg install mkdir -p $startdir/pkg/etc/rc.d/ cd $startdir/src cp rc.netbridge $startdir/pkg/etc/rc.d || return 1 chmod 755 $startdir/pkg/etc/rc.d/rc.netbridge || return 1 cat << "EOF" > $startdir/pkg/etc/rc.d/rc.netbridge.conf || return 1 # /etc/rc.d/rc.netbridge.conf # # This file contains the configuration settings for network bridges. # You can configure network bridges other than br0,br1... by setting # IFNAME[interface] to the bridge's name. If IFNAME[interface] is unset # or empty, it is assumed you're configuring br. # The end of this file contains a comprehensive set of examples. # You have to set up IP address as usual in /etc/rc.d/rc.inet1.conf # Note for DHCP: If you want to use DHCP you have to specify a MAC address # for your bridge. Set it to the same address like your first port of the # bridge. Use HWADDR[0]="00:01:23:45:67:89" in rc.inet.conf. # ============================================================================= # Config information for br0: #IFNAME[0]="br0" #BRPORTS[0]="" #BRSTP[0]="on" # Config information for br1: #IFNAME[1]="br1" #BRPORTS[1]="" #BRSTP[1]="on" # Change this to "yes" for debugging output to stdout. Unfortunately, # /sbin/hotplug seems to disable stdout so you'll only see debugging output # when rc.netbridge is called directly. DEBUG_BR_UP="no" ## Example config information for br2. Uncomment the lines you need and fill ## in your info. (You may not need all of these for your wireless network) ## For more information about the available settings take a look at: ## http://www.linuxfoundation.org/en/Net:Bridge #IFNAME[2]="br2" # Define the ports, that are part of the bridge (space separated list): #BRPORTS[2]="eth3 eth4 eth5" # Use spanning tree protocol (on/off): #BRSTP[2]="on" # Set bridge priority (priority): #BRPRIO[2]="" # Set path priority and cost (port cost): # NOT USEABLE YET - BRPATHPRIO="" # Set forwarding delay time (time): #BRFD[2]="" # Set hello packet time (time): #BRHELLO[2]="" # Set max age timeout (time): #BRMAXAGE[2]="" EOF chmod 644 $startdir/pkg/etc/rc.d/rc.netbridge.conf }