diff options
author | MCApollo <34170230+MCApollo@users.noreply.github.com> | 2019-04-20 20:49:46 -0500 |
---|---|---|
committer | MCApollo <34170230+MCApollo@users.noreply.github.com> | 2019-04-23 20:18:47 -0500 |
commit | 12335518ab39608d58370c85ff9f5384ad2aa5f7 (patch) | |
tree | 352d81f2a2de3f1252af732080ec0fde38c13b4d /homebrew/autossh | |
parent | a2b26ad12d4fa12f0273645caf4be6d0b8b71e7c (diff) |
Ported in the homebrew-marauder for a hacky update/import system.
TODO: Maybe add a license & fix up messy code.
Diffstat (limited to 'homebrew/autossh')
-rw-r--r-- | homebrew/autossh/.beer | 34 | ||||
-rw-r--r-- | homebrew/autossh/.make.sh-auto | 4 | ||||
-rw-r--r-- | homebrew/autossh/_metadata/description | 1 | ||||
-rw-r--r-- | homebrew/autossh/_metadata/homepage | 1 | ||||
-rw-r--r-- | homebrew/autossh/_metadata/name | 1 | ||||
-rw-r--r-- | homebrew/autossh/_metadata/version | 1 | ||||
-rwxr-xr-x | homebrew/autossh/download.sh | 1 | ||||
-rwxr-xr-x | homebrew/autossh/patches.sh | 13 |
8 files changed, 56 insertions, 0 deletions
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 |