[Packages] net/wifidog:
[openwrt/svn-archive/archive.git] / net / tinc / Makefile
1 #
2 # Copyright (C) 2007 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7 # $Id$
8
9 include $(TOPDIR)/rules.mk
10
11 PKG_NAME:=tinc
12 PKG_VERSION:=1.0.7
13 PKG_RELEASE:=1
14
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16 PKG_SOURCE_URL:=http://www.tinc-vpn.org/packages \
17 http://ftp.yi.se/pub/tinc/ \
18 http://www.mirrors.wiretapped.net/security/network-security/tinc/
19 PKG_MD5SUM:=572255e6cbb9efffd9e40adb73ab7861
20
21 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
22 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
23
24 include $(INCLUDE_DIR)/package.mk
25
26 define Package/tinc
27 SECTION:=net
28 CATEGORY:=Network
29 DEPENDS:=+liblzo +libopenssl +zlib
30 TITLE:=VPN tunneling daemon
31 URL:=http://www.tinc-vpn.org/
32 SUBMENU:=VPN
33 endef
34
35 define Build/Configure
36 $(call Build/Configure/Default, \
37 --with-kernel="$(LINUX_DIR)" \
38 --with-zlib="$(STAGING_DIR)/usr" \
39 --with-lzo-include="$(STAGING_DIR)/usr/include/lzo" \
40 )
41 endef
42
43 define Build/Compile
44 $(MAKE) -C $(PKG_BUILD_DIR) \
45 DESTDIR="$(PKG_INSTALL_DIR)" \
46 all install
47 endef
48
49 define Package/tinc/install
50 $(INSTALL_DIR) $(1)/usr/sbin
51 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/tincd $(1)/usr/sbin/
52 endef
53
54 $(eval $(call BuildPackage,tinc))