Add lft tools for network enginneers (#922)
[openwrt/svn-archive/archive.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:=2.5
13 PKG_RELEASE:=1
14
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16 PKG_SOURCE_URL:=http://ftp.fredan.se/pub/gentoo.org/distfiles
17 PKG_MD5SUM:=5b0f45addbb371cc076fe6d9d9694546
18 PKG_CAT:=zcat
19
20 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
21
22 include $(INCLUDE_DIR)/package.mk
23
24 define Package/lft
25 SECTION:=net
26 CATEGORY:=Network
27 DEPENDS:=+libpcap
28 TITLE:=The alternative traceroute and whois tools for network engineers
29 URL:=http://pwhois.org/lft
30 endef
31
32 define Build/Configure
33 $(call Build/Configure/Default, \
34 --with-pcap="$(STAGING_DIR)/usr" \
35 )
36 endef
37
38 define Build/Compile
39 $(MAKE) -C $(PKG_BUILD_DIR)
40 endef
41
42 define Package/lft/install
43 install -d -m0755 $(1)/usr/sbin
44 install -m0755 $(PKG_BUILD_DIR)/lft $(1)/usr/sbin/
45 endef
46
47 $(eval $(call BuildPackage,lft))