From 6d5ec889cc0be9e3bbdbeaa862089f039a0fea36 Mon Sep 17 00:00:00 2001 From: Juergen Borleis Date: Tue, 24 May 2016 12:54:30 +0200 Subject: libaio: add new package This library simplifies the use of asynchronous I/O access the Linux kernel supports. In order to make use of this feature, the kernel's CONFIG_AIO is set. Signed-off-by: Juergen Borleis [mol: fix DESTDIR handling] Signed-off-by: Michael Olbrich --- rules/host-libaio.in | 6 ++++++ rules/host-libaio.make | 24 +++++++++++++++++++++ rules/libaio.in | 7 +++++++ rules/libaio.make | 57 ++++++++++++++++++++++++++++++++++++++++++++++++++ 4 files changed, 94 insertions(+) create mode 100644 rules/host-libaio.in create mode 100644 rules/host-libaio.make create mode 100644 rules/libaio.in create mode 100644 rules/libaio.make (limited to 'rules') diff --git a/rules/host-libaio.in b/rules/host-libaio.in new file mode 100644 index 000000000..bf9657ccd --- /dev/null +++ b/rules/host-libaio.in @@ -0,0 +1,6 @@ +## SECTION=hosttools_noprompt + +config HOST_LIBAIO + tristate + help + Requiered host part of some buildsystems diff --git a/rules/host-libaio.make b/rules/host-libaio.make new file mode 100644 index 000000000..6cfe80539 --- /dev/null +++ b/rules/host-libaio.make @@ -0,0 +1,24 @@ +# -*-makefile-*- +# +# Copyright (C) 2016 by Juergen Borleis +# +# See CREDITS for details about who has contributed to this project. +# +# For further information about the PTXdist project and license conditions +# see the README file. +# + +# +# We provide this package +# +HOST_PACKAGES-$(PTXCONF_HOST_LIBAIO) += host-libaio + +# ---------------------------------------------------------------------------- +# Prepare + Compile +# ---------------------------------------------------------------------------- + +HOST_LIBAIO_CONF_TOOL := NO +HOST_LIBAIO_MAKE_ENV := $(HOST_ENV) +HOST_LIBAIO_MAKEVARS := prefix= + +# vim: syntax=make diff --git a/rules/libaio.in b/rules/libaio.in new file mode 100644 index 000000000..f10149c8b --- /dev/null +++ b/rules/libaio.in @@ -0,0 +1,7 @@ +## SECTION=system_libraries + +config LIBAIO + tristate + prompt "libaio" + help + Library for asynchronous I/O access diff --git a/rules/libaio.make b/rules/libaio.make new file mode 100644 index 000000000..206ae4be2 --- /dev/null +++ b/rules/libaio.make @@ -0,0 +1,57 @@ +# -*-makefile-*- +# +# Copyright (C) 2016 by Juergen Borleis +# +# See CREDITS for details about who has contributed to this project. +# +# For further information about the PTXdist project and license conditions +# see the README file. +# + +# +# We provide this package +# +PACKAGES-$(PTXCONF_LIBAIO) += libaio + +# +# Paths and names +# +LIBAIO_VERSION := 0.3.110 +LIBAIO_MD5 := 2a35602e43778383e2f4907a4ca39ab8 +LIBAIO := libaio-$(LIBAIO_VERSION) +LIBAIO_SUFFIX := tar.gz +LIBAIO_URL := http://pkgs.fedoraproject.org/repo/pkgs/libaio/libaio-0.3.110.tar.gz/2a35602e43778383e2f4907a4ca39ab8/$(LIBAIO).$(LIBAIO_SUFFIX) +LIBAIO_SOURCE := $(SRCDIR)/$(LIBAIO).$(LIBAIO_SUFFIX) +LIBAIO_DIR := $(BUILDDIR)/$(LIBAIO) +LIBAIO_LICENSE := LGPL-2.1 + +# ---------------------------------------------------------------------------- +# Prepare + Compile +# ---------------------------------------------------------------------------- + +# +# just a Makefile made by a creative Linux kernel hacker... +# +LIBAIO_CONF_TOOL := NO +LIBAIO_MAKE_ENV := $(CROSS_ENV) + +# ---------------------------------------------------------------------------- +# Target-Install +# ---------------------------------------------------------------------------- + +$(STATEDIR)/libaio.targetinstall: + @$(call targetinfo) + + @$(call install_init, libaio) + @$(call install_fixup, libaio,PRIORITY,optional) + @$(call install_fixup, libaio,SECTION,base) + @$(call install_fixup, libaio,AUTHOR,"Juergen Borleis ") + @$(call install_fixup, libaio,DESCRIPTION,"asynchronous I/O access library") + + @$(call install_lib, libaio, 0, 0, 0644, libaio) + + @$(call install_finish, libaio) + + @$(call touch) + +# vim: syntax=make -- cgit v1.2.3