Skip to contentSkip to conversation

parprouted: new package

PATCH New Owen Walpole 2 participants 2 messages Jul 2, 2020 – Jul 12, 2020

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 parprouted: new package

parprouted is a daemon for transparent IP (Layer 3) proxy ARP bridging. This is useful for creation of transparent firewalls and bridging networks with different MAC protocols. Also, unlike standard bridging, proxy ARP bridging allows to bridge Ethernet networks behind wireless nodes without using WDS or layer 2 bridging.

https://www.hazard.maks.net/parprouted

---
 DEVELOPERS                         |  3 +++
 package/Config.in                  |  1 +
 package/parprouted/Config.in       | 16 ++++++++++++++++
 package/parprouted/parprouted.hash |  7 +++++++
 package/parprouted/parprouted.mk   | 20 ++++++++++++++++++++
 5 files changed, 47 insertions(+)
 create mode 100644 package/parprouted/Config.in
 create mode 100644 package/parprouted/parprouted.hash
 create mode 100644 package/parprouted/parprouted.mk
DEVELOPERS +3 -0
index 4b6a346a05..c43e80193e 100644
@@ -1924,6 +1924,9 @@ F:	package/openjpeg/
 N:	Olivier Singla <[email protected]>
 F:	package/shellinabox/
 
+N:  Owen Walpole <[email protected]>
+F:  package/parprouted/
+
 N:	Parnell Springmeyer <[email protected]>
 F:	package/scrypt/
 
package/Config.in +1 -0
index 6a34a895af..7186134a0e 100644
@@ -2150,6 +2150,7 @@ endif
 	source "package/openswan/Config.in"
 	source "package/openvpn/Config.in"
 	source "package/p910nd/Config.in"
+    source "package/parprouted/Config.in"
 	source "package/phidgetwebservice/Config.in"
 	source "package/phytool/Config.in"
 	source "package/pimd/Config.in"
package/parprouted/Config.in new file +16 -0
new file mode 100644
index 0000000000..fddd8de7d4
@@ -0,0 +1,16 @@
+config BR2_PACKAGE_PARPROUTED
+	bool "parprouted"
+	depends on BR2_USE_MMU # fork()
+	help
+	  parprouted is a daemon for transparent IP (Layer 3) proxy ARP
+	  bridging. This is useful for creation of transparent firewalls
+	  and bridging networks with different MAC protocols. Also,
+	  unlike standard bridging, proxy ARP bridging allows to bridge
+	  Ethernet networks behind wireless nodes without using WDS or
+	  layer 2 bridging.
+
+	  https://www.hazard.maks.net/parprouted
+
+comment "parprouted needs a toolchain w/ NPTL"
+	depends on BR2_USE_MMU
+	depends on !BR2_TOOLCHAIN_HAS_THREADS_NPTL
package/parprouted/parprouted.hash new file +7 -0
new file mode 100644
index 0000000000..4ac46a9230
@@ -0,0 +1,7 @@
+# Locally computed:
+sha256  4b8cb2c801047f26b63aefaa8d69adc8552fb7c8a8f5d851798a48f841948d36  parprouted-0.65.tar.gz
+sha512 801e5caf02960acfcea1729d146ac6f9e181873be6880f4433ea897119aa127f75809c6bfbffe6dc6fde5fd08e5f092e799925552ec8d5d289958383d0f9695a  parprouted-0.65.tar.gz
+
+# Hash for license files:
+sha256  dcc100d4161cc0b7177545ab6e47216f84857cda3843847c792a25289852dcaa  COPYING
+sha512  4113ed89fc91f55762e1deeb2b7e43af124eba2e037e13b7fe794ee33f40a8b218112b8ab167b5d8778cd5532d6f2c19058df7a24799ba29ff0be2d4004262e4  COPYING
package/parprouted/parprouted.mk new file +20 -0
new file mode 100644
index 0000000000..fdc595d515
@@ -0,0 +1,20 @@
+################################################################################
+#
+# parprouted
+#
+################################################################################
+
+PARPROUTED_VERSION = 0.65
+PARPROUTED_SITE = https://www.hazard.maks.net/parprouted
+PARPROUTED_LICENSE = GPL-2.0
+PARPROUTED_LICENSE_FILES = COPYING
+
+define PARPROUTED_BUILD_CMDS
+	$(MAKE) $(TARGET_CONFIGURE_OPTS) -C $(@D) all
+endef
+
+define PARPROUTED_INSTALL_TARGET_CMDS
+	$(INSTALL) -D -m 0755 $(@D)/parprouted $(TARGET_DIR)/usr/sbin
+endef
+
+$(eval $(generic-package))
Signature · 1 line
2.26.2
#1 lore raw

PATCH 1/1 parprouted: new package

Hello Owen,

Thanks for your contribution! I have applied, with a good number of changes. See below for the details!

DEVELOPERS F: package/openjpeg/ · line 1928

Quoted 10 lines · On Wed, 1 Jul 2020 22:53:27 -0500 Owen Walpole <[email protected]> wrote:
DEVELOPERS +2 -0
index 4b6a346a05..c43e80193e 100644
@@ -1924,6 +1924,9 @@ F:	package/openjpeg/
 N:	Olivier Singla <[email protected]>
 F:	package/shellinabox/
 
+N:  Owen Walpole <[email protected]>
+F:  package/parprouted/

Indentation was not correct here, it didn't follow what is used in the rest of this file.

package/Config.in endif · line 2153

Quoted 9 lines
package/Config.in +1 -0
index 6a34a895af..7186134a0e 100644
@@ -2150,6 +2150,7 @@ endif
 	source "package/openswan/Config.in"
 	source "package/openvpn/Config.in"
 	source "package/p910nd/Config.in"
+    source "package/parprouted/Config.in"

Same here, issue with the indentation.

package/parprouted/Config.in line 3

Quoted 12 lines
package/Config.in +0 -0
 	source "package/phidgetwebservice/Config.in"
 	source "package/phytool/Config.in"
 	source "package/pimd/Config.in"
package/parprouted/Config.in new file +3 -0
new file mode 100644
index 0000000000..fddd8de7d4
@@ -0,0 +1,16 @@
+config BR2_PACKAGE_PARPROUTED
+	bool "parprouted"
+	depends on BR2_USE_MMU # fork()

You had a comment about a dependency on NPTL, but there was no actual "depends on" here about NPTL.

But in fact, I tried building with a non-NPTL toolchain, and it built just fine for me. So I've added a:

depends on BR2_TOOLCHAIN_HAS_THREADS

here.

package/parprouted/Config.in line 14

Quoted 11 lines
package/parprouted/Config.in new file +11 -0
+	help
+	  parprouted is a daemon for transparent IP (Layer 3) proxy ARP
+	  bridging. This is useful for creation of transparent firewalls
+	  and bridging networks with different MAC protocols. Also,
+	  unlike standard bridging, proxy ARP bridging allows to bridge
+	  Ethernet networks behind wireless nodes without using WDS or
+	  layer 2 bridging.
+
+	  https://www.hazard.maks.net/parprouted
+
+comment "parprouted needs a toolchain w/ NPTL"

changed this to "w/ threads"

package/parprouted/Config.in line 16

Quoted 2 lines
package/parprouted/Config.in new file +2 -0
+	depends on BR2_USE_MMU
+	depends on !BR2_TOOLCHAIN_HAS_THREADS_NPTL

And this to:

depends on !BR2_TOOLCHAIN_HAS_THREADS

package/parprouted/parprouted.hash line 7

Quoted 13 lines
package/parprouted/parprouted.hash new file +7 -0
new file mode 100644
index 0000000000..4ac46a9230
@@ -0,0 +1,7 @@
+# Locally computed:
+sha256  4b8cb2c801047f26b63aefaa8d69adc8552fb7c8a8f5d851798a48f841948d36  parprouted-0.65.tar.gz
+sha512 801e5caf02960acfcea1729d146ac6f9e181873be6880f4433ea897119aa127f75809c6bfbffe6dc6fde5fd08e5f092e799925552ec8d5d289958383d0f9695a  parprouted-0.65.tar.gz
+
+# Hash for license files:
+sha256  dcc100d4161cc0b7177545ab6e47216f84857cda3843847c792a25289852dcaa  COPYING
+sha512  4113ed89fc91f55762e1deeb2b7e43af124eba2e037e13b7fe794ee33f40a8b218112b8ab167b5d8778cd5532d6f2c19058df7a24799ba29ff0be2d4004262e4  COPYING

We usually have only sha256 hashes, so I dropped the sha512 hashes.

Quoted 1 line

+PARPROUTED_VERSION = 0.65

There is a newer 0.7 version, so I used that one. However, even the 0.7 version is from 2008, so it looks like this is unmaintained software, which isn't good at all :-/

package/parprouted/parprouted.hash

Quoted 2 lines
package/parprouted/parprouted.hash new file +2 -0
+PARPROUTED_SITE = https://www.hazard.maks.net/parprouted
+PARPROUTED_LICENSE = GPL-2.0

Interestingly, the COPYING file says GPL-2.0, but the actual source code says LGPL-2.0. Since GPL-2.0 is more restrictive, I've kept that for the license information.

package/parprouted/parprouted.hash

Quoted 8 lines
package/parprouted/parprouted.hash new file +8 -0
+PARPROUTED_LICENSE_FILES = COPYING
+
+define PARPROUTED_BUILD_CMDS
+	$(MAKE) $(TARGET_CONFIGURE_OPTS) -C $(@D) all
+endef
+
+define PARPROUTED_INSTALL_TARGET_CMDS
+	$(INSTALL) -D -m 0755 $(@D)/parprouted $(TARGET_DIR)/usr/sbin

Should have been:

	$(INSTALL) -D -m 0755 $(@D)/parprouted $(TARGET_DIR)/usr/sbin/parprouted

otherwise, if $(TARGET_DIR)/usr/sbin doesn't exist as a directory, you would get a nice binary called "sbin" installed in $(TARGET_DIR)/usr !

Again, thanks for your contribution!

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com