Remove docs tests man pages from installation
[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.8
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:=1b59583b5bc57806459c81a413fb0cc4
20
21 include $(INCLUDE_DIR)/package.mk
22
23 define Package/tinc
24 SECTION:=net
25 CATEGORY:=Network
26 DEPENDS:=+liblzo +libopenssl +zlib
27 TITLE:=VPN tunneling daemon
28 URL:=http://www.tinc-vpn.org/
29 SUBMENU:=VPN
30 endef
31
32 define Build/Configure
33 $(call Build/Configure/Default, \
34 --with-kernel="$(LINUX_DIR)" \
35 --with-zlib="$(STAGING_DIR)/usr" \
36 --with-lzo-include="$(STAGING_DIR)/usr/include/lzo" \
37 )
38 endef
39
40 define Build/Compile
41 $(MAKE) -C $(PKG_BUILD_DIR) \
42 DESTDIR="$(PKG_INSTALL_DIR)" \
43 all install
44 endef
45
46 define Package/tinc/install
47 $(INSTALL_DIR) $(1)/usr/sbin
48 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/tincd $(1)/usr/sbin/
49 endef
50
51 $(eval $(call BuildPackage,tinc))