summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin H. Johnson <robbat2@gentoo.org>2004-06-28 08:46:14 +0000
committerRobin H. Johnson <robbat2@gentoo.org>2004-06-28 08:46:14 +0000
commit15551d0664ef5dbe7fc8f7974784e7ab5d0118a3 (patch)
treed391dfa0acd027ae4cdfb5bef89054ff6d2cf247 /net-misc/ifenslave
parentgcc-3.4 fix to close bug #54259. (Manifest recommit) (diff)
downloadgentoo-2-15551d0664ef5dbe7fc8f7974784e7ab5d0118a3.tar.gz
gentoo-2-15551d0664ef5dbe7fc8f7974784e7ab5d0118a3.tar.bz2
gentoo-2-15551d0664ef5dbe7fc8f7974784e7ab5d0118a3.zip
Initial ebuild by myself, for bonding support. Vaguely related to bug #22303 ;-).
Diffstat (limited to 'net-misc/ifenslave')
-rw-r--r--net-misc/ifenslave/ChangeLog11
-rw-r--r--net-misc/ifenslave/Manifest13
-rw-r--r--net-misc/ifenslave/files/digest-ifenslave-1.1.02
-rw-r--r--net-misc/ifenslave/files/modules.d-bond19
-rw-r--r--net-misc/ifenslave/ifenslave-1.1.0.ebuild45
-rw-r--r--net-misc/ifenslave/metadata.xml9
6 files changed, 99 insertions, 0 deletions
diff --git a/net-misc/ifenslave/ChangeLog b/net-misc/ifenslave/ChangeLog
new file mode 100644
index 000000000000..2dc81efcd766
--- /dev/null
+++ b/net-misc/ifenslave/ChangeLog
@@ -0,0 +1,11 @@
+# ChangeLog for net-misc/ifenslave
+# Copyright 1999-2004 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/net-misc/ifenslave/ChangeLog,v 1.1 2004/06/28 08:46:14 robbat2 Exp $
+
+*ifenslave-1.1.0 (28 Jun 2004)
+
+ 28 Jun 2004; Robin H. Johnson <robbat2@gentoo.org> ifenslave-1.1.0.ebuild,
+ metadata.xml, files/modules.d-bond:
+ Initial ebuild by myself, for bonding support. Vaguely related to bug #22303
+ ;-).
+
diff --git a/net-misc/ifenslave/Manifest b/net-misc/ifenslave/Manifest
new file mode 100644
index 000000000000..c2ad413a22ed
--- /dev/null
+++ b/net-misc/ifenslave/Manifest
@@ -0,0 +1,13 @@
+MD5 2bcaa3020a110cc63513107d9993cb12 ifenslave-2.6_1.1.0-3.diff.gz 2656
+MD5 7be366bd140ab7eb2248c28b854719db ifenslave-1.1.0.ebuild 947
+MD5 b0d485ea1a51fb83c70daedef2599272 metadata.xml 279
+MD5 56126cd1013cefe0ce6f81613e677bdd ifenslave-2.6_1.1.0.orig.tar.gz 8002
+MD5 6a346d07a88e3a602e0cde43d7b65245 files/digest-ifenslave-1.1.0 146
+MD5 d74b967fe85de3762d6a516fa41b5a06 ifenslave-1.1.0/README.debian 417
+MD5 b7af93bff6025ab44f7e6ac82e0d3163 ifenslave-1.1.0/ifenslave.8 1951
+MD5 f7cd5f072a16a84e940516ab74f76843 ifenslave-1.1.0/ifenslave.c 29984
+MD5 313729c7f4888046276799a8a8b27d36 ifenslave-1.1.0/control 949
+MD5 8d0fee7fdef1e62e98b94c2ee18eb9e9 ifenslave-1.1.0/ifenslave 22480
+MD5 29f2084eaeb3e3c13701853e185c5e46 ifenslave-1.1.0/rules 1557
+MD5 fb62c3c3c56cd75289ddf4a7fd37b1e1 ifenslave-1.1.0/changelog 795
+MD5 8bffbd78a71e65c0497e427ed23138c0 ifenslave-1.1.0/copyright 650
diff --git a/net-misc/ifenslave/files/digest-ifenslave-1.1.0 b/net-misc/ifenslave/files/digest-ifenslave-1.1.0
new file mode 100644
index 000000000000..859c1bc75146
--- /dev/null
+++ b/net-misc/ifenslave/files/digest-ifenslave-1.1.0
@@ -0,0 +1,2 @@
+MD5 56126cd1013cefe0ce6f81613e677bdd ifenslave-2.6_1.1.0.orig.tar.gz 8002
+MD5 2bcaa3020a110cc63513107d9993cb12 ifenslave-2.6_1.1.0-3.diff.gz 2656
diff --git a/net-misc/ifenslave/files/modules.d-bond b/net-misc/ifenslave/files/modules.d-bond
new file mode 100644
index 000000000000..4f6eed25eb27
--- /dev/null
+++ b/net-misc/ifenslave/files/modules.d-bond
@@ -0,0 +1,19 @@
+# read /usr/src/linux/Documentation/networking/bonding.txt for help!
+
+alias bond0 bonding
+options bond0 mode=0 miimon=100
+#alias bond1 bonding
+#options bond1 -o bonding1 arp_interval=200 arp_ip_target=10.0.0.1
+
+# Parameters:
+# max_bonds int, description "Max number of bonded devices"
+# miimon int, description "Link check interval in milliseconds"
+# use_carrier int, description "Use netif_carrier_ok (vs MII ioctls) in miimon; 0 for off, 1 for on (default)"
+# mode string, description "Mode of operation : 0 for round robin, 1 for active-backup, 2 for xor"
+# arp_interval int, description "arp interval in milliseconds"
+# arp_ip_target string array (min = 1, max = 16), description "arp targets in n.n.n.n form"
+# updelay int, description "Delay before considering link up, in milliseconds"
+# downdelay int, description "Delay before considering link down, in milliseconds"
+# primary string, description "Primary network device to use"
+# multicast string, description "Mode for multicast support : 0 for none, 1 for active slave, 2 for all slaves (default)"
+# lacp_rate string, description "LACPDU tx rate to request from 802.3ad partner (slow/fast)"
diff --git a/net-misc/ifenslave/ifenslave-1.1.0.ebuild b/net-misc/ifenslave/ifenslave-1.1.0.ebuild
new file mode 100644
index 000000000000..c999ef40ab55
--- /dev/null
+++ b/net-misc/ifenslave/ifenslave-1.1.0.ebuild
@@ -0,0 +1,45 @@
+# Copyright 1999-2004 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-misc/ifenslave/ifenslave-1.1.0.ebuild,v 1.1 2004/06/28 08:46:14 robbat2 Exp $
+
+inherit gcc eutils
+
+DESCRIPTION="Attach and detach slave interfaces to a bonding device"
+HOMEPAGE="http://sf.net/projects/bonding/"
+MY_PN="ifenslave-2.6" # this is NOT an error
+DEBIAN_PV="3"
+DEBIANPKG_TARBALL="${MY_PN}_${PV}.orig.tar.gz"
+DEBIANPKG_PATCH="${MY_PN}_${PV}-${DEBIAN_PV}.diff.gz"
+DEBIANPKG_BASE="mirror://debian/pool/main/${MY_PN:0:1}/${MY_PN}"
+SRC_URI="${DEBIANPKG_BASE}/${DEBIANPKG_TARBALL}
+ ${DEBIANPKG_BASE}/${DEBIANPKG_PATCH}"
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~x86"
+IUSE=""
+RDEPEND="sys-libs/glibc"
+DEPEND="sys-devel/gcc ${RDEPEND}"
+
+src_unpack() {
+ unpack ${DEBIANPKG_TARBALL}
+ EPATCH_OPTS="-d ${S} -p1" epatch ${DISTDIR}/${DEBIANPKG_PATCH}
+}
+
+src_compile() {
+ $(gcc-getCC) ${CFLAGS} ${PN}.c -o ${PN}
+}
+
+src_install() {
+ doman ${S}/${PN}.8
+ into /
+ dosbin ${PN}
+ # there really is no better documentation than the sourcecode :-)
+ dodoc ${PN}.c
+ insinto /etc/modules.d
+ newins ${FILESDIR}/modules.d-bond bond
+}
+
+pkg_postinst() {
+ einfo "If you want to use bonding on your system, be sure to use"
+ einfo "baselayout-1.10, where support is now integrated!"
+}
diff --git a/net-misc/ifenslave/metadata.xml b/net-misc/ifenslave/metadata.xml
new file mode 100644
index 000000000000..02e945c7cb52
--- /dev/null
+++ b/net-misc/ifenslave/metadata.xml
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>no-herd</herd>
+ <maintainer>
+ <email>robbat2@gentoo.org</email>
+ <name>Robin H. Johnson</name>
+ </maintainer>
+</pkgmetadata>