virtual/wireguard: mark for deprecation
authorJason A. Donenfeld <zx2c4@gentoo.org>
Mon, 30 Dec 2019 13:55:47 +0000 (14:55 +0100)
committerJason A. Donenfeld <zx2c4@gentoo.org>
Mon, 30 Dec 2019 14:00:13 +0000 (15:00 +0100)
Package-Manager: Portage-2.3.84, Repoman-2.3.20
Signed-off-by: Jason A. Donenfeld <zx2c4@gentoo.org>
profiles/package.deprecated
virtual/wireguard/wireguard-1.ebuild

index 55f871b9b6647a73ccbdaad07223c16b0896a739..93679901fd60f57f1e3cea42d4c98753ee987ef4 100644 (file)
 
 #--- END OF EXAMPLES ---
 
+# Jason A. Donenfeld <zx2c4@gentoo.org> (2019-12-30)
+# Directly install net-vpn/wireguard-tools and net-vpn/wireguard-modules.
+# This may be accomplished by running:
+#     emerge -nO net-vpn/wireguard-tools net-vpn/wireguard-modules
+#     emerge -C virtual/wireguard
+virtual/wireguard
+
 # Michał Górny <mgorny@gentoo.org> (2019-12-30)
 # PyPy packages have been restructured, and the virtual is no longer
 # necessary.  Depend on dev-python/pypy{,3} instead.
index a4ccb1517ed396e86872eccc98e33560fcf0f8ef..4fa639117c92343592a9f4afe3719aee0b72b529 100644 (file)
@@ -13,3 +13,17 @@ RDEPEND="
        tools? ( net-vpn/wireguard-tools )
        module? ( net-vpn/wireguard-modules )
 "
+
+pkg_postinst() {
+       ewarn
+       ewarn "This package, ${CATEGORY}/${PN}, has been deprecated, in favor of explicitly"
+       ewarn "merging the tools and the modules separately. You may accomplish this by"
+       ewarn "running:"
+       ewarn
+       ewarn "    emerge -nO net-vpn/wireguard-tools net-vpn/wireguard-modules"
+       ewarn "    emerge -C virtual/wireguard"
+       ewarn
+       ewarn "When Linux 5.6 comes out, net-vpn/wireguard-modules itself will be deprecated,"
+       ewarn "with its functionality having moved directly into Linux."
+       ewarn
+}