summaryrefslogtreecommitdiff
path: root/net-misc/bridge-utils
diff options
context:
space:
mode:
Diffstat (limited to 'net-misc/bridge-utils')
-rw-r--r--net-misc/bridge-utils/Manifest8
-rw-r--r--net-misc/bridge-utils/bridge-utils-1.5.ebuild49
-rw-r--r--net-misc/bridge-utils/bridge-utils-1.6.ebuild52
-rw-r--r--net-misc/bridge-utils/files/bridge-utils-1.5-linux-3.8.patch18
-rw-r--r--net-misc/bridge-utils/metadata.xml14
5 files changed, 141 insertions, 0 deletions
diff --git a/net-misc/bridge-utils/Manifest b/net-misc/bridge-utils/Manifest
new file mode 100644
index 000000000000..144d78cb9cd2
--- /dev/null
+++ b/net-misc/bridge-utils/Manifest
@@ -0,0 +1,8 @@
+AUX bridge-utils-1.5-linux-3.8.patch 435 SHA256 ce60b2328784307ad7a408fad96c0e0165b7740d1e4aaadb3cf2d6e6feaef235 SHA512 dea1668cc0b76b1f88e7040262e3056db278000df2680e8d3a1596b6821e7f8213a0e67ae26ffc23950b848c2ccc5dabf61baf6c40159eecfb7c22118dec2635 WHIRLPOOL 056fdf262ac2765a6996d54da8014d1f52d72d646ac215476dfb14bdb983fd0c8283ff61a056d3d909ef9a9cd1f0cb7cc08db112e4f477204d8a94371edf84ea
+DIST bridge-utils-1.5.tar.gz 33243 SHA256 42f9e5fb8f6c52e63a98a43b81bd281c227c529f194913e1c51ec48a393b6688 SHA512 4e525fbd3defb509664ef3b728d9e5edfb92beaebdb5d7733d8203fb38cb3f4bb54d02dc1e28813889a2ee19c78b9b47da6d99c8032481a7fd7f104658dea7c3 WHIRLPOOL f11eb95ae9b562cb301bb1f657d87878f0a0729a2129b90fa5957747f078f3afe2ebdadd1eb7ea4a59e544acc8194cf1744126db9ba3f3704210bc18ee3480fa
+DIST bridge-utils-1.6.tar.xz 29904 SHA256 cc67efb5d5fb8928a6569b3fade2b4042ec17da04678dab127d96b46489e26c8 SHA512 b2ed39bc67349b7b91f2068cb505c0e3c89a8797d61e3d97ff957796cfe5fcef2c26dd788bd4215f628d69a4c8592377f4e632c3e181e87af3eaa238d8741e02 WHIRLPOOL 29e25c79c4abcf33917333b872fa0d49600a87c7393ee99a9c3f97917698d15e5c44fff781b9013d91d46958273fa9dc5745281bdca3f0177733ade8bf7e4a6c
+EBUILD bridge-utils-1.5.ebuild 1281 SHA256 1a36094576c7e5bce9b67504bda4c59bd7d2bb054911a809399372c88309581a SHA512 f2770626ffb714981d426b4d9f005922724389580d0dd3252c91123fdd94212b6aecaed5547c66a459dd1d1d6109d4f93453103c996e55a1659fa27e72c57636 WHIRLPOOL 0b98818fdfa72073a87bab638689a7759f6319bf87af4da176911136f02c38da53e96df5a537553b30c78b552dc6ba99ac4835cf66a89303193ce32ea3755c38
+EBUILD bridge-utils-1.6.ebuild 1346 SHA256 e212a0268ffec6c6c0704dc55670295ff0811d19738b6ab7870a56d5a5ea582b SHA512 405c661cba4d088ae986f75a1df0cf43efe623df0d0547242d05eab5575ba315a5f8e623725e7d59de59562bca86a65c4d789c80ee125c2364999041699bf08c WHIRLPOOL 74cb005ef888ac298dd176542b34fe160d14b56873d89216af93089ba1a90034496e61d27d7bc63799a465b2d9f2ab0c3de9b72eac54209617a036c32a3909cb
+MISC ChangeLog 2479 SHA256 669239dd5eccd538a94a7de8b80e5c55985e32531404fef7a2d4e571d1cd2945 SHA512 e2045ae448a113c560492661c247505ebba96f43c8481e41d01a5f1103e0cbe274de78f4534e2651b2906ea69e1d9aec389741afa8860676a7913cd7ffffd76d WHIRLPOOL b26c965f6a74cd837606cd36a86362fcd42e95e23102bf1c28223def0b02c88ffd8b47ec4e4f74537815de98e558ca74afcfc79aaa3c770de7377d39fc0fd12e
+MISC ChangeLog-2015 10269 SHA256 09a7e39e286023aa1bb9adaae16cb4f0eb5bcebfdf269ec259539f4f7d21aad6 SHA512 3993e85d6ad2f3afb9ad741ee56bb90ed468be20e91d50cc96b3fbd3b710984ff4f7f0ebb390dafe93689f7058c05e4c004c6ce0bd3d4a16935d32a998eb4a3b WHIRLPOOL e4b8f8e80174c7b38ae1b116b9b88304206bc0a4ef96bd1305db0c8877d650603d09e23aceb802b71384731e6b0936b9ce05ae26f40ea9bd2af031fef1053a24
+MISC metadata.xml 426 SHA256 b34c0320b4f643677f7b03ecb26c8f0336ab1f9a68c7156f4d0a0ae85eafec60 SHA512 b6d8f31496815fff6ee465b4eff20dba27a478e803c299e1d329ad33dd80493380b746fd0aba19d15a3780e4a4b37365829781cda5aaccfca2f044506b15c38e WHIRLPOOL 177367f59aae104c6aa481ca706e54aaf8f204843c647856595e30dc736d6f593d1dc36c93049eccc047f50faf364a6cbb35247a652b8531fba1129da317ab72
diff --git a/net-misc/bridge-utils/bridge-utils-1.5.ebuild b/net-misc/bridge-utils/bridge-utils-1.5.ebuild
new file mode 100644
index 000000000000..153aec032ceb
--- /dev/null
+++ b/net-misc/bridge-utils/bridge-utils-1.5.ebuild
@@ -0,0 +1,49 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+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 ~arm64 hppa ia64 ~mips ppc ppc64 sparc x86"
+IUSE="selinux"
+
+DEPEND="virtual/os-headers"
+RDEPEND="selinux? ( sec-policy/selinux-brctl )"
+
+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}
+ [ -f "${D}"/sbin/brctl ] || die "upstream makefile failed to install binary"
+}
diff --git a/net-misc/bridge-utils/bridge-utils-1.6.ebuild b/net-misc/bridge-utils/bridge-utils-1.6.ebuild
new file mode 100644
index 000000000000..5cdc85e8f10c
--- /dev/null
+++ b/net-misc/bridge-utils/bridge-utils-1.6.ebuild
@@ -0,0 +1,52 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit autotools 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"
+SRC_URI="mirror://kernel/linux/utils/net/${PN}/${P}.tar.xz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86"
+IUSE="selinux"
+
+DEPEND="virtual/os-headers"
+RDEPEND="selinux? ( sec-policy/selinux-brctl )"
+
+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() {
+ default
+ eautoreconf
+}
+
+src_configure() {
+ # use santitized headers and not headers from /usr/src
+ local myeconfargs=(
+ --prefix=/
+ --libdir=/usr/$(get_libdir)
+ --includedir=/usr/include
+ --with-linux-headers="$(get_headers)"
+ )
+ econf "${myeconfargs[@]}"
+}
+
+src_install () {
+ emake install DESTDIR="${D}"
+ dodoc AUTHORS ChangeLog README THANKS TODO \
+ doc/{FAQ,FIREWALL,HOWTO,PROJECTS,RPM-GPG-KEY,SMPNOTES,WISHLIST}
+ [ -f "${ED%/}"/sbin/brctl ] || die "upstream makefile failed to install binary"
+}
diff --git a/net-misc/bridge-utils/files/bridge-utils-1.5-linux-3.8.patch b/net-misc/bridge-utils/files/bridge-utils-1.5-linux-3.8.patch
new file mode 100644
index 000000000000..49ebb4e9da28
--- /dev/null
+++ b/net-misc/bridge-utils/files/bridge-utils-1.5-linux-3.8.patch
@@ -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>
+
diff --git a/net-misc/bridge-utils/metadata.xml b/net-misc/bridge-utils/metadata.xml
new file mode 100644
index 000000000000..995aec82049e
--- /dev/null
+++ b/net-misc/bridge-utils/metadata.xml
@@ -0,0 +1,14 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>robbat2@gentoo.org</email>
+ </maintainer>
+ <maintainer type="project">
+ <email>base-system@gentoo.org</email>
+ <name>Gentoo Base System</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="sourceforge">bridge</remote-id>
+ </upstream>
+</pkgmetadata>