ntripcaster: move to github
[packages.git] / net / lft / Makefile
1 #
2 # Copyright (C) 2006-2011 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=lft
11 PKG_VERSION:=3.32
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=http://pwhois.org/get
16 PKG_MD5SUM:=5f09c9ad2475cb237b8277a2d69c569c
17
18 PKG_INSTALL:=1
19
20 include $(INCLUDE_DIR)/package.mk
21
22 define Package/lft/Default
23   SECTION:=net
24   CATEGORY:=Network
25   DEPENDS:=+libpcap
26   TITLE:=The alternative traceroute and whois tools for network engineers
27   URL:=http://pwhois.org/lft
28 endef
29
30 define Package/lft/Default/description
31         LFT, short for Layer Four Traceroute, is a sort of 'traceroute' that
32         often works much faster (than the commonly-used Van Jacobson method)
33         and goes through many configurations of packet-filters (firewalls).
34         More importantly, LFT implements numerous other features including AS
35         number lookups through several reliable sources, loose source routing,
36         netblock name lookups, et al.
37 endef
38
39 define Package/lft
40   $(call Package/lft/Default)
41 endef
42
43 define Package/lft/description
44         $(call Package/lft/Default/description)
45         This package contains the lft 'traceroute' program.
46 endef
47
48 define Package/whob
49   $(call Package/lft/Default)
50 endef
51
52 define Package/whob/description
53         $(call Package/lft/Default/description)
54         This package contains the whob 'whois' program.
55 endef
56
57 CONFIGURE_ARGS += \
58         --with-pcap="$(STAGING_DIR)/usr"
59
60 define Package/lft/install
61         $(INSTALL_DIR) $(1)/usr/bin
62         $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/lft $(1)/usr/bin/
63 endef
64
65 define Package/whob/install
66         $(INSTALL_DIR) $(1)/usr/bin
67         $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/whob $(1)/usr/bin/
68 endef
69
70 $(eval $(call BuildPackage,lft))
71 $(eval $(call BuildPackage,whob))