Files
glorytun-openwrt/glorytun/Makefile
Simon Lelievre c06f31268a fix makefile
2015-11-17 16:46:53 +01:00

47 lines
1.0 KiB
Makefile

include $(TOPDIR)/rules.mk
PKG_NAME:=glorytun
PKG_VERSION:=0.0.2
PKG_RELEASE:=2
PKG_SOURCE_PROTO:=git
PKG_SOURCE_URL:=https://github.com/angt/glorytun.git
PKG_SOURCE_VERSION:=286f54aed469af30bd8bd53f3a7bf793fef97037
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
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
TARGET_CFLAGS += -D_GNU_SOURCE
define Package/glorytun/conffiles
/etc/config/glorytun
endef
define Build/Configure
(cd $(PKG_BUILD_DIR); ./autogen.sh --host=$(GNU_TARGET_NAME) --target=$(GNU_TARGET_NAME); cd -);
$(call Build/Configure/Default,$CONFIGURE_ARGS)
endef
define Package/glorytun/install
$(INSTALL_DIR) $(1)/usr/sbin
$(INSTALL_BIN) $(PKG_BUILD_DIR)/glorytun $(1)/usr/sbin
endef
$(eval $(call BuildPackage,glorytun))