Gentoo Archives: gentoo-commits

From: "Jason A. Donenfeld" <zx2c4@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-vpn/wireguard-tools/
Date: Thu, 06 Feb 2020 15:29:23
Message-Id: 1581002956.519c6e1201e4113f431446c807d13a3775e0116e.zx2c4@gentoo
1 commit: 519c6e1201e4113f431446c807d13a3775e0116e
2 Author: Jason A. Donenfeld <zx2c4 <AT> gentoo <DOT> org>
3 AuthorDate: Thu Feb 6 15:28:50 2020 +0000
4 Commit: Jason A. Donenfeld <zx2c4 <AT> gentoo <DOT> org>
5 CommitDate: Thu Feb 6 15:29:16 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=519c6e12
7
8 net-vpn/wireguard-tools: bump to 1.0.20200206
9
10 Package-Manager: Portage-2.3.86, Repoman-2.3.20
11 Signed-off-by: Jason A. Donenfeld <zx2c4 <AT> gentoo.org>
12
13 net-vpn/wireguard-tools/Manifest | 2 +-
14 ....ebuild => wireguard-tools-1.0.20200206.ebuild} | 2 +-
15 .../wireguard-tools/wireguard-tools-9999.ebuild | 104 ---------------------
16 3 files changed, 2 insertions(+), 106 deletions(-)
17
18 diff --git a/net-vpn/wireguard-tools/Manifest b/net-vpn/wireguard-tools/Manifest
19 index e31bfc087d7..ab902b9c8aa 100644
20 --- a/net-vpn/wireguard-tools/Manifest
21 +++ b/net-vpn/wireguard-tools/Manifest
22 @@ -1 +1 @@
23 -DIST wireguard-tools-1.0.20200121.tar.xz 92804 BLAKE2B 206a6f3da102c4473c160f584de834704ea31e2f2dc842a8c5c28d66cf4ffe40746aca22d8efe336ab4c0433ef673a06468816b7e6cc51e80740acdb38782eaf SHA512 cd22467916c59ab53440e072fee6d0b01f2f9ee06fc3b71de4e74bc3aab05caf25519e5f723d9d160c491f917b7f064ee6b491c74edb52d7d2c29a08d86e41c2
24 +DIST wireguard-tools-1.0.20200206.tar.xz 92288 BLAKE2B 028717e09177ecd5836af32917ab62b645c027e72dbe69c1874db2a54675f957cb6cd551cf03f0a29e5c328abd9f3c33db001f680f3980a958aa1b47a673944d SHA512 c1ea44afb105ce11595f761d1c44298341fc9f919a01d17b77c9f1ee2ff314a75c59277c2561278016a64abc7c6ea970e04539658bfd1998f65328bc21139512
25
26 diff --git a/net-vpn/wireguard-tools/wireguard-tools-1.0.20200121.ebuild b/net-vpn/wireguard-tools/wireguard-tools-1.0.20200206.ebuild
27 similarity index 99%
28 rename from net-vpn/wireguard-tools/wireguard-tools-1.0.20200121.ebuild
29 rename to net-vpn/wireguard-tools/wireguard-tools-1.0.20200206.ebuild
30 index 5600d6cff47..641da7119c1 100644
31 --- a/net-vpn/wireguard-tools/wireguard-tools-1.0.20200121.ebuild
32 +++ b/net-vpn/wireguard-tools/wireguard-tools-1.0.20200206.ebuild
33 @@ -22,7 +22,7 @@ SLOT="0"
34 IUSE="+wg-quick"
35
36 BDEPEND="virtual/pkgconfig"
37 -DEPEND="net-libs/libmnl"
38 +DEPEND=""
39 RDEPEND="${DEPEND}
40 wg-quick? (
41 || ( net-firewall/nftables net-firewall/iptables )
42
43 diff --git a/net-vpn/wireguard-tools/wireguard-tools-9999.ebuild b/net-vpn/wireguard-tools/wireguard-tools-9999.ebuild
44 deleted file mode 100644
45 index bd16ac3af08..00000000000
46 --- a/net-vpn/wireguard-tools/wireguard-tools-9999.ebuild
47 +++ /dev/null
48 @@ -1,104 +0,0 @@
49 -# Copyright 1999-2019 Gentoo Authors
50 -# Distributed under the terms of the GNU General Public License v2
51 -
52 -EAPI=7
53 -
54 -inherit linux-info bash-completion-r1 systemd
55 -
56 -DESCRIPTION="Required tools for WireGuard, such as wg(8) and wg-quick(8)"
57 -HOMEPAGE="https://www.wireguard.com/"
58 -
59 -if [[ ${PV} == 9999 ]]; then
60 - inherit git-r3
61 - EGIT_REPO_URI="https://git.zx2c4.com/wireguard-tools"
62 - KEYWORDS=""
63 -else
64 - SRC_URI="https://git.zx2c4.com/wireguard-tools/snapshot/wireguard-tools-${PV}.tar.xz"
65 - KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86"
66 -fi
67 -
68 -LICENSE="GPL-2"
69 -SLOT="0"
70 -IUSE="+wg-quick"
71 -
72 -BDEPEND="virtual/pkgconfig"
73 -DEPEND="net-libs/libmnl"
74 -RDEPEND="${DEPEND}
75 - wg-quick? (
76 - || ( net-firewall/nftables net-firewall/iptables )
77 - virtual/resolvconf
78 - )
79 - !<virtual/wireguard-1
80 -"
81 -
82 -wg_quick_optional_config_nob() {
83 - CONFIG_CHECK="$CONFIG_CHECK ~$1"
84 - declare -g ERROR_$1="CONFIG_$1: This option is required for automatic routing of default routes inside of wg-quick(8), though it is not required for general WireGuard usage."
85 -}
86 -
87 -pkg_setup() {
88 - use wg-quick || return 0
89 - wg_quick_optional_config_nob IP_ADVANCED_ROUTER
90 - wg_quick_optional_config_nob IP_MULTIPLE_TABLES
91 - wg_quick_optional_config_nob IPV6_MULTIPLE_TABLES
92 - if has_version net-firewall/nftables; then
93 - wg_quick_optional_config_nob NF_TABLES
94 - wg_quick_optional_config_nob NF_TABLES_IPV4
95 - wg_quick_optional_config_nob NF_TABLES_IPV6
96 - wg_quick_optional_config_nob NFT_CT
97 - wg_quick_optional_config_nob NFT_FIB
98 - wg_quick_optional_config_nob NFT_FIB_IPV4
99 - wg_quick_optional_config_nob NFT_FIB_IPV6
100 - elif has_version net-firewall/iptables; then
101 - wg_quick_optional_config_nob NETFILTER_XTABLES
102 - wg_quick_optional_config_nob NETFILTER_XT_MARK
103 - wg_quick_optional_config_nob NETFILTER_XT_CONNMARK
104 - wg_quick_optional_config_nob NETFILTER_XT_MATCH_COMMENT
105 - wg_quick_optional_config_nob IP6_NF_RAW
106 - wg_quick_optional_config_nob IP_NF_RAW
107 - wg_quick_optional_config_nob IP6_NF_FILTER
108 - wg_quick_optional_config_nob IP_NF_FILTER
109 - fi
110 - linux-info_pkg_setup
111 -}
112 -
113 -src_compile() {
114 - emake RUNSTATEDIR="${EPREFIX}/run" -C src CC="$(tc-getCC)" LD="$(tc-getLD)"
115 -}
116 -
117 -src_install() {
118 - dodoc README.md
119 - dodoc -r contrib
120 - emake \
121 - WITH_BASHCOMPLETION=yes \
122 - WITH_SYSTEMDUNITS=yes \
123 - WITH_WGQUICK=$(usex wg-quick) \
124 - DESTDIR="${D}" \
125 - BASHCOMPDIR="$(get_bashcompdir)" \
126 - SYSTEMDUNITDIR="$(systemd_get_systemunitdir)" \
127 - PREFIX="${EPREFIX}/usr" \
128 - -C src install
129 -}
130 -
131 -pkg_postinst() {
132 - einfo
133 - einfo "After installing WireGuard, if you'd like to try sending some packets through"
134 - einfo "WireGuard, you may use, for testing purposes only, the insecure client.sh"
135 - einfo "test example script:"
136 - einfo
137 - einfo " \$ bzcat ${ROOT}/usr/share/doc/${PF}/contrib/ncat-client-server/client.sh.bz2 | sudo bash -"
138 - einfo
139 - einfo "This will automatically setup interface wg0, through a very insecure transport"
140 - einfo "that is only suitable for demonstration purposes. You can then try loading the"
141 - einfo "hidden website or sending pings:"
142 - einfo
143 - einfo " \$ chromium http://192.168.4.1"
144 - einfo " \$ ping 192.168.4.1"
145 - einfo
146 - einfo "If you'd like to redirect your internet traffic, you can run it with the"
147 - einfo "\"default-route\" argument. You may not use this server for any abusive or illegal"
148 - einfo "purposes. It is for quick testing only."
149 - einfo
150 - einfo "More info on getting started can be found at: https://www.wireguard.com/quickstart/"
151 - einfo
152 -}