-# Copyright (C) 2007 OpenWrt.org
+# Copyright (C) 2007-2009 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
include $(TOPDIR)/rules.mk
PKG_NAME:=libaio
include $(TOPDIR)/rules.mk
PKG_NAME:=libaio
-PKG_VERSION:=0.3.106
-PKG_RELEASE:=2
+PKG_VERSION:=0.3.107
+PKG_RELEASE:=1
PKG_SOURCE:=$(PKG_NAME)_$(PKG_VERSION).orig.tar.gz
PKG_SOURCE_URL:=http://ftp.debian.org/debian/pool/main/liba/libaio/
PKG_SOURCE:=$(PKG_NAME)_$(PKG_VERSION).orig.tar.gz
PKG_SOURCE_URL:=http://ftp.debian.org/debian/pool/main/liba/libaio/
-PKG_MD5SUM:=9480e31cce6506091080d59211089bd4
+PKG_MD5SUM:=db32c19c61ca937bcb1ba48da9180682
include $(INCLUDE_DIR)/package.mk
include $(INCLUDE_DIR)/package.mk
endef
LIBAIO_CFLAGS:=-nostdlib -nostartfiles -I. $(TARGET_CFLAGS) $(TARGET_CPPFLAGS)
endef
LIBAIO_CFLAGS:=-nostdlib -nostartfiles -I. $(TARGET_CFLAGS) $(TARGET_CPPFLAGS)
LD="$(TARGET_CROSS)ld" \
CFLAGS="$(LIBAIO_CFLAGS)" \
all
LD="$(TARGET_CROSS)ld" \
CFLAGS="$(LIBAIO_CFLAGS)" \
all
+ $(MAKE) -C $(PKG_BUILD_DIR) \
+ prefix="$(PKG_INSTALL_DIR)/usr" \
+ install
endef
define Build/InstallDev
endef
define Build/InstallDev
- mkdir -p $(1)/usr/include
- $(CP) $(PKG_BUILD_DIR)/src/libaio.h $(1)/usr/include/
- mkdir -p $(1)/usr/lib
- $(CP) $(PKG_BUILD_DIR)/src/libaio.{a,so*} $(1)/usr/lib/
- ln -sf libaio.so.$(LIBAIO_SOVER) $(1)/usr/lib/libaio.so
- ln -sf libaio.so.$(LIBAIO_SOVER) $(1)/usr/lib/libaio.so.1
+ $(INSTALL_DIR) $(1)/usr/include
+ $(CP) $(PKG_INSTALL_DIR)/usr/include/libaio.h $(1)/usr/include/
+ $(INSTALL_DIR) $(1)/usr/lib
+ $(CP) $(PKG_INSTALL_DIR)/usr/lib/libaio.{a,so*} $(1)/usr/lib/
endef
define Package/libaio/install
$(INSTALL_DIR) $(1)/usr/lib
endef
define Package/libaio/install
$(INSTALL_DIR) $(1)/usr/lib
- $(CP) $(PKG_BUILD_DIR)/src/libaio.so.* $(1)/usr/lib/
- ln -sf libaio.so.$(LIBAIO_SOVER) $(1)/usr/lib/libaio.so
- ln -sf libaio.so.$(LIBAIO_SOVER) $(1)/usr/lib/libaio.so.1
+ $(CP) $(PKG_INSTALL_DIR)/usr/lib/libaio.so.* $(1)/usr/lib/
endef
$(eval $(call BuildPackage,libaio))
endef
$(eval $(call BuildPackage,libaio))
---- libaio-0.3.106.orig/src/syscall-m68k.h
-+++ libaio-0.3.106/src/syscall-m68k.h
+--- /dev/null
++++ b/src/syscall-m68k.h
@@ -0,0 +1,78 @@
+#define __NR_io_setup 241
+#define __NR_io_destroy 242
@@ -0,0 +1,78 @@
+#define __NR_io_setup 241
+#define __NR_io_destroy 242
+return (type) __res; \
+}
+
+return (type) __res; \
+}
+
---- libaio-0.3.106.orig/src/syscall-sparc.h
-+++ libaio-0.3.106/src/syscall-sparc.h
+--- /dev/null
++++ b/src/syscall-sparc.h
@@ -0,0 +1,130 @@
+/* $Id: unistd.h,v 1.74 2002/02/08 03:57:18 davem Exp $ */
+
@@ -0,0 +1,130 @@
+/* $Id: unistd.h,v 1.74 2002/02/08 03:57:18 davem Exp $ */
+
---- libaio-0.3.106.orig/src/syscall.h
-+++ libaio-0.3.106/src/syscall.h
+--- a/src/syscall.h
++++ b/src/syscall.h
@@ -22,6 +22,16 @@
#include "syscall-s390.h"
#elif defined(__alpha__)
@@ -22,6 +22,16 @@
#include "syscall-s390.h"
#elif defined(__alpha__)
#else
#error "add syscall-arch.h"
#endif
#else
#error "add syscall-arch.h"
#endif
---- libaio-0.3.106.orig/src/syscall-mips.h
-+++ libaio-0.3.106/src/syscall-mips.h
+--- /dev/null
++++ b/src/syscall-mips.h
@@ -0,0 +1,223 @@
+/*
+ * This file is subject to the terms and conditions of the GNU General Public
@@ -0,0 +1,223 @@
+/*
+ * This file is subject to the terms and conditions of the GNU General Public
+
+#endif /* (_MIPS_SIM == _MIPS_SIM_NABI32) || (_MIPS_SIM == _MIPS_SIM_ABI64) */
+
+
+#endif /* (_MIPS_SIM == _MIPS_SIM_NABI32) || (_MIPS_SIM == _MIPS_SIM_ABI64) */
+
---- libaio-0.3.106.orig/src/libaio.h
-+++ libaio-0.3.106/src/libaio.h
-@@ -72,6 +72,40 @@
+--- a/src/libaio.h
++++ b/src/libaio.h
+@@ -73,6 +73,40 @@ typedef enum io_iocb_cmd {
#define PADDED(x, y) unsigned y; x
#define PADDEDptr(x, y) unsigned y; x
#define PADDEDul(x, y) unsigned y; unsigned long x
#define PADDED(x, y) unsigned y; x
#define PADDEDptr(x, y) unsigned y; x
#define PADDEDul(x, y) unsigned y; unsigned long x
#else
#error endian?
#endif
#else
#error endian?
#endif
---- libaio-0.3.106.orig/src/syscall-parisc.h
-+++ libaio-0.3.106/src/syscall-parisc.h
+--- /dev/null
++++ b/src/syscall-parisc.h
@@ -0,0 +1,146 @@
+/*
+ * Linux system call numbers.
@@ -0,0 +1,146 @@
+/*
+ * Linux system call numbers.
+ return K_INLINE_SYSCALL(sname, 5, arg1, arg2, arg3, arg4, arg5); \
+}
+
+ return K_INLINE_SYSCALL(sname, 5, arg1, arg2, arg3, arg4, arg5); \
+}
+
---- libaio-0.3.106.orig/src/syscall-arm.h
-+++ libaio-0.3.106/src/syscall-arm.h
+--- /dev/null
++++ b/src/syscall-arm.h
@@ -0,0 +1,116 @@
+/*
+ * linux/include/asm-arm/unistd.h
@@ -0,0 +1,116 @@
+/*
+ * linux/include/asm-arm/unistd.h
-diff -Nur libaio-0.3.106/src/libaio.h libaio-0.3.106-avr32/src/libaio.h
---- libaio-0.3.106/src/libaio.h 2007-11-27 11:07:20.000000000 +0100
-+++ libaio-0.3.106-avr32/src/libaio.h 2007-06-21 15:26:26.000000000 +0200
-@@ -106,6 +106,10 @@
+--- a/src/libaio.h
++++ b/src/libaio.h
+@@ -107,6 +107,10 @@ typedef enum io_iocb_cmd {
# else
# error "neither mipseb nor mipsel?"
# endif
# else
# error "neither mipseb nor mipsel?"
# endif
#else
#error endian?
#endif
#else
#error endian?
#endif
-diff -Nur libaio-0.3.106/src/syscall-avr32.h libaio-0.3.106-avr32/src/syscall-avr32.h
---- libaio-0.3.106/src/syscall-avr32.h 1970-01-01 01:00:00.000000000 +0100
-+++ libaio-0.3.106-avr32/src/syscall-avr32.h 2007-06-21 15:26:26.000000000 +0200
+--- /dev/null
++++ b/src/syscall-avr32.h
@@ -0,0 +1,91 @@
+/*
+ * Copyright (C) 2007 Atmel Corporation
@@ -0,0 +1,91 @@
+/*
+ * Copyright (C) 2007 Atmel Corporation
+ : "memory"); \
+ return (type) __res_r12; \
+}
+ : "memory"); \
+ return (type) __res_r12; \
+}
-diff -Nur libaio-0.3.106/src/syscall.h libaio-0.3.106-avr32/src/syscall.h
---- libaio-0.3.106/src/syscall.h 2007-11-27 11:07:20.000000000 +0100
-+++ libaio-0.3.106-avr32/src/syscall.h 2007-06-21 15:26:26.000000000 +0200
+--- a/src/syscall.h
++++ b/src/syscall.h
@@ -32,6 +32,8 @@
#include "syscall-parisc.h"
#elif defined(__mips__)
@@ -32,6 +32,8 @@
#include "syscall-parisc.h"
#elif defined(__mips__)