pimd: new package
authorSergio Prado <sergio.prado@e-labworks.com>
Mon, 11 Dec 2017 22:17:41 +0000 (20:17 -0200)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Sat, 16 Dec 2017 15:30:46 +0000 (16:30 +0100)
pimd is a lightweight stand-alone PIM-SM v2 multicast routing daemon.

Tested on Beaglebone Black.

Build-tested with test-pkg script.

Signed-off-by: Sergio Prado <sergio.prado@e-labworks.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
DEVELOPERS
package/Config.in
package/pimd/Config.in [new file with mode: 0644]
package/pimd/pimd.hash [new file with mode: 0644]
package/pimd/pimd.mk [new file with mode: 0644]

index af221bd8a3752e7c30a69c3f69a2bbc787a16164..63674d7b1acaf5606261a8a29cf84dfc31cb14aa 100644 (file)
@@ -1546,6 +1546,7 @@ F:        package/xr819-xradio/
 N:     Sergio Prado <sergio.prado@e-labworks.com>
 F:     package/libgdiplus/
 F:     package/mongodb/
+F:     package/pimd/
 F:     package/stella/
 F:     package/traceroute/
 F:     package/tunctl/
index 4fa5762ef47627a965bc59af1e495c144dedff17..1983d8bf040e1998f878313876f6633770a853d0 100644 (file)
@@ -1755,6 +1755,7 @@ endif
        source "package/p910nd/Config.in"
        source "package/phidgetwebservice/Config.in"
        source "package/phytool/Config.in"
+       source "package/pimd/Config.in"
        source "package/pound/Config.in"
        source "package/pppd/Config.in"
        source "package/pptp-linux/Config.in"
diff --git a/package/pimd/Config.in b/package/pimd/Config.in
new file mode 100644 (file)
index 0000000..d6a579b
--- /dev/null
@@ -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/
diff --git a/package/pimd/pimd.hash b/package/pimd/pimd.hash
new file mode 100644 (file)
index 0000000..98c717d
--- /dev/null
@@ -0,0 +1,6 @@
+# Locally computed:
+sha256 c77a9812751f114490a28a6839b16aac8b020c8d9fd6aa22bf3880c054e19f1d  pimd-2.3.2.tar.gz
+
+# Hash for license files:
+sha256 3379436c16caccdef9b40a49fbdfdbb45aad8ecb05870834490b8fb080126009  LICENSE
+sha256 4328a21f0822caa9976356623118bcdcc9970c7a0f9a3deeba23c779b7cfb5d1  LICENSE.mrouted
diff --git a/package/pimd/pimd.mk b/package/pimd/pimd.mk
new file mode 100644 (file)
index 0000000..21b5e10
--- /dev/null
@@ -0,0 +1,38 @@
+################################################################################
+#
+# 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
+
+ifeq ($(BR2_TOOLCHAIN_USES_UCLIBC)$(BR2_TOOLCHAIN_USES_MUSL),y)
+PIMD_CONF_OPTS += --embedded-libc
+endif
+
+# The configure script is not autoconf based, so we use the
+# generic-package infrastructure
+define PIMD_CONFIGURE_CMDS
+       (cd $(@D); \
+               $(TARGET_CONFIGURE_OPTS) \
+               $(TARGET_CONFIGURE_ARGS) \
+               ./configure $(PIMD_CONF_OPTS) \
+       )
+endef
+
+define PIMD_BUILD_CMDS
+       $(TARGET_MAKE_ENV) $(MAKE) CROSS=$(TARGET_CROSS) \
+               CC=$(TARGET_CC) -C $(@D)
+endef
+
+define PIMD_INSTALL_TARGET_CMDS
+       $(TARGET_MAKE_ENV) $(MAKE) DESTDIR=$(TARGET_DIR) \
+               prefix=/usr -C $(@D) install
+endef
+
+$(eval $(generic-package))