2 # Copyright (C) 2007-2011 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR
)/rules.mk
14 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
15 PKG_SOURCE_URL
:=http
://www.tinc-vpn.org
/packages
16 PKG_MD5SUM
:=f1c7ed94878725fb2cf4efb02bf160da
20 include $(INCLUDE_DIR
)/package.mk
25 DEPENDS
:=+liblzo
+libopenssl
+kmod-tun
26 TITLE
:=VPN tunneling daemon
27 URL
:=http
://www.tinc-vpn.org
/
31 define Package
/tinc
/description
32 tinc is a Virtual Private Network
(VPN
) daemon that uses tunnelling and
33 encryption to create a secure private network between hosts on the Internet.
36 TARGET_CFLAGS
+= -std
=gnu99
39 --with-kernel
="$(LINUX_DIR)" \
40 --with-zlib
="$(STAGING_DIR)/usr" \
41 --with-lzo-include
="$(STAGING_DIR)/usr/include/lzo"
43 define Package
/tinc
/install
44 $(INSTALL_DIR
) $(1)/usr
/sbin
45 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/sbin
/tincd
$(1)/usr
/sbin
/
46 $(INSTALL_DIR
) $(1)/etc
/init.d
/
47 $(INSTALL_BIN
) files
/$(PKG_NAME
).init
$(1)/etc
/init.d
/$(PKG_NAME
)
48 $(INSTALL_DIR
) $(1)/etc
/config
49 $(INSTALL_CONF
) files
/$(PKG_NAME
).config
$(1)/etc
/config
/$(PKG_NAME
)
50 $(INSTALL_DIR
) $(1)/etc
/openvpn
51 $(INSTALL_DIR
) $(1)/lib
/upgrade
/keep.d
52 $(INSTALL_DATA
) files
/tinc.upgrade
$(1)/lib
/upgrade
/keep.d
/tinc
55 $(eval
$(call BuildPackage
,tinc
))