Skip to contentSkip to conversation

package/alfred: new package

Buildroot Thomas Petazzoni 1 participant 1 message Jan 5, 2022

lore
Share & tools
lore
#0 lore raw

commit: https://git.buildroot.net/buildroot/commit/?id=b61366f3cc52ea54f9b5719d25ab09e595f53173
branch: https://git.buildroot.net/buildroot/commit/?id=refs/heads/master

---
 DEVELOPERS                 |  1 +
 package/Config.in          |  1 +
 package/alfred/Config.in   | 20 ++++++++++++++++++++
 package/alfred/alfred.hash |  5 +++++
 package/alfred/alfred.mk   | 25 +++++++++++++++++++++++++
 5 files changed, 52 insertions(+)
DEVELOPERS +1 -0
index 4cb07b6d9a..4b04f90ccb 100644
@@ -1485,6 +1485,7 @@ F:	package/zfs/
 F:	support/testing/tests/package/test_zfs.py
 
 N:	José Pekkarinen <[email protected]>
+F:	package/alfred/
 F:	package/bmx7/
 F:	package/softhsm2/
 
package/Config.in +1 -0
index d90fb5c450..9f4ab72a80 100644
@@ -2121,6 +2121,7 @@ endmenu
 
 menu "Networking applications"
 	source "package/aircrack-ng/Config.in"
+	source "package/alfred/Config.in"
 	source "package/aoetools/Config.in"
 	source "package/apache/Config.in"
 if BR2_PACKAGE_APACHE
package/alfred/Config.in new file +20 -0
new file mode 100644
index 0000000000..bfcfef0d40
@@ -0,0 +1,20 @@
+config BR2_PACKAGE_ALFRED
+	bool "alfred"
+	depends on !BR2_STATIC_LIBS # dlopen()
+	depends on BR2_TOOLCHAIN_HAS_THREADS # libnl
+	select BR2_PACKAGE_LIBNL
+	help
+	  Alfred is a user space daemon for distributing arbitrary
+	  local information over the mesh/network in a decentralized
+	  fashion.
+
+	  This data can be anything which appears to be useful -
+	  originally designed to replace the batman-adv visualization
+	  (vis), you may distribute hostnames, phone books,
+	  administration information, DNS information, the local
+	  weather forecast ...
+
+	  https://www.open-mesh.org/projects/alfred/wiki
+
+comment "alfred needs a toolchain w/ dynamic library, threads"
+	depends on BR2_STATIC_LIBS || !BR2_TOOLCHAIN_HAS_THREADS
package/alfred/alfred.hash new file +5 -0
new file mode 100644
index 0000000000..0799071231
@@ -0,0 +1,5 @@
+# From https://downloads.open-mesh.org/batman/stable/sources/alfred/alfred-2021.4.tar.gz.sha1
+sha1  be1e9c1317d40e46cfc881a31c632fec78c620a1 alfred-2021.4.tar.gz
+# Locally computed
+sha256  4c79b6c45de4bcc8cbfe64cba9a0f8b4ef304ca84c194622f2bfa41e01e2cb95  alfred-2021.4.tar.gz
+sha256  cecbf53d1148e13256ac29f8b900655b7fc8dc12d59939a95bc2323ea1747025  LICENSES/preferred/GPL-2.0
package/alfred/alfred.mk new file +25 -0
new file mode 100644
index 0000000000..ed59066393
@@ -0,0 +1,25 @@
+################################################################################
+#
+# alfred
+#
+################################################################################
+
+ALFRED_VERSION = 2021.4
+ALFRED_SITE = https://downloads.open-mesh.org/batman/stable/sources/alfred
+ALFRED_LICENSE = GPL-2.0
+ALFRED_LICENSE_FILES = LICENSES/preferred/GPL-2.0
+ALFRED_DEPENDENCIES = libnl
+
+define ALFRED_BUILD_CMDS
+	$(TARGET_MAKE_ENV) $(TARGET_CONFIGURE_OPTS) \
+		$(MAKE) -C $(@D) \
+		CONFIG_ALFRED_CAPABILITIES=n \
+		CONFIG_ALFRED_GPSD=n
+endef
+
+define ALFRED_INSTALL_TARGET_CMDS
+	$(INSTALL) -m 0755 -D $(@D)/alfred $(TARGET_DIR)/usr/bin/alfred
+	$(INSTALL) -m 0755 -D $(@D)/vis/batadv-vis $(TARGET_DIR)/usr/bin/batadv-vis
+endef
+
+$(eval $(generic-package))

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot