2009-12-29 22:27:55 +00:00
|
|
|
# Template file for 'ifenslave'
|
|
|
|
pkgname=ifenslave
|
|
|
|
version=1.1.0
|
2011-11-12 05:01:02 +00:00
|
|
|
revision=2
|
2009-12-08 16:19:26 +00:00
|
|
|
short_desc="Attach and detach slave interfaces to a bonding device"
|
2009-12-29 22:27:55 +00:00
|
|
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
|
|
|
checksum=8773541ce097fdc4c5b9e7da12a82dffbb30cd91f7bc169f52f05f93b7fc3060
|
2009-12-08 16:19:26 +00:00
|
|
|
long_desc="
|
|
|
|
This is a tool to attach and detach slave network interfaces to a bonding
|
|
|
|
device. A bonding device will act like a normal Ethernet network device to
|
|
|
|
the kernel, but will send out the packets via the slave devices using a
|
|
|
|
simple round-robin scheduler. This allows for simple load-balancing,
|
|
|
|
identical to channel bonding or trunking techniques used in switches.
|
|
|
|
|
|
|
|
The kernel must have support for bonding devices for ifenslave to be useful.
|
|
|
|
This package supports 2.6.x kernels and the most recent 2.4.x kernels."
|
|
|
|
|
2009-12-29 22:27:55 +00:00
|
|
|
nofetch=yes
|
|
|
|
noextract=yes
|
|
|
|
|
2009-12-08 16:19:26 +00:00
|
|
|
|
2010-01-16 02:13:07 +00:00
|
|
|
do_build()
|
2009-12-08 16:19:26 +00:00
|
|
|
{
|
2009-12-29 22:27:55 +00:00
|
|
|
cd ${wrksrc} || return 1
|
|
|
|
gcc -Wall -Wstrict-prototypes ${FILESDIR}/ifenslave.c \
|
|
|
|
-o ifenslave || return 1
|
2010-01-16 02:13:07 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
do_install()
|
|
|
|
{
|
|
|
|
install -D -m755 ${wrksrc}/ifenslave ${DESTDIR}/sbin/ifenslave
|
2009-12-29 22:27:55 +00:00
|
|
|
install -D -m644 ${FILESDIR}/ifenslave.8 \
|
|
|
|
${DESTDIR}/usr/share/man/man8/ifenslave.8 || return 1
|
2009-12-08 16:19:26 +00:00
|
|
|
}
|