gluon-mesh-batman-adv: remove the compat version number from packages
The internal batman-adv compat version numbers are just confusing for the user. Instead, let's just name things "batman-adv" when refering to compatibility version 15 and "batman-adv-legacy" when refering to compatibility version 14. Signed-off-by: Linus Lüssing <linus.luessing@c0d3.blue>
This commit is contained in:
parent
348faac87a
commit
7fcf08970d
@ -562,17 +562,17 @@ in the *GLUON_FEATURES* variable. These flags allow to specify a set of features
|
|||||||
on a higher level than individual package names.
|
on a higher level than individual package names.
|
||||||
|
|
||||||
Most Gluon packages can simply be specified as feature flags by removing the ``gluon-``
|
Most Gluon packages can simply be specified as feature flags by removing the ``gluon-``
|
||||||
prefix: The feature flag corresponding to the package *gluon-mesh-batman-adv-15* is
|
prefix: The feature flag corresponding to the package *gluon-mesh-batman-adv* is
|
||||||
*mesh-batman-adv-15*.
|
*mesh-batman-adv*.
|
||||||
|
|
||||||
The file ``package/features`` in the Gluon repository (or
|
The file ``package/features`` in the Gluon repository (or
|
||||||
``features`` in site feeds) can specify additional rules for deriving package lists
|
``features`` in site feeds) can specify additional rules for deriving package lists
|
||||||
from feature flags, e.g. specifying both *status-page* and either *mesh-batman-adv-14*
|
from feature flags, e.g. specifying both *status-page* and either *mesh-batman-adv-legacy*
|
||||||
or *mesh-batman-adv-15* will automatically select the additional package
|
or *mesh-batman-adv* will automatically select the additional package
|
||||||
*gluon-status-page-mesh-batman-adv*. In the future, selecting the flags
|
*gluon-status-page-mesh-batman-adv*. In the future, selecting the flags
|
||||||
*mesh-vpn-fastd* and *respondd* might automatically enable the additional
|
*mesh-vpn-fastd* and *respondd* might automatically enable the additional
|
||||||
package *gluon-mesh-vpn-fastd-respondd*, and enabling *status-page* and
|
package *gluon-mesh-vpn-fastd-respondd*, and enabling *status-page* and
|
||||||
*mesh-batman-adv-15* (or *-14*) with ``de`` in *GLUON_LANGS* could
|
*mesh-batman-adv* (or *-legacy*) with ``de`` in *GLUON_LANGS* could
|
||||||
add the package *gluon-status-page-mesh-batman-adv-i18n-de*.
|
add the package *gluon-status-page-mesh-batman-adv-i18n-de*.
|
||||||
|
|
||||||
In short, it is not necessary anymore to list all the individual packages that are
|
In short, it is not necessary anymore to list all the individual packages that are
|
||||||
|
@ -22,8 +22,8 @@ packages 'web-advanced' \
|
|||||||
packages 'web-advanced & autoupdater' \
|
packages 'web-advanced & autoupdater' \
|
||||||
'gluon-web-autoupdater'
|
'gluon-web-autoupdater'
|
||||||
|
|
||||||
packages 'status-page & (mesh-batman-adv-14 | mesh-batman-adv-15)' \
|
packages 'status-page & (mesh-batman-adv-legacy | mesh-batman-adv)' \
|
||||||
'gluon-status-page-mesh-batman-adv'
|
'gluon-status-page-mesh-batman-adv'
|
||||||
|
|
||||||
packages 'mesh-batman-adv-14 | mesh-batman-adv-15' \
|
packages 'mesh-batman-adv-legacy | mesh-batman-adv' \
|
||||||
'gluon-ebtables-limit-arp'
|
'gluon-ebtables-limit-arp'
|
||||||
|
@ -7,7 +7,7 @@ PKG_RELEASE:=1
|
|||||||
include ../gluon.mk
|
include ../gluon.mk
|
||||||
|
|
||||||
define Package/gluon-alfred
|
define Package/gluon-alfred
|
||||||
DEPENDS:=+gluon-core +gluon-respondd +gluon-neighbour-info gluon-mesh-batman-adv +micrond +alfred
|
DEPENDS:=+gluon-core +gluon-respondd +gluon-neighbour-info gluon-mesh-batman-adv-common +micrond +alfred
|
||||||
TITLE:=Configure alfred
|
TITLE:=Configure alfred
|
||||||
endef
|
endef
|
||||||
|
|
||||||
|
@ -8,7 +8,7 @@ include ../gluon.mk
|
|||||||
|
|
||||||
define Package/gluon-ebtables-filter-multicast
|
define Package/gluon-ebtables-filter-multicast
|
||||||
TITLE:=Ebtables filters for multicast packets
|
TITLE:=Ebtables filters for multicast packets
|
||||||
DEPENDS:=+gluon-core +gluon-ebtables gluon-mesh-batman-adv
|
DEPENDS:=+gluon-core +gluon-ebtables gluon-mesh-batman-adv-common
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define Package/gluon-ebtables-filter-multicast/description
|
define Package/gluon-ebtables-filter-multicast/description
|
||||||
|
@ -8,7 +8,7 @@ include ../gluon.mk
|
|||||||
|
|
||||||
define Package/gluon-ebtables-filter-ra-dhcp
|
define Package/gluon-ebtables-filter-ra-dhcp
|
||||||
TITLE:=Ebtables filters for Router Advertisement and DHCP packets
|
TITLE:=Ebtables filters for Router Advertisement and DHCP packets
|
||||||
DEPENDS:=+gluon-core +gluon-ebtables gluon-mesh-batman-adv
|
DEPENDS:=+gluon-core +gluon-ebtables gluon-mesh-batman-adv-common
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define Package/gluon-ebtables-filter-ra-dhcp/description
|
define Package/gluon-ebtables-filter-ra-dhcp/description
|
||||||
|
@ -8,7 +8,7 @@ include ../gluon.mk
|
|||||||
|
|
||||||
define Package/gluon-ebtables-limit-arp
|
define Package/gluon-ebtables-limit-arp
|
||||||
TITLE:=Ebtables limiter for ARP packets
|
TITLE:=Ebtables limiter for ARP packets
|
||||||
DEPENDS:=+gluon-core +gluon-ebtables gluon-mesh-batman-adv \
|
DEPENDS:=+gluon-core +gluon-ebtables gluon-mesh-batman-adv-common \
|
||||||
+@GLUON_SPECIALIZE_KERNEL:KERNEL_BRIDGE_EBT_LIMIT \
|
+@GLUON_SPECIALIZE_KERNEL:KERNEL_BRIDGE_EBT_LIMIT \
|
||||||
+@GLUON_SPECIALIZE_KERNEL:KERNEL_BRIDGE_EBT_MARK \
|
+@GLUON_SPECIALIZE_KERNEL:KERNEL_BRIDGE_EBT_MARK \
|
||||||
+@GLUON_SPECIALIZE_KERNEL:KERNEL_BRIDGE_EBT_MARK_T
|
+@GLUON_SPECIALIZE_KERNEL:KERNEL_BRIDGE_EBT_MARK_T
|
||||||
|
@ -8,7 +8,7 @@ include ../gluon.mk
|
|||||||
|
|
||||||
define Package/gluon-ebtables-source-filter
|
define Package/gluon-ebtables-source-filter
|
||||||
TITLE:=Ebtables rules to filter unreasonable L2 traffic.
|
TITLE:=Ebtables rules to filter unreasonable L2 traffic.
|
||||||
DEPENDS:=+gluon-core +gluon-ebtables gluon-mesh-batman-adv
|
DEPENDS:=+gluon-core +gluon-ebtables gluon-mesh-batman-adv-common
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define Package/gluon-ebtables-source-filter/description
|
define Package/gluon-ebtables-source-filter/description
|
||||||
|
@ -5,36 +5,31 @@ PKG_VERSION:=1
|
|||||||
|
|
||||||
include ../gluon.mk
|
include ../gluon.mk
|
||||||
|
|
||||||
define Package/gluon-mesh-batman-adv/common
|
define Package/gluon-mesh-batman-adv-common
|
||||||
PROVIDES:=gluon-mesh-batman-adv
|
TITLE:=Gluon scripts for batman-adv and batman-adv-legacy
|
||||||
DEPENDS:=+gluon-core +libgluonutil +gluon-client-bridge +gluon-ebtables +firewall +libiwinfo +kmod-dummy +libnl-tiny +libbatadv +@GLUON_SPECIALIZE_KERNEL:KERNEL_DUMMY +@GLUON_SPECIALIZE_KERNEL:KERNEL_CRC16 +@GLUON_SPECIALIZE_KERNEL:KERNEL_LIBCRC32C
|
DEPENDS:=+gluon-core +libgluonutil +gluon-client-bridge +gluon-ebtables +firewall +libiwinfo +kmod-dummy +libnl-tiny +libbatadv +@GLUON_SPECIALIZE_KERNEL:KERNEL_DUMMY
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define Package/gluon-mesh-batman-adv-14
|
define Package/gluon-mesh-batman-adv-legacy
|
||||||
$(Package/gluon-mesh-batman-adv/common)
|
TITLE:=Support for batman-adv-legacy meshing (compat level 14)
|
||||||
TITLE:=Support for batman-adv meshing (compat level 14)
|
DEPENDS+=+gluon-mesh-batman-adv-common +kmod-batman-adv-legacy +@GLUON_SPECIALIZE_KERNEL:KERNEL_CRC16 +@GLUON_SPECIALIZE_KERNEL:KERNEL_LIBCRC32C
|
||||||
DEPENDS+=+kmod-batman-adv-legacy
|
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define Package/gluon-mesh-batman-adv-15
|
define Package/gluon-mesh-batman-adv
|
||||||
$(Package/gluon-mesh-batman-adv/common)
|
|
||||||
TITLE:=Support for batman-adv meshing (compat level 15)
|
TITLE:=Support for batman-adv meshing (compat level 15)
|
||||||
DEPENDS+=+kmod-batman-adv +batctl
|
DEPENDS+=+gluon-mesh-batman-adv-common +kmod-batman-adv +batctl +@GLUON_SPECIALIZE_KERNEL:KERNEL_CRC16 +@GLUON_SPECIALIZE_KERNEL:KERNEL_LIBCRC32C
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define Package/gluon-mesh-batman-adv-14/install
|
define Package/gluon-mesh-batman-adv-common/install
|
||||||
$(Gluon/Build/Install)
|
$(Gluon/Build/Install)
|
||||||
|
|
||||||
$(INSTALL_DIR) $(1)/lib/gluon/mesh-batman-adv
|
|
||||||
echo 14 > $(1)/lib/gluon/mesh-batman-adv/compat
|
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define Package/gluon-mesh-batman-adv-15/install
|
define Package/gluon-mesh-batman-adv-legacy/install
|
||||||
$(Gluon/Build/Install)
|
|
||||||
|
|
||||||
$(INSTALL_DIR) $(1)/lib/gluon/mesh-batman-adv
|
|
||||||
echo 15 > $(1)/lib/gluon/mesh-batman-adv/compat
|
|
||||||
endef
|
endef
|
||||||
|
|
||||||
$(eval $(call BuildPackageGluon,gluon-mesh-batman-adv-14))
|
define Package/gluon-mesh-batman-adv/install
|
||||||
$(eval $(call BuildPackageGluon,gluon-mesh-batman-adv-15))
|
endef
|
||||||
|
|
||||||
|
$(eval $(call BuildPackageGluon,gluon-mesh-batman-adv-common))
|
||||||
|
$(eval $(call BuildPackageGluon,gluon-mesh-batman-adv-legacy))
|
||||||
|
$(eval $(call BuildPackageGluon,gluon-mesh-batman-adv))
|
||||||
|
@ -7,7 +7,7 @@ include ../gluon.mk
|
|||||||
|
|
||||||
define Package/gluon-status-page-mesh-batman-adv
|
define Package/gluon-status-page-mesh-batman-adv
|
||||||
TITLE:=Batman-data provider for gluon-status-page
|
TITLE:=Batman-data provider for gluon-status-page
|
||||||
DEPENDS:=+gluon-status-page gluon-mesh-batman-adv +libnl-tiny +libbatadv +libjson-c
|
DEPENDS:=+gluon-status-page gluon-mesh-batman-adv-common +libnl-tiny +libbatadv +libjson-c
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define Package/gluon-status-page-mesh-batman-adv/install
|
define Package/gluon-status-page-mesh-batman-adv/install
|
||||||
|
Loading…
Reference in New Issue
Block a user