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 4/4] simplerpl: add new package
Date: Mon, 24 Mar 2014 09:06:54 +0100	[thread overview]
Message-ID: <1395648414-16669-5-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/simplerpl.in   | 13 +++++++++
 rules/simplerpl.make | 79 ++++++++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 92 insertions(+)
 create mode 100644 rules/simplerpl.in
 create mode 100644 rules/simplerpl.make

diff --git a/rules/simplerpl.in b/rules/simplerpl.in
new file mode 100644
index 0000000..76201f2
--- /dev/null
+++ b/rules/simplerpl.in
@@ -0,0 +1,13 @@
+## SECTION=networking
+
+config SIMPLERPL
+	tristate
+	prompt "simplerpl"
+	select PYTHON_ROUTING
+	select PYTHON_RPLICMP
+	select PYZMQ
+	help
+	  SimpleRPL is Linux-based implementation of the Routing Protocol for
+	  Low-Power and Lossy Networks (RPL) as defined in RFC 6550. It aims
+	  to complete the Linux Wireless Sensor Network ecosystem by bringing
+	  a (hopefully) fully-compliant RPL implementation
diff --git a/rules/simplerpl.make b/rules/simplerpl.make
new file mode 100644
index 0000000..a35eee1
--- /dev/null
+++ b/rules/simplerpl.make
@@ -0,0 +1,79 @@
+# -*-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_SIMPLERPL) += simplerpl
+
+#
+# Paths and names
+#
+SIMPLERPL_VERSION	:= 1.0
+SIMPLERPL_MD5		:= 8544a9f7414e98cd2d17ff15332c8eee
+SIMPLERPL		:= simplerpl-$(SIMPLERPL_VERSION)
+SIMPLERPL_SUFFIX	:= tar.gz
+SIMPLERPL_URL		:= http://cakelab.org/~eintopf/RPL/$(SIMPLERPL).$(SIMPLERPL_SUFFIX)
+SIMPLERPL_SOURCE	:= $(SRCDIR)/$(SIMPLERPL).$(SIMPLERPL_SUFFIX)
+SIMPLERPL_DIR		:= $(BUILDDIR)/$(SIMPLERPL)
+
+# ----------------------------------------------------------------------------
+# Prepare
+# ----------------------------------------------------------------------------
+
+SIMPLERPL_CONF_TOOL	:= NO
+
+# ----------------------------------------------------------------------------
+# Compile
+# ----------------------------------------------------------------------------
+
+$(STATEDIR)/simplerpl.compile:
+	@$(call targetinfo)
+	@cd $(SIMPLERPL_DIR) && \
+		$(CROSS_ENV) $(CROSS_PYTHON) setup.py build -e "/usr/bin/env python"
+	@$(call touch)
+
+# ----------------------------------------------------------------------------
+# Install
+# ----------------------------------------------------------------------------
+
+$(STATEDIR)/simplerpl.install:
+	@$(call targetinfo)
+	@cd $(SIMPLERPL_DIR) && \
+		$(CROSS_PYTHON) \
+		setup.py install --root=$(SIMPLERPL_PKGDIR) --prefix="/usr"
+	@$(call touch)
+
+# ----------------------------------------------------------------------------
+# Target-Install
+# ----------------------------------------------------------------------------
+
+$(STATEDIR)/simplerpl.targetinstall:
+	@$(call targetinfo)
+
+	@$(call install_init, simplerpl)
+	@$(call install_fixup, simplerpl,PRIORITY,optional)
+	@$(call install_fixup, simplerpl,SECTION,base)
+	@$(call install_fixup, simplerpl,AUTHOR,"Alexander Aring <aar@pengutronix.de>")
+	@$(call install_fixup, simplerpl,DESCRIPTION,missing)
+
+	@for file in $(shell cd $(SIMPLERPL_PKGDIR) && find . -name "*.pyc"); \
+		do \
+		$(call install_copy, simplerpl, 0, 0, 0644, -, /$$file); \
+	done
+
+	@$(call install_copy, simplerpl, 0, 0, 0755, -, /usr/bin/cliRPL.py)
+	@$(call install_copy, simplerpl, 0, 0, 0755, -, /usr/bin/simpleRPL.py)
+
+	@$(call install_finish, simplerpl)
+
+	@$(call touch)
+
+# vim: syntax=make
-- 
1.9.1


-- 
ptxdist mailing list
ptxdist@pengutronix.de

      parent reply	other threads:[~2014-03-24  8:08 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 ` [ptxdist] [PATCH 2/4] python-routing: add new package Alexander Aring
2014-03-24 10:07   ` 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 ` Alexander Aring [this message]

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-5-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