2018-01-19 13:22:01 +00:00
|
|
|
#
|
|
|
|
# Copyright (C) 2015 OVH
|
|
|
|
# Copyright (C) 2017 Ycarus (Yannick Chabanois) <ycarus@zugaina.org>
|
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=glorytun-udp
|
2018-04-03 14:19:38 +00:00
|
|
|
PKG_VERSION:=0.0.98-mud
|
2018-01-19 13:22:01 +00:00
|
|
|
PKG_RELEASE:=1
|
|
|
|
PKG_SOURCE:=glorytun-$(PKG_VERSION).tar.gz
|
|
|
|
PKG_SOURCE_URL:=https://github.com/angt/glorytun/releases/download/v$(PKG_VERSION)
|
|
|
|
PKG_BUILD_DIR:=$(BUILD_DIR)/glorytun-$(PKG_VERSION)
|
2018-04-03 14:19:38 +00:00
|
|
|
PKG_HASH:=34a02c83efbfa1742d639643eeeeeb35f43611c92e2fd93f2eedba065c2f9417
|
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
|
|
|
|
touch $(1)/etc/config/glorytun
|
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call BuildPackage,$(PKG_NAME)))
|