mirror of
https://github.com/kiddin9/op-packages.git
synced 2026-09-10 18:34:18 +08:00
61 lines
1.7 KiB
Makefile
61 lines
1.7 KiB
Makefile
#
|
|
# Copyright (C) 2026 Dengfeng Liu <liudf0716@gmail.com>
|
|
#
|
|
# This is free software, licensed under the GNU General Public License v3.
|
|
# See /LICENSE for more information.
|
|
#
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
PKG_NAME:=xkcptun
|
|
PKG_VERSION:=1.09.561
|
|
PKG_RELEASE:=1
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
|
PKG_SOURCE_URL:=https://codeload.github.com/liudf0716/$(PKG_NAME)/tar.gz/$(PKG_VERSION)?
|
|
PKG_HASH:=skip
|
|
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
|
|
|
|
PKG_MAINTAINER:=Dengfeng Liu <liudf0716@gmail.com>
|
|
PKG_LICENSE:=GPL-3.0-or-later
|
|
PKG_LICENSE_FILES:=LICENSE
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
include $(INCLUDE_DIR)/cmake.mk
|
|
|
|
define Package/xkcptun
|
|
SECTION:=net
|
|
CATEGORY:=Network
|
|
SUBMENU:=Web Servers/Proxies
|
|
TITLE:=KCP-based Secure Tunnel in C
|
|
URL:=https://github.com/liudf0716/xkcptun
|
|
DEPENDS:=+libevent2
|
|
endef
|
|
|
|
define Package/xkcptun/description
|
|
xkcptun is a lightweight and high-performance C language implementation of kcptun.
|
|
This package contains both client and server binaries.
|
|
endef
|
|
|
|
define Package/xkcptun/conffiles
|
|
/etc/config/xkcptun
|
|
endef
|
|
|
|
define Package/xkcptun/install
|
|
$(INSTALL_DIR) $(1)/usr/bin
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/xkcp_client $(1)/usr/bin/xkcp_client
|
|
$(LN) xkcp_client $(1)/usr/bin/xkcptun-client
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/xkcp_server $(1)/usr/bin/xkcp_server
|
|
$(LN) xkcp_server $(1)/usr/bin/xkcptun-server
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/xkcp_spy $(1)/usr/bin/xkcp_spy
|
|
$(INSTALL_DIR) $(1)/etc/config
|
|
$(INSTALL_CONF) ./files/xkcptun.config $(1)/etc/config/xkcptun
|
|
$(INSTALL_DIR) $(1)/etc/init.d
|
|
$(INSTALL_BIN) ./files/xkcptun.init $(1)/etc/init.d/xkcptun
|
|
endef
|
|
|
|
CMAKE_OPTIONS += \
|
|
-DAUTO_INSTALL_DEPS=OFF
|
|
|
|
$(eval $(call BuildPackage,xkcptun))
|