net-misc/wireguard: add client.sh instructions
authorJason A. Donenfeld <zx2c4@gentoo.org>
Fri, 8 Jul 2016 11:44:30 +0000 (13:44 +0200)
committerJason A. Donenfeld <zx2c4@gentoo.org>
Fri, 8 Jul 2016 11:45:31 +0000 (13:45 +0200)
Package-Manager: portage-2.3.0

net-misc/wireguard/wireguard-0.0.20160708.ebuild
net-misc/wireguard/wireguard-9999.ebuild

index 671d4bb2aa5a2580980906421c2b5c52b0d88f8c..f1bef431e1ddb95ab94569434dd147f4b38ce61e 100644 (file)
@@ -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
 }
index 671d4bb2aa5a2580980906421c2b5c52b0d88f8c..f1bef431e1ddb95ab94569434dd147f4b38ce61e 100644 (file)
@@ -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
 }