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