chore(net-misc/bridge-utils): import bridge-utils

This commit is contained in:
Brandon Philips 2013-04-03 20:36:15 -07:00
parent 2cf6deaa15
commit bebb18a6c8
11 changed files with 547 additions and 0 deletions

View File

@ -0,0 +1,248 @@
# ChangeLog for net-misc/bridge-utils
# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
# $Header: /var/cvsroot/gentoo-x86/net-misc/bridge-utils/ChangeLog,v 1.59 2013/03/06 17:27:03 ssuominen Exp $
06 Mar 2013; Samuli Suominen <ssuominen@gentoo.org> bridge-utils-1.5.ebuild,
+files/bridge-utils-1.5-linux-3.8.patch:
Unfortunately linux/if_bridge.h is not self-contained and struct for ip6 is
in netinet/ip6.h (since Linux 3.8+) wrt #460262 by Guillaume Castagnino
19 May 2012; Anthony G. Basile <blueness@gentoo.org> bridge-utils-1.5.ebuild:
keyword mips, bug #405835
*bridge-utils-1.5 (15 Jun 2011)
15 Jun 2011; Jeroen Roovers <jer@gentoo.org> +bridge-utils-1.5.ebuild:
Version bump. Remove old init script warning.
19 Sep 2010; Michael Weber <xmw@gentoo.org> bridge-utils-1.4.ebuild:
Added ~arm keyword
12 Feb 2010; Robin H. Johnson <robbat2@gentoo.org>
bridge-utils-1.4.ebuild:
Add warning message for lack of CONFIG_BRIDGE, and add ~ppc64 keyword per
request by JoseJX.
09 May 2009; Raúl Porcel <armin76@gentoo.org> bridge-utils-1.4.ebuild:
sparc stable wrt #268323
04 Oct 2008; Raúl Porcel <armin76@gentoo.org> bridge-utils-1.4.ebuild:
ia64/x86 stable wrt #239119
02 Oct 2008; Brent Baude <ranger@gentoo.org> bridge-utils-1.4.ebuild:
stable ppc, bug 239119
30 Sep 2008; Jeroen Roovers <jer@gentoo.org> bridge-utils-1.4.ebuild:
Stable for HPPA (bug #239119).
30 Sep 2008; Jeremy Olexa <darkside@gentoo.org> bridge-utils-1.4.ebuild:
amd64 stable, bug #239119
30 Sep 2008; Robin H. Johnson <robbat2@gentoo.org>
bridge-utils-1.2.ebuild, bridge-utils-1.4.ebuild:
Bug #238782, spelling fix.
28 Sep 2008; Raúl Porcel <armin76@gentoo.org> bridge-utils-1.4.ebuild:
Add ~sparc wrt #238183
05 Jun 2008; Robin H. Johnson <robbat2@gentoo.org>
bridge-utils-1.2.ebuild:
Fix syntax.
*bridge-utils-1.4 (05 Jun 2008)
05 Jun 2008; Robin H. Johnson <robbat2@gentoo.org>
+bridge-utils-1.4.ebuild:
Version bump per bug #204744. Cross compile should work now.
28 Apr 2008; Doug Goldstein <cardoe@gentoo.org>
-bridge-utils-1.0.6-r3.ebuild, bridge-utils-1.2.ebuild:
remove USE=sysfs from bridge-utils-1.2 since it's unused (bug #219600) and
remove old version
14 Jan 2008; Robin H. Johnson <robbat2@gentoo.org> metadata.xml:
Update metadata.
11 May 2007; Jeroen Roovers <jer@gentoo.org> bridge-utils-1.2.ebuild:
Stable for HPPA (bug #173864).
22 Apr 2007; Tobias Scherbaum <dertobi123@gentoo.org>
bridge-utils-1.2.ebuild:
ppc stable, bug #173864
21 Apr 2007; Robin H. Johnson <robbat2@gentoo.org>
-bridge-utils-0.9.6-r2.ebuild, -bridge-utils-1.0.4.ebuild,
-bridge-utils-1.0.6.ebuild, -bridge-utils-1.0.6-r2.ebuild:
Remove old ebuilds per bug #174266.
09 Apr 2007; Raúl Porcel <armin76@gentoo.org> bridge-utils-1.2.ebuild:
ia64 stable wrt bug 173864
09 Apr 2007; Peter Weller <welp@gentoo.org> bridge-utils-1.2.ebuild:
Stable on amd64 wrt bug 173864
09 Apr 2007; Raúl Porcel <armin76@gentoo.org> bridge-utils-1.2.ebuild:
x86 stable wrt bug 173864
07 Nov 2006; Joel Martin <kanaka@gentoo.org> bridge-utils-1.0.6-r3.ebuild,
bridge-utils-1.2.ebuild:
Use get_libdir instead of just 'lib'
04 Nov 2006; Tobias Scherbaum <dertobi123@gentoo.org>
bridge-utils-1.0.6-r3.ebuild, bridge-utils-1.2.ebuild:
Added ~hppa
*bridge-utils-1.2 (25 Sep 2006)
25 Sep 2006; Robin H. Johnson <robbat2@gentoo.org>
+bridge-utils-1.2.ebuild:
Version bump, bug #148084 - upstream no longer uses sysfsutils.
04 Jul 2006; Robin H. Johnson <robbat2@gentoo.org>
bridge-utils-1.0.6-r3.ebuild:
Bug #138199 - fix for using autoconf-2.60.
25 Apr 2006; Luca Barbato <lu_zero@gentoo.org>
bridge-utils-1.0.6-r3.ebuild:
Marked ppc
29 Mar 2006; Aron Griffis <agriffis@gentoo.org>
bridge-utils-1.0.6-r3.ebuild:
Mark 1.0.6-r3 stable on ia64
16 Feb 2006; Aron Griffis <agriffis@gentoo.org>
bridge-utils-1.0.6-r3.ebuild:
Mark 1.0.6-r3 ~ia64
19 Jan 2006; Marcus D. Hanwell <cryos@gentoo.org>
bridge-utils-1.0.6-r3.ebuild:
Stable on amd64.
15 Aug 2005; Robin H. Johnson <robbat2@gentoo.org>
bridge-utils-1.0.6-r3.ebuild:
1.0.6-r3 to stable x86, so that it works for 2.4 users, and also throw in a
bit more error checking (bug #102588).
*bridge-utils-1.0.6-r3 (05 Aug 2005)
05 Aug 2005; Robin H. Johnson <robbat2@gentoo.org>
+files/bridge-utils-1.0.6-allow-without-sysfs.patch,
+bridge-utils-1.0.6-r3.ebuild:
Bug #69292: Make it possible to compile without sysfs, so the new versions
work well for 2.4 users.
12 Jul 2005; Simon Stelling <blubb@gentoo.org>
bridge-utils-1.0.6-r2.ebuild:
stable on amd64
*bridge-utils-1.0.6-r2 (12 Jul 2005)
12 Jul 2005; Roy Marples <uberlord@gentoo.org>
-bridge-utils-1.0.6-r1.ebuild, +bridge-utils-1.0.6-r2.ebuild:
epatch requires eutils
rev bumped as r1 still compiled - but without the patch!
*bridge-utils-1.0.6-r1 (12 Jul 2005)
12 Jul 2005; Robin H. Johnson <robbat2@gentoo.org>
+files/bridge-utils-1.0.6-dont-error-on-no-ports.patch,
+bridge-utils-1.0.6-r1.ebuild:
Bug #98005: Ensure correct behavior when there are no ports on the bridge.
04 Jul 2005; Robin H. Johnson <robbat2@gentoo.org>
bridge-utils-1.0.6.ebuild:
Stable 1.0.6 on x86.
03 Jul 2005; Robin H. Johnson <robbat2@gentoo.org>
-bridge-utils-0.9.6.ebuild, -bridge-utils-0.9.6-r1.ebuild:
Remove some old ebuilds.
*bridge-utils-0.9.6-r2 (03 Jul 2005)
03 Jul 2005; Robin H. Johnson <robbat2@gentoo.org>
+bridge-utils-0.9.6-r2.ebuild:
Add bridge-utils-0.9.6-r2 that uses the bridge support in the new
baselayout, instead of the old init scripts.
02 Jul 2005; Robin H. Johnson <robbat2@gentoo.org>
bridge-utils-1.0.6.ebuild:
Add ~amd64 to newest ebuild since it seems to exist on an old one only.
06 May 2005; Sven Wegener <swegener@gentoo.org> bridge-utils-1.0.6.ebuild:
Removed * postfix from <, <=, >= and > dependencies.
*bridge-utils-1.0.6 (29 Apr 2005)
29 Apr 2005; Robin H. Johnson <robbat2@gentoo.org>
+bridge-utils-1.0.6.ebuild:
Version bump - now uses baselayout's bridge stuff.
28 Apr 2005; Robin H. Johnson <robbat2@gentoo.org>
bridge-utils-1.0.4.ebuild:
Fix bug #69292, missing dep.
01 Jul 2004; Jon Hood <squinky86@gentoo.org> bridge-utils-0.9.6-r1.ebuild,
bridge-utils-0.9.6.ebuild, bridge-utils-1.0.4.ebuild:
change virtual/glibc to virtual/libc, add IUSE
18 Jun 2004; David Holm <dholm@gentoo.org> bridge-utils-1.0.4.ebuild:
Added to ~ppc.
17 Jun 2004; Jared Hudson <jhhudso@gentoo.org> bridge-utils-0.9.6-r1.ebuild,
bridge-utils-0.9.6.ebuild, bridge-utils-1.0.4.ebuild:
Fixed SRC_URI to point to sourceforge's new bridge util location, set 0.9.6
to x86 and bumped bridge-utils to 1.0.4 (~x86)
26 Apr 2004; Aron Griffis <agriffis@gentoo.org>
bridge-utils-0.9.6-r1.ebuild, bridge-utils-0.9.6.ebuild:
Add die following econf for bug 48950
02 Apr 2004; Daniel Ahlberg <aliz@gentoo.org> bridge-utils-0.9.6-r1.ebuild:
Adding amd64 keyword, closing #46552.
*bridge-utils-0.9.6-r1 (18 Mar 2004)
18 Mar 2004; Jared Hudson <jhhudso@gentoo.org> bridge-utils-0.9.6-r1.ebuild,
bridge-utils-0.9.6.ebuild, metadata.xml, files/bridge.conf, files/bridge.rc:
Added an init script to the bridge port thanks to Gustavo Felisberto
<humpback@gentoo.org> and Denis Knauf <deac@linux-ist-pleite.de>
25 Feb 2004; Patrick Kursawe <phosphan@gentoo.org>
bridge-utils-0.9.3-r1.ebuild, bridge-utils-0.9.6.ebuild:
Cleanup
25 Feb 2004; Patrick Kursawe <phosphan@gentoo.org>
bridge-utils-0.9.6.ebuild:
Added additional check for build success because of bug #42548
24 Apr 2003; Patrick Kursawe <phosphan@gentoo.org> bridge-utils-0.9.6.ebuild :
Considered stable for x86
*bridge-utils-0.9.6 (02 Apr 2003)
02 Apr 2003; Patrick Kursawe <phosphan@gentoo.org> bridge-utils-0.9.6.ebuild,
files/digest-bridge-utils-0.9.6 :
New version, moved binaries to /sbin since they can be necessary for
bringing the network up.
06 Dec 2002; Rodney Rees <manson@gentoo.org> : changed sparc ~sparc keywords
*bridge-utils-0.9.3-r1 (3 May 2002)
6 Jul 2002; phoen][x <phoenix@gentoo.org> :
Added KEYWORDS.
3 May 2002; Donny Davies <woodchip@gentoo.org> :
Added LICENSE, SLOT.
*bridge-utils-0.9.3 (1 Feb 2002)
1 Feb 2002; G.Bevin <gbevin@gentoo.org> ChangeLog :
Added initial ChangeLog which should be updated whenever the package is
updated in any way. This changelog is targetted to users. This means that the
comments should well explained and written in clean English. The details about
writing correct changelogs are explained in the skel.ChangeLog file which you
can find in the root directory of the portage repository.

View File

@ -0,0 +1,27 @@
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
AUX bridge-utils-1.0.6-allow-without-sysfs.patch 1013 SHA256 94189e72b9e3a87cf0d2aadc81ad833a9c0bd22153625eac172cb7f5585e0bef SHA512 1a546830a680264657f51fdba25102c497471bad7064bb9ef082cd0636ec608f3b40c985518ebb08e299fe1c50eab2dad28c7e5a4e0a9917dc5bea2e5fd78794 WHIRLPOOL 56ad5ca693ef0f9fe5cee3396902cc99bd0c0e01e4922df6cc0a1c29ea186c460203b2e9e41780718995b05c10cc51ed7a2c43a31c2a1349ae23c14ec048052a
AUX bridge-utils-1.0.6-dont-error-on-no-ports.patch 330 SHA256 12987879314b68d49adbc650c565cdaf12e5a0d9280de158e367ca194ef70226 SHA512 e7e0b67f5a5a068a776c8ddea7b729ca6b14a5df17fa343bf253e4b672593b5e6491536e59334f4bed63a0df10bc0ba705921bdef34273edb7daf0a614f7bb2e WHIRLPOOL ac724f2767ef973a810743e118191482f5af398ca165157856f7d0c7fd0d28d88d7a63e0cfba9406907d8f715e721d3a6a288717c25b2de385ef92d08ee6800e
AUX bridge-utils-1.5-linux-3.8.patch 435 SHA256 ce60b2328784307ad7a408fad96c0e0165b7740d1e4aaadb3cf2d6e6feaef235 SHA512 dea1668cc0b76b1f88e7040262e3056db278000df2680e8d3a1596b6821e7f8213a0e67ae26ffc23950b848c2ccc5dabf61baf6c40159eecfb7c22118dec2635 WHIRLPOOL 056fdf262ac2765a6996d54da8014d1f52d72d646ac215476dfb14bdb983fd0c8283ff61a056d3d909ef9a9cd1f0cb7cc08db112e4f477204d8a94371edf84ea
AUX bridge.conf 106 SHA256 db4b0898067342cee89b7cc938a24dbfccecc688e01c75097cbae1c1ea6af6c5 SHA512 3ee97868aa7e7b3a9b6cb0504649500fbeacbca68fa1f0ec5f836fd39abef5bbbd1b847e3d2e39c3c01e56949d9cb36dfd78f78d7671360d7cdd3bcbafac5d82 WHIRLPOOL 2b2d4be78f81cef56fc9da46810bc9e4fb9f788b693bdb70f1ed0eedc42311e82f7ba26afb080c90e0c096a66ba851f1b831dfd24ed2864beebbc32679bcdd10
AUX bridge.rc 939 SHA256 1280585cb84c05dee625a40be8316f8e3a8e2c870b67a80ed278233b7571141e SHA512 c970b875086e7416012b8093089b384b79707223140520459875138233cf1223566cb620cdfb364f77afc962a99e7edcd4e9e4cfde78da432663e25e9e1c8e49 WHIRLPOOL 8f1680a043b6c0778fe365692cea4c56f83cefc1c2aa7e9e19e82946cc6e81e0514bfe218d13356a892cb7631576e42b376442246af431a21257c2fc37a608e6
DIST bridge-utils-1.2.tar.gz 32261 SHA256 c93b9fab6b12a80bcf69114aab66d1d298455e9269c44f9e5f6430c142f9e349
DIST bridge-utils-1.4.tar.gz 32657 SHA256 876975e9bcc302aa8b829161ea3348b12b9b879f1db0dc98feaed8d0e5dd5933
DIST bridge-utils-1.5.tar.gz 33243 SHA256 42f9e5fb8f6c52e63a98a43b81bd281c227c529f194913e1c51ec48a393b6688 SHA512 4e525fbd3defb509664ef3b728d9e5edfb92beaebdb5d7733d8203fb38cb3f4bb54d02dc1e28813889a2ee19c78b9b47da6d99c8032481a7fd7f104658dea7c3 WHIRLPOOL f11eb95ae9b562cb301bb1f657d87878f0a0729a2129b90fa5957747f078f3afe2ebdadd1eb7ea4a59e544acc8194cf1744126db9ba3f3704210bc18ee3480fa
EBUILD bridge-utils-1.2.ebuild 1452 SHA256 bb3b73d012dc1e3e2527ea93148a227dc67525bdff4555e9a6af697f76429af7 SHA512 26c08bed9f94010c3b3523bb2b691f92b65c00afaf6d2c3a18778b02c8f734f778c96cf06042724d9b4c9c726cdb35885a13a0a5add6a92a97d91023ada982bd WHIRLPOOL 5f1353d59e33e97539c7852bc637b3f4c757377a04a1a557895c8141e9804ae5158677d8b695033a10de60a2f413a59abb1bc06cd439d6ca73364ec91a49494d
EBUILD bridge-utils-1.4.ebuild 1468 SHA256 23db52a6ada35ac875ecb06663769af7c1c375e51862e9119040ede84fee8655 SHA512 26d26d93b404839acb684f9e9ba220c686a1300a51bfa479d0e663b3bff6ff3a5ad3ded5f410ff05a6133081761df0efb1abe6bec946f9b0d0c6e455b8aecd7b WHIRLPOOL 533c8d36df929030b9172bc0706a26cb1cbcd8113bd362c2201e0ab3f806ff32b091a6ff7d0796e08ff11649cb16bd65508aa19105a63b599050d25f1d5f48d3
EBUILD bridge-utils-1.5.ebuild 1283 SHA256 000720eee844b312e7dbe64eb1c2ba80badb95afe1ef39e0c82ca9e4de94cff9 SHA512 3212e82d0ce608b5ccfa173c3e16f053222df0abe099fd089f28f81d5949cd7b9469a27e7defda5fe9583d641afea55b6d9856d9689c22b0b074096522118813 WHIRLPOOL acc72fc69f83b00a02c1986cc773f355057364924fd5eef464135195260c376b3ef7e36c10dd5e644e5a47f790a76f21afdaaa17d0c8c8d487d3aff6d6bfe3ed
MISC ChangeLog 8743 SHA256 d164a728b2b2378e55be1411feb25e9ffeb6a13594e5b2d87e3176ddef918e5d SHA512 2f3089a0e882a5cecf03bfabc23f92dee7b6e807dded3fd72ed0c851677605180c2d80a6ce937ba88b438b2a0dac9bd3a259931e0a1d3e71039984e33c0d7b7a WHIRLPOOL 814b8e9b34eed3793eded674b1f5bba2bc664ac987dfefb66b809967ae3bcbb1708b2c0c6b901e29cecea9e7becaec71ecfdafb77458becfa921af8884285535
MISC metadata.xml 227 SHA256 eb6179099f91f31168c95bd4a018a01f37aa1eb8d9ba8d3ed039056bac71bcf8 SHA512 1e52da091741cb67f6a61955ebf0c314c3634d5cab187a27820fa76f36307cb9c404271360de061f9b2076dfa1e4f3fadb46a3834ad9fc6685fbc437e5c7c789 WHIRLPOOL 0baafc1e244b376dc66e10952a10ec634fabb384431da1bec9be95bb344109c7943c6e74ae249070a9c5ee93410714e2c9343a65e01309bac7918239b6492820
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.19 (GNU/Linux)
iQEcBAEBCAAGBQJRN3v+AAoJEEdUh39IaPFNPWoH/i6AjT8ZbFr5yDT9oD5h78ix
IDdey2CtkElke3A/GLO78yGVizbr/aQSzXit7yB8guF4+Uv81EqIfLEBYNk7oQoj
3Qe9l3d/DpqhfsdoAeISY6MXsWmqqu8VU1SD1pLg5nNoH1hza6KrQZ88+t/Dd49s
oANnrq01Xny3zEdA2JTJaGehJsk1XEzU6/CgblH8YbuGc3qCbqjAlS8gjKMQBKTZ
B2gZ+tiEZ2G+vcpMKjRzR+APez+dN8fbeIu6qtdEyY7g5DFWMcvwvYCCKRwquRIm
xU2xeZ+4IruBHy7Q94jef/2esBiSEkho64Q5JInMMl+nStMTkhtQ6S3DecAnnEs=
=YKKq
-----END PGP SIGNATURE-----

View File

@ -0,0 +1,50 @@
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-misc/bridge-utils/bridge-utils-1.2.ebuild,v 1.12 2008/09/30 06:48:15 robbat2 Exp $
# I think you want CONFIG_BRIDGE in your kernel to use this ;)
inherit eutils autotools
DESCRIPTION="Tools for configuring the Linux kernel 802.1d Ethernet Bridge"
HOMEPAGE="http://bridge.sourceforge.net/"
SRC_URI="mirror://sourceforge/bridge/${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="amd64 hppa ia64 ppc x86"
IUSE=""
DEPEND="virtual/os-headers
>=sys-devel/autoconf-2.59"
RDEPEND=""
src_unpack() {
unpack ${A}
cd "${S}"
WANT_AUTOMAKE=1.9 eautomake || die "Failed to run autoconf"
WANT_AUTOCONF=2.5 eautoconf || die "Failed to run autoconf"
}
src_compile() {
# use santitized headers and not headers from /usr/src
econf \
--prefix=/ \
--libdir=/usr/$(get_libdir) \
--includedir=/usr/include \
--with-linux-headers=/usr/include \
|| die "econf failed"
emake || die "make failed"
}
src_install () {
emake install DESTDIR="${D}" || die "make install failed"
#einstall prefix=${D} libdir=${D}/usr/lib includedir=${D}/usr/include
dodoc AUTHORS ChangeLog README THANKS TODO
dodoc doc/{FAQ,FIREWALL,HOWTO,PROJECTS,RPM-GPG-KEY,SMPNOTES,WISHLIST}
}
pkg_postinst () {
ewarn "This package no longer provides a separate init script."
ewarn "Please utilize the new bridge support in baselayout."
}

View File

@ -0,0 +1,55 @@
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-misc/bridge-utils/bridge-utils-1.4.ebuild,v 1.10 2010/09/19 19:34:13 xmw Exp $
inherit toolchain-funcs eutils autotools linux-info
DESCRIPTION="Tools for configuring the Linux kernel 802.1d Ethernet Bridge"
HOMEPAGE="http://bridge.sourceforge.net/"
SRC_URI="mirror://sourceforge/bridge/${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="amd64 ~arm hppa ia64 ppc sparc x86 ~ppc64"
IUSE=""
DEPEND="virtual/os-headers"
RDEPEND=""
CONFIG_CHECK="~BRIDGE"
WARNING_BRIDGE="CONFIG_BRIDGE is required to get bridge devices in the kernel"
get_headers() {
CTARGET=${CTARGET:-${CHOST}}
dir=/usr/include
tc-is-cross-compiler && dir=/usr/${CTARGET}/usr/include
echo "${dir}"
}
src_unpack() {
unpack ${A}
cd "${S}"
eautoreconf
}
src_compile() {
# use santitized headers and not headers from /usr/src
econf \
--prefix=/ \
--libdir=/usr/$(get_libdir) \
--includedir=/usr/include \
--with-linux-headers="$(get_headers)" \
|| die "econf failed"
emake || die "make failed"
}
src_install () {
emake install DESTDIR="${D}" || die "make install failed"
dodoc AUTHORS ChangeLog README THANKS TODO
dodoc doc/{FAQ,FIREWALL,HOWTO,PROJECTS,RPM-GPG-KEY,SMPNOTES,WISHLIST}
}
pkg_postinst () {
ewarn "This package no longer provides a separate init script."
ewarn "Please utilize the new bridge support in baselayout."
}

View File

@ -0,0 +1,49 @@
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-misc/bridge-utils/bridge-utils-1.5.ebuild,v 1.3 2013/03/06 17:27:03 ssuominen Exp $
EAPI="5"
inherit autotools eutils linux-info toolchain-funcs
DESCRIPTION="Tools for configuring the Linux kernel 802.1d Ethernet Bridge"
HOMEPAGE="http://bridge.sourceforge.net/"
SRC_URI="mirror://sourceforge/bridge/${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86"
IUSE=""
DEPEND="virtual/os-headers"
RDEPEND=""
CONFIG_CHECK="~BRIDGE"
WARNING_BRIDGE="CONFIG_BRIDGE is required to get bridge devices in the kernel"
get_headers() {
CTARGET=${CTARGET:-${CHOST}}
dir=/usr/include
tc-is-cross-compiler && dir=/usr/${CTARGET}/usr/include
echo "${dir}"
}
src_prepare() {
epatch "${FILESDIR}"/${P}-linux-3.8.patch
eautoreconf
}
src_configure() {
# use santitized headers and not headers from /usr/src
econf \
--prefix=/ \
--libdir=/usr/$(get_libdir) \
--includedir=/usr/include \
--with-linux-headers="$(get_headers)"
}
src_install () {
emake install DESTDIR="${D}"
dodoc AUTHORS ChangeLog README THANKS TODO \
doc/{FAQ,FIREWALL,HOWTO,PROJECTS,RPM-GPG-KEY,SMPNOTES,WISHLIST}
}

View File

@ -0,0 +1,27 @@
This patch provides a means of forcing bridge-utils to compile without sysfs.
Patch by Robin H. Johnson <robbat2@gentoo.org>
--- bridge-utils-1.0.6.orig/configure.in 2005-03-16 12:15:46.000000000 -0800
+++ bridge-utils-1.0.6/configure.in 2005-08-05 12:19:48.000000000 -0700
@@ -26,12 +26,17 @@
AC_CHECK_FUNCS(if_nametoindex if_indextoname)
dnl Check for libsysfs
+
+AC_ARG_WITH( sysfs, [ --without-sysfs Disallow use of libsysfs],[],[])
+
+if test "${with_sysfs}" != "no" ; then
AC_CHECK_HEADER(sysfs/libsysfs.h,
- [AC_CHECK_LIB(sysfs, sysfs_open_directory,
- [AC_DEFINE(HAVE_LIBSYSFS)
- LIBS="$LIBS -lsysfs"],
- [AC_MSG_WARN([Missing sysfs library!])])],
- [AC_MSG_WARN([Missing /usr/include/sysfs/libsysfs.h])])
+ [AC_CHECK_LIB(sysfs, sysfs_open_directory,
+ [AC_DEFINE(HAVE_LIBSYSFS)
+ LIBS="$LIBS -lsysfs"],
+ [AC_MSG_WARN([Missing sysfs library!])])],
+ [AC_MSG_WARN([Missing /usr/include/sysfs/libsysfs.h])])
+fi
AC_SUBST(KERNEL_HEADERS)

View File

@ -0,0 +1,12 @@
--- libbridge/libbridge_init.c.orig 2005-07-05 14:15:23.000000000 +0100
+++ libbridge/libbridge_init.c 2005-07-05 14:28:30.000000000 +0100
@@ -230,7 +230,8 @@
links = sysfs_get_dir_links(dir);
if (!links) {
- err = -ENOSYS;
+ /* We may not have any ports assigned, so we don't error */
+ err = errno;
goto out;
}

View File

@ -0,0 +1,18 @@
unfortunately if_bridge.h from Linux 3.8+ is not self-contained and the struct
for ip6 is missing
http://bugs.gentoo.org/460262
this is not unheard of with Linux headers, for example, <linux/cdrom.h> needs
<limits.h> to get INT_MAX
--- libbridge/libbridge.h
+++ libbridge/libbridge.h
@@ -20,6 +20,7 @@
#define _LIBBRIDGE_H
#include <sys/socket.h>
+#include <netinet/ip6.h>
#include <linux/if.h>
#include <linux/if_bridge.h>

View File

@ -0,0 +1,6 @@
#Examples
#
#bridge="br100 br1000"
#
#bridge_br100_devices="eth3 eth4"
#bridge_br1000_devices="eth5 eth6"

View File

@ -0,0 +1,47 @@
#!/sbin/runscript
depend() {
use modules
}
start() {
for b in ${bridge}
do
ebegin "Create Bridge ${b}"
/sbin/brctl addbr ${b} || {
retval=$?
eend ${retval} "Failed to create bridge ${b}"
continue
}
for i in $(eval echo \$\{bridge_${b}_devices\})
do
/sbin/brctl addif ${b} ${i} || {
retval=$?
eend ${retval} "Failed to add interface ${i}"
continue
}
ifconfig ${i} 0.0.0.0 promisc || \
eend $? "Failed to set up interface ${i}"
done
done
}
stop() {
for b in ${bridge}
do
ebegin "Destroy Bridge ${b}"
for i in $(eval echo \$\{bridge_${b}_devices\})
do
ifconfig ${i} down || \
eend $? "Failed to set down interface ${i}"
/sbin/brctl delif ${b} ${i} || {
retval=$?
eend ${retval} "Failed to del interface ${i}"
return ${retval}
}
done
/sbin/brctl delbr ${b} || \
eend ${retval} "Failed to destroy bridge ${b}"
done
eend $? "Failed to stop bridge"
}

View File

@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<herd>base-system</herd>
<maintainer>
<email>robbat2@gentoo.org</email>
</maintainer>
</pkgmetadata>