summaryrefslogtreecommitdiff
path: root/package/lsof/Makefile
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2010-07-28 19:07:59 +0200
committerWaldemar Brodkorb <wbx@openadk.org>2010-07-28 19:07:59 +0200
commitb8ddb947ffe969181957745cfbcd7dfa85e3d86b (patch)
tree5c7e74b9f16309fd87d41110c65825299d12eb8b /package/lsof/Makefile
parent1b8fff1f57e80538623d46bba5ea2577b9c0f406 (diff)
add lsof package
Diffstat (limited to 'package/lsof/Makefile')
-rw-r--r--package/lsof/Makefile37
1 files changed, 37 insertions, 0 deletions
diff --git a/package/lsof/Makefile b/package/lsof/Makefile
new file mode 100644
index 000000000..d0b5f292c
--- /dev/null
+++ b/package/lsof/Makefile
@@ -0,0 +1,37 @@
+# This file is part of the OpenADK project. OpenADK is copyrighted
+# material, please see the LICENCE file in the top-level directory.
+
+include $(TOPDIR)/rules.mk
+
+PKG_NAME:= lsof
+PKG_VERSION:= 4.83
+PKG_RELEASE:= 1
+PKG_MD5SUM:= 243089ccf3672c64b33ec8c9ef2a2a48
+PKG_DESCR:= list open files
+PKG_SECTION:= misc
+PKG_URL:= http://people.freebsd.org/~abe/
+PKG_SITES:= ftp://lsof.itap.purdue.edu/pub/tools/unix/lsof/
+
+DISTFILES:= ${PKG_NAME}_${PKG_VERSION}.tar.gz
+WRKDIST= ${WRKDIR}/${PKG_NAME}_${PKG_VERSION}/${PKG_NAME}_${PKG_VERSION}_src
+
+include $(TOPDIR)/mk/package.mk
+
+$(eval $(call PKG_template,LSOF,$(PKG_NAME),$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
+
+CONFIGURE_PROG:= Configure
+CONFIG_STYLE:= minimal
+CONFIGURE_ARGS+= -n linux
+XAKE_FLAGS+= CC='${TARGET_CC}'
+INSTALL_STYLE:= manual
+
+post-extract:
+ (cd ${WRKDIR}/${PKG_NAME}_${PKG_VERSION}; \
+ tar xf ${PKG_NAME}_${PKG_VERSION}_src.tar)
+
+do-install:
+ $(INSTALL_DIR) $(IDIR_LSOF)/usr/sbin
+ $(INSTALL_BIN) $(WRKBUILD)/lsof \
+ $(IDIR_LSOF)/usr/sbin
+
+include ${TOPDIR}/mk/pkg-bottom.mk