ia64/xen-unstable

view tools/xm-test/ramdisk/patches/buildroot/hping.patch @ 8186:28bd01c9b596

Merge
author djm@kirby.fc.hp.com
date Fri Dec 02 12:52:25 2005 -0600 (2005-12-02)
parents ab845d97de72
children
line source
1 diff -Naur buildroot.orig/package/Config.in buildroot/package/Config.in
2 --- buildroot.orig/package/Config.in 2005-11-15 07:30:21.000000000 -0800
3 +++ buildroot/package/Config.in 2005-11-15 07:30:54.000000000 -0800
4 @@ -118,6 +118,6 @@
5 source "package/wireless-tools/Config.in"
6 source "package/xorg/Config.in"
7 source "package/zlib/Config.in"
8 -
9 +source "package/hping/Config.in"
11 endmenu
12 diff -Naur buildroot.orig/package/hping/Config.in buildroot/package/hping/Config.in
13 --- buildroot.orig/package/hping/Config.in 1969-12-31 16:00:00.000000000 -0800
14 +++ buildroot/package/hping/Config.in 2005-11-14 14:13:20.000000000 -0800
15 @@ -0,0 +1,5 @@
16 +config BR2_PACKAGE_HPING
17 + bool "hping"
18 + default y
19 + help
20 + This is the hping package
21 diff -Naur buildroot.orig/package/hping/hping.mk buildroot/package/hping/hping.mk
22 --- buildroot.orig/package/hping/hping.mk 1969-12-31 16:00:00.000000000 -0800
23 +++ buildroot/package/hping/hping.mk 2005-11-14 15:11:06.000000000 -0800
24 @@ -0,0 +1,43 @@
25 +# Taken from the buildroot examples
26 +
27 +HPING_VERSION = 2.0.0-rc3
28 +HPING_TBALL = hping$(HPING_VERSION).tar.gz
29 +HPING_URL = http://www.hping.org/$(HPING_TBALL)
30 +HPING_DIR = $(BUILD_DIR)/hping2-rc3
31 +HPING_TARGET_BINARY = usr/bin/hping
32 +HPING_BINARY = hping
33 +
34 +$(DL_DIR)/$(HPING_TBALL):
35 + $(WGET) -P $(DL_DIR) $(HPING_URL)
36 +
37 +$(HPING_DIR)/.source: $(DL_DIR)/$(HPING_TBALL)
38 + tar xzf $(DL_DIR)/$(HPING_TBALL) -C $(BUILD_DIR)
39 + touch $(HPING_DIR)/.source
40 +
41 +$(HPING_DIR)/.configured: $(HPING_DIR)/.source
42 + (cd $(HPING_DIR); \
43 + ./configure; )
44 + cat $(HPING_DIR)/Makefile | grep -v './hping2 -v' > $(HPING_DIR)/foo
45 + mv $(HPING_DIR)/foo $(HPING_DIR)/Makefile
46 + touch $(HPING_DIR)/.configured
47 +
48 +$(HPING_DIR)/$(HPING_BINARY): $(HPING_DIR)/.configured
49 + $(MAKE) CC=$(TARGET_CC) -C $(HPING_DIR)
50 +
51 +$(TARGET_DIR)/$(HPING_TARGET_BINARY): $(HPING_DIR)/$(HPING_BINARY)
52 + cp $(HPING_DIR)/hping2 $(TARGET_DIR)/bin
53 +
54 +hping: $(TARGET_DIR)/$(HPING_TARGET_BINARY)
55 +
56 +hping-clean:
57 + $(MAKE) prefix=$(TARGET_DIR)/usr -C $(HPING_DIR) uninstall
58 + -$(MAKE) -C $(HPING_DIR) clean
59 +
60 +hping-dirclean:
61 + rm -Rf $(HPING_DIR)
62 +
63 +ifeq ($(strip $(BR2_PACKAGE_HPING)),y)
64 +TARGETS += hping
65 +endif
66 +
67 +