diff options
author | V3n3RiX <venerix@koprulu.sector> | 2025-01-01 06:30:58 +0000 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2025-01-01 06:30:58 +0000 |
commit | c4d4d544a37efc45bd5482e62e1fcdbe7d5993d3 (patch) | |
tree | e97ec8b6356535412a838039bf7874aef3129f50 /net-dialup/ppp | |
parent | 2e36bcecf24a3f583ae8f27b71ba13b3cfd39778 (diff) |
gentoo auto-resync : 01:01:2025 - 06:30:57
Diffstat (limited to 'net-dialup/ppp')
-rw-r--r-- | net-dialup/ppp/Manifest | 2 | ||||
-rw-r--r-- | net-dialup/ppp/ppp-2.5.2.ebuild | 116 |
2 files changed, 118 insertions, 0 deletions
diff --git a/net-dialup/ppp/Manifest b/net-dialup/ppp/Manifest index 095b83ab2771..2fad1e30a936 100644 --- a/net-dialup/ppp/Manifest +++ b/net-dialup/ppp/Manifest @@ -9,7 +9,9 @@ AUX pppd.tmpfiles 45 BLAKE2B 00daff2cb2f359640b41f8e13b08817754fa77e7a743910fb3e AUX pppd.tmpfiles-r1 12 BLAKE2B ecf9abb7ea5e7ec637bc590b882c2ca957487ab915da462f56d605e1bd45e824d45c7ac647b47436132c670a0fd59c3e1b69d7651cc833b81d761c6bb0e91d58 SHA512 86dd12a7b6294ad06b82aca350126e47ebfa826d041ec6acb3838e336af2aec108e04a6f5e63ac55ba8bece4941bfa3474f9af7d859e68124a9174482bbb0937 DIST ppp-2.5.0.tar.gz 1170057 BLAKE2B 6a0e9efcbff3cb499705071cc7d0e3411cf4871fd53b2bfedbb1f2cf3ad80728eb436050cf33b78e36d473be64f15907a21da17f283337455f0af379bc18272d SHA512 094368ea2aa6c6e8dfba4443509857a7c1c7ff839bb6d6657743802477208c01e87db31593cef0932d3725c640e9c103179da6b742825034cda82bd31ddcc2ed DIST ppp-2.5.1.tar.gz 991639 BLAKE2B e3ece873ea25bde5ddffd0da168ffe6ba890693f20fb9f1d6a48f365331abdb4cf517fd0b3004d26a0c778ad4d750e39e38486544e2771b23223469db13c239c SHA512 57b3bbf918c302dbc621f56b706efa1b35b2fc45b71c3a309c1cfee22c28fcf98d7f8965fbeba9260c124f2afb9e297885007256ee05469adca73fad032902b9 +DIST ppp-2.5.2.tar.gz 973132 BLAKE2B 5a79bfaf23c2f1cba7b2c4e8f27e6033aa7ee6e119b4d96dfd2870f91524052fe9ed16149e5f76cf93370159f491af828b4103eb04bd4f5dbbecca4a08af9d0d SHA512 2c49d411818632a750f52b187c0ee421e9fcc1530c717abacce61e76aa8b296ce09fb142bc202696c0e0ac5570dd12ee649267921b756b6572ae514ce961d1e6 DIST pppgetpass.8 450 BLAKE2B 4e9805cfecb4d07c302682c1ced42cc5d247d18fae904b909e126874af962cf48bb703cd75b0cefce4e19404f2e757602d3b57f187567fc23d4b93d9598d1486 SHA512 21f6dda908cf73ee27bfa39d2b50e7f76b371e50bd7d5a0586174b30129c119accbd260d7f9e0e6aa6aabfa5ba11a13ba560588a99672c9dd4e9f33254f88836 EBUILD ppp-2.5.0-r7.ebuild 4213 BLAKE2B 333a332e338cc45c1cf795162420155474be1dd82a39e70d40f4c3e962e4a806b39a31d7521f32d87eb7886cbf07b848acad10f12b1b71ab06a0a6d519fe0a1c SHA512 c63d15b21fab09cf585045dd52f815b7d7c2e1ce59fbf10a0fed26cbbaf8fbc893f2461e0ede2b88150bfd0d5516262977f8d9c49e9c120032bcd91bf6a00caf EBUILD ppp-2.5.1-r1.ebuild 3722 BLAKE2B 2228c3cc6802563475236f143851d5b57a2461d103c59457f4ae5cce8fba41e308b4e293a96283ddac841b5059ae6ad18bfa8edb7a7311dd6a23a694552b8e6d SHA512 8866bc6b3bfde646a1c8ab3b2791b1d4a5e8dac254ea6aed9086bfc126f6ec42f8cbc5c537a0dd309311365d009067c1c66955e40307d8ef70bace19613a7020 +EBUILD ppp-2.5.2.ebuild 3448 BLAKE2B 6967562274203fd697157c7ff58ce9616b31b422747d70b4c49115759db2973bf65b2a0a3e0ed1f18f32a107b49a1a81db9803bf8aaf8da75a0133980bd80faf SHA512 4f36d42a7171762f667a7167fa85b9c275a308ea04fafd414b28e726f10c3c86ccea418b76bad3b6ccf9884646320f247faca534aae1776469dddd0a14b6cb14 MISC metadata.xml 638 BLAKE2B 3aa9d6dbab41ecff025de485c52462fc3ccb9b217b95681119b1e8fbe1a4ed9db93842c2696e9f71a275cbb7d1c4593b1ce7b368bea933f6ff727ee9a8d28295 SHA512 cc14adb1ecc6fa636ce86914ef70941e4b1b8ccd9e056ea9c5a2fc3ae75ea718f74fd925fbe40811734762927383ee9edd9728267bc122d2c5b03fce019f0fd8 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 000000000000..f777f5f9240d --- /dev/null +++ b/net-dialup/ppp/ppp-2.5.2.ebuild @@ -0,0 +1,116 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit flag-o-matic linux-info pam tmpfiles + +DESCRIPTION="Point-to-Point Protocol (PPP)" +HOMEPAGE="https://ppp.samba.org/" +SRC_URI="https://download.samba.org/pub/ppp/${P}.tar.gz" + +LICENSE="BSD GPL-2" +SLOT="0/${PV}" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86" +IUSE="activefilter atm pam selinux systemd" + +DEPEND=" + dev-libs/openssl:0= + virtual/libcrypt:= + 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 +} + +src_configure() { + # bug #944065 + 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 +} |