From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from mail-ee0-x231.google.com ([2a00:1450:4013:c00::231]) by metis.ext.pengutronix.de with esmtp (Exim 4.72) (envelope-from ) id 1WRzvC-0007h6-Ao for ptxdist@pengutronix.de; Mon, 24 Mar 2014 09:08:10 +0100 Received: by mail-ee0-f49.google.com with SMTP id c41so4097255eek.8 for ; Mon, 24 Mar 2014 01:07:44 -0700 (PDT) From: Alexander Aring Date: Mon, 24 Mar 2014 09:06:54 +0100 Message-Id: <1395648414-16669-5-git-send-email-alex.aring@gmail.com> In-Reply-To: <1395648414-16669-1-git-send-email-alex.aring@gmail.com> References: <1395648414-16669-1-git-send-email-alex.aring@gmail.com> Subject: [ptxdist] [PATCH 4/4] simplerpl: add new package Reply-To: ptxdist@pengutronix.de List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: ptxdist-bounces@pengutronix.de Errors-To: ptxdist-bounces@pengutronix.de To: ptxdist@pengutronix.de Cc: Alexander Aring Signed-off-by: Alexander Aring --- 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 +# +# 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 ") + @$(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