summaryrefslogtreecommitdiff
path: root/homebrew/fragroute
diff options
context:
space:
mode:
Diffstat (limited to 'homebrew/fragroute')
-rw-r--r--homebrew/fragroute/.beer48
-rw-r--r--homebrew/fragroute/.make.sh-auto5
-rw-r--r--homebrew/fragroute/_metadata/description1
-rw-r--r--homebrew/fragroute/_metadata/homepage1
-rw-r--r--homebrew/fragroute/_metadata/name1
-rw-r--r--homebrew/fragroute/_metadata/version1
-rwxr-xr-xhomebrew/fragroute/download.sh1
-rwxr-xr-xhomebrew/fragroute/patches.sh3
8 files changed, 61 insertions, 0 deletions
diff --git a/homebrew/fragroute/.beer b/homebrew/fragroute/.beer
new file mode 100644
index 000000000..6ec0ebaa6
--- /dev/null
+++ b/homebrew/fragroute/.beer
@@ -0,0 +1,48 @@
+{
+ "name": "Fragroute",
+ "description": "Intercepts, modifies and rewrites egress traffic for a specified host",
+ "url": "https://www.monkey.org/~dugsong/fragroute/fragroute-1.2.tar.gz",
+ "mirror": "https://mirrorservice.org/sites/ftp.wiretapped.net/pub/security/packet-construction/fragroute-1.2.tar.gz",
+ "homepage": "https://www.monkey.org/~dugsong/fragroute/",
+ "depends": [
+ {
+ "depend": "libdnet",
+ "build-depend": false
+ },
+ {
+ "depend": "libevent",
+ "build-depend": false
+ }
+ ],
+ "resource": [],
+ "conflicts": [],
+ "patches": [
+ {
+ "url": "https://raw.githubusercontent.com/Homebrew/formula-patches/2f5cab626/fragroute/configure.patch",
+ "strip": "0"
+ },
+ {
+ "url": "https://raw.githubusercontent.com/Homebrew/formula-patches/2f5cab626/fragroute/fragroute.c.patch",
+ "strip": "0"
+ },
+ {
+ "url": "https://raw.githubusercontent.com/Homebrew/formula-patches/2f5cab626/fragroute/pcaputil.c.patch",
+ "strip": "0"
+ }
+ ],
+ "install": [
+ "args = %W[",
+ "--disable-dependency-tracking",
+ "--prefix=#{prefix}",
+ "--mandir=#{man}",
+ "--sysconfdir=#{etc}",
+ "--with-libevent=#{Formula[\"libevent\"].opt_prefix}",
+ "--with-libdnet=#{Formula[\"libdnet\"].opt_prefix}",
+ "]",
+ "args << \"--with-libpcap=#{MacOS.sdk_path}/usr\" unless MacOS::CLT.installed?",
+ "system \"./configure\", *args",
+ "system \"make\", \"install\""
+ ],
+ "version": "1.2",
+ "file": "fragroute.rb"
+} \ No newline at end of file
diff --git a/homebrew/fragroute/.make.sh-auto b/homebrew/fragroute/.make.sh-auto
new file mode 100644
index 000000000..94ebdd3bf
--- /dev/null
+++ b/homebrew/fragroute/.make.sh-auto
@@ -0,0 +1,5 @@
+pkg:setup
+args = %W[--disable-dependency-tracking --prefix=#{prefix} --mandir=#{man} --sysconfdir=#{etc} --with-libevent=#{Formula["libevent"].opt_prefix} --with-libdnet=#{Formula["libdnet"].opt_prefix} ]
+args << "--with-libpcap=#{MacOS.sdk_path}/usr" unless MacOS::CLT.installed?
+pkg:configure *args
+make DESTDIR=${PKG_DEST} install
diff --git a/homebrew/fragroute/_metadata/description b/homebrew/fragroute/_metadata/description
new file mode 100644
index 000000000..337ca3921
--- /dev/null
+++ b/homebrew/fragroute/_metadata/description
@@ -0,0 +1 @@
+Intercepts, modifies and rewrites egress traffic for a specified host
diff --git a/homebrew/fragroute/_metadata/homepage b/homebrew/fragroute/_metadata/homepage
new file mode 100644
index 000000000..8d1032fc7
--- /dev/null
+++ b/homebrew/fragroute/_metadata/homepage
@@ -0,0 +1 @@
+https://www.monkey.org/~dugsong/fragroute/
diff --git a/homebrew/fragroute/_metadata/name b/homebrew/fragroute/_metadata/name
new file mode 100644
index 000000000..a4aaa6f73
--- /dev/null
+++ b/homebrew/fragroute/_metadata/name
@@ -0,0 +1 @@
+Fragroute
diff --git a/homebrew/fragroute/_metadata/version b/homebrew/fragroute/_metadata/version
new file mode 100644
index 000000000..5625e59da
--- /dev/null
+++ b/homebrew/fragroute/_metadata/version
@@ -0,0 +1 @@
+1.2
diff --git a/homebrew/fragroute/download.sh b/homebrew/fragroute/download.sh
new file mode 100755
index 000000000..799e5703e
--- /dev/null
+++ b/homebrew/fragroute/download.sh
@@ -0,0 +1 @@
+wget https://www.monkey.org/~dugsong/fragroute/fragroute-1.2.tar.gz || wget https://mirrorservice.org/sites/ftp.wiretapped.net/pub/security/packet-construction/fragroute-1.2.tar.gz \ No newline at end of file
diff --git a/homebrew/fragroute/patches.sh b/homebrew/fragroute/patches.sh
new file mode 100755
index 000000000..1c3b4deed
--- /dev/null
+++ b/homebrew/fragroute/patches.sh
@@ -0,0 +1,3 @@
+wget https://raw.githubusercontent.com/Homebrew/formula-patches/2f5cab626/fragroute/configure.patch
+wget https://raw.githubusercontent.com/Homebrew/formula-patches/2f5cab626/fragroute/fragroute.c.patch
+wget https://raw.githubusercontent.com/Homebrew/formula-patches/2f5cab626/fragroute/pcaputil.c.patch