From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from mail-ee0-x229.google.com ([2a00:1450:4013:c00::229]) by metis.ext.pengutronix.de with esmtp (Exim 4.72) (envelope-from ) id 1WSXQG-0008DM-1Y for ptxdist@pengutronix.de; Tue, 25 Mar 2014 20:54:11 +0100 Received: by mail-ee0-f41.google.com with SMTP id t10so865421eei.14 for ; Tue, 25 Mar 2014 12:54:02 -0700 (PDT) From: Alexander Aring Date: Tue, 25 Mar 2014 20:53:50 +0100 Message-Id: <1395777230-16813-5-git-send-email-alex.aring@gmail.com> In-Reply-To: <1395777230-16813-1-git-send-email-alex.aring@gmail.com> References: <1395777230-16813-1-git-send-email-alex.aring@gmail.com> Subject: [ptxdist] [PATCH v2 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