package/alfred: new package

Signed-off-by: José Pekkarinen <jose.pekkarinen@unikie.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
This commit is contained in:
José Pekkarinen 2021-12-10 16:12:06 +02:00 committed by Thomas Petazzoni
parent 8e06506577
commit b61366f3cc
5 changed files with 52 additions and 0 deletions

View File

@ -1485,6 +1485,7 @@ F: package/zfs/
F: support/testing/tests/package/test_zfs.py
N: José Pekkarinen <jose.pekkarinen@unikie.com>
F: package/alfred/
F: package/bmx7/
F: package/softhsm2/

View File

@ -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

20
package/alfred/Config.in Normal file
View File

@ -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

View File

@ -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

25
package/alfred/alfred.mk Normal file
View File

@ -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))