1 |
commit: afb18759f2652a16aae3ac7553e6aca576ec334b |
2 |
Author: Jason A. Donenfeld <zx2c4 <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Dec 28 16:01:17 2020 +0000 |
4 |
Commit: Jason A. Donenfeld <zx2c4 <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Dec 28 16:01:47 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=afb18759 |
7 |
|
8 |
net-vpn/wireguard-modules: stable trivial bump |
9 |
|
10 |
Package-Manager: Portage-3.0.12, Repoman-3.0.2 |
11 |
Signed-off-by: Jason A. Donenfeld <zx2c4 <AT> gentoo.org> |
12 |
|
13 |
net-vpn/wireguard-modules/Manifest | 1 - |
14 |
.../wireguard-modules-1.0.20201112.ebuild | 99 ---------------------- |
15 |
.../wireguard-modules-1.0.20201221.ebuild | 2 +- |
16 |
3 files changed, 1 insertion(+), 101 deletions(-) |
17 |
|
18 |
diff --git a/net-vpn/wireguard-modules/Manifest b/net-vpn/wireguard-modules/Manifest |
19 |
index b07af4b2aae..b1b69be60db 100644 |
20 |
--- a/net-vpn/wireguard-modules/Manifest |
21 |
+++ b/net-vpn/wireguard-modules/Manifest |
22 |
@@ -1,2 +1 @@ |
23 |
-DIST wireguard-linux-compat-1.0.20201112.tar.xz 262220 BLAKE2B 2bbcce294c7d0578e820b285074bdbff2c96908ccc10294e05aa846a6f0b614930ca71536cb954233480c9e294692df1f4954b8f11db86deecdc93373b6e1d4f SHA512 c3ad6611d1d8abf163e6626ceeb1329b8b4a745159021473fee134858e22f6a5d3418b39f165f2f2f0bde1891d560f773cdb4d1f4fb60d61b35aff01d59aee54 |
24 |
DIST wireguard-linux-compat-1.0.20201221.tar.xz 262596 BLAKE2B fffd0f3a5501aa5ad0e52f3210edf507b0db63230d59b3204104584cc2b1d739311262a0e0180ce5cd5d6e74c5228d01a631fdbba8be9788bda2d80df8cfcbd0 SHA512 1b06eeda525903661657cae4f462cf2ef464bce292b0a9ae37425d254142ed4137ca7a2296da0f11447f89a4d921c3cb7cee018a4f691131541f0ec32f99c458 |
25 |
|
26 |
diff --git a/net-vpn/wireguard-modules/wireguard-modules-1.0.20201112.ebuild b/net-vpn/wireguard-modules/wireguard-modules-1.0.20201112.ebuild |
27 |
deleted file mode 100644 |
28 |
index a3aea3fe6a5..00000000000 |
29 |
--- a/net-vpn/wireguard-modules/wireguard-modules-1.0.20201112.ebuild |
30 |
+++ /dev/null |
31 |
@@ -1,99 +0,0 @@ |
32 |
-# Copyright 1999-2020 Gentoo Authors |
33 |
-# Distributed under the terms of the GNU General Public License v2 |
34 |
- |
35 |
-EAPI=7 |
36 |
- |
37 |
-MODULES_OPTIONAL_USE="module" |
38 |
-inherit linux-mod bash-completion-r1 |
39 |
- |
40 |
-DESCRIPTION="Simple yet fast and modern VPN that utilizes state-of-the-art cryptography." |
41 |
-HOMEPAGE="https://www.wireguard.com/" |
42 |
- |
43 |
-if [[ ${PV} == 9999 ]]; then |
44 |
- inherit git-r3 |
45 |
- EGIT_REPO_URI="https://git.zx2c4.com/wireguard-linux-compat" |
46 |
-else |
47 |
- SRC_URI="https://git.zx2c4.com/wireguard-linux-compat/snapshot/wireguard-linux-compat-${PV}.tar.xz" |
48 |
- S="${WORKDIR}/wireguard-linux-compat-${PV}" |
49 |
- KEYWORDS="~alpha amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sparc x86" |
50 |
-fi |
51 |
- |
52 |
-LICENSE="GPL-2" |
53 |
-SLOT="0" |
54 |
-IUSE="debug +module module-src" |
55 |
- |
56 |
-DEPEND="" |
57 |
-RDEPEND="${DEPEND}" |
58 |
- |
59 |
-MODULE_NAMES="wireguard(kernel/drivers/net:src)" |
60 |
-BUILD_TARGETS="module" |
61 |
-CONFIG_CHECK="NET INET NET_UDP_TUNNEL CRYPTO_ALGAPI" |
62 |
- |
63 |
-pkg_setup() { |
64 |
- if use module; then |
65 |
- linux-mod_pkg_setup |
66 |
- if [[ -f $KERNEL_DIR/include/uapi/linux/wireguard.h ]]; then |
67 |
- eerror |
68 |
- eerror "WireGuard has been merged upstream into this kernel. Therefore," |
69 |
- eerror "you no longer need this compatibility ebuild. Instead, simply" |
70 |
- eerror "enable CONFIG_WIREGUARD=y in your kernel configuration." |
71 |
- eerror |
72 |
- die "Use CONFIG_WIREGUARD=y for this kernel, and do not use this package." |
73 |
- elif kernel_is -lt 3 10 0 || kernel_is -ge 5 6 0; then |
74 |
- die "This version of ${PN} requires Linux >= 3.10 and < 5.6." |
75 |
- fi |
76 |
- fi |
77 |
-} |
78 |
- |
79 |
-src_compile() { |
80 |
- BUILD_PARAMS="KERNELDIR=${KV_OUT_DIR}" |
81 |
- use debug && BUILD_PARAMS="CONFIG_WIREGUARD_DEBUG=y ${BUILD_PARAMS}" |
82 |
- use module && linux-mod_src_compile |
83 |
-} |
84 |
- |
85 |
-src_install() { |
86 |
- use module && linux-mod_src_install |
87 |
- use module-src && emake DESTDIR="${D}" PREFIX="${EPREFIX}/usr" -C src dkms-install |
88 |
-} |
89 |
- |
90 |
-pkg_postinst() { |
91 |
- if use module-src && ! use module; then |
92 |
- einfo |
93 |
- einfo "You have enabled the module-src USE flag without the module USE" |
94 |
- einfo "flag. This means that sources are installed to" |
95 |
- einfo "${ROOT}/usr/src/wireguard instead of having the" |
96 |
- einfo "kernel module compiled. You will need to compile the module" |
97 |
- einfo "yourself. Most likely, you don't want this USE flag, and should" |
98 |
- einfo "rather use USE=module" |
99 |
- einfo |
100 |
- fi |
101 |
- |
102 |
- if use module; then |
103 |
- linux-mod_pkg_postinst |
104 |
- local old new |
105 |
- if [[ $(uname -r) != "${KV_FULL}" ]]; then |
106 |
- ewarn |
107 |
- ewarn "You have just built WireGuard for kernel ${KV_FULL}, yet the currently running" |
108 |
- ewarn "kernel is $(uname -r). If you intend to use this WireGuard module on the currently" |
109 |
- ewarn "running machine, you will first need to reboot it into the kernel ${KV_FULL}, for" |
110 |
- ewarn "which this module was built." |
111 |
- ewarn |
112 |
- elif [[ -f /sys/module/wireguard/version ]] && \ |
113 |
- old="$(< /sys/module/wireguard/version)" && \ |
114 |
- new="$(modinfo -F version "${ROOT}/lib/modules/${KV_FULL}/net/wireguard.ko" 2>/dev/null)" && \ |
115 |
- [[ $old != "$new" ]]; then |
116 |
- ewarn |
117 |
- ewarn "You appear to have just upgraded WireGuard from version v$old to v$new." |
118 |
- ewarn "However, the old version is still running on your system. In order to use the" |
119 |
- ewarn "new version, you will need to remove the old module and load the new one. As" |
120 |
- ewarn "root, you can accomplish this with the following commands:" |
121 |
- ewarn |
122 |
- ewarn " # rmmod wireguard" |
123 |
- ewarn " # modprobe wireguard" |
124 |
- ewarn |
125 |
- ewarn "Do note that doing this will remove current WireGuard interfaces, so you may want" |
126 |
- ewarn "to gracefully remove them yourself prior." |
127 |
- ewarn |
128 |
- fi |
129 |
- fi |
130 |
-} |
131 |
|
132 |
diff --git a/net-vpn/wireguard-modules/wireguard-modules-1.0.20201221.ebuild b/net-vpn/wireguard-modules/wireguard-modules-1.0.20201221.ebuild |
133 |
index a346e8fae15..a3aea3fe6a5 100644 |
134 |
--- a/net-vpn/wireguard-modules/wireguard-modules-1.0.20201221.ebuild |
135 |
+++ b/net-vpn/wireguard-modules/wireguard-modules-1.0.20201221.ebuild |
136 |
@@ -15,7 +15,7 @@ if [[ ${PV} == 9999 ]]; then |
137 |
else |
138 |
SRC_URI="https://git.zx2c4.com/wireguard-linux-compat/snapshot/wireguard-linux-compat-${PV}.tar.xz" |
139 |
S="${WORKDIR}/wireguard-linux-compat-${PV}" |
140 |
- KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86" |
141 |
+ KEYWORDS="~alpha amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sparc x86" |
142 |
fi |
143 |
|
144 |
LICENSE="GPL-2" |