mirror of
https://github.com/openwrt/packages.git
synced 2025-12-21 17:04:32 +04:00
Assign some PKG_CPE_IDs to enhance CVE coverage. https://nvd.nist.gov/products/cpe/search/results?namingFormat=2.3&keyword=aardvark-dns https://nvd.nist.gov/products/cpe/search/results?namingFormat=2.3&keyword=alpine_project https://nvd.nist.gov/products/cpe/search/results?namingFormat=2.3&keyword=boringssl https://nvd.nist.gov/products/cpe/search/results?namingFormat=2.3&keyword=ecdsautils https://nvd.nist.gov/products/cpe/search/results?namingFormat=2.3&keyword=file_project https://nvd.nist.gov/products/cpe/search/results?namingFormat=2.3&keyword=knot_resolver https://nvd.nist.gov/products/cpe/search/results?namingFormat=2.3&keyword=libwrap https://nvd.nist.gov/products/cpe/search/results?namingFormat=2.3&keyword=lsof_project https://nvd.nist.gov/products/cpe/search/results?namingFormat=2.3&keyword=nfdump https://nvd.nist.gov/products/cpe/search/results?namingFormat=2.3&keyword=nlnetlabs%20name_server_daemon https://nvd.nist.gov/products/cpe/search/results?namingFormat=2.3&keyword=rclone https://nvd.nist.gov/products/cpe/search/results?namingFormat=2.3&keyword=setserial https://nvd.nist.gov/products/cpe/search/results?namingFormat=2.3&keyword=tang_project https://nvd.nist.gov/products/cpe/search/results?namingFormat=2.3&keyword=tesseract_project https://nvd.nist.gov/products/cpe/search/results?namingFormat=2.3&keyword=tmate-ssh-server https://nvd.nist.gov/products/cpe/search/results?namingFormat=2.3&keyword=ttyd https://nvd.nist.gov/products/cpe/search/results?namingFormat=2.3&keyword=uw-imap https://nvd.nist.gov/products/cpe/search/results?namingFormat=2.3&keyword=v2ray-core https://nvd.nist.gov/products/cpe/search/results?namingFormat=2.3&keyword=zstandard Signed-off-by: Wei-Ting Yang <williamatcg@gmail.com>
113 lines
2.9 KiB
Makefile
113 lines
2.9 KiB
Makefile
# SPDX-License-Identifier: GPL-3.0-only
|
|
#
|
|
# Copyright (C) 2021-2022 ImmortalWrt.org
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
PKG_NAME:=v2ray-core
|
|
PKG_VERSION:=5.31.0
|
|
PKG_RELEASE:=1
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
|
PKG_SOURCE_URL:=https://codeload.github.com/v2fly/v2ray-core/tar.gz/v$(PKG_VERSION)?
|
|
PKG_HASH:=20895d4200d3b7906a3fba90690cc2e27239989acc9c31601f40f2f71827e2e5
|
|
|
|
PKG_LICENSE:=MIT
|
|
PKG_LICENSE_FILES:=LICENSE
|
|
PKG_MAINTAINER:=Tianling Shen <cnsztl@immortalwrt.org>
|
|
PKG_CPE_ID:=cpe:/a:v2fly:v2ray-core
|
|
|
|
PKG_BUILD_DEPENDS:=golang/host
|
|
PKG_BUILD_PARALLEL:=1
|
|
PKG_BUILD_FLAGS:=no-mips16
|
|
|
|
GO_PKG:=github.com/v2fly/v2ray-core/v5
|
|
GO_PKG_BUILD_PKG:=$(GO_PKG)/main
|
|
GO_PKG_LDFLAGS_X:= \
|
|
$(GO_PKG).build=OpenWrt \
|
|
$(GO_PKG).version=$(PKG_VERSION)
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
include ../../lang/golang/golang-package.mk
|
|
|
|
define Package/v2ray/template
|
|
TITLE:=A proxy platform to bypass network restrictions
|
|
SECTION:=net
|
|
CATEGORY:=Network
|
|
URL:=https://www.v2fly.org
|
|
endef
|
|
|
|
define Package/v2ray-core
|
|
$(call Package/v2ray/template)
|
|
DEPENDS:=$(GO_ARCH_DEPENDS) +ca-bundle
|
|
endef
|
|
|
|
define Package/v2ray-example
|
|
$(call Package/v2ray/template)
|
|
TITLE+= (example configs)
|
|
DEPENDS:=v2ray-core
|
|
PKGARCH:=all
|
|
endef
|
|
|
|
define Package/v2ray-extra
|
|
$(call Package/v2ray/template)
|
|
TITLE+= (extra resources)
|
|
DEPENDS:=v2ray-core
|
|
PKGARCH:=all
|
|
endef
|
|
|
|
define Package/v2ray/description
|
|
Project V is a set of network tools that help you to build your own computer network.
|
|
It secures your network connections and thus protects your privacy.
|
|
endef
|
|
|
|
define Package/v2ray-core/description
|
|
$(call Package/v2ray/description)
|
|
endef
|
|
|
|
define Package/v2ray-example/description
|
|
$(call Package/v2ray/description)
|
|
|
|
This includes example configuration files for v2ray-core.
|
|
endef
|
|
|
|
define Package/v2ray-extra/description
|
|
$(call Package/v2ray/description)
|
|
|
|
This includes extra resources for v2ray-core.
|
|
endef
|
|
|
|
define Package/v2ray-core/conffiles
|
|
/etc/config/v2ray
|
|
/etc/v2ray/
|
|
endef
|
|
|
|
define Package/v2ray-core/install
|
|
$(call GoPackage/Package/Install/Bin,$(PKG_INSTALL_DIR))
|
|
$(INSTALL_DIR) $(1)/usr/bin/
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/main $(1)/usr/bin/v2ray
|
|
|
|
$(INSTALL_DIR) $(1)/etc/v2ray/
|
|
$(INSTALL_DATA) $(PKG_BUILD_DIR)/release/config/config.json $(1)/etc/v2ray/
|
|
|
|
$(INSTALL_DIR) $(1)/etc/config/
|
|
$(INSTALL_CONF) $(CURDIR)/files/v2ray.conf $(1)/etc/config/v2ray
|
|
$(INSTALL_DIR) $(1)/etc/init.d/
|
|
$(INSTALL_BIN) $(CURDIR)/files/v2ray.init $(1)/etc/init.d/v2ray
|
|
endef
|
|
|
|
define Package/v2ray-example/install
|
|
$(INSTALL_DIR) $(1)/etc/v2ray/
|
|
$(INSTALL_DATA) $(PKG_BUILD_DIR)/release/config/vpoint_socks_vmess.json $(1)/etc/v2ray/
|
|
$(INSTALL_DATA) $(PKG_BUILD_DIR)/release/config/vpoint_vmess_freedom.json $(1)/etc/v2ray/
|
|
endef
|
|
|
|
define Package/v2ray-extra/install
|
|
$(INSTALL_DIR) $(1)/usr/share/v2ray/
|
|
$(CP) $(PKG_BUILD_DIR)/release/extra/* $(1)/usr/share/v2ray/
|
|
endef
|
|
|
|
$(eval $(call BuildPackage,v2ray-core))
|
|
$(eval $(call BuildPackage,v2ray-example))
|
|
$(eval $(call BuildPackage,v2ray-extra))
|