summaryrefslogtreecommitdiff
path: root/net-vpn/microsoft-azurevpnclient
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2024-06-25 00:12:20 +0100
committerV3n3RiX <venerix@koprulu.sector>2024-06-25 00:12:20 +0100
commit996a2bda06cb164877d5d952774a6db1b271c2f3 (patch)
tree31930352b48fc7622d658ae37658c57ad9511ef6 /net-vpn/microsoft-azurevpnclient
parent67e5603b2844a6657dd0438fa26626b013e5567f (diff)
gentoo auto-resync : 25:06:2024 - 00:12:20
Diffstat (limited to 'net-vpn/microsoft-azurevpnclient')
-rw-r--r--net-vpn/microsoft-azurevpnclient/Manifest4
-rw-r--r--net-vpn/microsoft-azurevpnclient/files/microsoft-azurevpnclient-sudo-group.patch13
-rw-r--r--net-vpn/microsoft-azurevpnclient/metadata.xml8
-rw-r--r--net-vpn/microsoft-azurevpnclient/microsoft-azurevpnclient-3.0.0.ebuild89
4 files changed, 114 insertions, 0 deletions
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
+}