From 23bb6c43e42082337e60a05d55cd3af0754a4537 Mon Sep 17 00:00:00 2001
From: Cecil Hugh Watson <knoppmyth@gmail.com>
Date: Thu, 29 Jan 2009 00:13:45 -0800
Subject: Dep needed by iproute2.

---
 abs/core-testing/linux-atm/PKGBUILD                | 25 ++++++++++++++++++++++
 .../linux-atm/linux-atm-2.5.0-glibc28.patch        | 11 ++++++++++
 2 files changed, 36 insertions(+)
 create mode 100644 abs/core-testing/linux-atm/PKGBUILD
 create mode 100644 abs/core-testing/linux-atm/linux-atm-2.5.0-glibc28.patch

diff --git a/abs/core-testing/linux-atm/PKGBUILD b/abs/core-testing/linux-atm/PKGBUILD
new file mode 100644
index 0000000..18cd3c8
--- /dev/null
+++ b/abs/core-testing/linux-atm/PKGBUILD
@@ -0,0 +1,25 @@
+# $Id: PKGBUILD 13520 2008-09-27 14:40:44Z tpowa $
+# Maintainer: Tobias Powalowski <tpowa@archlinux.org>
+# Contributor: Surain Mallawa Arachchi <mas@crc32.net>
+
+pkgname=linux-atm
+pkgver=2.5.0
+pkgrel=1
+pkgdesc="Drivers and tools to support ATM networking under Linux."
+arch=('i686' 'x86_64')
+depends=('glibc')
+source=(http://heanet.dl.sourceforge.net/sourceforge/$pkgname/$pkgname-$pkgver.tar.gz \
+	linux-atm-2.5.0-glibc28.patch) 
+url="http://linux-atm.sourceforge.net/"
+license=(GPL)
+options=(!libtool)
+md5sums=('0b45a0e801fac7093ce4b0cadf419965'
+         '2e195df66995d2feb9ccc602cbf399b2')
+
+build() {
+  cd $startdir/src/$pkgname-$pkgver
+  patch -Np1 -i ../linux-atm-2.5.0-glibc28.patch || return 1
+  ./configure --prefix=/usr --sysconfdir=/etc || return 1
+  make || return 1
+  make DESTDIR=$startdir/pkg install
+}
diff --git a/abs/core-testing/linux-atm/linux-atm-2.5.0-glibc28.patch b/abs/core-testing/linux-atm/linux-atm-2.5.0-glibc28.patch
new file mode 100644
index 0000000..692f316
--- /dev/null
+++ b/abs/core-testing/linux-atm/linux-atm-2.5.0-glibc28.patch
@@ -0,0 +1,11 @@
+diff -up linux-atm-2.5.0/src/led/main.c.path_max linux-atm-2.5.0/src/led/main.c
+--- linux-atm-2.5.0/src/led/main.c.path_max	2008-05-19 02:47:40.000000000 +0900
++++ linux-atm-2.5.0/src/led/main.c	2008-05-19 02:47:52.000000000 +0900
+@@ -41,6 +41,7 @@
+ #include <getopt.h>
+ #include <errno.h>
+ #include <fcntl.h>
++#include <linux/limits.h>
+ 
+ #include <atm.h>
+ #include <atmd.h>
-- 
cgit v0.12

