kenzok8-passwall/gost/Makefile

49 lines
1.2 KiB
Makefile
Raw Permalink Normal View History

2022-04-11 16:22:56 +08:00
# SPDX-License-Identifier: GPL-3.0-only
#
# Copyright (C) 2021 ImmortalWrt.org
include $(TOPDIR)/rules.mk
PKG_NAME:=gost
2024-10-11 08:33:58 +08:00
PKG_VERSION:=2.12.0
2023-08-29 19:13:31 +08:00
PKG_RELEASE:=1
2022-04-11 16:22:56 +08:00
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=https://codeload.github.com/ginuerzh/gost/tar.gz/v$(PKG_VERSION)?
2024-10-11 08:33:58 +08:00
PKG_HASH:=ed575807b0490411670556d4471338f418c326bb1ffe25f52977735012851765
2022-04-11 16:22:56 +08:00
PKG_LICENSE:=MIT
2023-08-29 19:13:31 +08:00
PKG_LICENSE_FILES:=LICENSE
2022-04-11 16:22:56 +08:00
PKG_MAINTAINER:=Tianling Shen <cnsztl@immortalwrt.org>
PKG_BUILD_DEPENDS:=golang/host
PKG_BUILD_PARALLEL:=1
2023-09-02 19:31:48 +08:00
PKG_USE_MIPS16:=0
2023-09-17 20:01:37 +08:00
PKG_BUILD_FLAGS:=no-mips16
2022-04-11 16:22:56 +08:00
GO_PKG:=github.com/ginuerzh/gost
GO_PKG_BUILD_PKG:=github.com/ginuerzh/gost/cmd/gost
include $(INCLUDE_DIR)/package.mk
include $(TOPDIR)/feeds/packages/lang/golang/golang-package.mk
define Package/gost
SECTION:=net
CATEGORY:=Network
TITLE:=GO Simple Tunnel
URL:=https://github.com/ginuerzh/gost
DEPENDS:=$(GO_ARCH_DEPENDS) +ca-bundle
endef
define Package/gost/install
$(call GoPackage/Package/Install/Bin,$(1))
$(INSTALL_DIR) $(1)/etc/config
$(INSTALL_CONF) $(CURDIR)/files/gost.config $(1)/etc/config/gost
$(INSTALL_DIR) $(1)/etc/init.d
$(INSTALL_BIN) $(CURDIR)/files/gost.init $(1)/etc/init.d/gost
endef
$(eval $(call GoBinPackage,gost))
$(eval $(call BuildPackage,gost))