summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Kurakin <kuraga333@mail.ru>2022-08-10 18:26:57 +0300
committerSam James <sam@gentoo.org>2022-08-19 23:04:59 +0100
commit5e4174f65f2a5edb087560edb406e965ca5dfba0 (patch)
tree1daabec676e18488235fe26113314405c364ffe7 /net-vpn/networkmanager-l2tp
parentnet-mail/postfix-logwatch: drop 1.40.04 (diff)
downloadgentoo-5e4174f65f2a5edb087560edb406e965ca5dfba0.tar.gz
gentoo-5e4174f65f2a5edb087560edb406e965ca5dfba0.tar.bz2
gentoo-5e4174f65f2a5edb087560edb406e965ca5dfba0.zip
net-vpn/networkmanager-l2tp: fix net-misc/networkmanager dependency
Closes: https://bugs.gentoo.org/864805 Signed-off-by: Alexander Kurakin <kuraga333@mail.ru> Closes: https://github.com/gentoo/gentoo/pull/26811 Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'net-vpn/networkmanager-l2tp')
-rw-r--r--net-vpn/networkmanager-l2tp/networkmanager-l2tp-1.20.4-r1.ebuild62
1 files changed, 62 insertions, 0 deletions
diff --git a/net-vpn/networkmanager-l2tp/networkmanager-l2tp-1.20.4-r1.ebuild b/net-vpn/networkmanager-l2tp/networkmanager-l2tp-1.20.4-r1.ebuild
new file mode 100644
index 000000000000..833b02cd5708
--- /dev/null
+++ b/net-vpn/networkmanager-l2tp/networkmanager-l2tp-1.20.4-r1.ebuild
@@ -0,0 +1,62 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+MY_PN="NetworkManager-l2tp"
+MY_P="${MY_PN}-${PV}"
+
+inherit autotools gnome.org
+
+DESCRIPTION="NetworkManager L2TP plugin"
+HOMEPAGE="https://github.com/nm-l2tp/network-manager-l2tp"
+SRC_URI="https://github.com/nm-l2tp/${MY_PN}/releases/download/${PV}/${MY_P}.tar.xz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="gnome static-libs"
+
+RDEPEND="
+ >=net-misc/networkmanager-1.20[ppp]
+ dev-libs/dbus-glib
+ net-dialup/ppp:=[eap-tls]
+ net-dialup/xl2tpd
+ >=dev-libs/glib-2.32
+ || (
+ net-vpn/strongswan
+ net-vpn/libreswan
+ )
+ gnome? (
+ x11-libs/gtk+:3
+ app-crypt/libsecret
+ gnome-extra/nm-applet
+ )"
+DEPEND="${RDEPEND}"
+BDEPEND="
+ sys-devel/gettext
+ dev-util/intltool
+ virtual/pkgconfig"
+
+S="${WORKDIR}/${MY_P}"
+
+src_prepare() {
+ default
+
+ eautoreconf
+}
+
+src_configure() {
+ local PPPD_VER=$(best_version net-dialup/ppp)
+ PPPD_VER=${PPPD_VER#*/*-} # reduce it to ${PV}-${PR}
+ PPPD_VER=${PPPD_VER%%[_-]*} # main version without beta/pre/patch/revision
+
+ local myeconfargs=(
+ --localstatedir=/var
+ --with-pppd-plugin-dir=/usr/$(get_libdir)/pppd/${PPPD_VER}
+ $(use_with gnome)
+ $(use_enable static-libs static)
+ )
+
+ econf "${myeconfargs[@]}"
+}