diff options
author | V3n3RiX <venerix@koprulu.sector> | 2024-10-19 04:04:36 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2024-10-19 04:04:36 +0100 |
commit | d895362f98ae63a6ed12cd16d3b3df95d6967f25 (patch) | |
tree | e6c8a50e31dc122b10c6dc3d9eee5d6ec6f002c0 /net-dialup/rp-pppoe | |
parent | 483d7c056fba15727fe24545f93627a1d1e1e2eb (diff) |
gentoo auto-resync : 19:10:2024 - 04:04:35
Diffstat (limited to 'net-dialup/rp-pppoe')
-rw-r--r-- | net-dialup/rp-pppoe/Manifest | 4 | ||||
-rw-r--r-- | net-dialup/rp-pppoe/files/rp-pppoe-3.15-no_max_interfaces.patch | 91 | ||||
-rw-r--r-- | net-dialup/rp-pppoe/rp-pppoe-3.15-r2.ebuild | 94 |
3 files changed, 0 insertions, 189 deletions
diff --git a/net-dialup/rp-pppoe/Manifest b/net-dialup/rp-pppoe/Manifest index f8cdbad3974b..763b5633c0f5 100644 --- a/net-dialup/rp-pppoe/Manifest +++ b/net-dialup/rp-pppoe/Manifest @@ -1,11 +1,7 @@ AUX pppoe-server.confd 428 BLAKE2B 83e91157082122ff084ed5b36031fa37950d154f22bed9630ca09f5e9ba00b65cbeb6769693f039b649b30b9c5f49051d6177e108bae2d23c58af7412363d5f6 SHA512 2216e972469d1b544d1dc5729a5c8e2520006f8fd1d07e4d2152a1fd6dd00f52cb97a984398058006f7830fbeae8ee1e8088d5d9ea7648acf50510cc19372b16 AUX pppoe-server.initd 456 BLAKE2B 1dd9e1dbfe7e18c4f20d9e7a6eb99f942742516273053375e31e802df5297ad61645439ad76ec28a16b6da672862831de627273dd056021b76e1a37beac1fdbf SHA512 44df1122ae36f56c044c47e94c5dd70d00c060c23d0590f233f6cb6024241c1d1c83832d167c12a45ef4464e94f7d5f5e2ddf04c413ea929e1d398feafa0ec0a -AUX rp-pppoe-3.15-no_max_interfaces.patch 2821 BLAKE2B 3ad091bb9fbab181a223c92c143ff860e0541856cc2e4296700eff08db81f42562f365da9bb836d8180f8ce8c08042e5fa4fc2466a0864678e46f14df619e324 SHA512 16567d42c4691fa0bee04bcca5dc200385c8749c97e147c4134f4290064ab00fad4e1ad8847aaa0be975d7bc2dea024307adcc91f47d54ae20bb42ae0e8dc18c AUX rp-pppoe-4.0-ar_environment.patch 2026 BLAKE2B 73d75afd1cb5b0b59982b7aeabf1997a2e280269e83fbbeabe78ce6a2b193ff4454f63dcc99dbc77ab302ecf900792c7ed3b91d580af553ef74f4fabc08a6e24 SHA512 7c3d6ffbbb9e4c15f62e861874b8a557652911aa89ec3a4769304f7db1ccf1329ffcb24dc8ce75139f15f038e7663caae61ece18dfc177a061576307e4bb444e -DIST rp-pppoe-3.14-patches-01.tar.xz 4708 BLAKE2B d0c294490f5c4c8f3f81fccb8234d5eec2257350a41206bf05882aa7e2aa0e2cb0944a962d77e23451f604376168298d5ef99c70b134989c35261bae6046b882 SHA512 0ae0f91e8b9cfcd7d1a1af6cb55f7972e9bc029cd4b10469d5be696ae750d6aabb5f59426e9bf6f700d5a56decd3ddf85a097bb98ae1d06f0b167967b5b8b8ea -DIST rp-pppoe-3.15.tar.gz 224966 BLAKE2B 85eda606677b71e35ed3b9389db0d01ac1f16c7b40cc31b3adf31946b18454b77867a5e8822386e9fb08455399733242c4c074c2fee6f1c4d62fe23b44e82707 SHA512 a156c084e57361ab6a464c3205ffb85cf86d02f71f17f92c9567f1ab0ed300f10030832fd232084699dc842ac4891efc8c54c8165587bfc7b4c92724318a60d9 DIST rp-pppoe-4.0.tar.gz 139539 BLAKE2B ba9f11e547dafdacf6fc4d525488a4ac0279b06d545e0c116e568c92a45eb8ab558ca9112f1debecacde5401cb5974eacdf972b1b4cd813711589b8181e918de SHA512 faebe543988b1ffacd4d9bf55a3ec21f3a541f9232ba6c7b6fa0e8103d6c2b7b1c358e7f7bc8f99bebb24b2f7bdcc2f46ba1ef4c23e6dd34062f8f28114e7aea -EBUILD rp-pppoe-3.15-r2.ebuild 2270 BLAKE2B 9f238e9e1e3c1d724b53f094d7bd5794717300ec6c869d3f261729848802660a0a1ad4237b125ece1029b84beb11918197838c1fa21bc5a04bdc33f8c35b9b44 SHA512 a252c432d70299d34fc74eb2b9b4caeb1d540e0d72243408ef6e35fe28fb19bb194c58a869a4e37c1d2708851a597c09dc799784088aed60711c90de2a2978e2 EBUILD rp-pppoe-4.0.ebuild 1571 BLAKE2B 645ef274421728a49b563164a5a86a6a48037e1cbde2edc9496a88b7253899ba2a804c2912eff5a76acb2de7f974356633e73383b93ef2b107e573c95242521b SHA512 e025770aab0f231290f2e3381a42a6ee2099f13e5fd516c0a56d0b8fb9b2836266bb32d38b8bde472c5fe1630a8aad00452d82acb19b60ebdbdfb43125d98903 EBUILD rp-pppoe-9999.ebuild 1516 BLAKE2B a15ba1687b94f59c3643f371201b19858925279f7ade237c754eb4543da3c1e3772a59d5b6f9267c27664d47241b6772a8cfc43ba74672748b2c6b24fe123c52 SHA512 01ea4cb53c47b208eaeaaf05e555d54ae7f7a0bbbebd38f9135abd6febfb7ee6ffd04958c278b5164cc2c3bbb9b3cca1b75fbc296434cb2b0984c881a1034ca2 MISC metadata.xml 388 BLAKE2B 8627eaf1867246255f9cf5e886749300fe854b6fc4add00c1fb7395a41349a42aeaf9bcd1866b1ef8a6b3ecd04416cd6ebb7dcebd266ae341af4aaa144de510d SHA512 238ec6ad37a6fcb588eeb6f5f00befa9e9f483cbd012d7e98b9627a3bf3f401ea74aee560a1909458a471e6c44b3ea13eb3a7d30e5f5a1f5c5464c9775d5614d diff --git a/net-dialup/rp-pppoe/files/rp-pppoe-3.15-no_max_interfaces.patch b/net-dialup/rp-pppoe/files/rp-pppoe-3.15-no_max_interfaces.patch deleted file mode 100644 index ecf70f09ddc6..000000000000 --- a/net-dialup/rp-pppoe/files/rp-pppoe-3.15-no_max_interfaces.patch +++ /dev/null @@ -1,91 +0,0 @@ -pppoe-server: MAX_INTERFACES 64 is a problem for ULS. - -We currently require 77 interfaces, this code just lifts the limit entirely and -will keep adding interfaces for as much RAM as you have to store an array as -required. - -Signed-off-by: Jaco Kroon <jaco@uls.co.za> - -diff -rau rp-pppoe-3.15/src.o/pppoe-server.c rp-pppoe-3.15/src/pppoe-server.c ---- rp-pppoe-3.15.o/src/pppoe-server.c 2021-05-07 15:18:00.000000000 +0200 -+++ rp-pppoe-3.15/src/pppoe-server.c 2021-12-07 21:53:46.755693003 +0200 -@@ -115,8 +115,9 @@ - ClientSession *BusySessions = NULL; - - /* Interfaces we're listening on */ --Interface interfaces[MAX_INTERFACES]; -+Interface *interfaces = NULL; - int NumInterfaces = 0; -+int MaxInterfaces = 0; - - /* The number of session slots */ - size_t NumSessionSlots; -@@ -1235,11 +1236,16 @@ - exit(1); - } - -- memset(interfaces, 0, sizeof(interfaces)); -- - /* Initialize syslog */ - openlog("pppoe-server", LOG_PID, LOG_DAEMON); - -+ MaxInterfaces = INIT_INTERFACES; -+ interfaces = malloc(sizeof(*interfaces) * INIT_INTERFACES); -+ if (!interfaces) { -+ fprintf(stderr, "Out of memory allocating initial interfaces.\n"); -+ exit(1); -+ } -+ - /* Default number of session slots */ - NumSessionSlots = DEFAULT_MAX_SESSIONS; - MaxSessionsPerMac = 0; /* No limit */ -@@ -1406,10 +1412,14 @@ - break; - - case 'I': -- if (NumInterfaces >= MAX_INTERFACES) { -- fprintf(stderr, "Too many -I options (max %d)\n", -- MAX_INTERFACES); -- exit(EXIT_FAILURE); -+ if (NumInterfaces >= MaxInterfaces) { -+ MaxInterfaces *= 2; -+ interfaces = realloc(interfaces, sizeof(*interfaces) * MaxInterfaces); -+ if (!interfaces) { -+ fprintf(stderr, "Memory allocation failure trying to increase MaxInterfaces to %d\n", -+ MaxInterfaces); -+ exit(EXIT_FAILURE); -+ } - } - found = 0; - for (i=0; i<NumInterfaces; i++) { -@@ -1419,6 +1429,7 @@ - } - } - if (!found) { -+ memset(&interfaces[NumInterfaces], 0, sizeof(*interfaces)); - strncpy(interfaces[NumInterfaces].name, optarg, IFNAMSIZ); - NumInterfaces++; - } -diff -rau rp-pppoe-3.15/src.o/pppoe-server.h rp-pppoe-3.15/src/pppoe-server.h ---- rp-pppoe-3.15/src.o/pppoe-server.h 2021-05-07 15:18:00.000000000 +0200 -+++ rp-pppoe-3.15/src/pppoe-server.h 2021-12-07 21:44:09.945578094 +0200 -@@ -97,8 +97,8 @@ - /* Hack for daemonizing */ - #define CLOSEFD 64 - --/* Max. number of interfaces to listen on */ --#define MAX_INTERFACES 64 -+/* Initial Max. number of interfaces to listen on */ -+#define INIT_INTERFACES 8 - - /* Max. 64 sessions by default */ - #define DEFAULT_MAX_SESSIONS 64 -@@ -107,7 +107,7 @@ - extern ClientSession *Sessions; - - /* Interfaces we're listening on */ --extern Interface interfaces[MAX_INTERFACES]; -+extern Interface *interfaces; - extern int NumInterfaces; - - /* The number of session slots */ diff --git a/net-dialup/rp-pppoe/rp-pppoe-3.15-r2.ebuild b/net-dialup/rp-pppoe/rp-pppoe-3.15-r2.ebuild deleted file mode 100644 index b893af0a1d57..000000000000 --- a/net-dialup/rp-pppoe/rp-pppoe-3.15-r2.ebuild +++ /dev/null @@ -1,94 +0,0 @@ -# Copyright 1999-2023 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 - -inherit autotools readme.gentoo-r1 toolchain-funcs - -PATCHSET="${PN}-3.14-patches-01" -PATCHES=( - "${FILESDIR}/rp-pppoe-3.15-no_max_interfaces.patch" -) - -DESCRIPTION="A user-mode PPPoE client and server suite for Linux" -HOMEPAGE="https://dianne.skoll.ca/projects/rp-pppoe/ https://salsa.debian.org/dskoll/rp-pppoe" -SRC_URI="https://dianne.skoll.ca/projects/rp-pppoe/download/${P}.tar.gz - https://dev.gentoo.org/~polynomial-c/dist/${PATCHSET}.tar.xz" - -LICENSE="GPL-2" -SLOT="0" -KEYWORDS="~alpha amd64 arm arm64 ~hppa ~loong ~mips ppc ppc64 ~riscv sparc x86" -IUSE="tk" - -RDEPEND=" - <net-dialup/ppp-2.5:= - sys-apps/iproute2 - tk? ( dev-lang/tk:= ) -" -DEPEND=">=sys-kernel/linux-headers-2.6.25 - elibc_musl? ( net-libs/ppp-defs ) - ${RDEPEND}" - -DOC_CONTENTS="Use pppoe-setup to configure your dialup connection" - -pkg_setup() { - # This is needed in multiple phases - PPPD_VER="$(best_version net-dialup/ppp)" - PPPD_VER="${PPPD_VER#*/*-}" #reduce it to ${PV}-${PR} - PPPD_VER="${PPPD_VER%%-*}" #reduce it to ${PV} - - PPPD_PLUGIN_DIR="/usr/$(get_libdir)/pppd/${PPPD_VER}" -} - -src_prepare() { - if ! use elibc_musl ; then - rm "${WORKDIR}/patches/${PN}-3.14-musl.patch" || die - fi - - rm "${WORKDIR}/patches/${PN}-3.14-ifconfig-path.patch" || die - - eapply "${WORKDIR}/patches" - eapply "${PATCHES[@]}" - eapply_user - - cd "${S}"/src || die - eautoreconf -} - -src_configure() { - addpredict /dev/ppp - - cd src || die - - econf --enable-plugin=/usr/include/pppd -} - -src_compile() { - cd src || die - emake AR="$(tc-getAR)" PLUGIN_PATH=rp-pppoe.so PLUGIN_DIR="${PPPD_PLUGIN_DIR}" - - if use tk ; then - emake -C "${S}/gui" - fi -} - -src_install() { - cd src || die - emake DESTDIR="${D}" docdir="/usr/share/doc/${PF}" PLUGIN_DIR="${PPPD_PLUGIN_DIR}" install - - # We don't need this README file here. - rm "${ED}${PPPD_PLUGIN_DIR}/README" || die "Error removing ${PPPD_PLUGIN_DIR}/README from installation" - - if use tk ; then - emake -C "${S}/gui" \ - DESTDIR="${D}" \ - datadir=/usr/share/doc/${PF}/ \ - install - dosym doc/${PF}/tkpppoe /usr/share/tkpppoe - fi - - newinitd "${FILESDIR}"/pppoe-server.initd pppoe-server - newconfd "${FILESDIR}"/pppoe-server.confd pppoe-server - - readme.gentoo_create_doc -} |