commit:     9438b10001d2b2ca1ee30a6ee8515ac71d3ba157
Author:     Jaco Kroon <jkroon <AT> gentoo <DOT> org>
AuthorDate: Sun Feb 15 11:45:33 2026 +0000
Commit:     Jaco Kroon <jkroon <AT> gentoo <DOT> org>
CommitDate: Sun Feb 15 11:48:43 2026 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9438b100

net-dialup/xl2tpd: add 1.3.20

Signed-off-by: Jaco Kroon <jkroon <AT> gentoo.org>

 net-dialup/xl2tpd/Manifest             |  3 ++
 net-dialup/xl2tpd/metadata.xml         |  1 +
 net-dialup/xl2tpd/xl2tpd-1.3.20.ebuild | 73 ++++++++++++++++++++++++++++++++++
 3 files changed, 77 insertions(+)

diff --git a/net-dialup/xl2tpd/Manifest b/net-dialup/xl2tpd/Manifest
index 44643fe065a4..2f1bed7c71f4 100644
--- a/net-dialup/xl2tpd/Manifest
+++ b/net-dialup/xl2tpd/Manifest
@@ -1 +1,4 @@
+DIST xl2tpd-1.3.18-r2-Pass-remotenumber-to-pppd.patch 4074 BLAKE2B 
d1566a22c51dfc448df41424722571206dbedb36b48bafe19a629b5c0c3eadce17a899d387c5aa241f4367cbfef86f09322f4a7dd429eeb1fd82539a81f7aa76
 SHA512 
8a10ddfbb6998a4caeaf8a55334d5e4a3fdbe10e0b71652699fda5bb27cd8f1e0b88c7dd50fb95cea3385353b91a4d9208003e436cc3d4e8023828a80cbbeb19
 DIST xl2tpd-1.3.18.tar.gz 534937 BLAKE2B 
ce745855709ac79d5d6aefbe2fb31a4e799f01c6ad31ad2e436c276933e079116daf32bcdc97b7459e4792aa2bd1ddbb600d798d8b28d1432681ffd319fe0829
 SHA512 
d1114777de5f3895429409fd5474da91fe9e9c218615eb989c9294de3e4e36dea7d8ea880a9b1b1ca18760e5709c8b8156c80d81401db479eaf215c026c3d861
+DIST xl2tpd-1.3.20-ditch-select-use-poll.patch 24347 BLAKE2B 
8a13a52fb64a8135ccb4ccb618039c9345cccc28f31c08c58349e98b739994c7eddbfa629d1d4c79646e2060aef4cf1331ee57864413f16e105edd275768ce8b
 SHA512 
bcfe9d0f90b8332078221e921307ca111eb3b0ed5c6b11716fc13f5bf9223ea58a667d46f38f8fdc3d062f596533da8550e5fb9312f0b6fefd9f799bf2a21407
+DIST xl2tpd-1.3.20.tar.gz 537558 BLAKE2B 
98a5c0c6884aa77fe277ffc8a2310a472d5a5db86d39a4ae7da9f97eed53e033b6680a683b1bb52433320711f966ec1f3f02174ce15fbe52fb88d8287a1f8231
 SHA512 
d227e1dafbb1d7ca64d42084397eaf013f89958bc705d602ca9717e355b2a420756ccbf71663f920b44a6624411a59bf52fd039ba50a7d45a976e9af03ed4dc5

diff --git a/net-dialup/xl2tpd/metadata.xml b/net-dialup/xl2tpd/metadata.xml
index 3644bb408a18..5fa88d8f1e46 100644
--- a/net-dialup/xl2tpd/metadata.xml
+++ b/net-dialup/xl2tpd/metadata.xml
@@ -8,6 +8,7 @@
        <longdescription>xl2tpd is a fork of l2tpd Layer 2 Tunneling Protocol 
(L2TP) daemon that can be used to transfer frames of OSI layer 2 protocols 
through an IP tunnel. While it provides authentication via CHAP or PAP it does 
not provide encryption itself and should therefore be externally secured (via 
IPSEC).</longdescription>
        <use>
                <flag name="kernel">Enable kernel interface for PPPoL2TP</flag>
+               <flag name="poll">Use experimental patch to use poll rather 
than select (scalability patch)</flag>
        </use>
        <upstream>
                <remote-id type="github">xelerance/xl2tpd</remote-id>

diff --git a/net-dialup/xl2tpd/xl2tpd-1.3.20.ebuild 
b/net-dialup/xl2tpd/xl2tpd-1.3.20.ebuild
new file mode 100644
index 000000000000..7c43e67b4b90
--- /dev/null
+++ b/net-dialup/xl2tpd/xl2tpd-1.3.20.ebuild
@@ -0,0 +1,73 @@
+# Copyright 1999-2026 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit systemd toolchain-funcs tmpfiles
+
+DESCRIPTION="A modern version of the Layer 2 Tunneling Protocol (L2TP) daemon"
+HOMEPAGE="https://github.com/xelerance/xl2tpd";
+SRC_URI="
+       https://github.com/xelerance/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz
+       
https://downloads.uls.co.za/patches/${PN}/${PN}-1.3.18-r2-Pass-remotenumber-to-pppd.patch
+       poll? ( 
https://downloads.uls.co.za/patches/${PN}/${PN}-1.3.20-ditch-select-use-poll.patch
 )
+"
+
+LICENSE="GPL-2+"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~arm64 ~loong ~mips ~ppc ~ppc64 ~riscv ~x86"
+IUSE="+kernel poll"
+
+DEPEND="
+       net-libs/libpcap
+       >=sys-kernel/linux-headers-2.6"
+
+RDEPEND="
+       ${DEPEND}
+       net-dialup/ppp"
+
+DOCS=( CREDITS README.md BUGS CHANGES TODO doc/README.patents )
+
+PATCHES=(
+       "${DISTDIR}/xl2tpd-1.3.18-r2-Pass-remotenumber-to-pppd.patch"
+)
+
+src_prepare() {
+       default
+       use poll && epatch 
"${DISTDIR}/xl2tpd-1.3.20-ditch-select-use-poll.patch"
+       sed -e 's:/var/run/:/run/:' -i \
+               file.h \
+               l2tp.h \
+               xl2tpd-control.c \
+               doc/l2tp-secrets.5 \
+               doc/xl2tpd.8 \
+               doc/xl2tpd.conf.5 \
+               || die "Error updating /var/run to /run"
+}
+
+src_compile() {
+       tc-export CC
+       local OSFLAGS="-DLINUX"
+       use kernel && OSFLAGS+=" -DUSE_KERNEL"
+       emake OSFLAGS="${OSFLAGS}"
+}
+
+src_install() {
+       emake PREFIX=/usr DESTDIR="${D}" install
+
+       newinitd "${FILESDIR}"/xl2tpd-init-r1 xl2tpd
+
+       systemd_dounit "${FILESDIR}"/xl2tpd.service
+       dotmpfiles "${FILESDIR}"/xl2tpd.conf
+
+       einstalldocs
+
+       insinto /etc/xl2tpd
+       newins doc/l2tpd.conf.sample xl2tpd.conf
+       insopts -m 0600
+       newins doc/l2tp-secrets.sample l2tp-secrets
+}
+
+pkg_postinst() {
+       tmpfiles_process xl2tpd.conf
+}

Reply via email to