mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
From: Alexander Aring <alex.aring@gmail.com>
To: ptxdist@pengutronix.de
Cc: Alexander Aring <alex.aring@gmail.com>
Subject: [ptxdist] [PATCH 2/4] python-routing: add new package
Date: Mon, 24 Mar 2014 09:06:52 +0100	[thread overview]
Message-ID: <1395648414-16669-3-git-send-email-alex.aring@gmail.com> (raw)
In-Reply-To: <1395648414-16669-1-git-send-email-alex.aring@gmail.com>

Signed-off-by: Alexander Aring <alex.aring@gmail.com>
---
 rules/python-routing.in   | 13 +++++++++
 rules/python-routing.make | 74 +++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 87 insertions(+)
 create mode 100644 rules/python-routing.in
 create mode 100644 rules/python-routing.make

diff --git a/rules/python-routing.in b/rules/python-routing.in
new file mode 100644
index 0000000..abfa12c
--- /dev/null
+++ b/rules/python-routing.in
@@ -0,0 +1,13 @@
+## SECTION=python
+
+config PYTHON_ROUTING
+	tristate
+	select HOST_CYTHON
+	select PYTHON
+	select LIBNL3
+	prompt "python-routing"
+	help
+	  This is yet another python binding for the libnl3. This bidning
+	  was written to encompass the "route" module which isn't encompassed
+	  by any other libnl3 python binding. The special route module is
+	  necessary for the simpleRPL implementation.
diff --git a/rules/python-routing.make b/rules/python-routing.make
new file mode 100644
index 0000000..33dcf5e
--- /dev/null
+++ b/rules/python-routing.make
@@ -0,0 +1,74 @@
+# -*-makefile-*-
+#
+# Copyright (C) 2014 by Alexander Aring <aar@pengutronix.de>
+#
+# 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_PYTHON_ROUTING) += python-routing
+
+#
+# Paths and names
+#
+PYTHON_ROUTING_VERSION	:= 1.0
+PYTHON_ROUTING_MD5	:= 2ef6adf2ab6a2f303600999546198a69
+PYTHON_ROUTING		:= python_routing-$(PYTHON_ROUTING_VERSION)
+PYTHON_ROUTING_SUFFIX	:= tar.gz
+PYTHON_ROUTING_URL	:= http://cakelab.org/~eintopf/RPL/$(PYTHON_ROUTING).$(PYTHON_ROUTING_SUFFIX)
+PYTHON_ROUTING_SOURCE	:= $(SRCDIR)/$(PYTHON_ROUTING).$(PYTHON_ROUTING_SUFFIX)
+PYTHON_ROUTING_DIR	:= $(BUILDDIR)/$(PYTHON_ROUTING)
+
+# ----------------------------------------------------------------------------
+# Prepare
+# ----------------------------------------------------------------------------
+
+PYTHON_ROUTING_CONF_TOOL	:= NO
+
+# ----------------------------------------------------------------------------
+# Compile
+# ----------------------------------------------------------------------------
+
+$(STATEDIR)/python-routing.compile:
+	@$(call targetinfo)
+	@cd $(PYTHON_ROUTING_DIR) && \
+		$(CROSS_ENV) $(CROSS_CYTHON_ENV) $(CROSS_PYTHON) \
+		setup.py build_ext
+	@$(call touch)
+
+# ----------------------------------------------------------------------------
+# Install
+# ----------------------------------------------------------------------------
+
+$(STATEDIR)/python-routing.install:
+	@$(call targetinfo)
+	@cd $(PYTHON_ROUTING_DIR) && \
+		$(CROSS_ENV) $(CROSS_CYTHON_ENV) $(CROSS_PYTHON) \
+		setup.py install --root=$(PYTHON_ROUTING_PKGDIR) --prefix="/usr"
+	@$(call touch)
+
+# ----------------------------------------------------------------------------
+# Target-Install
+# ----------------------------------------------------------------------------
+
+$(STATEDIR)/python-routing.targetinstall:
+	@$(call targetinfo)
+
+	@$(call install_init, python-routing)
+	@$(call install_fixup, python-routing,PRIORITY,optional)
+	@$(call install_fixup, python-routing,SECTION,base)
+	@$(call install_fixup, python-routing,AUTHOR,"Alexander Aring <aar@pengutronix.de>")
+	@$(call install_fixup, python-routing,DESCRIPTION,missing)
+
+	@$(call install_copy, python-routing, 0, 0, 0755, -, $(PYTHON_SITEPACKAGES)/Routing.so)
+
+	@$(call install_finish, python-routing)
+
+	@$(call touch)
+
+# vim: syntax=make
-- 
1.9.1


-- 
ptxdist mailing list
ptxdist@pengutronix.de

  parent reply	other threads:[~2014-03-24  8:07 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-03-24  8:06 [ptxdist] [PATCH 0/4] add simpleRPL package, dependencies and cakes Alexander Aring
2014-03-24  8:06 ` [ptxdist] [PATCH 1/4] host-cython: add CROSS_CYTHON_ENV declaration Alexander Aring
2014-03-24  8:06 ` Alexander Aring [this message]
2014-03-24 10:07   ` [ptxdist] [PATCH 2/4] python-routing: add new package Marc Kleine-Budde
2014-03-24 12:05     ` Alexander Aring
2014-03-24  8:06 ` [ptxdist] [PATCH 3/4] python-rplicmp: " Alexander Aring
2014-03-24  8:06 ` [ptxdist] [PATCH 4/4] simplerpl: " Alexander Aring

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1395648414-16669-3-git-send-email-alex.aring@gmail.com \
    --to=alex.aring@gmail.com \
    --cc=ptxdist@pengutronix.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox