summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAbdoulaye Walsimou Gaye <awg@embtoolkit.org>2012-10-21 16:05:44 +0200
committerAbdoulaye Walsimou Gaye <awg@embtoolkit.org>2012-10-21 16:05:44 +0200
commitc49c2503d6721fa80dcf373a882fddb96ce56765 (patch)
tree1926f375c4f77a09082dda8be3ef01023ed90dba
parent4e9b318e91c9c99659fbe815fad687f57cd3ad45 (diff)
downloadembtoolkit-c49c2503d6721fa80dcf373a882fddb96ce56765.tar.gz
embtoolkit-c49c2503d6721fa80dcf373a882fddb96ce56765.tar.bz2
embtoolkit-c49c2503d6721fa80dcf373a882fddb96ce56765.tar.xz
Packages: New: add libtirpc-0.2.2 and needed patches
Signed-off-by: Abdoulaye Walsimou Gaye <awg@embtoolkit.org>
-rw-r--r--packages/net/libtirpc/libtirpc.kconfig54
-rw-r--r--packages/net/libtirpc/libtirpc.mk39
-rw-r--r--packages/net/net.kconfig3
-rw-r--r--packages/net/net.mk4
4 files changed, 100 insertions, 0 deletions
diff --git a/packages/net/libtirpc/libtirpc.kconfig b/packages/net/libtirpc/libtirpc.kconfig
new file mode 100644
index 0000000..6eb0ba2
--- /dev/null
+++ b/packages/net/libtirpc/libtirpc.kconfig
@@ -0,0 +1,54 @@
+################################################################################
+# Embtoolkit
+# Copyright(C) 2012 Abdoulaye Walsimou GAYE.
+#
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 2 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+#
+################################################################################
+#
+# \file libtirpc.kconfig
+# \brief libtirpc.kconfig of Embtoolkit
+# \author Abdoulaye Walsimou GAYE <awg@embtoolkit.org>
+# \date October 2012
+################################################################################
+
+config EMBTK_HAVE_LIBTIRPC
+ bool "Have libtirpc"
+ select EMBTK_UCLIBC_UCLIBC_HAS_SOCKET if EMBTK_CLIB_UCLIBC
+ select KEMBTK_UCLIBC_UCLIBC_HAS_NETWORK_SUPPORT if EMBTK_CLIB_UCLIBC
+ select KEMBTK_UCLIBC_UCLIBC_USE_NETLINK if EMBTK_CLIB_UCLIBC
+ select KEMBTK_UCLIBC_UCLIBC_SUPPORT_AI_ADDRCONFIG if EMBTK_CLIB_UCLIBC
+ help
+ Libtirpc is a port of Suns Transport-Independent RPC library to Linux.
+
+choice
+ prompt "libtirpc version you wish"
+ depends on EMBTK_HAVE_LIBTIRPC
+ help
+ Here you can choose which version of libtirpc you want to use.
+
+ config EMBTK_LIBTIRPC_VERSION_0_2_2
+ bool "libtirpc-0.2.2"
+ select EMBTK_LIBTIRPC_NEED_PATCH
+ select EMBTK_LIBTIRPC_NEED_AUTORECONF
+endchoice
+
+config EMBTK_LIBTIRPC_VERSION_STRING
+ string
+ default "0.2.2" if EMBTK_LIBTIRPC_VERSION_0_2_2
+
+config EMBTK_LIBTIRPC_NEED_PATCH
+ bool
+config EMBTK_LIBTIRPC_NEED_AUTORECONF
+ bool
diff --git a/packages/net/libtirpc/libtirpc.mk b/packages/net/libtirpc/libtirpc.mk
new file mode 100644
index 0000000..e8bce74
--- /dev/null
+++ b/packages/net/libtirpc/libtirpc.mk
@@ -0,0 +1,39 @@
+################################################################################
+# Embtoolkit
+# Copyright(C) 2012 Abdoulaye Walsimou GAYE.
+#
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 2 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+#
+################################################################################
+#
+# \file libtirpc.mk
+# \brief libtirpc.mk of Embtoolkit
+# \author Abdoulaye Walsimou GAYE <awg@embtoolkit.org>
+# \date October 2012
+################################################################################
+
+LIBTIRPC_NAME := libtirpc
+LIBTIRPC_VERSION := $(call embtk_get_pkgversion,libtirpc)
+LIBTIRPC_SITE := http://downloads.sourceforge.net/project/libtirpc/libtirpc/$(LIBTIRPC_VERSION)
+LIBTIRPC_PACKAGE := libtirpc-$(LIBTIRPC_VERSION).tar.bz2
+LIBTIRPC_SRC_DIR := $(embtk_pkgb)/libtirpc-$(LIBTIRPC_VERSION)
+LIBTIRPC_BUILD_DIR := $(embtk_pkgb)/libtirpc-$(LIBTIRPC_VERSION)
+
+LIBTIRPC_BINS :=
+LIBTIRPC_ETC := netconfig
+LIBTIRPC_SBINS :=
+LIBTIRPC_INCLUDES := tirpc
+LIBTIRPC_LIBS := libtirpc.*
+LIBTIRPC_LIBEXECS :=
+LIBTIRPC_PKGCONFIGS := libtirpc.pc
diff --git a/packages/net/net.kconfig b/packages/net/net.kconfig
index d0504c9..c5db23c 100644
--- a/packages/net/net.kconfig
+++ b/packages/net/net.kconfig
@@ -28,3 +28,6 @@ source packages/net/iptables/iptables.kconfig
# LIBNL
source packages/net/libnl/libnl.kconfig
+
+# libtirpc
+source packages/net/libtirpc/libtirpc.kconfig
diff --git a/packages/net/net.mk b/packages/net/net.mk
index cf91123..4c101fa 100644
--- a/packages/net/net.mk
+++ b/packages/net/net.mk
@@ -30,3 +30,7 @@ ROOTFS_COMPONENTS-$(CONFIG_EMBTK_HAVE_IPTABLES) += iptables_install
# LIBNL
include $(EMBTK_ROOT)/packages/net/libnl/libnl.mk
ROOTFS_COMPONENTS-$(CONFIG_EMBTK_HAVE_LIBNL) += libnl_install
+
+# libtirpc
+include $(EMBTK_ROOT)/packages/net/libtirpc/libtirpc.mk
+ROOTFS_COMPONENTS-$(CONFIG_EMBTK_HAVE_LIBTIRPC) += libtirpc_install