Commit Graph

95 Commits

Author SHA1 Message Date
Sven Eckelmann 139fcdb707 alfred: update to version 2024.1
* (no changes)

Signed-off-by: Sven Eckelmann <sven@narfation.org>
2024-04-05 21:37:46 +02:00
Sven Eckelmann b40ad195c2 alfred: update to version 2024.0
* (no changes)

Signed-off-by: Sven Eckelmann <sven@narfation.org>
2024-02-03 14:13:47 +01:00
Sven Eckelmann 1bdab4b1b5 alfred: update to version 2023.3
* (no changes)

Signed-off-by: Sven Eckelmann <sven@narfation.org>
2023-11-17 21:30:59 +01:00
Sven Eckelmann 167d93cc32 alfred: update to version 2023.2
* receive data with valid source on unix sock without active interface

Signed-off-by: Sven Eckelmann <sven@narfation.org>
2023-08-18 16:02:40 +02:00
Sven Eckelmann 3d6c7c64a9 alfred: update to version 2023.1
* (no changes)

Signed-off-by: Sven Eckelmann <sven@narfation.org>
2023-05-27 12:10:09 +02:00
Nick Hainke 3e96c851a7 treewide: remove AUTORELEASE
OpenWrt/packages removed AUTORELEASE treewide. Remove it also in the
routing feed.

This is just copied from [0] with modification to the sed cmd because it
was not working for the routing feed:

The following temporary change was made to the core:

diff --git a/rules.mk b/rules.mk
index 57d7995d4fa8..f16367de87a8 100644
--- a/rules.mk
+++ b/rules.mk
@@ -429,7 +429,7 @@ endef
 abi_version_str = $(subst -,,$(subst _,,$(subst .,,$(1))))

 COMMITCOUNT = $(if $(DUMP),0,$(call commitcount))
-AUTORELEASE = $(if $(DUMP),0,$(call commitcount,1))
+AUTORELEASE = $(if $(DUMP),0,$(shell sed -i "s/\$$(AUTORELEASE)/$(call commitcount,1)/" $(CURDIR)/Makefile))

 all:
 FORCE: ;

And this command used to fix affected packages:

for i in $(cd feeds/routing; git grep -l PKG_RELEASE:=.*AUTORELEASE | \
                              sed 's/\/Makefile$//';);
do
  make package/$i/download
done

[0] - 0c10c224be

Signed-off-by: Nick Hainke <vincent@systemli.org>
2023-04-27 17:14:16 +02:00
Andre Heider e2eb84791c treewide: refactor to use PKG_BUILD_FLAGS:=lto
See commit 07730ff3 "treewide: add support for "lto" in PKG_BUILD_FLAGS"
on the main repository.

Signed-off-by: Andre Heider <a.heider@gmail.com>
2023-04-13 07:46:21 +02:00
Andre Heider 67ad3b9b96 treewide: refactor to use PKG_BUILD_FLAGS:=gc-sections
See commit da370098 "treewide: add support for "gc-sections" in
PKG_BUILD_FLAGS" on the main repository.

Signed-off-by: Andre Heider <a.heider@gmail.com>
2023-04-13 07:46:21 +02:00
Sven Eckelmann 64fbf9a16c alfred: update to version 2023.0
* add support for gpsd 3.25

Signed-off-by: Sven Eckelmann <sven@narfation.org>
2023-01-26 22:31:20 +01:00
Sven Eckelmann 5ca59df102 alfred: update to version 2022.3
* coding style cleanups and refactoring

Signed-off-by: Sven Eckelmann <sven@narfation.org>
2022-11-10 21:44:20 +01:00
Sven Eckelmann 88ee3e69d6 alfred: Rebuild on CONFIG*_ALFRED_* changes
The buildsystem doesn't know that the Package/*/config kconfig symbols are
related to the alfred package build. It is necessary to explicitly define it
via PKG_CONFIG_DEPENDS.

Fixes: f76074d424 ("alfred: add alfred 2013.3.0 to feed")
Signed-off-by: Sven Eckelmann <sven@narfation.org>
2022-10-23 10:20:39 +02:00
Sven Eckelmann 5db5b129f8 alfred: update to version 2022.2
* support event notification via unix socket
* improve timing stability of transmitted announcement packets
* reduce socket handling overhead when many clients and interfaces

Signed-off-by: Sven Eckelmann <sven@narfation.org>
2022-07-26 21:56:31 +02:00
Sven Eckelmann 6a5c3db321 alfred: update to version 2022.1
* coding style cleanups and refactoring
* introduce 'server status' IPC call
* bugs fixed:

  - prevent potential read outside of buffer when parsing
    alfred_change_interface_v0/alfred_change_bat_iface_v0 IPC message

Signed-off-by: Sven Eckelmann <sven@narfation.org>
2022-05-06 22:09:55 +02:00
Sven Eckelmann 13e7e88610 alfred: Allow parallel builds
The build system of this package is written in a way that it is safe to run
the make steps in parallel. The build time can be reduced slightly on
modern systems.

Signed-off-by: Sven Eckelmann <sven@narfation.org>
2022-02-19 09:11:11 +01:00
Sven Eckelmann 3aa4cfbe7b alfred: update to version 2022.0
* coding style cleanups and refactoring
* allow changing of batman-adv interface at runtime
* allow to start alfred without interfaces specified

Signed-off-by: Sven Eckelmann <sven@narfation.org>
2022-02-03 19:54:23 +01:00
Sven Eckelmann 5f10800d46 alfred: update to version 2021.4
* (no changes)

Signed-off-by: Sven Eckelmann <sven@narfation.org>
2021-11-19 17:40:29 +01:00
Simon Wunderlich c28f02f679
Revert "batman-adv: update packages to version 2021.4" 2021-11-19 17:35:37 +01:00
Sven Eckelmann 4a4268524a alfred: update to version 2021.4
* (no changes)

Signed-off-by: Sven Eckelmann <sven@narfation.org>
2021-11-19 16:57:15 +01:00
Sven Eckelmann 645064d727 alfred: update to version 2021.3
* (no changes)

Signed-off-by: Sven Eckelmann <sven@narfation.org>
2021-09-14 21:15:42 +02:00
Sven Eckelmann f399156f45 alfred: update to version 2021.2
* manpage cleanups

Signed-off-by: Sven Eckelmann <sven@narfation.org>
2021-08-20 13:14:35 +02:00
Sven Eckelmann 71bb32684b alfred: update to version 2021.1
* Allow to force of alfred startup when the interfaces don't work/exist (yet)
* coding style cleanups and refactoring

Signed-off-by: Sven Eckelmann <sven@narfation.org>
2021-05-18 18:54:27 +02:00
Sven Eckelmann 473f467f29 alfred: use $(AUTORELEASE) for PKG_RELEASE
Use `$(AUTORELEASE)` variable rather than setting a PKG_RELEASE
on every commit manually.

Signed-off-by: Sven Eckelmann <sven@narfation.org>
2021-05-14 19:19:00 +02:00
Sven Eckelmann ad85bc8142 alfred: Start up alfred without valid interfaces
The alfred server always needs interfaces to operate on. But these
interfaces might not exist at the moment when the daemon process is
started. This situation stopped the startup process after the init scripts
waited for a longer period of polling the system state.

But alfred is able to deal with interfaces which disappeared at runtime but
existed at startup. To force a similar behavior for the alfred startup, the
parameter "--force" or "-f" is used. The extra polling code is therefore no
longer needed in the init scripts.

Signed-off-by: Sven Eckelmann <sven@narfation.org>
2021-02-15 21:17:53 +01:00
Sven Eckelmann 993f03cecb alfred: Fix procd process handling for disable state
Alfred can be stopped during a (re)start or reload when:

* disabled = 1
* batman-adv interface is missing
* MAC based EUI64 IPv6 link-local address not set

It is assumed that procd detects that the procd instance definition
disappeared and the currently running instance must be stopped. But all
these checks were triggering an "exit" which then stopped the alfred init
script and the wrapper from /lib/functions/procd.sh. And thus procd was
never informed about the instances which should be changed.

The correct handling is to return the result of the function instead of
directly killing the init scripts.

Fixes: 45db0e60d2 ("alfred: use procd")
Signed-off-by: Sven Eckelmann <sven@narfation.org>
2021-02-15 21:03:57 +01:00
Sven Eckelmann 58e0a4d5c3 alfred: upgrade package to latest release 2021.0
* Drop support for batman-adv's sysfs+debugfs

Signed-off-by: Sven Eckelmann <sven@narfation.org>
2021-01-28 21:08:27 +01:00
Sven Eckelmann 331bc1cd3b alfred: upgrade package to latest release 2020.4
* (no changes)

Signed-off-by: Sven Eckelmann <sven@narfation.org>
2020-10-27 14:46:11 +01:00
Sven Eckelmann 7091b78760 alfred: upgrade package to latest release 2020.3
* synchronization of batman-adv netlink header

Signed-off-by: Sven Eckelmann <sven@narfation.org>
2020-08-25 20:07:05 +02:00
Sven Eckelmann 47d63604bc alfred: upgrade package to latest release 2020.2
* Rephrase names of server roles

Signed-off-by: Sven Eckelmann <sven@narfation.org>
2020-07-06 19:53:07 +02:00
Sven Eckelmann 43e4da9ac5 alfred: upgrade package to latest release 2020.1
* (no changes)

Signed-off-by: Sven Eckelmann <sven@narfation.org>
2020-04-24 19:23:48 +02:00
Sven Eckelmann b3f1370d9a alfred: Switch to OpenWrt package template
The OpenWrt routing feed was tried to be merged together with the OpenWrt
package feed. But they ended up being rejected due to formalities like the
slightly different package template. Just moving to the OpenWrt package
based one should simplify similar approaches in the future.

Signed-off-by: Sven Eckelmann <sven@narfation.org>
2020-03-07 18:50:54 +01:00
Sven Eckelmann d79eeefa1c alfred: upgrade package to latest release 2020.0
* fix build against gpsd API 9.0

Signed-off-by: Sven Eckelmann <sven@narfation.org>
2020-03-07 18:49:49 +01:00
Simon Wunderlich 5544be5234
Merge pull request #529 from adrianschmutzler/openwrtversion
batman-adv and friends: improve version string
2019-12-15 16:00:16 +01:00
Sven Eckelmann 68fbe6d74a alfred: upgrade package to latest release 2019.5
Signed-off-by: Sven Eckelmann <sven@narfation.org>
2019-12-13 21:59:08 +01:00
Adrian Schmutzler c5004988d3 alfred: improve version string
This changes the package version string so it does not start
with "openwrt", but with the base version we are modifying:

So far: openwrt-2019.4-1
Now:    2019.4-openwrt-1

Since it's us modifying version 2019.4 (in this case), this order
is more convenient (and also closer to what the kernel version
string does).

Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
2019-11-11 12:40:35 +01:00
Sven Eckelmann bb8a0621c6 alfred: upgrade package to latest release 2019.4
* fix build with musl

Signed-off-by: Sven Eckelmann <sven@narfation.org>
2019-10-25 23:34:34 +02:00
Sven Eckelmann 8219168994 alfred: Extend PKG_LICENSE* information
Signed-off-by: Sven Eckelmann <sven@narfation.org>
2019-10-25 23:34:34 +02:00
Sven Eckelmann cf802f8607 alfred: Allow startup without batman-adv sysfs support
The batman-adv kernel module can be build without sysfs support. This will
stop the kernel module from creating the "mesh" directory. The alfred init
script must not depend on this folder to start the daemon up.

Signed-off-by: Sven Eckelmann <sven@narfation.org>
2019-08-01 21:35:39 +02:00
Sven Eckelmann 157da8c4ee alfred: Support multiple listening interfaces
The alfred daemon allows to be started with multiple interfaces. The first
interface is used for communication and to calculate the source mac
address. The rest of the interfaces are only used for communication.

Signed-off-by: Sven Eckelmann <sven@narfation.org>
2019-08-01 21:34:44 +02:00
Sven Eckelmann a74938ea46 alfred: upgrade package to latest release 2019.3
* avoid some kernel deprecation warning by using more generic netlink over
  sysfs

Signed-off-by: Sven Eckelmann <sven@narfation.org>
2019-08-01 17:43:45 +02:00
Sven Eckelmann 44e375c0a3 alfred: Drop unused init-y variable
The Makefile defines the init-y variable but neither this Makefile nor
OpenWrt's common files use this variable.

Signed-off-by: Sven Eckelmann <sven@narfation.org>
2019-07-27 22:42:24 +02:00
Sven Eckelmann 4c4b836d89 alfred: Use standard Build/Compile rule
alfred isn't using any special rules in Build/Compile. It is cleaner to
directly use the global Build/Compile/Default instead of having a
functional similar copy in the package Makefile

Signed-off-by: Sven Eckelmann <sven@narfation.org>
2019-07-27 22:42:24 +02:00
Sven Eckelmann 7accd688e3 alfred: upgrade package to latest release 2019.2
* synchronization of batman-adv netlink header

Signed-off-by: Sven Eckelmann <sven@narfation.org>
2019-05-23 20:11:42 +02:00
Sven Eckelmann 9e8aaf9911 alfred: upgrade package to latest release 2019.1
* synchronization of batman-adv netlink header

Signed-off-by: Sven Eckelmann <sven@narfation.org>
2019-03-28 19:40:20 +01:00
Sven Eckelmann 0ba9fa2ba7 alfred: upgrade package to latest release 2019.0
* (no changes)

Signed-off-by: Sven Eckelmann <sven@narfation.org>
2019-02-02 14:04:09 +01:00
Sven Eckelmann 3528a5df09 alfred: upgrade package to latest release 2018.4
* bugs squashed:

  - fixed detection of own IPv4 packets
  - use manual IPv4 ARP requests to retrieve MAC of neighbors

Signed-off-by: Sven Eckelmann <sven@narfation.org>
2018-11-14 21:50:38 +01:00
Sven Eckelmann 3736630676 alfred: Add openwrt revision to internal version
OpenWrt is using a modified version of the software and these modifications
may introduce extra bugs (or behavior changes). It is also patched for
stable releases instead of switching to new releases. The revision should
therefore be added to the version number to make it easier understandable
which modified version the user may have installed.

Signed-off-by: Sven Eckelmann <sven@narfation.org>
2018-10-07 13:31:32 +02:00
Sven Eckelmann 99430a87e3 alfred: upgrade package to latest release 2018.3
Signed-off-by: Sven Eckelmann <sven@narfation.org>
2018-09-15 10:19:39 +02:00
Adrian Schmutzler 52e2545198 alfred: Fix alfred.init
The commit 45db0e6 introduced curly brackets which are not correct
syntax and thus broke the script.

Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
2018-07-21 16:00:20 +02:00
Paul Spooren 45db0e60d2 alfred: use procd
Signed-off-by: Paul Spooren <mail@aparcar.org>
2018-07-20 18:23:10 +09:00
Moritz Warning 3349cae243
Merge pull request #367 from ecsv/batadv-2018.1
batman-adv 2018.1
2018-05-02 16:50:57 +02:00