summaryrefslogtreecommitdiffstats
path: root/abs
diff options
context:
space:
mode:
Diffstat (limited to 'abs')
-rw-r--r--abs/extra/ifenslave/PKGBUILD35
1 files changed, 22 insertions, 13 deletions
diff --git a/abs/extra/ifenslave/PKGBUILD b/abs/extra/ifenslave/PKGBUILD
index 8a75170..a730f2f 100644
--- a/abs/extra/ifenslave/PKGBUILD
+++ b/abs/extra/ifenslave/PKGBUILD
@@ -1,20 +1,29 @@
-# $Id: PKGBUILD 12836 2008-09-21 14:41:26Z dan $
-# Maintainer: Judd Vinet <jvinet@zeroflux.org>
+# $Id: PKGBUILD 142704 2011-11-13 10:10:10Z bisson $
+# Maintainer:
+# Contributor: Judd Vinet <jvinet@zeroflux.org>
+
pkgname=ifenslave
pkgver=1.1.0
-pkgrel=4
-pkgdesc="Utility for bonding ethernet interfaces"
+pkgrel=7
+pkgdesc='Utility for bonding ethernet interfaces'
+arch=('i686' 'x86_64')
+url='http://www.linuxfoundation.org/en/Net:Bonding'
license=('GPL2')
-arch=(i686 x86_64)
-url="http://www.linuxfoundation.org/en/Net:Bonding"
depends=('glibc')
-source=(ftp://ftp.archlinux.org/other/ifenslave/ifenslave.c bonding.conf.d)
-md5sums=('b0d8e4c97094155747cc9238f762c7aa'
- '397fccbf574d5082c7a3c8d3793dc000')
+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=65968fbf'
+ 'bonding.conf.d')
+sha1sums=('c657d9e6b8acb983bb8ef856f8f7f25ee6bf4f73'
+ '6843971c0254768868b556af33289d7d32d6208d')
build() {
- cd $startdir/src
- gcc $CFLAGS -I/usr/src/linux/include ifenslave.c -o ifenslave || return 1
- install -D -m755 ifenslave $startdir/pkg/sbin/ifenslave
- install -D -m644 bonding.conf.d $startdir/pkg/etc/conf.d/bonding
+ 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
}