Skip to contentSkip to conversation

pimd: new package

PATCH New Sergio Prado 3 participants 6 messages Dec 2, 2017 – Dec 4, 2017

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 pimd: new package

pimd is a lightweight stand-alone PIM-SM v2 multicast routing daemon.

---
 DEVELOPERS             |  1 +
 package/Config.in      |  1 +
 package/pimd/Config.in |  8 ++++++++
 package/pimd/pimd.hash |  3 +++
 package/pimd/pimd.mk   | 20 ++++++++++++++++++++
 5 files changed, 33 insertions(+)
 create mode 100644 package/pimd/Config.in
 create mode 100644 package/pimd/pimd.hash
 create mode 100644 package/pimd/pimd.mk
DEVELOPERS +1 -0
index 27b22f4f0fed..1a998f3dfc12 100644
@@ -1518,6 +1518,7 @@ F:	configs/linksprite_pcduino_defconfig
 N:	Sergio Prado <[email protected]>
 F:	package/libgdiplus/
 F:	package/mongodb/
+F:	package/pimd/
 F:	package/stella/
 F:	package/tunctl/
 F:	package/ubus/
package/Config.in +1 -0
index aa111e48e6fb..104859fcd1c1 100644
@@ -1410,6 +1410,7 @@ menu "Networking"
 	source "package/openzwave/Config.in"
 	source "package/ortp/Config.in"
 	source "package/paho-mqtt-c/Config.in"
+	source "package/pimd/Config.in"
 	source "package/qdecoder/Config.in"
 	source "package/qpid-proton/Config.in"
 	source "package/rabbitmq-c/Config.in"
package/pimd/Config.in new file +8 -0
new file mode 100644
index 000000000000..d6a579bda258
@@ -0,0 +1,8 @@
+config BR2_PACKAGE_PIMD
+	bool "pimd"
+	depends on BR2_USE_MMU # fork()
+	help
+	  pimd is a lightweight stand-alone PIM-SM v2 multicast routing
+	  daemon.
+
+	  http://troglobit.com/project/pimd/
package/pimd/pimd.hash new file +3 -0
new file mode 100644
index 000000000000..20252a6d4ed7
@@ -0,0 +1,3 @@
+# Locally computed:
+sha256 c77a9812751f114490a28a6839b16aac8b020c8d9fd6aa22bf3880c054e19f1d  pimd-2.3.2.tar.gz
+sha256 3379436c16caccdef9b40a49fbdfdbb45aad8ecb05870834490b8fb080126009  LICENSE
package/pimd/pimd.mk new file +20 -0
new file mode 100644
index 000000000000..cd9427094a61
@@ -0,0 +1,20 @@
+################################################################################
+#
+# pimd
+#
+################################################################################
+
+PIMD_VERSION = 2.3.2
+PIMD_SOURCE = pimd-$(PIMD_VERSION).tar.gz
+PIMD_SITE = https://github.com/troglobit/pimd/releases/download/$(PIMD_VERSION)
+
+PIMD_LICENSE = BSD-3-Clause
+PIMD_LICENSE_FILES = LICENSE
+
+PIMD_MAKE_OPTS = CROSS=$(TARGET_CROSS) CC=$(TARGET_CC)
+
+ifeq ($(BR2_TOOLCHAIN_USES_UCLIBC)$(BR2_TOOLCHAIN_USES_MUSL),y)
+PIMD_CONF_OPTS = --embedded-libc
+endif
+
+$(eval $(autotools-package))
Signature · 1 line
1.9.1
#1 lore raw

PATCH 1/1 pimd: new package

Hi,

Quoted 9 lines · Sergio Prado

pimd is a lightweight stand-alone PIM-SM v2 multicast routing daemon.

package/pimd/pimd.mk new file +2 -0
new file mode 100644
index 000000000000..cd9427094a61
@@ -0,0 +1,20 @@
+################################################################################
+#

package/pimd/pimd.mk line 12

Quoted 10 lines
package/pimd/pimd.mk new file +10 -0
+# pimd
+#
+################################################################################
+
+PIMD_VERSION = 2.3.2
+PIMD_SOURCE = pimd-$(PIMD_VERSION).tar.gz
+PIMD_SITE = https://github.com/troglobit/pimd/releases/download/$(PIMD_VERSION)
+
+PIMD_LICENSE = BSD-3-Clause
+PIMD_LICENSE_FILES = LICENSE

LICENSE.mrouted Should also be listed in PIMD_LICENSE_FILES.

From LICENSE:
Part of this program has been derived from mrouted.
The mrouted program is covered by the license in the accompanying file named "LICENSE.mrouted".

Quoted 15 lines
package/pimd/pimd.mk new file +8 -0
+
+PIMD_MAKE_OPTS = CROSS=$(TARGET_CROSS) CC=$(TARGET_CC)
+
+ifeq ($(BR2_TOOLCHAIN_USES_UCLIBC)$(BR2_TOOLCHAIN_USES_MUSL),y)
+PIMD_CONF_OPTS = --embedded-libc
+endif
+
+$(eval $(autotools-package))
Signature · 6 lines
1.9.1

_______________________________________________
buildroot mailing list
buildroot at busybox.net
http://lists.busybox.net/mailman/listinfo/buildroot

Best regards
Marcus Folkesson

#2 lore raw

PATCH 1/1 pimd: new package

Hi Marcus,

Quoted 6 lines

LICENSE.mrouted Should also be listed in PIMD_LICENSE_FILES.

From LICENSE:
Part of this program has been derived from mrouted.
The mrouted program is covered by the license in the accompanying file named "LICENSE.mrouted".

Thanks for noticing that. I'll change and send V2.

Best regards,

Sergio Prado
Embedded Labworks
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20171204/23ce4c43/attachment.html>

#3 lore raw

PATCH 1/1 pimd: new package

Hi,

Quoted 10 lines · Sergio Prado

Hi Marcus,

Quoted 6 lines

LICENSE.mrouted Should also be listed in PIMD_LICENSE_FILES.

From LICENSE:
Part of this program has been derived from mrouted.
The mrouted program is covered by the license in the accompanying file named "LICENSE.mrouted".

Thanks for noticing that. I'll change and send V2.

Just remember to calculate hash for LICENSE.mrouted as well :-)

Best regards
Marcus Folkesson

#4 lore raw

PATCH 1/1 pimd: new package

In reply to Sergio Prado

Hello,

Quoted 16 lines · Sergio Prado
package/pimd/pimd.mk new file +10 -0
new file mode 100644
index 000000000000..cd9427094a61
@@ -0,0 +1,20 @@
+################################################################################
+#
+# pimd
+#
+################################################################################
+
+PIMD_VERSION = 2.3.2
+PIMD_SOURCE = pimd-$(PIMD_VERSION).tar.gz
+PIMD_SITE = https://github.com/troglobit/pimd/releases/download/$(PIMD_VERSION)
+

package/pimd/pimd.mk line 20

Quoted 10 lines
package/pimd/pimd.mk new file +10 -0
+PIMD_LICENSE = BSD-3-Clause
+PIMD_LICENSE_FILES = LICENSE
+
+PIMD_MAKE_OPTS = CROSS=$(TARGET_CROSS) CC=$(TARGET_CC)
+
+ifeq ($(BR2_TOOLCHAIN_USES_UCLIBC)$(BR2_TOOLCHAIN_USES_MUSL),y)
+PIMD_CONF_OPTS = --embedded-libc
+endif
+
+$(eval $(autotools-package))

I was a bit confused at first, because when I looked at the code in
http://troglobit.com/project/pimd/, it was using a traditional configure.ac and Makefile.am, which surely shouldn't require passing CROSS and CC at build time, and which also doesn't have any --embedded-libc option.

The reason is that 2.3.2, which was released in March 2016, predates the introduction of autotools as the build system.

Therefore, I see two possibilities here:

- You stick with 2.3.2. In this case, you should use generic-package and not autotools-package, because at 2.3.2, pimd is clearly not an autotools-package. It's not because it works by chance with the current autotools-package infrastructure that a future subtle change in the autotools-package infrastructure, which is valid for real autotools package, will break this non-autotools package.

- You move to the latest Git commit, which really uses an autotools based build system.

Thanks!

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com
#5 lore raw

PATCH 1/1 pimd: new package

Hi Thomas,

Quoted 18 lines

I was a bit confused at first, because when I looked at the code in
http://troglobit.com/project/pimd/, it was using a traditional configure.ac and Makefile.am, which surely shouldn't require passing CROSS and CC at build time, and which also doesn't have any --embedded-libc option.

The reason is that 2.3.2, which was released in March 2016, predates the introduction of autotools as the build system.

Therefore, I see two possibilities here:

- You stick with 2.3.2. In this case, you should use generic-package and not autotools-package, because at 2.3.2, pimd is clearly not an autotools-package. It's not because it works by chance with the current autotools-package infrastructure that a future subtle change in the autotools-package infrastructure, which is valid for real autotools package, will break this non-autotools package.

Quoted 2 lines

- You move to the latest Git commit, which really uses an autotools based build system.

OK. I'll change to the generic-package infrastructure.

Best regards,

Sergio Prado
Embedded Labworks
https:/e-labworks.com/en

Quoted 8 lines

Thanks!

Thomas
--
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20171204/ec94da93/attachment.html>