2018-01-19 13:22:01 +00:00
|
|
|
#
|
|
|
|
# Copyright (C) 2015 OVH
|
2019-01-03 14:56:11 +00:00
|
|
|
# Copyright (C) 2017-2019 Ycarus (Yannick Chabanois) <ycarus@zugaina.org>
|
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
|
|
|
|
|
|
|
|
PKG_NAME:=glorytun
|
2025-01-17 16:33:18 +00:00
|
|
|
PKG_RELEASE:=8
|
2021-08-30 19:51:02 +00:00
|
|
|
PKG_SOURCE_PROTO:=git
|
2025-01-17 16:33:18 +00:00
|
|
|
PKG_SOURCE_VERSION:=8aebb3efb3b108b1276aa74679e200e003f298de
|
2018-01-19 13:22:01 +00:00
|
|
|
PKG_SOURCE:=glorytun-$(PKG_VERSION).tar.gz
|
2021-08-30 19:51:02 +00:00
|
|
|
PKG_SOURCE_URL:=https://github.com/Ysurac/glorytun.git
|
2024-12-06 13:47:16 +00:00
|
|
|
PKG_VERSION:=0.0.35
|
2023-11-22 19:11:43 +00:00
|
|
|
PKG_LICENSE:=BSD-2-Clause
|
|
|
|
PKG_LICENSE_FILES:=LICENSE
|
2021-08-30 19:51:02 +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
|
|
|
|
|
|
|
|
TARGET_CFLAGS += -std=c99 -D_GNU_SOURCE
|
|
|
|
|
|
|
|
define Package/$(PKG_NAME)/conffiles
|
|
|
|
/etc/config/glorytun
|
|
|
|
endef
|
|
|
|
|
|
|
|
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
|
|
|
|
$(INSTALL_DATA) glorytun.config $(1)/etc/config/glorytun
|
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call BuildPackage,$(PKG_NAME)))
|