From f748dd1ce5069cc34eb6ace908f2b877cd57d5b5 Mon Sep 17 00:00:00 2001 From: Daniele Rondina Date: Tue, 19 Aug 2025 19:59:54 +0000 Subject: [PATCH] Bump net-dialup/ppp-2.5.2 --- net-dialup/ppp/Manifest | 1 + net-dialup/ppp/files/README.mpls | 2 +- net-dialup/ppp/ppp-2.5.2.ebuild | 119 +++++++++++++++++++++++++++++++ 3 files changed, 121 insertions(+), 1 deletion(-) create mode 100644 net-dialup/ppp/ppp-2.5.2.ebuild diff --git a/net-dialup/ppp/Manifest b/net-dialup/ppp/Manifest index 4fd619a491..3a4a1fede6 100644 --- a/net-dialup/ppp/Manifest +++ b/net-dialup/ppp/Manifest @@ -1,3 +1,4 @@ DIST ppp-2.4.7-patches-7.tar.xz 40540 BLAKE2B 353814692aab3012f5d5ccdecc514d69357826ea7abe64a7581c562f333d868f9766f11516721cf0b116b4c1c8b01daee306d98ef7be356af6e8d16e22fc9fac SHA512 9d34c044ded09424a6d80047e88bb21130a9c2414c9ea4f52c7299d9db08b1391543b50cd97c0c8763e6943591fc325d01932b31966a1374dbfe5e977bbf4356 DIST ppp-2.4.7.tar.gz 688117 BLAKE2B e1c94ce31d98674536929d19e956e4013eb2b02c20c34e6184c0b99b50262ad1cd7fb6f4a1ed302872527a0c164af340e15ad1e2eaf191392c3f6ae2de21f5dd SHA512 e34ce24020af6a73e7a26c83c4f73a9c83fa455b7b363794dba27bf01f70368be06bff779777843949bd77f4bc9385d6ad455ea48bf8fff4e0d73cc8fef16ae2 +DIST ppp-2.5.2-0d9fdaf.tar.gz 528514 BLAKE2B 463e8ad9b0bc958dcf27e7d8c45bdb71e918625852b1fe7c8303cd59935e6dd6a8d4bd1dde513497fd9d7b65d84da48cce70f70f31d17e399573b6c5480d8973 SHA512 54c88874ffc312704cab4035ec103d3479bc87c973a83bc8d3194835fc2facda054e6bfc640abfebfc2ebaf6e75dda4fecad3f0aa1b006fe6c7f7b881da7c303 DIST ppp-dhcpc.tgz 33497 BLAKE2B ca59130012f007cf45af6bcfa468c112b0d521c8b11f42d42c566dd9de55bd6d6f1b1ceb83cbae18cfe79cb5cb36ba6c6858a4718915acc6987295008aca53da SHA512 aeaf791b14f5a09c0e2079072a157e65132cbff46e608bc0724e6a5827a01da934f5006e2774eb7105f83e607a52cb4987238f4385cf6f5cc86cbe305a556738 diff --git a/net-dialup/ppp/files/README.mpls b/net-dialup/ppp/files/README.mpls index 1ae7ae4605..a8f7d6bb55 100644 --- a/net-dialup/ppp/files/README.mpls +++ b/net-dialup/ppp/files/README.mpls @@ -12,4 +12,4 @@ information about LDP based MPLS signalling. Mapping of layer 3 traffic to MPLS LSPs is accomplised in a couple of different ways. -Per FEC where FEC is an entry in the routing table --Virtual interface that represents an LSP +-Virtual interface that represents an LSP \ No newline at end of file diff --git a/net-dialup/ppp/ppp-2.5.2.ebuild b/net-dialup/ppp/ppp-2.5.2.ebuild new file mode 100644 index 0000000000..3fed3542dd --- /dev/null +++ b/net-dialup/ppp/ppp-2.5.2.ebuild @@ -0,0 +1,119 @@ +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit linux-info pam toolchain-funcs + +DESCRIPTION="Point-to-Point Protocol (PPP)" +HOMEPAGE="https://ppp.samba.org/" +SRC_URI="https://github.com/ppp-project/ppp/tarball/0d9fdafb7f743abfad7e308709ac917fef658c14 -> ppp-2.5.2-0d9fdaf.tar.gz" +LICENSE="BSD GPL-2" + +S="${WORKDIR}/ppp-project-ppp-0d9fdaf" + +SLOT="0/${PV}" +KEYWORDS="*" +IUSE="activefilter atm pam selinux systemd ipv6" + +DEPEND=" + dev-libs/openssl:0= + sys-libs/libxcrypt + activefilter? ( net-libs/libpcap ) + atm? ( net-dialup/linux-atm ) + pam? ( sys-libs/pam ) + systemd? ( sys-apps/systemd ) +" +RDEPEND=" + ${DEPEND} + selinux? ( sec-policy/selinux-ppp ) +" +BDEPEND="virtual/pkgconfig" +PDEPEND="net-dialup/ppp-scripts" + +pkg_setup() { + local CONFIG_CHECK="~PPP ~PPP_ASYNC ~PPP_SYNC_TTY" + local ERROR_PPP="CONFIG_PPP:\t missing PPP support (REQUIRED)" + local ERROR_PPP_ASYNC="CONFIG_PPP_ASYNC:\t missing asynchronous serial line discipline" + ERROR_PPP_ASYNC+=" (optional, but highly recommended)" + local WARNING_PPP_SYNC_TTY="CONFIG_PPP_SYNC_TTY:\t missing synchronous serial line discipline" + WARNING_PPP_SYNC_TTY+=" (optional; used by 'sync' pppd option)" + if use activefilter ; then + CONFIG_CHECK+=" ~PPP_FILTER" + local ERROR_PPP_FILTER="CONFIG_PPP_FILTER:\t missing PPP filtering support (REQUIRED)" + fi + CONFIG_CHECK+=" ~PPP_DEFLATE ~PPP_BSDCOMP ~PPP_MPPE" + local ERROR_PPP_DEFLATE="CONFIG_PPP_DEFLATE:\t missing Deflate compression (optional, but highly recommended)" + local ERROR_PPP_BSDCOMP="CONFIG_PPP_BSDCOMP:\t missing BSD-Compress compression (optional, but highly recommended)" + local WARNING_PPP_MPPE="CONFIG_PPP_MPPE:\t missing MPPE encryption (optional, mostly used by PPTP links)" + CONFIG_CHECK+=" ~PPPOE ~PACKET" + local WARNING_PPPOE="CONFIG_PPPOE:\t missing PPPoE support (optional, needed by pppoe plugin)" + local WARNING_PACKET="CONFIG_PACKET:\t missing AF_PACKET support (optional, used by pppoe plugin)" + if use atm ; then + CONFIG_CHECK+=" ~PPPOATM" + local WARNING_PPPOATM="CONFIG_PPPOATM:\t missing PPPoA support (optional, needed by pppoatm plugin)" + fi + + linux-info_pkg_setup +} + +src_prepare() { + default + + # Set the right paths in radiusclient.conf + sed -e "s:/usr/local/etc:/etc:" \ + -e "s:/usr/local/sbin:/usr/sbin:" \ + -i pppd/plugins/radius/etc/radiusclient.conf || die + # Set config dir to /etc/ppp/radius + sed -i -e "s:/etc/radiusclient:/etc/ppp/radius:g" \ + pppd/plugins/radius/{*.8,*.c,*.h} \ + pppd/plugins/radius/etc/* || die + + ./autogen.sh +} + +src_configure() { + # https://bugs.gentoo.org/943931 + append-cflags -std=gnu17 + + local args=( + --localstatedir="${EPREFIX}"/var + --runstatedir="${EPREFIX}"/run + $(use_enable systemd) + $(use_with atm) + $(use_with pam) + $(use_with activefilter pcap) + --enable-cbcp + --enable-multilink + ) + econf "${args[@]}" +} + +src_install() { + default + + find "${ED}" -name '*.la' -type f -delete || die + + if use pam; then + pamd_mimic_system ppp auth account session + fi + + insinto /etc/modprobe.d + newins "${FILESDIR}/modules.ppp" ppp.conf + + dosbin scripts/p{on,off,log} + doman scripts/pon.1 + dosym pon.1 /usr/share/man/man1/poff.1 + dosym pon.1 /usr/share/man/man1/plog.1 + + # Adding misc. specialized scripts to doc dir + dodoc -r scripts + + newtmpfiles "${FILESDIR}/pppd.tmpfiles-r1" pppd.conf + + insinto /etc/ppp/radius + doins pppd/plugins/radius/etc/{dictionary*,issue,port-id-map,radiusclient.conf,realms,servers} +} + +pkg_postinst() { + tmpfiles_process pppd.conf +} \ No newline at end of file