Update lft to 3.1 (#3631)
[packages.git] / net / lft / Makefile
1 #
2 # Copyright (C) 2006 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:=lft
12 PKG_VERSION:=3.1
13 PKG_RELEASE:=1
14
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16 PKG_SOURCE_URL:=http://pwhois.org/get
17 PKG_MD5SUM:=70e69706e7600f34c0dfb54e2ee5eb01
18
19 include $(INCLUDE_DIR)/package.mk
20
21 define Package/lft
22   SECTION:=net
23   CATEGORY:=Network
24   DEPENDS:=+libpcap
25   TITLE:=The alternative traceroute and whois tools for network engineers
26   URL:=http://pwhois.org/lft
27 endef
28
29 define Package/lft/description
30         LFT, short for Layer Four Traceroute, is a sort of 'traceroute' that
31         often works much faster (than the commonly-used Van Jacobson method)
32         and goes through many configurations of packet-filters (firewalls).
33         More importantly, LFT implements numerous other features including AS
34         number lookups through several reliable sources, loose source routing,
35         netblock name lookups, et al.
36 endef
37
38 define Build/Configure  
39         $(call Build/Configure/Default, \
40                 --with-pcap="$(STAGING_DIR)/usr" \
41         )
42 endef
43
44 define Build/Compile    
45         $(MAKE) -C $(PKG_BUILD_DIR)
46 endef
47
48 define Package/lft/install      
49         $(INSTALL_DIR) $(1)/usr/sbin
50         $(INSTALL_BIN) $(PKG_BUILD_DIR)/lft $(1)/usr/sbin/
51 endef
52
53 $(eval $(call BuildPackage,lft))