From a8aa51ff48a954e74be1206dba26663a16396a4a Mon Sep 17 00:00:00 2001 From: angt Date: Sat, 14 Nov 2015 19:00:46 +0100 Subject: [PATCH] Add Makefile --- Makefile | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 Makefile diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..2466113 --- /dev/null +++ b/Makefile @@ -0,0 +1,35 @@ +include $(TOPDIR)/rules.mk + +PKG_NAME:=glorytun +PKG_VERSION:=0.0.1 +PKG_RELEASE:=1 + +PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz +PKG_SOURCE_URL:=https://github.com/angt/glorytun/releases/download/v$(PKG_VERSION) +PKG_MD5SUM:=e2bb7d16e79c4b1ed67626a7e938f77c + +PKG_INSTALL:=1 +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 +endef + +define Package/glorytun/description + Glorytun +endef + +TARGET_CFLAGS += -std=c99 + +define Package/glorytun/install + $(INSTALL_DIR) $(1)/usr/sbin +endef + +$(eval $(call BuildPackage,glorytun))