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 v2 3/4] python-rplicmp: add new package
Date: Tue, 25 Mar 2014 20:53:49 +0100	[thread overview]
Message-ID: <1395777230-16813-4-git-send-email-alex.aring@gmail.com> (raw)
In-Reply-To: <1395777230-16813-1-git-send-email-alex.aring@gmail.com>

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

diff --git a/rules/python-rplicmp.in b/rules/python-rplicmp.in
new file mode 100644
index 0000000..75fedc5
--- /dev/null
+++ b/rules/python-rplicmp.in
@@ -0,0 +1,11 @@
+## SECTION=python
+
+config PYTHON_RPLICMP
+	tristate
+	prompt "python-rplicmp"
+	select HOST_CYTHON
+	select PYTHON
+	select LIBCAP
+	help
+	  This module allows easy creation of ICMPv6 socket in Python tailored to
+	  send RPL messages.
diff --git a/rules/python-rplicmp.make b/rules/python-rplicmp.make
new file mode 100644
index 0000000..a8ef1b2
--- /dev/null
+++ b/rules/python-rplicmp.make
@@ -0,0 +1,75 @@
+# -*-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_RPLICMP) += python-rplicmp
+
+#
+# Paths and names
+#
+PYTHON_RPLICMP_VERSION	:= 1.0
+PYTHON_RPLICMP_MD5	:= b2d9a93beb095826fce6e4752fb63491
+PYTHON_RPLICMP		:= python_rplicmp-$(PYTHON_RPLICMP_VERSION)
+PYTHON_RPLICMP_SUFFIX	:= tar.gz
+PYTHON_RPLICMP_URL	:= http://cakelab.org/~eintopf/RPL/$(PYTHON_RPLICMP).$(PYTHON_RPLICMP_SUFFIX)
+PYTHON_RPLICMP_SOURCE	:= $(SRCDIR)/$(PYTHON_RPLICMP).$(PYTHON_RPLICMP_SUFFIX)
+PYTHON_RPLICMP_DIR	:= $(BUILDDIR)/$(PYTHON_RPLICMP)
+
+# ----------------------------------------------------------------------------
+# Prepare
+# ----------------------------------------------------------------------------
+
+PYTHON_RPLICMP_CONF_TOOL	:= NO
+
+# ----------------------------------------------------------------------------
+# Compile
+# ----------------------------------------------------------------------------
+
+$(STATEDIR)/python-rplicmp.compile:
+	@$(call targetinfo)
+	@cd $(PYTHON_RPLICMP_DIR) && \
+		$(CROSS_ENV) $(CROSS_CC) -Wall -pedantic -lcap -c -fPIC -o caplib.o caplib.c && \
+		$(CROSS_ENV) $(CROSS_CC) -Wall -pedantic -lcap -c -fPIC -o icmplib.o icmplib.c && \
+		$(CROSS_ENV) $(CROSS_CYTHON_ENV) $(CROSS_PYTHON) setup.py build_ext
+	@$(call touch)
+
+# ----------------------------------------------------------------------------
+# Install
+# ----------------------------------------------------------------------------
+
+$(STATEDIR)/python-rplicmp.install:
+	@$(call targetinfo)
+	@cd $(PYTHON_RPLICMP_DIR) && \
+		$(CROSS_ENV) $(CROSS_CYTHON_ENV) $(CROSS_PYTHON) \
+		setup.py install --root=$(PYTHON_RPLICMP_PKGDIR) --prefix="/usr"
+	@$(call touch)
+
+# ----------------------------------------------------------------------------
+# Target-Install
+# ----------------------------------------------------------------------------
+
+$(STATEDIR)/python-rplicmp.targetinstall:
+	@$(call targetinfo)
+
+	@$(call install_init, python-rplicmp)
+	@$(call install_fixup, python-rplicmp,PRIORITY,optional)
+	@$(call install_fixup, python-rplicmp,SECTION,base)
+	@$(call install_fixup, python-rplicmp,AUTHOR,"Alexander Aring <aar@pengutronix.de>")
+	@$(call install_fixup, python-rplicmp,DESCRIPTION,missing)
+
+	@$(call install_copy, python-rplicmp, 0, 0, 0644, -, $(PYTHON_SITEPACKAGES)/RplIcmp.so)
+
+	@$(call install_finish, python-rplicmp)
+
+	@$(call touch)
+
+# vim: syntax=make
-- 
1.9.1


-- 
ptxdist mailing list
ptxdist@pengutronix.de

  parent reply	other threads:[~2014-03-25 19:54 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-03-25 19:53 [ptxdist] [PATCH v2 0/4] python: add simpleRPL package, dependencies and cakes Alexander Aring
2014-03-25 19:53 ` [ptxdist] [PATCH v2 1/4] host-cython: add CROSS_CYTHON_ENV declaration Alexander Aring
2014-03-25 19:53 ` [ptxdist] [PATCH v2 2/4] python-routing: add new package Alexander Aring
2014-03-25 19:53 ` Alexander Aring [this message]
2014-03-25 19:53 ` [ptxdist] [PATCH v2 4/4] simplerpl: " Alexander Aring
2014-03-29  9:03 ` [ptxdist] [PATCH v2 0/4] python: add simpleRPL package, dependencies and cakes Michael Olbrich

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=1395777230-16813-4-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