diff options
author | Alexander Aring <aar@pengutronix.de> | 2016-04-27 17:54:20 +0200 |
---|---|---|
committer | Michael Olbrich <m.olbrich@pengutronix.de> | 2016-05-17 08:28:33 +0200 |
commit | 32dc89d1684015aac52d3ed813432020f06a904a (patch) | |
tree | c9220f4bf1ac3f1e98af10a8393fc7f60579c2f5 | |
parent | 8d0b85d2981a9f4978b37b94ae3925031b21dfd4 (diff) | |
download | ptxdist-32dc89d1684015aac52d3ed813432020f06a904a.tar.gz ptxdist-32dc89d1684015aac52d3ed813432020f06a904a.tar.xz |
unstrung: initial commit
Cc: Michael Richardson <mcr@sandelman.ca>
Signed-off-by: Alexander Aring <aar@pengutronix.de>
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
-rw-r--r-- | patches/unstrung-1.11.0/0001-main-interface-needs-argument.patch | 24 | ||||
-rw-r--r-- | patches/unstrung-1.11.0/0002-main-remove-double-dagid-entry.patch | 21 | ||||
-rw-r--r-- | patches/unstrung-1.11.0/series | 5 | ||||
-rw-r--r-- | rules/unstrung.in | 26 | ||||
-rw-r--r-- | rules/unstrung.make | 63 |
5 files changed, 139 insertions, 0 deletions
diff --git a/patches/unstrung-1.11.0/0001-main-interface-needs-argument.patch b/patches/unstrung-1.11.0/0001-main-interface-needs-argument.patch new file mode 100644 index 000000000..33022ead6 --- /dev/null +++ b/patches/unstrung-1.11.0/0001-main-interface-needs-argument.patch @@ -0,0 +1,24 @@ +From: Alexander Aring <aar@pengutronix.de> +Date: Tue, 26 Apr 2016 11:25:24 +0200 +Subject: [PATCH] main: interface needs argument + +The interface argument needs an argument otherwise optarg is NULL. + +Signed-off-by: Alexander Aring <aar@pengutronix.de> +--- + programs/sunshine/main.cpp | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/programs/sunshine/main.cpp b/programs/sunshine/main.cpp +index 2128eb616fac..b005ccf42fd9 100644 +--- a/programs/sunshine/main.cpp ++++ b/programs/sunshine/main.cpp +@@ -34,7 +34,7 @@ char *progname; + static struct option const longopts[] = + { + { "help", 0, 0, '?'}, +- { "interface", 0, 0, 'i'}, ++ { "interface", 1, 0, 'i'}, + { "daemon", 0, 0, 'D'}, + { "prefix", 1, NULL, 'p'}, + { "ignore-pio",0, NULL, 'P'}, diff --git a/patches/unstrung-1.11.0/0002-main-remove-double-dagid-entry.patch b/patches/unstrung-1.11.0/0002-main-remove-double-dagid-entry.patch new file mode 100644 index 000000000..802b7ea85 --- /dev/null +++ b/patches/unstrung-1.11.0/0002-main-remove-double-dagid-entry.patch @@ -0,0 +1,21 @@ +From: Alexander Aring <aar@pengutronix.de> +Date: Tue, 26 Apr 2016 11:25:44 +0200 +Subject: [PATCH] main: remove double dagid entry + +Signed-off-by: Alexander Aring <aar@pengutronix.de> +--- + programs/sunshine/main.cpp | 1 - + 1 file changed, 1 deletion(-) + +diff --git a/programs/sunshine/main.cpp b/programs/sunshine/main.cpp +index b005ccf42fd9..98911c888ade 100644 +--- a/programs/sunshine/main.cpp ++++ b/programs/sunshine/main.cpp +@@ -47,7 +47,6 @@ static struct option const longopts[] = + { "sleep", 1, NULL, OPTION_SLEEP}, + { "interval", 1, NULL, 'W'}, + { "dagid", 1, NULL, 'G'}, +- { "dagid", 1, NULL, 'G'}, + { "rank", 1, NULL, 'R'}, + { "kill", 0, 0, 'K'}, + { "verbose", 0, 0, 'v'}, diff --git a/patches/unstrung-1.11.0/series b/patches/unstrung-1.11.0/series new file mode 100644 index 000000000..21a45d9af --- /dev/null +++ b/patches/unstrung-1.11.0/series @@ -0,0 +1,5 @@ +# generated by git-ptx-patches +#tag:base --start-number 1 +0001-main-interface-needs-argument.patch +0002-main-remove-double-dagid-entry.patch +# 248ced0a83ec2ee376156e1599d6779f - git-ptx-patches magic diff --git a/rules/unstrung.in b/rules/unstrung.in new file mode 100644 index 000000000..61b87a99f --- /dev/null +++ b/rules/unstrung.in @@ -0,0 +1,26 @@ +## SECTION=networking + +menuconfig UNSTRUNG + tristate + prompt "unstrung " + select BOOST + select LIBPCAP + select LIBUSB + help + Unstrung is an implementation of the IETF ROLL Working Group's RPL + RFC6550 routing protocol. RPL is pronounced Ripple. RPL is an IETF + protocol that provides connectivity among nodes that can not all + hear each other, but rather have to form a multihop mesh-like + network. + +if UNSTRUNG + +config UNSTRUNG_TESTING + bool + prompt "testing tools" + help + If enabled testing programs peck, senddio, senddao will be builed and + installed. + +endif + diff --git a/rules/unstrung.make b/rules/unstrung.make new file mode 100644 index 000000000..85ee845a6 --- /dev/null +++ b/rules/unstrung.make @@ -0,0 +1,63 @@ +# -*-makefile-*- +# +# Copyright (C) 2016 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_UNSTRUNG) += unstrung + +# +# Paths and names +# +UNSTRUNG_VERSION := 1.11.0 +UNSTRUNG_MD5 := b18fa7644f19688e75eb37475816d73a +UNSTRUNG := unstrung-$(UNSTRUNG_VERSION) +UNSTRUNG_SUFFIX := tar.gz +UNSTRUNG_URL := http://unstrung.sandelman.ca/downloads/$(UNSTRUNG).$(UNSTRUNG_SUFFIX) +UNSTRUNG_SOURCE := $(SRCDIR)/$(UNSTRUNG).$(UNSTRUNG_SUFFIX) +UNSTRUNG_DIR := $(BUILDDIR)/$(UNSTRUNG) +UNSTRUNG_LICENSE := GPL-2.0+ + +# ---------------------------------------------------------------------------- +# Prepare +# ---------------------------------------------------------------------------- + +UNSTRUNG_CONF_TOOL := NO +UNSTRUNG_COMPILE_ENV := \ + $(CROSS_ENV) \ + ARCH=$(PTXCONF_ARCH_STRING) \ + EMBEDDED=$(call ptx/ifdef,PTXCONF_UNSTRUNG_TESTING,,1) + +# ---------------------------------------------------------------------------- +# Target-Install +# ---------------------------------------------------------------------------- + +$(STATEDIR)/unstrung.targetinstall: + @$(call targetinfo) + + @$(call install_init, unstrung) + @$(call install_fixup, unstrung,PRIORITY,optional) + @$(call install_fixup, unstrung,SECTION,base) + @$(call install_fixup, unstrung,AUTHOR,"Alexander Aring <aar@pengutronix.de>") + @$(call install_fixup, unstrung,DESCRIPTION,missing) + + @$(call install_copy, unstrung, 0, 0, 0755, -, /sbin/sunshine) + +ifdef PTXCONF_UNSTRUNG_TESTING + @$(call install_copy, unstrung, 0, 0, 0755, -, /sbin/peck) + @$(call install_copy, unstrung, 0, 0, 0755, -, /sbin/senddao) + @$(call install_copy, unstrung, 0, 0, 0755, -, /sbin/senddio) +endif + + @$(call install_finish, unstrung) + + @$(call touch) + +# vim: syntax=make |