Skip to content

Instantly share code, notes, and snippets.

@fpletz
Created April 24, 2015 00:13
Show Gist options
  • Save fpletz/eb45da14c566454ba18f to your computer and use it in GitHub Desktop.
Save fpletz/eb45da14c566454ba18f to your computer and use it in GitHub Desktop.
tinc 1.1 openwrt
include $(TOPDIR)/rules.mk
PKG_NAME:=tinc
PKG_VERSION:=6568cffd52d4803effaf52a9bb9c98d69cf7922a
PKG_RELEASE:=1
PKG_SOURCE:=6568cffd52d4803effaf52a9bb9c98d69cf7922a.tar.gz
PKG_SOURCE_URL:=https://github.com/gsliepen/tinc/archive/
PKG_MD5SUM:=e103c26844530facdaf2ce4d04fdd25c
PKG_INSTALL:=1
PKG_FIXUP:=autoreconf
include $(INCLUDE_DIR)/package.mk
define Package/tinc
SECTION:=net
CATEGORY:=Network
DEPENDS:=+kmod-tun
TITLE:=VPN tunneling daemon
URL:=http://www.tinc-vpn.org/
MAINTAINER:=Saverio Proto <zioproto@gmail.com>
SUBMENU:=VPN
endef
define Package/tinc/description
tinc is a Virtual Private Network (VPN) daemon that uses tunnelling and
encryption to create a secure private network between hosts on the Internet.
endef
TARGET_CFLAGS += -std=gnu99
CONFIGURE_ARGS += \
--with-kernel="$(LINUX_DIR)" \
--disable-legacy-protocol \
--disable-curses \
--disable-readline \
--disable-zlib \
--disable-lzo
define Package/tinc/install
$(INSTALL_DIR) $(1)/usr/sbin
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/tinc $(1)/usr/sbin/
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/tincd $(1)/usr/sbin/
$(INSTALL_DIR) $(1)/etc/tinc
endef
$(eval $(call BuildPackage,tinc))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment