mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
* [ptxdist] [PATCHv2] OpenNHRP: add opennhrp to ptxdist
@ 2015-02-23 14:49 Oliver Graute
  2015-02-23 14:58 ` Marc Kleine-Budde
  0 siblings, 1 reply; 2+ messages in thread
From: Oliver Graute @ 2015-02-23 14:49 UTC (permalink / raw)
  To: ptxdist; +Cc: Oliver Graute

This patch add OpenNHRP support to ptxdist
OpenNHRP implements NBMA Next Hop Resolution Protocol (RFC 2332)

Signed-off-by: Oliver Graute <oliver.graute@neuhaus.de>
---
 rules/opennhrp.in   |    7 +++++++
 rules/opennhrp.make |   53 +++++++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 60 insertions(+)
 create mode 100644 rules/opennhrp.in
 create mode 100644 rules/opennhrp.make

diff --git a/rules/opennhrp.in b/rules/opennhrp.in
new file mode 100644
index 0000000..52b269a
--- /dev/null
+++ b/rules/opennhrp.in
@@ -0,0 +1,7 @@
+## SECTION=networking
+
+config OPENNHRP
+	tristate
+	prompt "opennhrp"
+	help
+	 OpenNHRP implements NBMA Next Hop Resolution Protocol (as defined in RFC 2332)
diff --git a/rules/opennhrp.make b/rules/opennhrp.make
new file mode 100644
index 0000000..1b228d5
--- /dev/null
+++ b/rules/opennhrp.make
@@ -0,0 +1,53 @@
+# -*-makefile-*-
+#
+# Copyright (C) 2014 Dr. Neuhaus Telekommunikation GmbH, Hamburg Germany,  Oliver Graute <oliver.graute@neuhaus.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_OPENNHRP) += opennhrp
+
+#
+# Paths and names
+#
+OPENNHRP_VERSION	:= 0.14.1
+OPENNHRP_MD5		:= eb42ddb13e07ceb415b9ebb8eaca28ee
+OPENNHRP		:= opennhrp-$(OPENNHRP_VERSION)
+OPENNHRP_SUFFIX	:= tar.bz2
+OPENNHRP_URL		:= $(call ptx/mirror, SF, opennhrp/$(OPENNHRP).$(OPENNHRP))
+OPENNHRP_SOURCE	:= $(SRCDIR)/$(OPENNHRP).$(OPENNHRP_SUFFIX)
+OPENNHRP_DIR		:= $(BUILDDIR)/$(OPENNHRP)
+OPENNHRP_LICENSE	:= MIT
+
+
+OPENNHRP_CONF_ENV	:= $(CROSS_ENV)
+# ----------------------------------------------------------------------------
+# Target-Install
+# ----------------------------------------------------------------------------
+
+$(STATEDIR)/opennhrp.targetinstall:
+	@$(call targetinfo)
+
+	@$(call install_init, opennhrp)
+	@$(call install_fixup, opennhrp,PRIORITY,optional)
+	@$(call install_fixup, opennhrp,SECTION,base)
+	@$(call install_fixup, opennhrp,AUTHOR,"<oliver.graute@neuhaus.de>")
+	@$(call install_fixup, opennhrp,DESCRIPTION,missing)
+
+	@$(call install_copy, opennhrp, 0, 0, 0755, -, /usr/sbin/opennhrp)
+	@$(call install_copy, opennhrp, 0, 0, 0755, -, /usr/sbin/opennhrpctl)
+	@$(call install_copy, opennhrp, 0, 0, 0644, -, /etc/opennhrp/opennhrp.conf)
+	@$(call install_copy, opennhrp, 0, 0, 0755, -, /etc/opennhrp/racoon-ph1dead.sh)
+	@$(call install_copy, opennhrp, 0, 0, 0755, -, /etc/opennhrp/racoon-ph1down.sh)
+
+	@$(call install_finish, opennhrp)
+
+	@$(call touch)
+
+# vim: syntax=make
-- 
1.7.9.5


-- 
ptxdist mailing list
ptxdist@pengutronix.de

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [ptxdist] [PATCHv2] OpenNHRP: add opennhrp to ptxdist
  2015-02-23 14:49 [ptxdist] [PATCHv2] OpenNHRP: add opennhrp to ptxdist Oliver Graute
@ 2015-02-23 14:58 ` Marc Kleine-Budde
  0 siblings, 0 replies; 2+ messages in thread
From: Marc Kleine-Budde @ 2015-02-23 14:58 UTC (permalink / raw)
  To: ptxdist; +Cc: Oliver Graute


[-- Attachment #1.1: Type: text/plain, Size: 3473 bytes --]

On 02/23/2015 03:49 PM, Oliver Graute wrote:
> This patch add OpenNHRP support to ptxdist
> OpenNHRP implements NBMA Next Hop Resolution Protocol (RFC 2332)
> 
> Signed-off-by: Oliver Graute <oliver.graute@neuhaus.de>
> ---
>  rules/opennhrp.in   |    7 +++++++
>  rules/opennhrp.make |   53 +++++++++++++++++++++++++++++++++++++++++++++++++++
>  2 files changed, 60 insertions(+)
>  create mode 100644 rules/opennhrp.in
>  create mode 100644 rules/opennhrp.make
> 
> diff --git a/rules/opennhrp.in b/rules/opennhrp.in
> new file mode 100644
> index 0000000..52b269a
> --- /dev/null
> +++ b/rules/opennhrp.in
> @@ -0,0 +1,7 @@
> +## SECTION=networking
> +
> +config OPENNHRP
> +	tristate
> +	prompt "opennhrp"
> +	help
> +	 OpenNHRP implements NBMA Next Hop Resolution Protocol (as defined in RFC 2332)

        ^^
Please indent with one tab followed by two spaces, please respect the 80
column limit.

> diff --git a/rules/opennhrp.make b/rules/opennhrp.make
> new file mode 100644
> index 0000000..1b228d5
> --- /dev/null
> +++ b/rules/opennhrp.make
> @@ -0,0 +1,53 @@
> +# -*-makefile-*-
> +#
> +# Copyright (C) 2014 Dr. Neuhaus Telekommunikation GmbH, Hamburg Germany,  Oliver Graute <oliver.graute@neuhaus.de>

One space before your name should be enough.

> +#
> +# 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_OPENNHRP) += opennhrp
> +
> +#
> +# Paths and names
> +#
> +OPENNHRP_VERSION	:= 0.14.1
> +OPENNHRP_MD5		:= eb42ddb13e07ceb415b9ebb8eaca28ee
> +OPENNHRP		:= opennhrp-$(OPENNHRP_VERSION)
> +OPENNHRP_SUFFIX	:= tar.bz2
> +OPENNHRP_URL		:= $(call ptx/mirror, SF, opennhrp/$(OPENNHRP).$(OPENNHRP))
> +OPENNHRP_SOURCE	:= $(SRCDIR)/$(OPENNHRP).$(OPENNHRP_SUFFIX)
> +OPENNHRP_DIR		:= $(BUILDDIR)/$(OPENNHRP)
> +OPENNHRP_LICENSE	:= MIT
> +
> +
> +OPENNHRP_CONF_ENV	:= $(CROSS_ENV)

Is this a autoconf package?

> +# ----------------------------------------------------------------------------
> +# Target-Install
> +# ----------------------------------------------------------------------------
> +
> +$(STATEDIR)/opennhrp.targetinstall:
> +	@$(call targetinfo)
> +
> +	@$(call install_init, opennhrp)
> +	@$(call install_fixup, opennhrp,PRIORITY,optional)
> +	@$(call install_fixup, opennhrp,SECTION,base)
> +	@$(call install_fixup, opennhrp,AUTHOR,"<oliver.graute@neuhaus.de>")
> +	@$(call install_fixup, opennhrp,DESCRIPTION,missing)
> +
> +	@$(call install_copy, opennhrp, 0, 0, 0755, -, /usr/sbin/opennhrp)
> +	@$(call install_copy, opennhrp, 0, 0, 0755, -, /usr/sbin/opennhrpctl)
> +	@$(call install_copy, opennhrp, 0, 0, 0644, -, /etc/opennhrp/opennhrp.conf)
> +	@$(call install_copy, opennhrp, 0, 0, 0755, -, /etc/opennhrp/racoon-ph1dead.sh)
> +	@$(call install_copy, opennhrp, 0, 0, 0755, -, /etc/opennhrp/racoon-ph1down.sh)

Please use install_alternative for the files in /etc

> +
> +	@$(call install_finish, opennhrp)
> +
> +	@$(call touch)
> +
> +# vim: syntax=make
> 

Marc
-- 
Pengutronix e.K.                  | Marc Kleine-Budde           |
Industrial Linux Solutions        | Phone: +49-231-2826-924     |
Vertretung West/Dortmund          | Fax:   +49-5121-206917-5555 |
Amtsgericht Hildesheim, HRA 2686  | http://www.pengutronix.de   |


[-- Attachment #1.2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 819 bytes --]

[-- Attachment #2: Type: text/plain, Size: 48 bytes --]

-- 
ptxdist mailing list
ptxdist@pengutronix.de

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2015-02-23 14:58 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-02-23 14:49 [ptxdist] [PATCHv2] OpenNHRP: add opennhrp to ptxdist Oliver Graute
2015-02-23 14:58 ` Marc Kleine-Budde

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox