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
Ycarus (Yannick Chabanois) d08ab5c8f1 Increase Glorytun version
2020-03-16 19:58:54 +01:00

54 lines
1.4 KiB
Makefile

#
# Copyright (C) 2015 OVH
# Copyright (C) 2018-2019 Ycarus (Yannick Chabanois) <ycarus@zugaina.org> for OpenMPTCProuter project
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#
include $(TOPDIR)/rules.mk
PKG_SOURCE_PROTO:=git
PKG_SOURCE_URL:=https://github.com/angt/glorytun.git
#PKG_SOURCE_VERSION:=b9aaab661fb879e891d34a91b5d2e78088fd9d9d
PKG_SOURCE_VERSION:=42faaf816f8037d1fc2a5ef5fcf94e6681d613c0
PKG_NAME:=glorytun-udp
PKG_VERSION:=0.2.2-$(PKG_SOURCE_VERSION)
PKG_RELEASE:=23
PKG_FIXUP:=autoreconf
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 -DGT_RUNDIR=\"\\\"/tmp\"\\\"
TARGET_CFLAGS += -DGT_RUNDIR=\"\\\"/tmp\"\\\"
define Package/$(PKG_NAME)/conffiles
/etc/config/glorytun
endef
define Build/Prepare
$(call Build/Prepare/Default)
echo "$(PKG_VERSION)" > $(PKG_BUILD_DIR)/VERSION
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)))