Signed-off-by: Alexander Aring <[email protected]>
---
 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 <[email protected]>
+#
+# 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 
<[email protected]>")
+       @$(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
[email protected]

Reply via email to