summaryrefslogtreecommitdiffstats
path: root/rules/lsof.make
diff options
context:
space:
mode:
authorMarc Kleine-Budde <mkl@pengutronix.de>2009-03-20 15:20:51 +0000
committerMarc Kleine-Budde <mkl@pengutronix.de>2009-03-20 15:20:51 +0000
commit6f987dc94867ff02555d111b25fa8b4e9bec3a22 (patch)
treea52e0bb4c87fe01126ea22fb76962e1933e223d2 /rules/lsof.make
parent7f1511742d3105aaa870160c162914541bf74ed2 (diff)
downloadptxdist-6f987dc94867ff02555d111b25fa8b4e9bec3a22.tar.gz
ptxdist-6f987dc94867ff02555d111b25fa8b4e9bec3a22.tar.xz
[lsof] new package
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de> git-svn-id: https://svn.pengutronix.de/svn/ptxdist/trunks/ptxdist-trunk@10133 33e552b5-05e3-0310-8538-816dae2090ed
Diffstat (limited to 'rules/lsof.make')
-rw-r--r--rules/lsof.make97
1 files changed, 97 insertions, 0 deletions
diff --git a/rules/lsof.make b/rules/lsof.make
new file mode 100644
index 000000000..732c7cec6
--- /dev/null
+++ b/rules/lsof.make
@@ -0,0 +1,97 @@
+# -*-makefile-*-
+# $Id$
+#
+# Copyright (C) 2009 by Marc Kleine-Budde <mkl@pengutronix.de>
+#
+# See CREDITS for details about who has contributed to this project.
+#
+# For further information about the PTXdist project and license conditions
+# see the README file.
+#
+
+#
+# We provide this package
+#
+PACKAGES-$(PTXCONF_LSOF) += lsof
+
+#
+# Paths and names
+#
+LSOF_VERSION := 4.81.dfsg.1
+LSOF_SUFFIX := tar.gz
+LSOF := lsof-$(LSOF_VERSION)
+LSOF_TARBALL := lsof_$(LSOF_VERSION).orig.$(LSOF_SUFFIX)
+LSOF_URL := $(PTXCONF_SETUP_DEBMIRROR)/pool/main/l/lsof/$(LSOF_TARBALL)
+LSOF_SOURCE := $(SRCDIR)/$(LSOF_TARBALL)
+LSOF_DIR := $(BUILDDIR)/$(LSOF)
+
+# ----------------------------------------------------------------------------
+# Get
+# ----------------------------------------------------------------------------
+
+$(LSOF_SOURCE):
+ @$(call targetinfo)
+ @$(call get, LSOF)
+
+# ----------------------------------------------------------------------------
+# Prepare
+# ----------------------------------------------------------------------------
+
+LSOF_PATH := PATH=$(CROSS_PATH)
+LSOF_ENV := $(CROSS_ENV)
+LSOF_MAKEVARS := \
+ $(CROSS_ENV_CC) \
+ DEBUG=-O2
+
+#
+# autoconf
+#
+LSOF_AUTOCONF := -n linux
+
+$(STATEDIR)/lsof.prepare:
+ @$(call targetinfo)
+ cd $(LSOF_DIR) && \
+ $(LSOF_PATH) $(LSOF_ENV) \
+ ./Configure $(LSOF_AUTOCONF)
+ @$(call touch)
+
+# ----------------------------------------------------------------------------
+# Install
+# ----------------------------------------------------------------------------
+
+$(STATEDIR)/lsof.install:
+ @$(call targetinfo)
+ @$(call touch)
+
+# ----------------------------------------------------------------------------
+# Target-Install
+# ----------------------------------------------------------------------------
+
+$(STATEDIR)/lsof.targetinstall:
+ @$(call targetinfo)
+
+ @$(call install_init, lsof)
+ @$(call install_fixup, lsof,PACKAGE,lsof)
+ @$(call install_fixup, lsof,PRIORITY,optional)
+ @$(call install_fixup, lsof,VERSION,$(LSOF_VERSION))
+ @$(call install_fixup, lsof,SECTION,base)
+ @$(call install_fixup, lsof,AUTHOR,"Marc Kleine-Budde <mkl@pengutronix.de>")
+ @$(call install_fixup, lsof,DEPENDS,)
+ @$(call install_fixup, lsof,DESCRIPTION,missing)
+
+ @$(call install_copy, lsof, 0, 0, 0755, $(LSOF_DIR)/lsof, /usr/bin/lsof)
+
+ @$(call install_finish, lsof)
+
+ @$(call touch)
+
+# ----------------------------------------------------------------------------
+# Clean
+# ----------------------------------------------------------------------------
+
+lsof_clean:
+ rm -rf $(STATEDIR)/lsof.*
+ rm -rf $(PKGDIR)/lsof_*
+ rm -rf $(LSOF_DIR)
+
+# vim: syntax=make