diff options
Diffstat (limited to 'homebrew/hping')
-rw-r--r-- | homebrew/hping/.beer | 62 | ||||
-rw-r--r-- | homebrew/hping/.make.sh-auto | 5 | ||||
-rw-r--r-- | homebrew/hping/_metadata/description | 1 | ||||
-rw-r--r-- | homebrew/hping/_metadata/homepage | 1 | ||||
-rw-r--r-- | homebrew/hping/_metadata/name | 1 | ||||
-rw-r--r-- | homebrew/hping/_metadata/version | 1 | ||||
-rwxr-xr-x | homebrew/hping/download.sh | 1 | ||||
-rwxr-xr-x | homebrew/hping/patches.sh | 21 |
8 files changed, 93 insertions, 0 deletions
diff --git a/homebrew/hping/.beer b/homebrew/hping/.beer new file mode 100644 index 000000000..9125168ee --- /dev/null +++ b/homebrew/hping/.beer @@ -0,0 +1,62 @@ +{ + "name": "Hping", + "description": "Command-line oriented TCP/IP packet assembler/analyzer", + "url": "http://www.hping.org/hping3-20051105.tar.gz", + "mirror": "https://dl.bintray.com/homebrew/mirror/hping-3.20051105.tar.gz", + "homepage": "http://www.hping.org/", + "depends": [], + "resource": [], + "conflicts": [], + "patches": [ + { + "url": "https://raw.githubusercontent.com/Homebrew/formula-patches/fc1d446f/hping/patch-libpcap_stuff.c.diff", + "strip": "0" + }, + { + "url": "https://raw.githubusercontent.com/Homebrew/formula-patches/fc1d446f/hping/patch-ars.c.diff", + "strip": "0" + }, + { + "url": "https://raw.githubusercontent.com/Homebrew/formula-patches/fc1d446f/hping/patch-sendip.c.diff", + "strip": "0" + }, + { + "url": "https://raw.githubusercontent.com/Homebrew/formula-patches/fc1d446f/hping/patch-Makefile.in.diff", + "strip": "0" + }, + { + "url": "https://raw.githubusercontent.com/Homebrew/formula-patches/fc1d446f/hping/patch-bytesex.h.diff", + "strip": "0" + }, + { + "url": null, + "data": [ + "diff --git a/gethostname.c b/gethostname.c\n", + "index 3d0ea58..a8a9699 100644\n", + "--- a/gethostname.c\n", + "+++ b/gethostname.c\n", + "@@ -18,8 +18,6 @@\n", + " #include <arpa/inet.h>\n", + " #include <string.h>\n", + " \n", + "-size_t strlcpy(char *dst, const char *src, size_t siz);\n", + "-\n", + " char *get_hostname(char* addr)\n", + " {\n", + " \tstatic char answer[1024];\n" + ] + } + ], + "install": [ + "system \"./configure\", \"--no-tcl\"", + "sbin.mkpath", + "man8.mkpath", + "system \"make\", \"CC=#{ENV.cc}\",", + "\"COMPILE_TIME=#{ENV.cflags}\",", + "\"INSTALL_PATH=#{prefix}\",", + "\"INSTALL_MANPATH=#{man}\",", + "\"install\"" + ], + "version": "20051105", + "file": "hping.rb" +}
\ No newline at end of file diff --git a/homebrew/hping/.make.sh-auto b/homebrew/hping/.make.sh-auto new file mode 100644 index 000000000..ce5c195e2 --- /dev/null +++ b/homebrew/hping/.make.sh-auto @@ -0,0 +1,5 @@ +pkg:setup +pkg:configure --no-tcl +sbin.mkpath +man8.mkpath +make CC=${PKG_TARG}-clang COMPILE_TIME=${CFLAGS} INSTALL_PATH=${PKG_TAPF} INSTALL_MANPATH=${PKG_TAPF}/share/man DESTDIR=${PKG_DEST} install diff --git a/homebrew/hping/_metadata/description b/homebrew/hping/_metadata/description new file mode 100644 index 000000000..7e48567b3 --- /dev/null +++ b/homebrew/hping/_metadata/description @@ -0,0 +1 @@ +Command-line oriented TCP/IP packet assembler/analyzer diff --git a/homebrew/hping/_metadata/homepage b/homebrew/hping/_metadata/homepage new file mode 100644 index 000000000..348790c1f --- /dev/null +++ b/homebrew/hping/_metadata/homepage @@ -0,0 +1 @@ +http://www.hping.org/ diff --git a/homebrew/hping/_metadata/name b/homebrew/hping/_metadata/name new file mode 100644 index 000000000..552e4ec74 --- /dev/null +++ b/homebrew/hping/_metadata/name @@ -0,0 +1 @@ +Hping diff --git a/homebrew/hping/_metadata/version b/homebrew/hping/_metadata/version new file mode 100644 index 000000000..b3f35f91a --- /dev/null +++ b/homebrew/hping/_metadata/version @@ -0,0 +1 @@ +20051105 diff --git a/homebrew/hping/download.sh b/homebrew/hping/download.sh new file mode 100755 index 000000000..933771b20 --- /dev/null +++ b/homebrew/hping/download.sh @@ -0,0 +1 @@ +wget http://www.hping.org/hping3-20051105.tar.gz || wget https://dl.bintray.com/homebrew/mirror/hping-3.20051105.tar.gz
\ No newline at end of file diff --git a/homebrew/hping/patches.sh b/homebrew/hping/patches.sh new file mode 100755 index 000000000..0909f0efa --- /dev/null +++ b/homebrew/hping/patches.sh @@ -0,0 +1,21 @@ +wget https://raw.githubusercontent.com/Homebrew/formula-patches/fc1d446f/hping/patch-libpcap_stuff.c.diff +wget https://raw.githubusercontent.com/Homebrew/formula-patches/fc1d446f/hping/patch-ars.c.diff +wget https://raw.githubusercontent.com/Homebrew/formula-patches/fc1d446f/hping/patch-sendip.c.diff +wget https://raw.githubusercontent.com/Homebrew/formula-patches/fc1d446f/hping/patch-Makefile.in.diff +wget https://raw.githubusercontent.com/Homebrew/formula-patches/fc1d446f/hping/patch-bytesex.h.diff +echo 'Creating brew-patch.diff' +cat << EOF >> brew-patch.diff +diff --git a/gethostname.c b/gethostname.c +index 3d0ea58..a8a9699 100644 +--- a/gethostname.c ++++ b/gethostname.c +@@ -18,8 +18,6 @@ + #include <arpa/inet.h> + #include <string.h> + +-size_t strlcpy(char *dst, const char *src, size_t siz); +- + char *get_hostname(char* addr) + { + static char answer[1024]; +EOF |