summaryrefslogtreecommitdiff
path: root/data/_openssh/_metadata/openssh-local-listener
diff options
context:
space:
mode:
Diffstat (limited to 'data/_openssh/_metadata/openssh-local-listener')
-rw-r--r--data/_openssh/_metadata/openssh-local-listener/depends1
-rw-r--r--data/_openssh/_metadata/openssh-local-listener/description8
-rwxr-xr-xdata/_openssh/_metadata/openssh-local-listener/extrainst_12
-rw-r--r--data/_openssh/_metadata/openssh-local-listener/name1
-rwxr-xr-xdata/_openssh/_metadata/openssh-local-listener/prerm7
5 files changed, 29 insertions, 0 deletions
diff --git a/data/_openssh/_metadata/openssh-local-listener/depends b/data/_openssh/_metadata/openssh-local-listener/depends
new file mode 100644
index 000000000..9ceb541c6
--- /dev/null
+++ b/data/_openssh/_metadata/openssh-local-listener/depends
@@ -0,0 +1 @@
+openssh-server (>= %MYVERSION%)
diff --git a/data/_openssh/_metadata/openssh-local-listener/description b/data/_openssh/_metadata/openssh-local-listener/description
new file mode 100644
index 000000000..555730edf
--- /dev/null
+++ b/data/_openssh/_metadata/openssh-local-listener/description
@@ -0,0 +1,8 @@
+secure shell (SSH) server, for secure access from remote machines
+This is the portable version of OpenSSH, a free implementation of the Secure Shell protocol as specified by the IETF secsh working group.
+.
+Ssh (Secure Shell) is a program for logging into a remote machine and for executing commands on a remote machine. It provides secure encrypted communications between two untrusted hosts over an insecure network. X11 connections and arbitrary TCP/IP ports can also be forwarded over the secure channel. It can be used to provide applications with a secure communication channel.
+.
+This package provides a listener for only localhost on port 22.
+.
+In some countries it may be illegal to use any encryption at all without a special permit.
diff --git a/data/_openssh/_metadata/openssh-local-listener/extrainst_ b/data/_openssh/_metadata/openssh-local-listener/extrainst_
new file mode 100755
index 000000000..a90ba8854
--- /dev/null
+++ b/data/_openssh/_metadata/openssh-local-listener/extrainst_
@@ -0,0 +1,12 @@
+#!/bin/sh
+
+if [[ $1 == upgrade ]]; then
+ /bin/launchctl unload /Library/LaunchDaemons/com.openssh.sshd-localhost.plist
+ /bin/launchctl load /Library/LaunchDaemons/com.openssh.sshd-localhost.plist
+fi
+
+if [[ $1 == install ]]; then
+ /bin/launchctl load -w /Library/LaunchDaemons/com.openssh.sshd-localhost.plist
+fi
+
+exit 0
diff --git a/data/_openssh/_metadata/openssh-local-listener/name b/data/_openssh/_metadata/openssh-local-listener/name
new file mode 100644
index 000000000..23d81c442
--- /dev/null
+++ b/data/_openssh/_metadata/openssh-local-listener/name
@@ -0,0 +1 @@
+OpenSSH Localhost Listener
diff --git a/data/_openssh/_metadata/openssh-local-listener/prerm b/data/_openssh/_metadata/openssh-local-listener/prerm
new file mode 100755
index 000000000..7d5a11e55
--- /dev/null
+++ b/data/_openssh/_metadata/openssh-local-listener/prerm
@@ -0,0 +1,7 @@
+#!/bin/sh
+
+if [[ $1 == remove || $1 == purge ]]; then
+ /bin/launchctl unload /Library/LaunchDaemons/com.openssh.sshd-localhost.plist
+fi
+
+exit 0