mirror of
https://github.com/openwrt/packages.git
synced 2026-10-12 10:17:17 +04:00
From upstream changelog https://git.open-mesh.org/batctl.git/tree/CHANGELOG.rst: * coding style cleanups and refactoring * bugs squashed: - bat-hosts: compare full path for deduplication - bat-hosts: free bat_host when hash_add fails - dat_cache: fix multicast/unicast filter for MAC address - debug: avoid endless getopt loop for attached '-w' argument - debug: reject non-finite/negative interval/timeout values - debug: reject trailing garbage for intervals - debug: use strict interval/timeout parsing - event: don't print timestamp prefix for skipped events - fix parsing of parameters with arguments - genl_json: avoid negative chars in sanitize_string - genl_json: escape non-printable characters as valid JSON - genl_json: reject unknown options in handle_json_query - handle netlink callback object on error - icmp_helper: attach socket filter before packets can arrive - icmp_helper: fail send when the primary mac is unknown - icmp_helper: return only initialized icmp destination unreached bytes - icmp_helper: return proper errno on syscall failures - improve number parsing error handling - interface: report rtnl query failures - interface: return fail for non-existing interface - isolation_mark: fix error message for invalid mark/mask values - netlink: abort netlink_print_common when message allocation fails - netlink: always 0-terminate hardif name - netlink: check for BATADV_ATTR_MESH_ADDRESS before accessing it - netlink: detect receive errors in netlink_print_common - netlink: detect receive errors in netlink_simple_request - netlink: detect receive errors in query_rtnl_link - netlink: detect receive errors in query_rtnl_link_single - netlink: don't format NULL extra_info in info_callback - netlink: free header lines after error - netlink: report dump errors signalled in the NLMSG_DONE message - netlink: report error on query_rtnl_link send failure - netlink: report kernel errors when writing settings - netlink: report send errors in netlink_simple_request - originators: fix throughput lines with bat_hosts - ping/traceroute: don't restart RTT timer on stray replies - ping: count sent and not received pings - ping: fix rtt minimum tracking when a sample is 0.0 - ping: keep huge '-i' intervals from turning into a flood ping - ping: reject invalid packet count argument - ping: reject invalid timeout argument - tcpdump: check frame length before reading the ethernet header - tcpdump: correct output of VLAN IDs - tcpdump: don't label unknown ICMPv6 types as unreachable - tcpdump: fix "subtybe" typo in 4ADDR output - tcpdump: fix coded packet mac dest mac addresses - tcpdump: fix endianness of fragmentation sequence number - tcpdump: fix reported length for ICMP6_TIME_EXCEEDED - tcpdump: fix source address selection for 802.11 data frames - tcpdump: handle TCP packet with bogus data offset - tcpdump: print the unreachable host for ICMP port unreachable - tcpdump: reject invalid packet type arguments - tcpdump: resolve bat-host name for ROAMv1 client - tcpdump: return EXIT_SUCCESS on normal termination - tcpdump: skip partial line for oversized ICMPv6 errors - tpmeter: abort result wait on receive errors - tpmeter: don't cancel test from the signal handler - tpmeter: fix Gbps output - tpmeter: label sub-kByte/s rate in bits per second - tpmeter: reject invalid test duration argument - traceroute: handle fast replies - traceroute: probe the advertised maximum number of hops - traceroute: return EXIT_NOSUCCESS when destination not reached - translate: don't overwrite the search key - version: avoid use of uninitialized read buffer Signed-off-by: Sven Eckelmann <sven@narfation.org>
239 lines
4.9 KiB
Makefile
239 lines
4.9 KiB
Makefile
# SPDX-License-Identifier: GPL-2.0-only
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
PKG_NAME:=batctl
|
|
PKG_VERSION:=2026.3
|
|
PKG_RELEASE:=1
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
|
PKG_SOURCE_URL:=https://downloads.open-mesh.org/batman/releases/batman-adv-$(PKG_VERSION)
|
|
PKG_HASH:=2c8443fae7b3471a500837f8cfbbc2b7bbab602e43ce8c61b100560dec1d9ee0
|
|
|
|
PKG_MAINTAINER:=Simon Wunderlich <sw@simonwunderlich.de>
|
|
PKG_LICENSE:=GPL-2.0-only ISC MIT
|
|
PKG_LICENSE_FILES:=LICENSES/preferred/GPL-2.0 LICENSES/preferred/MIT LICENSES/deprecated/ISC
|
|
|
|
PKG_BUILD_PARALLEL:=1
|
|
PKG_BUILD_FLAGS:=gc-sections lto
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
define Package/batctl/Default
|
|
SECTION:=net
|
|
CATEGORY:=Network
|
|
SUBMENU:=Wireless
|
|
URL:=https://www.open-mesh.org/
|
|
DEPENDS:=+libnl-tiny +libc +librt
|
|
PROVIDES:=batctl
|
|
endef
|
|
|
|
define Package/batctl/description
|
|
batctl is a more intuitive management utility for B.A.T.M.A.N.-Advanced.
|
|
It is an easier method for configuring batman-adv and provides some
|
|
additional tools for debugging as well. This package builds
|
|
version $(PKG_VERSION) of the user space utility.
|
|
endef
|
|
|
|
define Package/batctl-tiny
|
|
$(call Package/batctl/Default)
|
|
TITLE:=B.A.T.M.A.N. Advanced user space configuration tool (Minimal)
|
|
VARIANT:=tiny
|
|
ALTERNATIVES:=100:/usr/sbin/batctl:/usr/libexec/batctl-tiny
|
|
endef
|
|
|
|
define Package/batctl-tiny/description
|
|
$(Package/batctl/description)
|
|
Only configuration relevant subcommands are enabled.
|
|
endef
|
|
|
|
define Package/batctl-default
|
|
$(call Package/batctl/Default)
|
|
TITLE:=B.A.T.M.A.N. Advanced user space configuration tool (Default)
|
|
VARIANT:=default
|
|
ALTERNATIVES:=200:/usr/sbin/batctl:/usr/libexec/batctl-default
|
|
endef
|
|
|
|
define Package/batctl-default/description
|
|
$(Package/batctl/description)
|
|
Standard subcommands for configuration and online debugging are enabled.
|
|
endef
|
|
|
|
define Package/batctl-full
|
|
$(call Package/batctl/Default)
|
|
TITLE:=B.A.T.M.A.N. Advanced user space configuration tool (Full)
|
|
VARIANT:=full
|
|
ALTERNATIVES:=300:/usr/sbin/batctl:/usr/libexec/batctl-full
|
|
endef
|
|
|
|
define Package/batctl-full/description
|
|
$(Package/batctl/description)
|
|
Subcommands for configuration, online and offline debugging are enabled.
|
|
endef
|
|
|
|
MAKE_VARS += \
|
|
LIBNL_NAME="libnl-tiny" \
|
|
LIBNL_GENL_NAME="libnl-tiny"
|
|
|
|
MAKE_FLAGS += \
|
|
REVISION="$(PKG_VERSION)-openwrt-$(PKG_RELEASE)"
|
|
|
|
config-n := \
|
|
aggregation \
|
|
ap_isolation \
|
|
backbonetable \
|
|
bisect_iv \
|
|
bonding \
|
|
bla_backbone_json \
|
|
bla_claim_json \
|
|
bridge_loop_avoidance \
|
|
claimtable \
|
|
dat_cache \
|
|
dat_cache_json \
|
|
distributed_arp_table \
|
|
elp_interval \
|
|
event \
|
|
fragmentation \
|
|
gateways \
|
|
gateways_json \
|
|
gw_mode \
|
|
hardif_json \
|
|
hardifs_json \
|
|
hop_penalty \
|
|
interface \
|
|
isolation_mark \
|
|
loglevel \
|
|
mcast_flags \
|
|
mcast_flags_json \
|
|
mesh_json \
|
|
multicast_fanout \
|
|
multicast_forceflood \
|
|
multicast_mode \
|
|
neighbors \
|
|
neighbors_json \
|
|
orig_interval \
|
|
originators \
|
|
originators_json \
|
|
ping \
|
|
routing_algo \
|
|
statistics \
|
|
tcpdump \
|
|
throughput_override \
|
|
throughputmeter \
|
|
traceroute \
|
|
transglobal \
|
|
translate \
|
|
translocal \
|
|
transtable_global_json \
|
|
transtable_local_json \
|
|
vlan_json \
|
|
|
|
config-settings := \
|
|
aggregation \
|
|
ap_isolation \
|
|
bonding \
|
|
bridge_loop_avoidance \
|
|
distributed_arp_table \
|
|
elp_interval \
|
|
fragmentation \
|
|
gw_mode \
|
|
hop_penalty \
|
|
interface \
|
|
isolation_mark \
|
|
loglevel \
|
|
multicast_fanout \
|
|
multicast_forceflood \
|
|
multicast_mode \
|
|
orig_interval \
|
|
routing_algo \
|
|
throughput_override \
|
|
|
|
config-tables := \
|
|
backbonetable \
|
|
claimtable \
|
|
dat_cache \
|
|
gateways \
|
|
mcast_flags \
|
|
neighbors \
|
|
originators \
|
|
statistics \
|
|
transglobal \
|
|
translocal \
|
|
|
|
config-json := \
|
|
bla_backbone_json \
|
|
bla_claim_json \
|
|
dat_cache_json \
|
|
gateways_json \
|
|
hardif_json \
|
|
hardifs_json \
|
|
mcast_flags_json \
|
|
mesh_json \
|
|
neighbors_json \
|
|
originators_json \
|
|
transtable_global_json \
|
|
transtable_local_json \
|
|
vlan_json \
|
|
|
|
config-tools := \
|
|
event \
|
|
ping \
|
|
tcpdump \
|
|
throughputmeter \
|
|
traceroute \
|
|
translate \
|
|
|
|
config-extratools := \
|
|
bisect_iv \
|
|
|
|
ifeq ($(BUILD_VARIANT),tiny)
|
|
|
|
config-y := \
|
|
$(config-settings) \
|
|
|
|
endif
|
|
|
|
ifeq ($(BUILD_VARIANT),default)
|
|
|
|
config-y := \
|
|
$(config-settings) \
|
|
$(config-tables) \
|
|
$(config-json) \
|
|
$(config-tools) \
|
|
|
|
endif
|
|
|
|
ifeq ($(BUILD_VARIANT),full)
|
|
|
|
config-y := \
|
|
$(config-settings) \
|
|
$(config-tables) \
|
|
$(config-json) \
|
|
$(config-tools) \
|
|
$(config-extratools) \
|
|
|
|
endif
|
|
|
|
MAKE_FLAGS += \
|
|
$(patsubst %,CONFIG_%=n,$(config-n)) \
|
|
$(patsubst %,CONFIG_%=y,$(config-y))
|
|
|
|
define Package/batctl-tiny/install
|
|
$(INSTALL_DIR) $(1)/usr/libexec
|
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/batctl $(1)/usr/libexec/batctl-tiny
|
|
endef
|
|
|
|
define Package/batctl-default/install
|
|
$(INSTALL_DIR) $(1)/usr/libexec
|
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/batctl $(1)/usr/libexec/batctl-default
|
|
endef
|
|
|
|
define Package/batctl-full/install
|
|
$(INSTALL_DIR) $(1)/usr/libexec
|
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/batctl $(1)/usr/libexec/batctl-full
|
|
endef
|
|
|
|
$(eval $(call BuildPackage,batctl-default))
|
|
$(eval $(call BuildPackage,batctl-tiny))
|
|
$(eval $(call BuildPackage,batctl-full))
|