From: Sven Eckelmann Date: Fri, 6 Mar 2020 20:59:30 +0000 (+0100) Subject: batctl: Switch to OpenWrt package template X-Git-Url: http://git.openwrt.org/?p=feed%2Frouting.git;a=commitdiff_plain;h=4561a42ac42366d3672b00bd346268a02f457479 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 --- diff --git a/batctl/Makefile b/batctl/Makefile index c62e998..4eb147b 100644 --- a/batctl/Makefile +++ b/batctl/Makefile @@ -1,41 +1,35 @@ -# -# Copyright (C) 2014 OpenWrt.org -# -# This is free software, licensed under the GNU General Public License v2. -# See /LICENSE for more information. -# +# SPDX-License-Identifier: GPL-2.0-only include $(TOPDIR)/rules.mk PKG_NAME:=batctl - PKG_VERSION:=2020.0 PKG_RELEASE:=1 -PKG_HASH:=60efe9b148f66aa1b29110493244dc9f1f1d722e6d96969e4d4b2c0ab9278104 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz 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 PKG_LICENSE:=GPL-2.0-only ISC MIT 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 define Package/batctl/Default - URL:=https://www.open-mesh.org/ SECTION:=net CATEGORY:=Network + URL:=https://www.open-mesh.org/ DEPENDS:=+libnl-tiny +libc +librt PROVIDES:=batctl - MAINTAINER:=Simon Wunderlich endef define Package/batctl/description -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 -additional tools for debugging as well. This package builds -version $(PKG_VERSION) of the user space utility. + 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 + additional tools for debugging as well. This package builds + version $(PKG_VERSION) of the user space utility. endef define Package/batctl-tiny @@ -48,7 +42,7 @@ endef define Package/batctl-tiny/description $(Package/batctl/description) -Only configuration relevant subcommands are enabled. + Only configuration relevant subcommands are enabled. endef define Package/batctl-default @@ -60,7 +54,7 @@ endef define Package/batctl-default/description $(Package/batctl/description) -Standard subcommands for configuration and online debugging are enabled. + Standard subcommands for configuration and online debugging are enabled. endef define Package/batctl-full @@ -72,7 +66,7 @@ endef define Package/batctl-full/description $(Package/batctl/description) -Subcommands for configuration, online and offline debugging are enabled. + Subcommands for configuration, online and offline debugging are enabled. endef # The linker can identify unused sections of a binary when each symbol is stored