From 12335518ab39608d58370c85ff9f5384ad2aa5f7 Mon Sep 17 00:00:00 2001 From: MCApollo <34170230+MCApollo@users.noreply.github.com> Date: Sat, 20 Apr 2019 20:49:46 -0500 Subject: Ported in the homebrew-marauder for a hacky update/import system. TODO: Maybe add a license & fix up messy code. --- homebrew/autossh/.beer | 34 ++++++++++++++++++++++++++++++++++ homebrew/autossh/.make.sh-auto | 4 ++++ homebrew/autossh/_metadata/description | 1 + homebrew/autossh/_metadata/homepage | 1 + homebrew/autossh/_metadata/name | 1 + homebrew/autossh/_metadata/version | 1 + homebrew/autossh/download.sh | 1 + homebrew/autossh/patches.sh | 13 +++++++++++++ 8 files changed, 56 insertions(+) create mode 100644 homebrew/autossh/.beer create mode 100644 homebrew/autossh/.make.sh-auto create mode 100644 homebrew/autossh/_metadata/description create mode 100644 homebrew/autossh/_metadata/homepage create mode 100644 homebrew/autossh/_metadata/name create mode 100644 homebrew/autossh/_metadata/version create mode 100755 homebrew/autossh/download.sh create mode 100755 homebrew/autossh/patches.sh (limited to 'homebrew/autossh') diff --git a/homebrew/autossh/.beer b/homebrew/autossh/.beer new file mode 100644 index 000000000..cdb226873 --- /dev/null +++ b/homebrew/autossh/.beer @@ -0,0 +1,34 @@ +{ + "name": "Autossh", + "description": "Automatically restart SSH sessions and tunnels", + "url": "https://www.harding.motd.ca/autossh/autossh-1.4g.tgz", + "mirror": "https://deb.debian.org/debian/pool/main/a/autossh/autossh_1.4g.orig.tar.gz", + "homepage": "https://www.harding.motd.ca/autossh/", + "depends": [], + "resource": [], + "conflicts": [], + "patches": [ + { + "url": null, + "data": [ + "diff --git a/rscreen b/rscreen\n", + "index f0bbced..ce232c3 100755\n", + "--- a/rscreen\n", + "+++ b/rscreen\n", + "@@ -23,4 +23,4 @@ fi\n", + " #AUTOSSH_PATH=/usr/local/bin/ssh\n", + " export AUTOSSH_POLL AUTOSSH_LOGFILE AUTOSSH_DEBUG AUTOSSH_PATH AUTOSSH_GATETIME AUTOSSH_PORT\n", + " \n", + "-autossh -M 20004 -t $1 \"screen -e^Zz -D -R\"\n", + "+autossh -M 20004 -t $1 \"screen -D -R\"\n" + ] + } + ], + "install": [ + "system \"./configure\", \"--prefix=#{prefix}\", \"--mandir=#{man}\"", + "system \"make\", \"install\"", + "bin.install \"rscreen\"" + ], + "version": "1.4", + "file": "autossh.rb" +} \ No newline at end of file diff --git a/homebrew/autossh/.make.sh-auto b/homebrew/autossh/.make.sh-auto new file mode 100644 index 000000000..58f90644b --- /dev/null +++ b/homebrew/autossh/.make.sh-auto @@ -0,0 +1,4 @@ +pkg:setup +pkg:configure +make DESTDIR=${PKG_DEST} install +bin.install "rscreen" diff --git a/homebrew/autossh/_metadata/description b/homebrew/autossh/_metadata/description new file mode 100644 index 000000000..0e212002c --- /dev/null +++ b/homebrew/autossh/_metadata/description @@ -0,0 +1 @@ +Automatically restart SSH sessions and tunnels diff --git a/homebrew/autossh/_metadata/homepage b/homebrew/autossh/_metadata/homepage new file mode 100644 index 000000000..e0a2d8d7a --- /dev/null +++ b/homebrew/autossh/_metadata/homepage @@ -0,0 +1 @@ +https://www.harding.motd.ca/autossh/ diff --git a/homebrew/autossh/_metadata/name b/homebrew/autossh/_metadata/name new file mode 100644 index 000000000..56002c17b --- /dev/null +++ b/homebrew/autossh/_metadata/name @@ -0,0 +1 @@ +Autossh diff --git a/homebrew/autossh/_metadata/version b/homebrew/autossh/_metadata/version new file mode 100644 index 000000000..c068b2447 --- /dev/null +++ b/homebrew/autossh/_metadata/version @@ -0,0 +1 @@ +1.4 diff --git a/homebrew/autossh/download.sh b/homebrew/autossh/download.sh new file mode 100755 index 000000000..dbf42c5e7 --- /dev/null +++ b/homebrew/autossh/download.sh @@ -0,0 +1 @@ +wget https://www.harding.motd.ca/autossh/autossh-1.4g.tgz || wget https://deb.debian.org/debian/pool/main/a/autossh/autossh_1.4g.orig.tar.gz \ No newline at end of file diff --git a/homebrew/autossh/patches.sh b/homebrew/autossh/patches.sh new file mode 100755 index 000000000..db9a453e8 --- /dev/null +++ b/homebrew/autossh/patches.sh @@ -0,0 +1,13 @@ +echo 'Creating brew-patch.diff' +cat << EOF >> brew-patch.diff +diff --git a/rscreen b/rscreen +index f0bbced..ce232c3 100755 +--- a/rscreen ++++ b/rscreen +@@ -23,4 +23,4 @@ fi + #AUTOSSH_PATH=/usr/local/bin/ssh + export AUTOSSH_POLL AUTOSSH_LOGFILE AUTOSSH_DEBUG AUTOSSH_PATH AUTOSSH_GATETIME AUTOSSH_PORT + +-autossh -M 20004 -t $1 "screen -e^Zz -D -R" ++autossh -M 20004 -t $1 "screen -D -R" +EOF -- cgit v1.2.3