From 5493d58f7193edba37a56af5f1afdd631554c115 Mon Sep 17 00:00:00 2001 From: Adrian Ratiu Date: Fri, 19 Feb 2021 18:46:27 +0200 Subject: net-dialup/ppp: add back option to disable eap-tls The eap-tls use flag went away between ppp-2.4.8 and ppp-2.4.9 maybe due to the fact that upstream now supports eap-tls and has it enabled by default (no more ebuild patches for it). Regardless, having an option to disable it is still useful for those who want to minimize attack vector surface so add it back. Signed-off-by: Adrian Ratiu Closes: https://github.com/gentoo/gentoo/pull/19546 Signed-off-by: Lars Wendler --- net-dialup/ppp/ppp-2.4.9-r2.ebuild | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'net-dialup') diff --git a/net-dialup/ppp/ppp-2.4.9-r2.ebuild b/net-dialup/ppp/ppp-2.4.9-r2.ebuild index ac481c696fb5..6a3902fbd723 100644 --- a/net-dialup/ppp/ppp-2.4.9-r2.ebuild +++ b/net-dialup/ppp/ppp-2.4.9-r2.ebuild @@ -15,7 +15,7 @@ SRC_URI="https://github.com/paulusmack/ppp/archive/${P}.tar.gz LICENSE="BSD GPL-2" SLOT="0/${PV}" KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86" -IUSE="activefilter atm dhcp gtk ipv6 libressl pam radius" +IUSE="activefilter atm dhcp +eap-tls gtk ipv6 libressl pam radius" DEPEND=" activefilter? ( net-libs/libpcap ) @@ -69,6 +69,14 @@ src_prepare() { -i pppd/plugins/Makefile.linux || die fi + if ! use eap-tls ; then + einfo "Disabling EAP-TLS pppd auth support" + sed -i '/^USE_EAPTLS=y/s:^:#:' pppd/Makefile.linux || die + einfo "Disabling EAP-TLS plugin support" + sed -i '/^CFLAGS += -DUSE_EAPTLS=1/s:^:#:' \ + pppd/plugins/Makefile.linux || die + fi + # Set correct libdir sed -i -e "s:/lib/pppd:/$(get_libdir)/pppd:" \ pppd/{pathnames.h,pppd.8} || die -- cgit v1.2.3-65-gdbad