From e5043d0090e862c50d0092b7ac75128227969451 Mon Sep 17 00:00:00 2001 From: florian Date: Mon, 6 Nov 2006 15:37:45 +0000 Subject: [PATCH] Add lft tools for network enginneers (#922) git-svn-id: svn://svn.openwrt.org/openwrt/packages@5452 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- net/lft/Makefile | 47 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 net/lft/Makefile diff --git a/net/lft/Makefile b/net/lft/Makefile new file mode 100644 index 000000000..2142d2ea5 --- /dev/null +++ b/net/lft/Makefile @@ -0,0 +1,47 @@ +# +# Copyright (C) 2006 OpenWrt.org +# +# This is free software, licensed under the GNU General Public License v2. +# See /LICENSE for more information. +# +# $Id: $ + +include $(TOPDIR)/rules.mk + +PKG_NAME:=lft +PKG_VERSION:=2.5 +PKG_RELEASE:=1 + +PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz +PKG_SOURCE_URL:=http://ftp.fredan.se/pub/gentoo.org/distfiles +PKG_MD5SUM:=5b0f45addbb371cc076fe6d9d9694546 +PKG_CAT:=zcat + +PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION) + +include $(INCLUDE_DIR)/package.mk + +define Package/lft + SECTION:=net + CATEGORY:=Network + DEPENDS:=+libpcap + TITLE:=The alternative traceroute and whois tools for network engineers + URL:=http://pwhois.org/lft +endef + +define Build/Configure + $(call Build/Configure/Default, \ + --with-pcap="$(STAGING_DIR)/usr" \ + ) +endef + +define Build/Compile + $(MAKE) -C $(PKG_BUILD_DIR) +endef + +define Package/lft/install + install -d -m0755 $(1)/usr/sbin + install -m0755 $(PKG_BUILD_DIR)/lft $(1)/usr/sbin/ +endef + +$(eval $(call BuildPackage,lft))