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 | |
---|---|
|
|
File size: 2.1 KB |
-
package/Config.in
diff -Naur buildroot.orig/package/Config.in buildroot/package/Config.in
old new 118 118 source "package/wireless-tools/Config.in" 119 119 source "package/xorg/Config.in" 120 120 source "package/zlib/Config.in" 121 121 source "package/hping/Config.in" 122 122 123 123 endmenu -
package/hping/Config.in
diff -Naur buildroot.orig/package/hping/Config.in buildroot/package/hping/Config.in
old new 1 config 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 3 HPING_VERSION = 2.0.0-rc3 4 HPING_TBALL = hping$(HPING_VERSION).tar.gz 5 HPING_URL = http://www.hping.org/$(HPING_TBALL) 6 HPING_DIR = $(BUILD_DIR)/hping2-rc3 7 HPING_TARGET_BINARY = usr/bin/hping 8 HPING_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 30 hping: $(TARGET_DIR)/$(HPING_TARGET_BINARY) 31 32 hping-clean: 33 $(MAKE) prefix=$(TARGET_DIR)/usr -C $(HPING_DIR) uninstall 34 -$(MAKE) -C $(HPING_DIR) clean 35 36 hping-dirclean: 37 rm -Rf $(HPING_DIR) 38 39 ifeq ($(strip $(BR2_PACKAGE_HPING)),y) 40 TARGETS += hping 41 endif 42 43
Note: See TracBrowser
for help on using the repository browser.