2018-01-19 13:22:01 +00:00
|
|
|
#
|
|
|
|
# Copyright (C) 2015 OVH
|
2020-03-27 09:26:45 +00:00
|
|
|
# Copyright (C) 2018-2020 Ycarus (Yannick Chabanois) <ycarus@zugaina.org> for OpenMPTCProuter project
|
2018-01-19 13:22:01 +00:00
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
2018-06-18 17:08:49 +00:00
|
|
|
PKG_SOURCE_PROTO:=git
|
|
|
|
PKG_SOURCE_URL:=https://github.com/angt/glorytun.git
|
2020-11-19 18:24:11 +00:00
|
|
|
PKG_SOURCE_VERSION:=32267e86a6da05b285bb3bf2b136c105dc0af4bb
|
2018-01-19 13:22:01 +00:00
|
|
|
PKG_NAME:=glorytun-udp
|
2024-12-06 13:47:16 +00:00
|
|
|
PKG_VERSION:=0.3.4
|
|
|
|
PKG_RELEASE:=24
|
2023-11-22 19:11:43 +00:00
|
|
|
PKG_LICENSE:=BSD-2-Clause
|
|
|
|
PKG_LICENSE_FILES:=LICENSE
|
2018-06-18 17:08:49 +00:00
|
|
|
|
|
|
|
PKG_FIXUP:=autoreconf
|
|
|
|
|
2018-01-19 13:22:01 +00:00
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
|
|
|
define Package/$(PKG_NAME)
|
|
|
|
SECTION:=net
|
|
|
|
CATEGORY:=Network
|
|
|
|
DEPENDS:=+kmod-tun +libsodium +librt
|
|
|
|
TITLE:=Glorytun
|
|
|
|
URL:=https://github.com/angt/glorytun
|
|
|
|
SUBMENU:=VPN
|
|
|
|
endef
|
|
|
|
|
2019-02-12 17:27:38 +00:00
|
|
|
#TARGET_CFLAGS += -std=c99 -D_GNU_SOURCE -DGT_RUNDIR=\"\\\"/tmp\"\\\"
|
|
|
|
TARGET_CFLAGS += -DGT_RUNDIR=\"\\\"/tmp\"\\\"
|
2018-01-19 13:22:01 +00:00
|
|
|
|
|
|
|
define Package/$(PKG_NAME)/conffiles
|
|
|
|
/etc/config/glorytun
|
|
|
|
endef
|
|
|
|
|
2018-11-27 14:17:13 +00:00
|
|
|
define Build/Prepare
|
|
|
|
$(call Build/Prepare/Default)
|
|
|
|
echo "$(PKG_VERSION)" > $(PKG_BUILD_DIR)/VERSION
|
|
|
|
endef
|
|
|
|
|
2018-01-19 13:22:01 +00:00
|
|
|
define Package/$(PKG_NAME)/install
|
|
|
|
$(INSTALL_DIR) $(1)/usr/sbin
|
|
|
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/glorytun $(1)/usr/sbin/$(PKG_NAME)
|
|
|
|
$(INSTALL_DIR) $(1)/etc/init.d
|
|
|
|
$(INSTALL_BIN) init $(1)/etc/init.d/$(PKG_NAME)
|
|
|
|
$(INSTALL_DIR) $(1)/etc/config
|
2024-12-06 18:31:31 +00:00
|
|
|
$(INSTALL_DATA) glorytun-udp.config $(1)/etc/config/glorytun-udp
|
2018-01-19 13:22:01 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call BuildPackage,$(PKG_NAME)))
|
2018-05-28 15:39:21 +00:00
|
|
|
|