source: trunk/packages/xen-3.1/xen-3.1/tools/xm-test/ramdisk/patches/buildroot/hping.patch @ 34

Last change on this file since 34 was 34, checked in by hartmans, 18 years ago

Add xen and xen-common

  • Property svn:mime-type set to text/x-patch
File size: 2.1 KB
  • package/Config.in

    diff -Naur buildroot.orig/package/Config.in buildroot/package/Config.in
    old new  
    118118source "package/wireless-tools/Config.in"
    119119source "package/xorg/Config.in"
    120120source "package/zlib/Config.in"
    121 
     121source "package/hping/Config.in"
    122122
    123123endmenu
  • package/hping/Config.in

    diff -Naur buildroot.orig/package/hping/Config.in buildroot/package/hping/Config.in
    old new  
     1config BR2_PACKAGE_HPING
     2        bool "hping"
     3        default y
     4        help
     5                This is the hping package
  • package/hping/hping.mk

    diff -Naur buildroot.orig/package/hping/hping.mk buildroot/package/hping/hping.mk
    old new  
     1# Taken from the buildroot examples
     2
     3HPING_VERSION = 2.0.0-rc3
     4HPING_TBALL = hping$(HPING_VERSION).tar.gz
     5HPING_URL = http://www.hping.org/$(HPING_TBALL)
     6HPING_DIR = $(BUILD_DIR)/hping2-rc3
     7HPING_TARGET_BINARY = usr/bin/hping
     8HPING_BINARY = hping
     9
     10$(DL_DIR)/$(HPING_TBALL):
     11        $(WGET) -P $(DL_DIR) $(HPING_URL)
     12
     13$(HPING_DIR)/.source: $(DL_DIR)/$(HPING_TBALL)
     14        tar xzf $(DL_DIR)/$(HPING_TBALL) -C $(BUILD_DIR)
     15        touch $(HPING_DIR)/.source
     16
     17$(HPING_DIR)/.configured: $(HPING_DIR)/.source
     18        (cd $(HPING_DIR); \
     19        ./configure; )
     20        cat $(HPING_DIR)/Makefile | grep -v './hping2 -v' > $(HPING_DIR)/foo
     21        mv $(HPING_DIR)/foo $(HPING_DIR)/Makefile
     22        touch $(HPING_DIR)/.configured
     23
     24$(HPING_DIR)/$(HPING_BINARY): $(HPING_DIR)/.configured
     25        $(MAKE) CC=$(TARGET_CC) -C $(HPING_DIR)
     26
     27$(TARGET_DIR)/$(HPING_TARGET_BINARY): $(HPING_DIR)/$(HPING_BINARY)
     28        cp $(HPING_DIR)/hping2 $(TARGET_DIR)/bin
     29
     30hping: $(TARGET_DIR)/$(HPING_TARGET_BINARY)
     31
     32hping-clean:
     33        $(MAKE) prefix=$(TARGET_DIR)/usr -C $(HPING_DIR) uninstall
     34        -$(MAKE) -C $(HPING_DIR) clean
     35
     36hping-dirclean:
     37        rm -Rf $(HPING_DIR)
     38
     39ifeq ($(strip $(BR2_PACKAGE_HPING)),y)
     40TARGETS += hping
     41endif
     42
     43
Note: See TracBrowser for help on using the repository browser.