85f3d8a0b6072ebab99eedac25610a54a3962c81
[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 PKG_CAT:=zcat
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 ./Configure -n linux
34 endef
35
36 define Build/Compile
37 $(MAKE) -C $(PKG_BUILD_DIR) \
38 CC="$(TARGET_CC)" \
39 CFLAGS="$(TARGET_CFLAGS)" \
40 LDFLAGS="$(TARGET_LDFLAGS)"
41 endef
42
43 define Package/lsof/install
44 $(INSTALL_DIR) $(1)/usr/bin
45 $(INSTALL_BIN) $(PKG_BUILD_DIR)/lsof $(1)/usr/bin
46 endef
47
48 $(eval $(call BuildPackage,lsof))