commit
512240f480
|
@ -1,48 +1,45 @@
|
||||||
#
|
# SPDX-License-Identifier: GPL-2.0-only
|
||||||
# Copyright (C) 2013 OpenWrt.org
|
|
||||||
#
|
|
||||||
# This is free software, licensed under the GNU General Public License v2.
|
|
||||||
# See /LICENSE for more information.
|
|
||||||
#
|
|
||||||
|
|
||||||
include $(TOPDIR)/rules.mk
|
include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
PKG_NAME:=alfred
|
PKG_NAME:=alfred
|
||||||
PKG_VERSION:=2019.5
|
PKG_VERSION:=2020.0
|
||||||
PKG_RELEASE:=0
|
PKG_RELEASE:=1
|
||||||
PKG_HASH:=8a7b6e4e1ae5826671beb683013c5ffa4a1af005bf179a42e541cf84de8fd726
|
|
||||||
|
|
||||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
||||||
PKG_SOURCE_URL:=https://downloads.open-mesh.org/batman/releases/batman-adv-$(PKG_VERSION)
|
PKG_SOURCE_URL:=https://downloads.open-mesh.org/batman/releases/batman-adv-$(PKG_VERSION)
|
||||||
|
PKG_HASH:=1505bcb235289baaad25a5001a0189e4f16e5c4f023db62a8682c0eb91b162c0
|
||||||
|
|
||||||
|
PKG_MAINTAINER:=Simon Wunderlich <sw@simonwunderlich.de>
|
||||||
PKG_LICENSE:=GPL-2.0-only MIT
|
PKG_LICENSE:=GPL-2.0-only MIT
|
||||||
PKG_LICENSE_FILES:=LICENSES/preferred/GPL-2.0 LICENSES/preferred/MIT
|
PKG_LICENSE_FILES:=LICENSES/preferred/GPL-2.0 LICENSES/preferred/MIT
|
||||||
|
|
||||||
include $(INCLUDE_DIR)/package.mk
|
include $(INCLUDE_DIR)/package.mk
|
||||||
|
|
||||||
define Package/alfred
|
define Package/alfred
|
||||||
URL:=https://www.open-mesh.org/
|
|
||||||
SECTION:=net
|
SECTION:=net
|
||||||
CATEGORY:=Network
|
CATEGORY:=Network
|
||||||
TITLE:=A.L.F.R.E.D. - Almighty Lightweight Fact Remote Exchange Daemon
|
TITLE:=A.L.F.R.E.D. - Almighty Lightweight Fact Remote Exchange Daemon
|
||||||
|
URL:=https://www.open-mesh.org/
|
||||||
DEPENDS:= +libc @IPV6 +libnl-tiny +librt \
|
DEPENDS:= +libc @IPV6 +libnl-tiny +librt \
|
||||||
+ALFRED_NEEDS_lua:lua \
|
+ALFRED_NEEDS_lua:lua \
|
||||||
+ALFRED_NEEDS_libgps:libgps
|
+ALFRED_NEEDS_libgps:libgps
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define Package/alfred/description
|
define Package/alfred/description
|
||||||
alfred is a user space daemon for distributing arbitrary local information over
|
alfred is a user space daemon for distributing arbitrary local information
|
||||||
the mesh/network in a decentralized fashion. This data can be anything which
|
over the mesh/network in a decentralized fashion. This data can be anything
|
||||||
appears to be useful - originally designed to replace the batman-adv
|
which appears to be useful - originally designed to replace the batman-adv
|
||||||
visualization (vis), you may distribute hostnames, phone books, administration
|
visualization (vis), you may distribute hostnames, phone books, administration
|
||||||
information, DNS information, the local weather forecast ...
|
information, DNS information, the local weather forecast ...
|
||||||
|
|
||||||
alfred runs as daemon in the background of the system. A user may insert
|
alfred runs as daemon in the background of the system. A user may insert
|
||||||
information by using the alfred binary on the command line, or use special
|
information by using the alfred binary on the command line, or use special
|
||||||
programs to communicate with alfred (done via unix sockets). alfred then takes
|
programs to communicate with alfred (done via unix sockets). alfred then takes
|
||||||
care of distributing the local information to other alfred servers on other
|
care of distributing the local information to other alfred servers on other
|
||||||
nodes. This is done via IPv6 link-local multicast, and does not require any
|
nodes. This is done via IPv6 link-local multicast, and does not require any
|
||||||
configuration. A user can request data from alfred, and will receive the
|
configuration. A user can request data from alfred, and will receive the
|
||||||
information available from all alfred servers in the network.
|
information available from all alfred servers in the network.
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define Package/alfred/conffiles
|
define Package/alfred/conffiles
|
||||||
|
|
|
@ -1,54 +1,47 @@
|
||||||
#
|
# SPDX-License-Identifier: GPL-2.0-only
|
||||||
# Copyright (C) 2014 OpenWrt.org
|
|
||||||
#
|
|
||||||
# This is free software, licensed under the GNU General Public License v2.
|
|
||||||
# See /LICENSE for more information.
|
|
||||||
#
|
|
||||||
|
|
||||||
include $(TOPDIR)/rules.mk
|
include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
PKG_NAME:=batctl
|
PKG_NAME:=batctl
|
||||||
|
PKG_VERSION:=2020.0
|
||||||
PKG_VERSION:=2019.5
|
PKG_RELEASE:=1
|
||||||
PKG_RELEASE:=0
|
|
||||||
PKG_HASH:=ffe5857a33068ec174140c154610d76d833524d840a2fc2d1a15e16686213cad
|
|
||||||
|
|
||||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
||||||
PKG_SOURCE_URL:=https://downloads.open-mesh.org/batman/releases/batman-adv-$(PKG_VERSION)
|
PKG_SOURCE_URL:=https://downloads.open-mesh.org/batman/releases/batman-adv-$(PKG_VERSION)
|
||||||
|
PKG_HASH:=60efe9b148f66aa1b29110493244dc9f1f1d722e6d96969e4d4b2c0ab9278104
|
||||||
|
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(BUILD_VARIANT)/$(PKG_NAME)-$(PKG_VERSION)
|
||||||
|
|
||||||
|
PKG_MAINTAINER:=Simon Wunderlich <sw@simonwunderlich.de>
|
||||||
PKG_LICENSE:=GPL-2.0-only ISC MIT
|
PKG_LICENSE:=GPL-2.0-only ISC MIT
|
||||||
PKG_LICENSE_FILES:=LICENSES/preferred/GPL-2.0 LICENSES/preferred/MIT LICENSES/deprecated/ISC
|
PKG_LICENSE_FILES:=LICENSES/preferred/GPL-2.0 LICENSES/preferred/MIT LICENSES/deprecated/ISC
|
||||||
|
|
||||||
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(BUILD_VARIANT)/$(PKG_NAME)-$(PKG_VERSION)
|
|
||||||
|
|
||||||
include $(INCLUDE_DIR)/package.mk
|
include $(INCLUDE_DIR)/package.mk
|
||||||
|
|
||||||
define Package/batctl/Default
|
define Package/batctl/Default
|
||||||
URL:=https://www.open-mesh.org/
|
|
||||||
SECTION:=net
|
SECTION:=net
|
||||||
CATEGORY:=Network
|
CATEGORY:=Network
|
||||||
|
URL:=https://www.open-mesh.org/
|
||||||
DEPENDS:=+libnl-tiny +libc +librt
|
DEPENDS:=+libnl-tiny +libc +librt
|
||||||
PROVIDES:=batctl
|
PROVIDES:=batctl
|
||||||
MAINTAINER:=Simon Wunderlich <sw@simonwunderlich.de>
|
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define Package/batctl/description
|
define Package/batctl/description
|
||||||
batctl is a more intuitive managment utility for B.A.T.M.A.N.-Advanced.
|
batctl is a more intuitive managment utility for B.A.T.M.A.N.-Advanced.
|
||||||
It is an easier method for configuring batman-adv and provides some
|
It is an easier method for configuring batman-adv and provides some
|
||||||
additional tools for debugging as well. This package builds
|
additional tools for debugging as well. This package builds
|
||||||
version $(PKG_VERSION) of the user space utility.
|
version $(PKG_VERSION) of the user space utility.
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define Package/batctl-tiny
|
define Package/batctl-tiny
|
||||||
$(call Package/batctl/Default)
|
$(call Package/batctl/Default)
|
||||||
TITLE:=B.A.T.M.A.N. Advanced user space configuration tool (Minimal)
|
TITLE:=B.A.T.M.A.N. Advanced user space configuration tool (Minimal)
|
||||||
VARIANT:=tiny
|
VARIANT:=tiny
|
||||||
PROVIDES:=batctl
|
|
||||||
ALTERNATIVES:=100:/usr/sbin/batctl:/usr/libexec/batctl-tiny
|
ALTERNATIVES:=100:/usr/sbin/batctl:/usr/libexec/batctl-tiny
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define Package/batctl-tiny/description
|
define Package/batctl-tiny/description
|
||||||
$(Package/batctl/description)
|
$(Package/batctl/description)
|
||||||
Only configuration relevant subcommands are enabled.
|
Only configuration relevant subcommands are enabled.
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define Package/batctl-default
|
define Package/batctl-default
|
||||||
|
@ -60,7 +53,7 @@ endef
|
||||||
|
|
||||||
define Package/batctl-default/description
|
define Package/batctl-default/description
|
||||||
$(Package/batctl/description)
|
$(Package/batctl/description)
|
||||||
Standard subcommands for configuration and online debugging are enabled.
|
Standard subcommands for configuration and online debugging are enabled.
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define Package/batctl-full
|
define Package/batctl-full
|
||||||
|
@ -72,7 +65,7 @@ endef
|
||||||
|
|
||||||
define Package/batctl-full/description
|
define Package/batctl-full/description
|
||||||
$(Package/batctl/description)
|
$(Package/batctl/description)
|
||||||
Subcommands for configuration, online and offline debugging are enabled.
|
Subcommands for configuration, online and offline debugging are enabled.
|
||||||
endef
|
endef
|
||||||
|
|
||||||
# The linker can identify unused sections of a binary when each symbol is stored
|
# The linker can identify unused sections of a binary when each symbol is stored
|
||||||
|
|
|
@ -89,7 +89,6 @@ config BATMAN_ADV_DEBUG
|
||||||
config BATMAN_ADV_SYSFS
|
config BATMAN_ADV_SYSFS
|
||||||
bool "batman-adv sysfs entries"
|
bool "batman-adv sysfs entries"
|
||||||
depends on PACKAGE_kmod-batman-adv
|
depends on PACKAGE_kmod-batman-adv
|
||||||
default y
|
|
||||||
help
|
help
|
||||||
Say Y here if you want to enable batman-adv device configuration and
|
Say Y here if you want to enable batman-adv device configuration and
|
||||||
status interface through sysfs attributes. It is replaced by the
|
status interface through sysfs attributes. It is replaced by the
|
||||||
|
|
|
@ -1,23 +1,19 @@
|
||||||
#
|
# SPDX-License-Identifier: GPL-2.0-only
|
||||||
# Copyright (C) 2010 OpenWrt.org
|
|
||||||
#
|
|
||||||
# This is free software, licensed under the GNU General Public License v2.
|
|
||||||
# See /LICENSE for more information.
|
|
||||||
#
|
|
||||||
|
|
||||||
include $(TOPDIR)/rules.mk
|
include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
PKG_NAME:=batman-adv
|
PKG_NAME:=batman-adv
|
||||||
|
PKG_VERSION:=2020.0
|
||||||
PKG_VERSION:=2019.5
|
PKG_RELEASE:=1
|
||||||
PKG_RELEASE:=0
|
|
||||||
PKG_HASH:=29fd11b07842f40fee1782bf7ea512278fc4e483bac3c52cf74f8af0f6fe28ec
|
|
||||||
|
|
||||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
||||||
PKG_SOURCE_URL:=https://downloads.open-mesh.org/batman/releases/batman-adv-$(PKG_VERSION)
|
PKG_SOURCE_URL:=https://downloads.open-mesh.org/batman/releases/batman-adv-$(PKG_VERSION)
|
||||||
|
PKG_HASH:=a12a32d1ec65b94b54ca86e6f31ac1b947bf04449aad0c96dfe936746bd0c585
|
||||||
|
PKG_EXTMOD_SUBDIRS:=net/batman-adv
|
||||||
|
|
||||||
|
PKG_MAINTAINER:=Simon Wunderlich <sw@simonwunderlich.de>
|
||||||
PKG_LICENSE:=GPL-2.0-only MIT
|
PKG_LICENSE:=GPL-2.0-only MIT
|
||||||
PKG_LICENSE_FILES:=LICENSES/preferred/GPL-2.0 LICENSES/preferred/MIT
|
PKG_LICENSE_FILES:=LICENSES/preferred/GPL-2.0 LICENSES/preferred/MIT
|
||||||
PKG_EXTMOD_SUBDIRS=net/batman-adv
|
|
||||||
|
|
||||||
STAMP_CONFIGURED_DEPENDS := $(STAGING_DIR)/usr/include/mac80211-backport/backport/autoconf.h
|
STAMP_CONFIGURED_DEPENDS := $(STAGING_DIR)/usr/include/mac80211-backport/backport/autoconf.h
|
||||||
|
|
||||||
|
@ -25,22 +21,21 @@ include $(INCLUDE_DIR)/kernel.mk
|
||||||
include $(INCLUDE_DIR)/package.mk
|
include $(INCLUDE_DIR)/package.mk
|
||||||
|
|
||||||
define KernelPackage/batman-adv
|
define KernelPackage/batman-adv
|
||||||
URL:=https://www.open-mesh.org/
|
|
||||||
MAINTAINER:=Simon Wunderlich <sw@simonwunderlich.de>
|
|
||||||
SUBMENU:=Network Support
|
SUBMENU:=Network Support
|
||||||
DEPENDS:=+BATMAN_ADV_BLA:kmod-lib-crc16 +kmod-lib-crc32c +kmod-cfg80211 +batctl
|
|
||||||
TITLE:=B.A.T.M.A.N. Adv
|
TITLE:=B.A.T.M.A.N. Adv
|
||||||
|
URL:=https://www.open-mesh.org/
|
||||||
|
DEPENDS:=+BATMAN_ADV_BLA:kmod-lib-crc16 +kmod-lib-crc32c +kmod-cfg80211 +batctl
|
||||||
FILES:=$(PKG_BUILD_DIR)/net/batman-adv/batman-adv.$(LINUX_KMOD_SUFFIX)
|
FILES:=$(PKG_BUILD_DIR)/net/batman-adv/batman-adv.$(LINUX_KMOD_SUFFIX)
|
||||||
AUTOLOAD:=$(call AutoProbe,batman-adv)
|
AUTOLOAD:=$(call AutoProbe,batman-adv)
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define KernelPackage/batman-adv/description
|
define KernelPackage/batman-adv/description
|
||||||
B.A.T.M.A.N. (better approach to mobile ad-hoc networking) is
|
B.A.T.M.A.N. (better approach to mobile ad-hoc networking) is
|
||||||
a routing protocol for multi-hop ad-hoc mesh networks. The
|
a routing protocol for multi-hop ad-hoc mesh networks. The
|
||||||
networks may be wired or wireless. See
|
networks may be wired or wireless. See
|
||||||
https://www.open-mesh.org/ for more information and user space
|
https://www.open-mesh.org/ for more information and user space
|
||||||
tools. This package builds version $(PKG_VERSION) of the kernel
|
tools. This package builds version $(PKG_VERSION) of the kernel
|
||||||
module.
|
module.
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define KernelPackage/batman-adv/config
|
define KernelPackage/batman-adv/config
|
||||||
|
@ -88,7 +83,7 @@ define Build/Compile
|
||||||
$(MAKE) $(PKG_JOBS) -C "$(LINUX_DIR)" \
|
$(MAKE) $(PKG_JOBS) -C "$(LINUX_DIR)" \
|
||||||
ARCH="$(LINUX_KARCH)" \
|
ARCH="$(LINUX_KARCH)" \
|
||||||
CROSS_COMPILE="$(TARGET_CROSS)" \
|
CROSS_COMPILE="$(TARGET_CROSS)" \
|
||||||
SUBDIRS="$(PKG_BUILD_DIR)/net/batman-adv" \
|
M="$(PKG_BUILD_DIR)/net/batman-adv" \
|
||||||
$(PKG_EXTRA_KCONFIG) \
|
$(PKG_EXTRA_KCONFIG) \
|
||||||
EXTRA_CFLAGS="$(PKG_EXTRA_CFLAGS)" \
|
EXTRA_CFLAGS="$(PKG_EXTRA_CFLAGS)" \
|
||||||
NOSTDINC_FLAGS="$(NOSTDINC_FLAGS)" \
|
NOSTDINC_FLAGS="$(NOSTDINC_FLAGS)" \
|
||||||
|
|
|
@ -17,6 +17,15 @@
|
||||||
#endif /* < KERNEL_VERSION(4, 15, 0) */
|
#endif /* < KERNEL_VERSION(4, 15, 0) */
|
||||||
|
|
||||||
|
|
||||||
|
#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 16, 0)
|
||||||
|
|
||||||
|
#ifndef sizeof_field
|
||||||
|
#define sizeof_field(TYPE, MEMBER) sizeof((((TYPE *)0)->MEMBER))
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#endif /* < KERNEL_VERSION(4, 16, 0) */
|
||||||
|
|
||||||
|
|
||||||
#if LINUX_VERSION_CODE < KERNEL_VERSION(5, 1, 0)
|
#if LINUX_VERSION_CODE < KERNEL_VERSION(5, 1, 0)
|
||||||
|
|
||||||
#include_next <linux/igmp.h>
|
#include_next <linux/igmp.h>
|
||||||
|
@ -55,40 +64,6 @@ static inline int batadv_ip_mc_check_igmp2(struct sk_buff *skb,
|
||||||
#endif /* < KERNEL_VERSION(5, 1, 0) */
|
#endif /* < KERNEL_VERSION(5, 1, 0) */
|
||||||
|
|
||||||
|
|
||||||
#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 10, 0)
|
|
||||||
|
|
||||||
#include_next <linux/cache.h>
|
|
||||||
|
|
||||||
/* hack for netlink.c which marked the family ops as ro */
|
|
||||||
#ifdef __ro_after_init
|
|
||||||
#undef __ro_after_init
|
|
||||||
#endif
|
|
||||||
#define __ro_after_init
|
|
||||||
|
|
||||||
#endif /* < KERNEL_VERSION(4, 10, 0) */
|
|
||||||
|
|
||||||
#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 11, 9)
|
|
||||||
|
|
||||||
#include <linux/netdevice.h>
|
|
||||||
|
|
||||||
/* work around missing attribute needs_free_netdev and priv_destructor in
|
|
||||||
* net_device
|
|
||||||
*/
|
|
||||||
#define ether_setup(dev) \
|
|
||||||
void batadv_softif_free2(struct net_device *dev) \
|
|
||||||
{ \
|
|
||||||
batadv_softif_free(dev); \
|
|
||||||
free_netdev(dev); \
|
|
||||||
} \
|
|
||||||
void (*t1)(struct net_device *dev) __attribute__((unused)); \
|
|
||||||
bool t2 __attribute__((unused)); \
|
|
||||||
ether_setup(dev)
|
|
||||||
#define needs_free_netdev destructor = batadv_softif_free2; t2
|
|
||||||
#define priv_destructor destructor = batadv_softif_free2; t1
|
|
||||||
|
|
||||||
#endif /* < KERNEL_VERSION(4, 11, 9) */
|
|
||||||
|
|
||||||
|
|
||||||
#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 15, 0)
|
#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 15, 0)
|
||||||
|
|
||||||
#define batadv_softif_slave_add(__dev, __slave_dev, __extack) \
|
#define batadv_softif_slave_add(__dev, __slave_dev, __extack) \
|
||||||
|
|
Loading…
Reference in New Issue