summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJason A. Donenfeld <zx2c4@gentoo.org>2016-07-08 13:44:30 +0200
committerJason A. Donenfeld <zx2c4@gentoo.org>2016-07-08 13:45:31 +0200
commit0de9d67cd669435f7e1626d9b5a793958c4b97ec (patch)
tree4554165835b96d36b3a4f688351d11fb70806cf4 /net-misc
parentapp-misc/lirc-0.9.4: don't try to install doc/images (diff)
downloadgentoo-0de9d67cd669435f7e1626d9b5a793958c4b97ec.tar.gz
gentoo-0de9d67cd669435f7e1626d9b5a793958c4b97ec.tar.bz2
gentoo-0de9d67cd669435f7e1626d9b5a793958c4b97ec.zip
net-misc/wireguard: add client.sh instructions
Package-Manager: portage-2.3.0
Diffstat (limited to 'net-misc')
-rw-r--r--net-misc/wireguard/wireguard-0.0.20160708.ebuild22
-rw-r--r--net-misc/wireguard/wireguard-9999.ebuild22
2 files changed, 42 insertions, 2 deletions
diff --git a/net-misc/wireguard/wireguard-0.0.20160708.ebuild b/net-misc/wireguard/wireguard-0.0.20160708.ebuild
index 671d4bb2aa5a..f1bef431e1dd 100644
--- a/net-misc/wireguard/wireguard-0.0.20160708.ebuild
+++ b/net-misc/wireguard/wireguard-0.0.20160708.ebuild
@@ -51,7 +51,6 @@ src_compile() {
src_install() {
dodoc README.md
- docompress -x /usr/share/doc/${PF}/examples
dodoc -r contrib/examples
linux-mod_src_install
emake DESTDIR="${D}" PREFIX="${EPREFIX}/usr" -C src/tools install
@@ -66,4 +65,25 @@ pkg_postinst() {
ewarn
ewarn " team@wireguard.io security@wireguard.io"
ewarn
+
+ einfo
+ einfo "After installing WireGuard, if you'd like to try sending some packets through"
+ einfo "WireGuard, you may use, for testing purposes only, the insecure client.sh"
+ einfo "test example script:"
+ einfo
+ einfo " \$ bzcat /usr/share/doc/${PF}/examples/ncat-client-server/client.sh.bz2 | sudo bash -"
+ einfo
+ einfo "This will automatically setup interface wg0, through a very insecure transport"
+ einfo "that is only suitable for demonstration purposes. You can then try loading the"
+ einfo "hidden website or sending pings:"
+ einfo
+ einfo " \$ chromium http://192.168.4.1"
+ einfo " \$ ping 192.168.4.1"
+ einfo
+ einfo "If you'd like to redirect your internet traffic, you can run it with the"
+ einfo "\"default-route\" argument. You may not use this server for any abusive or illegal"
+ einfo "purposes. It is for quick testing only."
+ einfo
+ einfo "More info on getting started can be found at: https://www.wireguard.io/quickstart/"
+ einfo
}
diff --git a/net-misc/wireguard/wireguard-9999.ebuild b/net-misc/wireguard/wireguard-9999.ebuild
index 671d4bb2aa5a..f1bef431e1dd 100644
--- a/net-misc/wireguard/wireguard-9999.ebuild
+++ b/net-misc/wireguard/wireguard-9999.ebuild
@@ -51,7 +51,6 @@ src_compile() {
src_install() {
dodoc README.md
- docompress -x /usr/share/doc/${PF}/examples
dodoc -r contrib/examples
linux-mod_src_install
emake DESTDIR="${D}" PREFIX="${EPREFIX}/usr" -C src/tools install
@@ -66,4 +65,25 @@ pkg_postinst() {
ewarn
ewarn " team@wireguard.io security@wireguard.io"
ewarn
+
+ einfo
+ einfo "After installing WireGuard, if you'd like to try sending some packets through"
+ einfo "WireGuard, you may use, for testing purposes only, the insecure client.sh"
+ einfo "test example script:"
+ einfo
+ einfo " \$ bzcat /usr/share/doc/${PF}/examples/ncat-client-server/client.sh.bz2 | sudo bash -"
+ einfo
+ einfo "This will automatically setup interface wg0, through a very insecure transport"
+ einfo "that is only suitable for demonstration purposes. You can then try loading the"
+ einfo "hidden website or sending pings:"
+ einfo
+ einfo " \$ chromium http://192.168.4.1"
+ einfo " \$ ping 192.168.4.1"
+ einfo
+ einfo "If you'd like to redirect your internet traffic, you can run it with the"
+ einfo "\"default-route\" argument. You may not use this server for any abusive or illegal"
+ einfo "purposes. It is for quick testing only."
+ einfo
+ einfo "More info on getting started can be found at: https://www.wireguard.io/quickstart/"
+ einfo
}