allow dund to grab ppp options gathered from the network scripts
[openwrt/svn-archive/archive.git] / utils / lsof / 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:=lsof
12 PKG_VERSION:=4.77
13 PKG_RELEASE:=1
14
15 PKG_SOURCE:=$(PKG_NAME)_$(PKG_VERSION).dfsg.1.orig.tar.gz
16 PKG_SOURCE_URL:=http://ftp2.de.debian.org/debian/pool/main/l/lsof
17 PKG_MD5SUM:=6751a1cbdefb751b7cb2e22e6e5bdacb
18
19 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION).dfsg.1.orig
20
21 include $(INCLUDE_DIR)/package.mk
22
23 define Package/lsof
24 SECTION:=utils
25 CATEGORY:=Utilities
26 TITLE:=LiSt Open Files - a diagnostic tool
27 URL:=http://www.akadia.com/services/lsof_intro.html
28 endef
29
30 define Build/Configure
31 cd $(PKG_BUILD_DIR); \
32 ./Configure -n linux
33 endef
34
35 define Build/Compile
36 $(MAKE) -C $(PKG_BUILD_DIR) \
37 CC="$(TARGET_CC)" \
38 CFLAGS="$(TARGET_CFLAGS)" \
39 LDFLAGS="$(TARGET_LDFLAGS)"
40 endef
41
42 define Package/lsof/install
43 $(INSTALL_DIR) $(1)/usr/bin
44 $(INSTALL_BIN) $(PKG_BUILD_DIR)/lsof $(1)/usr/bin
45 endef
46
47 $(eval $(call BuildPackage,lsof))