diff options
Diffstat (limited to 'net-vpn')
-rw-r--r-- | net-vpn/Manifest.gz | bin | 7737 -> 7923 bytes | |||
-rw-r--r-- | net-vpn/i2pd/Manifest | 3 | ||||
-rw-r--r-- | net-vpn/i2pd/files/i2pd-2.52.0-miniupnp.patch | 37 | ||||
-rw-r--r-- | net-vpn/i2pd/i2pd-2.52.0.ebuild | 2 | ||||
-rw-r--r-- | net-vpn/microsoft-azurevpnclient/Manifest | 4 | ||||
-rw-r--r-- | net-vpn/microsoft-azurevpnclient/files/microsoft-azurevpnclient-sudo-group.patch | 13 | ||||
-rw-r--r-- | net-vpn/microsoft-azurevpnclient/metadata.xml | 8 | ||||
-rw-r--r-- | net-vpn/microsoft-azurevpnclient/microsoft-azurevpnclient-3.0.0.ebuild | 89 |
8 files changed, 155 insertions, 1 deletions
diff --git a/net-vpn/Manifest.gz b/net-vpn/Manifest.gz Binary files differindex e930c192b055..6ffa163d68d8 100644 --- a/net-vpn/Manifest.gz +++ b/net-vpn/Manifest.gz diff --git a/net-vpn/i2pd/Manifest b/net-vpn/i2pd/Manifest index ffecf9850541..e4e9554c488c 100644 --- a/net-vpn/i2pd/Manifest +++ b/net-vpn/i2pd/Manifest @@ -2,6 +2,7 @@ AUX 99i2pd 44 BLAKE2B d7a2d45f79ecb34f50eaddc09f318339eedfb2444d0a96d97691c6f395 AUX i2pd-2.38.0-r1.logrotate 294 BLAKE2B 183e9d0a88a3ff4b1116d4f8475862ed110cf2bad43a1858b55fb6b502bf0c7fc975958e7a88fe9cf2bb331330e7aa70f13a3d9ce64fb525060bd84e965af5f2 SHA512 d2460d1d1b65222a0e3b89e464e75b2fd94fc65a49afe78a26c19e7a3c097b2334c02d58faad5f4ff06e3e4847425ed383f1963be2dbb9282a77c5b287a30fe2 AUX i2pd-2.38.0.service 906 BLAKE2B 583c1856ceada5e60b7f595452afbe3e254616185d641e63f7931ccc972a52123745f72f1fffaf122be6fd3d4dadb311d58f4d639e0d2ba2187bde21f5340d2d SHA512 233722990f5e9934558b05a0aee5e0ef6af9bcd0b5f9c38cb9d1e61ffa37a4d80f403047dc15ec706bc03185d2e1ca27015210b6757a71786ad0bb4b75662981 AUX i2pd-2.39.0.initd 1437 BLAKE2B 6f4e7b585e2acbabdb58999387954cac0ac5edd8bc7c3cec686f3ecb6e3b7b04a13c1de57ba081da7dee4c35b72bc65f2a1ac3c4dccf3a57c22b24eba248664f SHA512 58f28b38a39e3e7a1bf378e17dad1c0879c641d6c479db887f33e2689dde29f4f2fa1b9d3dc9a6ab03eb35d2e834b5691de2bc7d9c97c9a8523ebea1e9cd637e +AUX i2pd-2.52.0-miniupnp.patch 1198 BLAKE2B 3448fb24ca2c41cf37b15a4c45e8245d0c5dbf535e3945b9f7093585f438b48319dbfd810268690aa4a49a5946a50681842baff63afebdda4dcd2d1f85959130 SHA512 c215df5e32142732f405534ad0fa874e8fa15f18513423f833c60f3d2bc4d143e5cf3065a0602b43636988331175062304996aa47ec0e0aead36a897b7383baa AUX i2pd-2.6.0-r3.confd 322 BLAKE2B 1abce31d300785fe0f42eb0c15bc26f723e99bfe4f3d21ef4d83620c064838d0e27f89f287a97404276490b848bd1372a40b915d4830b7755d801c4bda551099 SHA512 083f4c860d7556bd14f2765b098743c25f996ef16de3982430ff27ac7711051738d48709654441099ea8c755b6d9a6e25b52286f7e8c928d3f39f1207a9517a9 DIST i2pd-2.49.0.tar.gz 654406 BLAKE2B 93b1bba73d308a7a6163b0b51ea59a3e11ea2d635d7275d71338ecd06d8d1dfb430e3e177aad0b3ae35f7e0e0bd95acb4e7750cbba70a4ded97fcc7596a1912b SHA512 f2461bf6e1ec2f1b581c8528de57c92350133642cd34ed9a6b2f4c8e8199aa9e5b9ff76d967c60350606f1ab5359f8a7dbbcaa58284e8769cdfa7e0a29a384af DIST i2pd-2.50.2.tar.gz 663010 BLAKE2B 671a294f1b4de3a71031c071330adad378e8fa418c95dbaeaba824071d38bc579d12113e899f00873e3a9a0a365f7ddc52ec9b728ffb19f254ffd8cacd9c945b SHA512 7df7a578711a959feee4326060829cf87c0d1669e473934549cb59d868a7aef7300ecd2d7a6b92a2295aa7e97964cc16d0e44a334db917e22b0b59573a9052de @@ -10,5 +11,5 @@ DIST i2pd-2.52.0.tar.gz 677023 BLAKE2B 785eeb074df3e8a046ae3c6aa1204b52275ced565 EBUILD i2pd-2.49.0.ebuild 1951 BLAKE2B 1cc165406b9fc798fb0954971781e242d8aa05bd20543f35316a996acbdaaad95ff5d5d3a0185004d765b4d6abfdfe1e23eb0a32d4d47aeef0cf5c429f73c988 SHA512 7c0c8e4933d9a005eb4bf4ac5b17aa82ccf49a898100165464f4e347759f69d5fabd4fad216ae6a5d623312ef1806995a50e11380756e698c01973f046651c83 EBUILD i2pd-2.50.2.ebuild 1950 BLAKE2B e157516f805383504a9f5ef62da27a5fa0e05e5c887e8e3d8425b040236e3636aa6ece75ee33a04f2580a66df4ceb3266c3e0fb1749e48c97f2541f873c511db SHA512 f168aeb061b1a8401e3511b0f530934b2205f01b98ed217743f5e88790decdcae3c0dbc4c83cc6d6044f3092a6a4e25c47cb49371ab3a474116833e0234b13cf EBUILD i2pd-2.51.0.ebuild 1951 BLAKE2B b1e91ce459c30546a424386278ede00e1a6375fb75b69d4223c65896f574f9634e544301b0b7538170f3ada2f2f016c6025dad222968f10d100e3ae7cfb5cff0 SHA512 6011682fdf5ec09d8537a3c6f20cb9951655ae293bb476b0e1f30a14f923627d69def4c86f8a96bceb3156ffa296773fafff01f1308f34029c3c3054aa7636c7 -EBUILD i2pd-2.52.0.ebuild 1951 BLAKE2B b1e91ce459c30546a424386278ede00e1a6375fb75b69d4223c65896f574f9634e544301b0b7538170f3ada2f2f016c6025dad222968f10d100e3ae7cfb5cff0 SHA512 6011682fdf5ec09d8537a3c6f20cb9951655ae293bb476b0e1f30a14f923627d69def4c86f8a96bceb3156ffa296773fafff01f1308f34029c3c3054aa7636c7 +EBUILD i2pd-2.52.0.ebuild 1998 BLAKE2B bde3e799385fd58405fbe8a018675d37f97195287cc0a3ff5755109843a0e838e7de1d43e9715b555fc644c8c29fa0b535fd31408d78919361612834d8134aba SHA512 18869ec2a49814e905df5262cce17764befc14fa6d14db801778cd2bda9121b79c0e2d4c5c1b0f29340a28092d4f30fc37162df8be945c523bf5eaa69053bf29 MISC metadata.xml 588 BLAKE2B a7a342599b07b88c0fc192386a7722eeb864b8f1debc4f30d6825e829b9c684d085edc6ef0b4e7d8e5bf3e04e93629df2925341784b2221d591084098a8a2d3e SHA512 86ca6c50c7eb8f06269a3e0b84f1189f4be57f40ea92b9cae3b9299b02c63d5a89fbb9ca6f16588a682ea1bb193c6395b55f67799c07e4bbf60f046185fb5d0e diff --git a/net-vpn/i2pd/files/i2pd-2.52.0-miniupnp.patch b/net-vpn/i2pd/files/i2pd-2.52.0-miniupnp.patch new file mode 100644 index 000000000000..5c9ef9231351 --- /dev/null +++ b/net-vpn/i2pd/files/i2pd-2.52.0-miniupnp.patch @@ -0,0 +1,37 @@ +commit 192e9ad7f6a6995ecb843fbbefe5425d0b37f6ee +Author: Stefan Strogin <stefan@steils.org> +Date: Mon Jun 17 17:10:23 2024 +0000 + + Support miniupnp-2.2.8 (fixes #2071) + + Use UPNP_GetValidIGD for getting external IP. + +diff --git a/daemon/UPnP.cpp b/daemon/UPnP.cpp +index 043d935e..7885578e 100644 +--- a/daemon/UPnP.cpp ++++ b/daemon/UPnP.cpp +@@ -115,10 +115,16 @@ namespace transport + return; + } + ++#if (MINIUPNPC_API_VERSION >= 18) ++ err = UPNP_GetValidIGD (m_Devlist, &m_upnpUrls, &m_upnpData, m_NetworkAddr, sizeof (m_NetworkAddr), ++ m_externalIPAddress, sizeof (m_externalIPAddress)); ++#else + err = UPNP_GetValidIGD (m_Devlist, &m_upnpUrls, &m_upnpData, m_NetworkAddr, sizeof (m_NetworkAddr)); ++#endif + m_upnpUrlsInitialized=err!=0; + if (err == UPNP_IGD_VALID_CONNECTED) + { ++#if (MINIUPNPC_API_VERSION < 18) + err = UPNP_GetExternalIPAddress (m_upnpUrls.controlURL, m_upnpData.first.servicetype, m_externalIPAddress); + if(err != UPNPCOMMAND_SUCCESS) + { +@@ -126,6 +132,7 @@ namespace transport + return; + } + else ++#endif + { + LogPrint (eLogError, "UPnP: Found Internet Gateway Device ", m_upnpUrls.controlURL); + if (!m_externalIPAddress[0]) diff --git a/net-vpn/i2pd/i2pd-2.52.0.ebuild b/net-vpn/i2pd/i2pd-2.52.0.ebuild index 0346c80cb527..504fce8a853d 100644 --- a/net-vpn/i2pd/i2pd-2.52.0.ebuild +++ b/net-vpn/i2pd/i2pd-2.52.0.ebuild @@ -27,6 +27,8 @@ CMAKE_USE_DIR="${WORKDIR}/${P}/build" DOCS=( ../README.md ../contrib/i2pd.conf ../contrib/tunnels.conf ) +PATCHES=( "${FILESDIR}/${P}-miniupnp.patch" ) + pkg_pretend() { if use i2p-hardening && ! tc-is-gcc; then die "i2p-hardening requires gcc" diff --git a/net-vpn/microsoft-azurevpnclient/Manifest b/net-vpn/microsoft-azurevpnclient/Manifest new file mode 100644 index 000000000000..76089cd2e018 --- /dev/null +++ b/net-vpn/microsoft-azurevpnclient/Manifest @@ -0,0 +1,4 @@ +AUX microsoft-azurevpnclient-sudo-group.patch 796 BLAKE2B 1f0bf8832749cbd5fa71b1aeb88ed6fbffe750eea210805987402df29befdd4e9dac04adadcc160b45056c7bcd3752bb93742a51a194aed3cca9717ec18d1d6e SHA512 8ad44e122e7bbcec4432908c263e12ede87d1a093c78221618a93ae2afc7d28ad2420aec75fce8dedf8374b5c95528f011a4f9f2d86d23987f20bd0689cc1696 +DIST microsoft-azurevpnclient_3.0.0_amd64.deb 12590862 BLAKE2B c8ef50ba9500ea1d6f576f43b9b3d9cc2127efdc52f9df3b880e198d08c467e2f4f17f659cebc5a0374174e7738756963f6669ad0d175c71ffe932b3b58b5c90 SHA512 742beed521ad0d5ccc58e34005e687b66e878da4b14aa204239c80181bfd6718689da490378e6c5d6c812c16991f3c853f1c1ede1074388c8697d5798a58bb03 +EBUILD microsoft-azurevpnclient-3.0.0.ebuild 1959 BLAKE2B eb26c6324723a88770c524070f5680f527c374c4fbeceb52c28a4886aad2a3575df67ff5aebc51c6157a54508831a5a675071fe4ecb3f8ae1d8bbcde238d49df SHA512 41409932b47b913e17dbd19049484c8eb7368a102c86bf78ff7e94e048aba7e3661175ace48791ff3058b5b16f28e951165550444cae88e2b48eb360115f4660 +MISC metadata.xml 248 BLAKE2B 97ed0d2320e1aa2d1cca6b63b0cf9cb07669ea73ac0dad7a8f7db4f510d3b2dc28cbf5a7c019f15ac87c25c5e51e619386694b49d21fc19f4092047c8e382287 SHA512 23bb29604f7cc644073025158d751004189a85fe6be88a7817afebad685c3b73f21cdb3e5d05f16699baa5d6b52f1e3a1f365b1ad7ea09bfcd204182e646f203 diff --git a/net-vpn/microsoft-azurevpnclient/files/microsoft-azurevpnclient-sudo-group.patch b/net-vpn/microsoft-azurevpnclient/files/microsoft-azurevpnclient-sudo-group.patch new file mode 100644 index 000000000000..3dc29657ef5a --- /dev/null +++ b/net-vpn/microsoft-azurevpnclient/files/microsoft-azurevpnclient-sudo-group.patch @@ -0,0 +1,13 @@ +Gentoo does not have a sudo group, so use wheel instead. + +diff -Naur a/var/lib/polkit-1/localauthority/50-local.d/10-microsoft-azurevpnclient.pkla b/var/lib/polkit-1/localauthority/50-local.d/10-microsoft-azurevpnclient.pkla +--- a/var/lib/polkit-1/localauthority/50-local.d/10-microsoft-azurevpnclient.pkla 2023-04-26 12:18:12.000000000 +0100 ++++ b/var/lib/polkit-1/localauthority/50-local.d/10-microsoft-azurevpnclient.pkla 2024-05-03 11:23:22.657251999 +0100 +@@ -1,5 +1,5 @@ +-[Allow sudo group users to set DNS domains and servers without prompt] +-Identity=unix-group:sudo ++[Allow wheel group users to set DNS domains and servers without prompt] ++Identity=unix-group:wheel + Action=org.freedesktop.resolve1.set-domains;org.freedesktop.resolve1.set-dns-servers + ResultAny=yes + ResultInactive=yes diff --git a/net-vpn/microsoft-azurevpnclient/metadata.xml b/net-vpn/microsoft-azurevpnclient/metadata.xml new file mode 100644 index 000000000000..374cd4dedb33 --- /dev/null +++ b/net-vpn/microsoft-azurevpnclient/metadata.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <email>chewi@gentoo.org</email> + <name>James Le Cuirot</name> + </maintainer> +</pkgmetadata> diff --git a/net-vpn/microsoft-azurevpnclient/microsoft-azurevpnclient-3.0.0.ebuild b/net-vpn/microsoft-azurevpnclient/microsoft-azurevpnclient-3.0.0.ebuild new file mode 100644 index 000000000000..1248eaf86816 --- /dev/null +++ b/net-vpn/microsoft-azurevpnclient/microsoft-azurevpnclient-3.0.0.ebuild @@ -0,0 +1,89 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit desktop fcaps prefix unpacker xdg + +DESCRIPTION="Microsoft Azure VPN client for connecting securely to the Azure cloud" +HOMEPAGE="https://learn.microsoft.com/en-us/azure/vpn-gateway/point-to-site-certificate-client-linux-azure-vpn-client" +SRC_URI="https://packages.microsoft.com/ubuntu/22.04/prod/pool/main/${PN:0:1}/${PN}/${PN}_${PV}_amd64.deb" +S="${WORKDIR}" +LICENSE="microsoft-azurevpnclient Apache-2.0 BSD-2 BSD ISC MIT openssl SSLeay" +SLOT="0" +KEYWORDS="-* ~amd64" +RESTRICT="bindist mirror" + +RDEPEND=" + app-accessibility/at-spi2-core:2 + app-crypt/libsecret + dev-db/sqlite:3 + dev-libs/glib:2 + dev-libs/openssl:0/3 + media-libs/fontconfig:1.0 + media-libs/libepoxy + net-misc/curl + sys-apps/systemd[resolvconf] + sys-auth/polkit + sys-auth/polkit-pkla-compat + sys-libs/libcap + sys-libs/zlib + x11-libs/gtk+:3 + x11-libs/pango + prefix? ( dev-util/patchelf ) +" + +PATCHES=( + "${FILESDIR}"/${PN}-sudo-group.patch +) + +QA_PREBUILT="*" +DIR="/opt/microsoft/${PN}" + +src_unpack() { + unpack_deb ${A} +} + +src_configure() { + hprefixify \ + etc/rsyslog.d/*.conf \ + usr/share/applications/*.desktop \ + usr/share/polkit-1/rules.d/*.rules + + if use prefix; then + patchelf --set-rpath "${EPREFIX}${DIR}/lib" "${DIR#/}"/{lib/*,${PN}} || die + fi +} + +src_install() { + insinto "${DIR}" + doins -r "${DIR#/}"/data + + exeinto "${DIR}"/lib + doexe "${DIR#/}"/lib/* + + exeinto "${DIR}" + doexe "${DIR#/}"/${PN} + dosym "../../${DIR#/}/${PN}" /usr/bin/${PN} + + insinto /usr/share/polkit-1 + doins -r usr/share/polkit-1/* + + insinto /var/lib/polkit-1 + doins -r var/lib/polkit-1/* + + insinto /etc + doins -r etc/* + + domenu usr/share/applications/*.desktop + insinto /usr/share/icons + doins usr/share/icons/*.png + + gunzip usr/share/doc/${PN}/changelog.gz || die + dodoc usr/share/doc/${PN}/changelog +} + +pkg_postinst() { + fcaps cap_net_admin+eip "${EROOT}${DIR}/${PN}" + xdg_pkg_postinst +} |