commit: 5493d58f7193edba37a56af5f1afdd631554c115 Author: Adrian Ratiu <adrian.ratiu <AT> collabora <DOT> com> AuthorDate: Fri Feb 19 16:46:27 2021 +0000 Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org> CommitDate: Fri Feb 26 16:53:06 2021 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5493d58f
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 <adrian.ratiu <AT> collabora.com> Closes: https://github.com/gentoo/gentoo/pull/19546 Signed-off-by: Lars Wendler <polynomial-c <AT> gentoo.org> net-dialup/ppp/ppp-2.4.9-r2.ebuild | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/net-dialup/ppp/ppp-2.4.9-r2.ebuild b/net-dialup/ppp/ppp-2.4.9-r2.ebuild index ac481c696fb..6a3902fbd72 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
