net-vpn/networkmanager-l2tp: use correct ppp plugin path

By default /usr/lib64/pppd/2.4.7/ path used. This will use right path from portage.

Bug: https://bugs.gentoo.org/722718
Closes: https://github.com/gentoo/gentoo/pull/20926
Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
Dmitrii Tochanskii
2021-07-25 04:32:02 +01:00
committed by Sam James
parent 651ad938b2
commit 4a43031d7e
@@ -20,7 +20,7 @@ IUSE="gnome static-libs"
RDEPEND="
>=net-misc/networkmanager-1.2[ppp]
dev-libs/dbus-glib
net-dialup/ppp[eap-tls]
net-dialup/ppp:=[eap-tls]
net-dialup/xl2tpd
>=dev-libs/glib-2.32
|| (
@@ -32,8 +32,8 @@ RDEPEND="
app-crypt/libsecret
gnome-extra/nm-applet
)"
BDEPEND="${RDEPEND}
DEPEND="${RDEPEND}"
BDEPEND="
sys-devel/gettext
dev-util/intltool
virtual/pkgconfig"
@@ -46,8 +46,13 @@ src_prepare() {
}
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)
)