op-packages/minieap/Makefile
github-actions[bot] 32600acc60 🌴 Sync 2026-03-05 23:51:42
2026-03-05 23:51:42 +08:00

56 lines
1.4 KiB
Makefile

#
# Copyright (C) 2016 Openwrt.org
# Copyright (C) 2021 ImmortalWrt.org
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#
include $(TOPDIR)/rules.mk
PKG_NAME:=minieap
PKG_VERSION:=0.93
PKG_RELEASE:=1
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=https://codeload.github.com/updateing/minieap/tar.gz/v$(PKG_VERSION)?
PKG_HASH:=skip
PKG_LICENSE:=GPL-3.0
PKG_LICENSE_FILES:=LICENSE
PKG_BUILD_PARALLEL:=1
include $(INCLUDE_DIR)/package.mk
define Package/minieap
SECTION:=net
CATEGORY:=Network
SUBMENU:=Campus Network
TITLE:=Extendable 802.1x client
URL:=https://github.com/updateing/minieap
endef
define Package/minieap/description
Extendable 802.1x client with Ruijie v3 (v4) plugin.
endef
define Package/minieap/conffiles
/etc/minieap.conf
endef
MAKE_FLAGS += ENABLE_ICONV=false ENABLE_GBCONV=true
define Package/minieap/install
$(INSTALL_DIR) $(1)/etc
$(INSTALL_CONF) $(PKG_BUILD_DIR)/minieap.conf $(1)/etc/minieap.conf
$(INSTALL_DIR) $(1)/usr/sbin
$(INSTALL_BIN) $(PKG_BUILD_DIR)/minieap $(1)/usr/sbin/
$(INSTALL_DIR) $(1)/lib/netifd
$(INSTALL_BIN) $(CURDIR)/files/minieap.script $(1)/lib/netifd/minieap.script
$(INSTALL_DIR) $(1)/lib/netifd/proto
$(INSTALL_BIN) $(CURDIR)/files/minieap.proto $(1)/lib/netifd/proto/minieap.sh
endef
$(eval $(call BuildPackage,minieap))