summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Gilbert <floppym@gentoo.org>2020-04-02 23:41:33 -0400
committerMike Gilbert <floppym@gentoo.org>2020-04-02 23:42:12 -0400
commit2d1a910687e204249655184602d6ccb8b0a14c1b (patch)
treeabf8de6d89d1ea58519895f6a85dbc1e500aa772 /net-vpn/openconnect/files/README.OpenRC.txt
parentnet-vpn/wireguard-tools: check for NF_CONNTRACK_MARK (diff)
downloadgentoo-2d1a910687e204249655184602d6ccb8b0a14c1b.tar.gz
gentoo-2d1a910687e204249655184602d6ccb8b0a14c1b.tar.bz2
gentoo-2d1a910687e204249655184602d6ccb8b0a14c1b.zip
net-vpn/openconnect: cleanup ebuild
Move the OpenRC-related documentation to a static file. Reorganize src_install. Package-Manager: Portage-2.3.96_p4, Repoman-2.3.22_p1 Signed-off-by: Mike Gilbert <floppym@gentoo.org>
Diffstat (limited to 'net-vpn/openconnect/files/README.OpenRC.txt')
-rw-r--r--net-vpn/openconnect/files/README.OpenRC.txt25
1 files changed, 25 insertions, 0 deletions
diff --git a/net-vpn/openconnect/files/README.OpenRC.txt b/net-vpn/openconnect/files/README.OpenRC.txt
new file mode 100644
index 000000000000..6bd43e62dfbc
--- /dev/null
+++ b/net-vpn/openconnect/files/README.OpenRC.txt
@@ -0,0 +1,25 @@
+The init script for openconnect supports multiple vpn tunnels.
+
+You need to create a symbolic link to /etc/init.d/openconnect in /etc/init.d
+instead of calling it directly:
+
+ln -s /etc/init.d/openconnect /etc/init.d/openconnect.vpn0
+
+You can then start the vpn tunnel like this:
+
+/etc/init.d/openconnect.vpn0 start
+
+If you would like to run preup, postup, predown, and/or postdown scripts,
+You need to create a directory in /etc/openconnect with the name of the vpn:
+
+mkdir /etc/openconnect/vpn0
+
+Then add executable shell files:
+
+mkdir /etc/openconnect/vpn0
+cd /etc/openconnect/vpn0
+echo '#!/bin/sh' > preup.sh
+cp preup.sh predown.sh
+cp preup.sh postup.sh
+cp preup.sh postdown.sh
+chmod 755 /etc/openconnect/vpn0/*