summaryrefslogtreecommitdiffstats
path: root/rules/hping.make
diff options
context:
space:
mode:
authorJuergen Beisert <j.beisert@pengutronix.de>2009-03-30 13:45:52 +0000
committerJuergen Beisert <j.beisert@pengutronix.de>2009-03-30 13:45:52 +0000
commit9358c70fe9026a93f1b597383ad21b5f7de53864 (patch)
tree87e540fd937a7f452552a865a1bb07dbf1c14c7b /rules/hping.make
parent1379dac6f9ab31f3e067f0e99a2480d1b543d14b (diff)
downloadptxdist-9358c70fe9026a93f1b597383ad21b5f7de53864.tar.gz
ptxdist-9358c70fe9026a93f1b597383ad21b5f7de53864.tar.xz
* hping: Added for network measurement
- note: experimental yet git-svn-id: https://svn.pengutronix.de/svn/ptxdist/trunks/ptxdist-trunk@10182 33e552b5-05e3-0310-8538-816dae2090ed
Diffstat (limited to 'rules/hping.make')
-rw-r--r--rules/hping.make104
1 files changed, 104 insertions, 0 deletions
diff --git a/rules/hping.make b/rules/hping.make
new file mode 100644
index 000000000..48fd201a8
--- /dev/null
+++ b/rules/hping.make
@@ -0,0 +1,104 @@
+# -*-makefile-*-
+# $Id: template-make 9053 2008-11-03 10:58:48Z wsa $
+#
+# Copyright (C) 2009 by Juergen Beisert
+#
+# 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_HPING) += hping
+
+#
+# Paths and names
+#
+HPING_VERSION := 3-20051105
+HPING := hping$(HPING_VERSION)
+HPING_SUFFIX := tar.gz
+HPING_URL := http://www.hping.org/$(HPING).$(HPING_SUFFIX)
+HPING_SOURCE := $(SRCDIR)/$(HPING).$(HPING_SUFFIX)
+HPING_DIR := $(BUILDDIR)/$(HPING)
+
+# ----------------------------------------------------------------------------
+# Get
+# ----------------------------------------------------------------------------
+
+$(HPING_SOURCE):
+ @$(call targetinfo)
+ @$(call get, HPING)
+
+# ----------------------------------------------------------------------------
+# Prepare
+# ----------------------------------------------------------------------------
+
+HPING_PATH := PATH=$(CROSS_PATH)
+HPING_ENV := $(CROSS_ENV)
+
+#
+# autoconf
+#
+HPING_AUTOCONF := --no-tcl
+
+$(STATEDIR)/hping.prepare:
+ @$(call targetinfo)
+ @$(call clean, $(HPING_DIR)/config.cache)
+ cd $(HPING_DIR) && \
+ $(HPING_PATH) $(HPING_ENV) MANPATH=/usr/man \
+ ./configure $(HPING_AUTOCONF)
+ @$(call touch)
+
+# ----------------------------------------------------------------------------
+# Compile
+# ----------------------------------------------------------------------------
+
+$(STATEDIR)/hping.compile:
+ @$(call targetinfo)
+ cd $(HPING_DIR) && $(HPING_PATH) $(MAKE) $(HPING_ENV) $(PARALLELMFLAGS)
+ @$(call touch)
+
+# ----------------------------------------------------------------------------
+# Install
+# ----------------------------------------------------------------------------
+
+$(STATEDIR)/hping.install:
+ @$(call targetinfo)
+ @$(call install, HPING)
+ @$(call touch)
+
+# ----------------------------------------------------------------------------
+# Target-Install
+# ----------------------------------------------------------------------------
+
+$(STATEDIR)/hping.targetinstall:
+ @$(call targetinfo)
+
+ @$(call install_init, hping)
+ @$(call install_fixup, hping,PACKAGE,hping)
+ @$(call install_fixup, hping,PRIORITY,optional)
+ @$(call install_fixup, hping,VERSION,$(HPING_VERSION))
+ @$(call install_fixup, hping,SECTION,base)
+ @$(call install_fixup, hping,AUTHOR,"Juergen Beisert <jbe@pengutronix.de>")
+ @$(call install_fixup, hping,DEPENDS,)
+ @$(call install_fixup, hping,DESCRIPTION,missing)
+
+ @$(call install_copy, hping, 0, 0, 0755, -, /usr/sbin/hping3)
+
+ @$(call install_finish, hping)
+
+ @$(call touch)
+
+# ----------------------------------------------------------------------------
+# Clean
+# ----------------------------------------------------------------------------
+
+hping_clean:
+ rm -rf $(STATEDIR)/hping.*
+ rm -rf $(PKGDIR)/hping_*
+ rm -rf $(HPING_DIR)
+
+# vim: syntax=make