1
0
Fork 0
mirror of https://github.com/Ysurac/openmptcprouter-feeds.git synced 2025-02-15 03:51:51 +00:00
openmptcprouter-feeds/glorytun-udp/Makefile

46 lines
1.2 KiB
Makefile
Raw Normal View History

2018-01-19 13:22:01 +00:00
#
# Copyright (C) 2015 OVH
2018-05-28 15:39:21 +00:00
# Copyright (C) 2018 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-udp
2018-05-28 15:39:21 +00:00
PKG_VERSION:=0.0.99-mud
2018-06-06 15:52:22 +00:00
PKG_RELEASE:=2
2018-01-19 13:22:01 +00:00
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-05-28 15:39:21 +00:00
PKG_HASH:=5e23afad4592d6af27ffd2cb3c826cf0ea1b5166a05ef1ae5c77fb4e465bb735
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
2018-04-04 11:24:24 +00:00
TARGET_CFLAGS += -std=c99 -D_GNU_SOURCE -DGT_RUNDIR=\"\\\"/tmp\"\\\"
2018-01-19 13:22:01 +00:00
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)))
2018-05-28 15:39:21 +00:00