# $Id$
# Maintainer: Gaetan Bisson <bisson@archlinux.org>
# Contributor: Judd Vinet <jvinet@zeroflux.org>

pkgname=ifenslave
pkgver=1.1.0
pkgrel=8
pkgdesc='Utility for bonding ethernet interfaces'
url='http://www.linuxfoundation.org/en/Net:Bonding'
arch=('i686' 'x86_64')
license=('GPL2')
makedepends=('linux-api-headers')
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=450faacc')
sha1sums=('cf0ca36e4a82f259f4bd5d7268ce758581a76fb0')

build() {
	cd "${srcdir}"
	gcc -Wall -Wstrict-prototypes ${CFLAGS} ${LDFLAGS} ifenslave.c -o ifenslave
}

package() {
	cd "${srcdir}"
	install -Dm755 ifenslave "${pkgdir}"/usr/bin/ifenslave
}