batctl: 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>
This commit is contained in:
Sven Eckelmann 2020-03-06 21:59:30 +01:00
parent b3f1370d9a
commit 4561a42ac4
1 changed files with 13 additions and 19 deletions

View File

@ -1,41 +1,35 @@
# # 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:=2020.0
PKG_RELEASE:=1 PKG_RELEASE:=1
PKG_HASH:=60efe9b148f66aa1b29110493244dc9f1f1d722e6d96969e4d4b2c0ab9278104
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
@ -48,7 +42,7 @@ 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 +54,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 +66,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