summaryrefslogtreecommitdiff
path: root/core/ifenslave
diff options
context:
space:
mode:
authorParabola <dev@list.parabolagnulinux.org>2011-04-05 14:26:38 +0000
committerParabola <dev@list.parabolagnulinux.org>2011-04-05 14:26:38 +0000
commit415856bdd4f48ab4f2732996f0bae58595092bbe (patch)
treeede2018b591f6dfb477fe9341ba17b9bc000fab9 /core/ifenslave
Tue Apr 5 14:26:38 UTC 2011
Diffstat (limited to 'core/ifenslave')
-rw-r--r--core/ifenslave/PKGBUILD29
-rw-r--r--core/ifenslave/bonding.conf.d12
2 files changed, 41 insertions, 0 deletions
diff --git a/core/ifenslave/PKGBUILD b/core/ifenslave/PKGBUILD
new file mode 100644
index 000000000..516eba638
--- /dev/null
+++ b/core/ifenslave/PKGBUILD
@@ -0,0 +1,29 @@
+# $Id: PKGBUILD 108480 2011-01-31 14:27:02Z dan $
+# Maintainer:
+# Contributor: Judd Vinet <jvinet@zeroflux.org>
+
+pkgname=ifenslave
+pkgver=1.1.0
+pkgrel=6
+pkgdesc="Utility for bonding ethernet interfaces"
+arch=('i686' 'x86_64')
+url="http://www.linuxfoundation.org/en/Net:Bonding"
+license=('GPL2')
+depends=('glibc')
+makedepends=('linux-api-headers')
+backup=('etc/conf.d/bonding')
+source=(ifenslave.c::'http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=blob_plain;f=Documentation/networking/ifenslave.c;h=2bac96'
+ bonding.conf.d)
+md5sums=('41a23dc9ac3522ac2af23396ba70bcc4'
+ '397fccbf574d5082c7a3c8d3793dc000')
+
+build() {
+ cd $srcdir
+ gcc -Wall -Wstrict-prototypes $CFLAGS $LDFLAGS ifenslave.c -o ifenslave
+}
+
+package() {
+ cd $srcdir
+ install -Dm755 ifenslave $pkgdir/sbin/ifenslave
+ install -Dm644 bonding.conf.d $pkgdir/etc/conf.d/bonding
+}
diff --git a/core/ifenslave/bonding.conf.d b/core/ifenslave/bonding.conf.d
new file mode 100644
index 000000000..3092c5e95
--- /dev/null
+++ b/core/ifenslave/bonding.conf.d
@@ -0,0 +1,12 @@
+#
+# Settings for ethernet bonding
+#
+# For each bond interface declared in INTERFACES (in rc.conf), declare
+# a bond_${IF} variable that contains the real ethernet interfaces that
+# should be bonded to the bond interface with the ifenslave utility.
+# Then list the bond interface name in the BOND_INTERFACES array.
+#
+
+#bond_bond0="eth0 eth1"
+#BOND_INTERFACES=(bond0)
+