Update to 0.1.1 and add an init script
Signed-off-by: Adrien Gallouët <adrien@gallouet.fr>
This commit is contained in:
@@ -1,35 +1,47 @@
|
||||
include $(TOPDIR)/rules.mk
|
||||
|
||||
PKG_NAME:=glorytun
|
||||
PKG_VERSION:=0.0.28
|
||||
PKG_RELEASE:=1
|
||||
PKG_VERSION:=0.1.1
|
||||
PKG_RELEASE:=0
|
||||
|
||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
||||
PKG_SOURCE_URL:=https://github.com/angt/glorytun/releases/download/v$(PKG_VERSION)
|
||||
PKG_MD5SUM:=f2aa35559f02d9a78bcd48e4ae165c75
|
||||
PKG_SOURCE_URL:=https://github.com/angt/$(PKG_NAME)/releases/download/v$(PKG_VERSION)
|
||||
PKG_HASH:=d67a5765fb4d6c43a2e0e3e83887cd036568bbf76f65df9f1561dc82a08800b9
|
||||
|
||||
PKG_FIXUP:=autoreconf
|
||||
|
||||
include $(INCLUDE_DIR)/package.mk
|
||||
|
||||
define Package/glorytun
|
||||
SECTION:=net
|
||||
CATEGORY:=Network
|
||||
SUBMENU:=VPN
|
||||
TITLE:=Glorytun
|
||||
DEPENDS:=+kmod-tun +libsodium
|
||||
URL:=https://github.com/angt/glorytun
|
||||
define Package/$(PKG_NAME)
|
||||
SECTION:=net
|
||||
CATEGORY:=Network
|
||||
SUBMENU:=VPN
|
||||
TITLE:=Glorytun
|
||||
DEPENDS:=+kmod-tun +libsodium +librt
|
||||
URL:=https://github.com/angt/glorytun
|
||||
endef
|
||||
|
||||
define Package/glorytun/description
|
||||
Glorytun
|
||||
TARGET_CPPFLAGS += -DGT_RUNDIR=\\\"/var/run/$(PKG_NAME)\\\"
|
||||
|
||||
define Package/$(PKG_NAME)/description
|
||||
Glorytun is a vpn designed to improve your internet connectivity:
|
||||
- Fast and highly secure.
|
||||
- Multipath and active failover.
|
||||
- Traffic shaping.
|
||||
- Path MTU discovery without ICMP.
|
||||
endef
|
||||
|
||||
TARGET_CFLAGS += -std=c99 -D_GNU_SOURCE
|
||||
define Package/$(PKG_NAME)/conffiles
|
||||
/etc/config/$(PKG_NAME)
|
||||
endef
|
||||
|
||||
define Package/glorytun/install
|
||||
define Package/$(PKG_NAME)/install
|
||||
$(INSTALL_DIR) $(1)/usr/sbin
|
||||
$(INSTALL_BIN) $(PKG_BUILD_DIR)/glorytun $(1)/usr/sbin
|
||||
$(INSTALL_BIN) $(PKG_BUILD_DIR)/$(PKG_NAME) $(1)/usr/sbin
|
||||
$(INSTALL_DIR) $(1)/etc/init.d
|
||||
$(INSTALL_BIN) init $(1)/etc/init.d/$(PKG_NAME)
|
||||
$(INSTALL_DIR) $(1)/etc/config
|
||||
touch $(1)/etc/config/$(PKG_NAME)
|
||||
endef
|
||||
|
||||
$(eval $(call BuildPackage,glorytun))
|
||||
$(eval $(call BuildPackage,$(PKG_NAME)))
|
||||
|
||||
Reference in New Issue
Block a user