diff options
author | V3n3RiX <venerix@koprulu.sector> | 2022-02-02 01:39:05 +0000 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2022-02-02 01:39:05 +0000 |
commit | fcc5224904648a8e6eb528d7603154160a20022f (patch) | |
tree | 3bfce096b38a9cea8eed13fc70c1526c456e9abd /net-dialup | |
parent | 2fd57282f0262ca084e05b0f2c63fbada395d02b (diff) |
gentoo resync : 02.02.2022
Diffstat (limited to 'net-dialup')
-rw-r--r-- | net-dialup/Manifest.gz | bin | 5220 -> 5226 bytes | |||
-rw-r--r-- | net-dialup/minicom/Manifest | 1 | ||||
-rw-r--r-- | net-dialup/minicom/minicom-2.8-r1.ebuild | 64 | ||||
-rw-r--r-- | net-dialup/moserial/Manifest | 6 | ||||
-rw-r--r-- | net-dialup/moserial/moserial-3.0.16.ebuild | 24 | ||||
-rw-r--r-- | net-dialup/moserial/moserial-3.0.20.ebuild | 24 | ||||
-rw-r--r-- | net-dialup/moserial/moserial-3.0.21.ebuild | 4 | ||||
-rw-r--r-- | net-dialup/rp-pppoe/Manifest | 5 | ||||
-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 (renamed from net-dialup/rp-pppoe/rp-pppoe-3.14.ebuild) | 47 |
10 files changed, 183 insertions, 83 deletions
diff --git a/net-dialup/Manifest.gz b/net-dialup/Manifest.gz Binary files differindex 23d2579e6c10..e3e059d0f557 100644 --- a/net-dialup/Manifest.gz +++ b/net-dialup/Manifest.gz diff --git a/net-dialup/minicom/Manifest b/net-dialup/minicom/Manifest index f614d4c20c80..e956ee225a09 100644 --- a/net-dialup/minicom/Manifest +++ b/net-dialup/minicom/Manifest @@ -8,5 +8,6 @@ AUX minirc.dfl 66 BLAKE2B fa087c52ace0bcc5915e58074b96f8d6b0304690dccdb5d2710a2d DIST minicom-2.7.1.tar.gz 863544 BLAKE2B 473dbf9695e16fdf23581b831d1b76f32a5b9f47cf82c6430386646a4ad04a58d61bea08ba032d0c4f779fd19d90d12270df317b719bad6cba63d921c197c87c SHA512 eb9679ac3a3d3585ea06c54407567898e50b981378656e7f8a241071c91054ff0928cc9023d2c79d1936588cdffa9426f4962b556e8daa1783add0c5ac59b5af DIST minicom-2.8.tar.gz 948015 BLAKE2B 007a2975a996e2dd2390b1cf20e1a70c4bb1b57d224211d30e8d83a9d02a45c147df34bf409961a20ad3746cb6b5551c1e0702a05bb0a0a3f7f042d251b553be SHA512 5ced0ff79cec11464154561130ddc6a38865170d4e4d80185ada540ba173fe89e35703b6d7fd0cf86caef6e020fcad1d7b1fdb4d4f55e3ddb906aea6a4b81b36 EBUILD minicom-2.7.1.ebuild 1346 BLAKE2B e90609e4c0ace7d210b644e2c02deaaf60686dd779e6df1ca3a2b724e33f8a707a230aaff594ff0e6dc295d89546bf2e2e27d9174334b852327b5e8b4f747cf3 SHA512 caf7634c4d8e11d209d9a18130f4c40be955aa98c62b9352ad8ef6b0cd2ba433985e970820b4591a8f5ee67348af21c460e6d7e0edb6400fb23ed6629caddbea +EBUILD minicom-2.8-r1.ebuild 1248 BLAKE2B bce28dd496c1a027e582a402e181a7d86f1c6cdea45e021c4e48e8740c8187d6d445fa4e83e8442a5630315cb7522da54aaf29f65ffbdef93c32df16d4fc5725 SHA512 5a72bd0c84ea1d2c15611f49f469586e936b75c8be482752948b4055cc47d2f1d4a6f1f25e0b0e7dbc1083b3821b7e6d05c8601a1dd6bd0f321b93a52ff0a154 EBUILD minicom-2.8.ebuild 1145 BLAKE2B e75c061da5c2d3e4088e985f0e7af5e26bae13bf0e41558341dfe62671680035d2bb77e95ff1bd19472ad57ec3198268735bdefc23f2f8efa81d7aa0a19d5978 SHA512 9d00f58d1ad7af3a58eed564e33fc3210397a00e965c734b50a7c0a21b540c12fe135329e1c35f79f95168e4b0d14febb3926e52a04ade1bf3cc04e2703294c0 MISC metadata.xml 529 BLAKE2B 3b898729ec228a2557e80c69f47f73c4fa16e2cab7934c6c7792a8a4704fe7a428843dcc8e5c61416e0a3346e5f4dc3c932a6a72f15744ee530cc22c17145d2c SHA512 6a4a40a24146a5b33402ff508a47b0b159511930e564f3b4aad1b09016a48db7d1e127babe09d4ebee08321334ef669f3d48b9dc191f411fdf6766ae96131309 diff --git a/net-dialup/minicom/minicom-2.8-r1.ebuild b/net-dialup/minicom/minicom-2.8-r1.ebuild new file mode 100644 index 000000000000..f9617802793f --- /dev/null +++ b/net-dialup/minicom/minicom-2.8-r1.ebuild @@ -0,0 +1,64 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit autotools + +DESCRIPTION="Serial Communication Program" +HOMEPAGE="https://salsa.debian.org/minicom-team/minicom" +SRC_URI="https://salsa.debian.org/${PN}-team/${PN}/-/archive/${PV}/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux" +IUSE="nls" + +DEPEND="sys-libs/ncurses:=" + +RDEPEND=" + ${DEPEND} + net-dialup/lrzsz +" + +BDEPEND=" + virtual/pkgconfig + nls? ( sys-devel/gettext ) +" + +PATCHES=( + "${FILESDIR}"/${PN}-2.8-gentoo-runscript.patch + "${FILESDIR}"/${PN}-2.8-lockdir.patch +) + +src_prepare() { + default + eautoreconf +} + +src_configure() { + # Lockdir must exist if not manually specified. + # '/var/lock' is created by OpenRC. + local myeconfargs=( + # See bug #788142 + --sysconfdir="${EPREFIX}"/etc/${PN} + + --disable-rpath + --enable-lock-dir="/var/lock" + $(use_enable nls) + ) + + econf "${myeconfargs[@]}" +} + +src_install() { + default + + # Needs to match --sysconfdir above + insinto /etc/minicom + doins "${FILESDIR}"/minirc.dfl +} + +pkg_preinst() { + [[ -s "${EROOT}"/etc/minicom/minirc.dfl ]] && rm -f "${ED}"/etc/minicom/minirc.dfl +} diff --git a/net-dialup/moserial/Manifest b/net-dialup/moserial/Manifest index 3d4e4b47801c..ec4352f3b135 100644 --- a/net-dialup/moserial/Manifest +++ b/net-dialup/moserial/Manifest @@ -1,7 +1,3 @@ -DIST moserial-3.0.16.tar.xz 1170976 BLAKE2B dd761019bf559112262bb92ec3a08aa9bcce5e73b03ca10a13547a0496729a229f8bd92c6e67c6661c69d07cf0cc573d885c3668703ecc2b5b594eebe73ea8cb SHA512 2101b5eef61c396f2511d08afad0c44caae63e274412ab26f2f6c9e5ff4c1bb1c1b447cabb66ab25530d5b9881a3e09cd6d9d264aa571c0e5ee48012c1917f7b -DIST moserial-3.0.20.tar.xz 1176180 BLAKE2B f4481e71c994df233f190f5886cb8a3e9dd333f78c8562370c56487beccbacf09a118c6c463195a6cfb7306771b080d317b3ef07f5c9b5adc4b37a1ec59e794b SHA512 bb2884f2cc4345a8b19faa199668efd1a919b6b456dae0a3b81b62a18b58cf978a227220925b39b2172d7b9208aebe80ce6d21a2d3605730405f4bbf6ef29683 DIST moserial-3.0.21.tar.xz 1180072 BLAKE2B 57355c0cefd0dde234f184beb008250b677795a73398b10846f3a546bee61d9c6ef17cdd3964301c99155f14423cd0947d3c782dfd74885fcc36e0916f90aa7c SHA512 128e5854273a0bba56844b435d9fcefcaf59d9dc1e49a09d4df1dea21fce9de61c55a368cc707e3b685b4af7e88f93fffb350e7846c046f0c814f57b4f1f0ef6 -EBUILD moserial-3.0.16.ebuild 531 BLAKE2B af667ca6cfcc984117fcc561b80116c838cfd49d7ad16e0ed098f3957c5efa04d710323b814af3f4f372531654364856ec80f13a97b180134d81323b56d5e0e0 SHA512 88b587bfc5fc1c9ffe76ad65ab2f367b61f8a29e8d2f8f9a192cfdef96c7486ff49596aadbbe1cf7f241edaf89b291a5aa74b25a63f51604b87f95d2126a39e4 -EBUILD moserial-3.0.20.ebuild 531 BLAKE2B af667ca6cfcc984117fcc561b80116c838cfd49d7ad16e0ed098f3957c5efa04d710323b814af3f4f372531654364856ec80f13a97b180134d81323b56d5e0e0 SHA512 88b587bfc5fc1c9ffe76ad65ab2f367b61f8a29e8d2f8f9a192cfdef96c7486ff49596aadbbe1cf7f241edaf89b291a5aa74b25a63f51604b87f95d2126a39e4 -EBUILD moserial-3.0.21.ebuild 533 BLAKE2B 24055645b672360b8c02c6d89b91988422cd771c5fc629ef97eccdd90360509b6ff3a4c46d655d8a3c119cf1ae3a4d02f3e093c7a4beb27c41fbf10d28a8825e SHA512 cd4a3f2f23f1e083a18e182e2e471590a941af2abb860fa32a6adad0cc26260cb84c6f7e0762474fa6aed50101ef4718b1e06d3eaf8be8f1a8378716b6156a53 +EBUILD moserial-3.0.21.ebuild 531 BLAKE2B 9894082079ada4e615e00f37dfc68dcf7f2e21e503c0f69f189903a4aa7d61514b6f3a6f5cf5330acc1bad3d25eb4c6ae1b8da17e67782be47baee00de558001 SHA512 6e88132f499bc81f32bd91afef43dfed6c9b69bb4346419b589ce372f2fef8114e43d17ea4d06c64934edbe2d3b2f019342f88b207e99e3aff4a8d8eb7032455 MISC metadata.xml 250 BLAKE2B 8f7f0fe023d43e380e7861e897e6afcb5de4baefb42ea9c65a57dfc0d204c6f787a99295141832e732ebb08be218da56ba77e2dd9639e4e3aabf718ce4db1d0c SHA512 2684e772dd6d83e4b49f08f2ba22d8a0a753e7b46863489eff1b5d1f2f147ad80ffd93245ca405ac4c747249bc1b754454ec9865fe16da70f9b257051e105fd8 diff --git a/net-dialup/moserial/moserial-3.0.16.ebuild b/net-dialup/moserial/moserial-3.0.16.ebuild deleted file mode 100644 index 56783a653634..000000000000 --- a/net-dialup/moserial/moserial-3.0.16.ebuild +++ /dev/null @@ -1,24 +0,0 @@ -# Copyright 1999-2021 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 -inherit gnome2 - -DESCRIPTION="A clean and friendly gtk-based serial terminal" -HOMEPAGE="https://wiki.gnome.org/Apps/Moserial https://gitlab.gnome.org/GNOME/moserial" - -LICENSE="GPL-3+" -SLOT="0" -KEYWORDS="amd64 ~ppc x86" - -RDEPEND=" - >=dev-libs/glib-2.16:2[dbus] - gnome-base/gsettings-desktop-schemas - >=x11-libs/gtk+-3.2.0:3 -" -DEPEND="${RDEPEND}" -BDEPEND=" - >=dev-util/intltool-0.35 - dev-util/itstool - virtual/pkgconfig -" diff --git a/net-dialup/moserial/moserial-3.0.20.ebuild b/net-dialup/moserial/moserial-3.0.20.ebuild deleted file mode 100644 index 56783a653634..000000000000 --- a/net-dialup/moserial/moserial-3.0.20.ebuild +++ /dev/null @@ -1,24 +0,0 @@ -# Copyright 1999-2021 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 -inherit gnome2 - -DESCRIPTION="A clean and friendly gtk-based serial terminal" -HOMEPAGE="https://wiki.gnome.org/Apps/Moserial https://gitlab.gnome.org/GNOME/moserial" - -LICENSE="GPL-3+" -SLOT="0" -KEYWORDS="amd64 ~ppc x86" - -RDEPEND=" - >=dev-libs/glib-2.16:2[dbus] - gnome-base/gsettings-desktop-schemas - >=x11-libs/gtk+-3.2.0:3 -" -DEPEND="${RDEPEND}" -BDEPEND=" - >=dev-util/intltool-0.35 - dev-util/itstool - virtual/pkgconfig -" diff --git a/net-dialup/moserial/moserial-3.0.21.ebuild b/net-dialup/moserial/moserial-3.0.21.ebuild index 3c39e2b6c5fe..d6b13f292f1e 100644 --- a/net-dialup/moserial/moserial-3.0.21.ebuild +++ b/net-dialup/moserial/moserial-3.0.21.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2021 Gentoo Authors +# Copyright 1999-2022 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=7 @@ -9,7 +9,7 @@ HOMEPAGE="https://wiki.gnome.org/Apps/Moserial https://gitlab.gnome.org/GNOME/mo LICENSE="GPL-3+" SLOT="0" -KEYWORDS="~amd64 ~ppc ~x86" +KEYWORDS="amd64 ~ppc x86" RDEPEND=" >=dev-libs/glib-2.16:2[dbus] diff --git a/net-dialup/rp-pppoe/Manifest b/net-dialup/rp-pppoe/Manifest index 40f9e19f5818..eb1429c14714 100644 --- a/net-dialup/rp-pppoe/Manifest +++ b/net-dialup/rp-pppoe/Manifest @@ -1,11 +1,10 @@ AUX pppoe-server.confd 428 BLAKE2B 83e91157082122ff084ed5b36031fa37950d154f22bed9630ca09f5e9ba00b65cbeb6769693f039b649b30b9c5f49051d6177e108bae2d23c58af7412363d5f6 SHA512 2216e972469d1b544d1dc5729a5c8e2520006f8fd1d07e4d2152a1fd6dd00f52cb97a984398058006f7830fbeae8ee1e8088d5d9ea7648acf50510cc19372b16 AUX pppoe-server.initd 456 BLAKE2B 1dd9e1dbfe7e18c4f20d9e7a6eb99f942742516273053375e31e802df5297ad61645439ad76ec28a16b6da672862831de627273dd056021b76e1a37beac1fdbf SHA512 44df1122ae36f56c044c47e94c5dd70d00c060c23d0590f233f6cb6024241c1d1c83832d167c12a45ef4464e94f7d5f5e2ddf04c413ea929e1d398feafa0ec0a -DIST ppp-2.4.8.tar.gz 697530 BLAKE2B 235114288699db45501bc7d9ce8f36c0b5684ab0dab09da93d7f2b4f7c3eca030ae26e34dfff25efa971374fbd7fde62f121ea6aa69872658f44c5ac8c7850a2 SHA512 a99b3b6c7bd80cd133bda4e29d33c793a76f3b67e1f8db774547e88932ce29564fad390a4f51d3fe30a75e006499b95000b042ae0f64cd360548426f8091a478 +AUX rp-pppoe-3.15-no_max_interfaces.patch 2821 BLAKE2B 3ad091bb9fbab181a223c92c143ff860e0541856cc2e4296700eff08db81f42562f365da9bb836d8180f8ce8c08042e5fa4fc2466a0864678e46f14df619e324 SHA512 16567d42c4691fa0bee04bcca5dc200385c8749c97e147c4134f4290064ab00fad4e1ad8847aaa0be975d7bc2dea024307adcc91f47d54ae20bb42ae0e8dc18c DIST ppp-2.4.9.tar.gz 719904 BLAKE2B 7ba3eb8c98fec5599635dbd302399617e1075f3a1df090f1a94ce2bb8a5c7631e6eea82246adc33711aba5fe95e7ba7c982e2cbf1fb0d71e45f877d9b092ffb7 SHA512 c309f8f69f534c05547cd2f66dade0e0f198ea4c2928a7e899e660280786b3e965437a67b8c5bb81c59d0fa1818b4eb7b701d2dce015a420d380422d2bca4e1a DIST rp-pppoe-3.14-patches-01.tar.xz 4708 BLAKE2B d0c294490f5c4c8f3f81fccb8234d5eec2257350a41206bf05882aa7e2aa0e2cb0944a962d77e23451f604376168298d5ef99c70b134989c35261bae6046b882 SHA512 0ae0f91e8b9cfcd7d1a1af6cb55f7972e9bc029cd4b10469d5be696ae750d6aabb5f59426e9bf6f700d5a56decd3ddf85a097bb98ae1d06f0b167967b5b8b8ea -DIST rp-pppoe-3.14.tar.gz 224688 BLAKE2B bfac215d206ce53ead2a10d5440f8243cce4763f7ef15d52f7bd609e8eebdebf5bc52204350988cb1d1b69d1df9092aca77173333e753e8bb9752ead8618569c SHA512 0fa26e9478d387d4752ab85837dab9d1464f27c1ca832bad265deb01b5c3565aa341e3c75278b43a56aed466f02861af11b3bc64bae932a13cb103c4f0b91a29 DIST rp-pppoe-3.15.tar.gz 224966 BLAKE2B 85eda606677b71e35ed3b9389db0d01ac1f16c7b40cc31b3adf31946b18454b77867a5e8822386e9fb08455399733242c4c074c2fee6f1c4d62fe23b44e82707 SHA512 a156c084e57361ab6a464c3205ffb85cf86d02f71f17f92c9567f1ab0ed300f10030832fd232084699dc842ac4891efc8c54c8165587bfc7b4c92724318a60d9 -EBUILD rp-pppoe-3.14.ebuild 2299 BLAKE2B 29316862ad0f00dfd719a4af51af39fea06611b6997cf7b13e32b8c6e4a94e82cff73b51b52fcc18effae5a2500990ba87fea3ef8e7686e9465f30e1e186eccc SHA512 3d1a90c6e21f09ac4a4db7de679d12660ab204ee61480dda90a9ee9151c76c2d20f560248335b048724dacd2d3be272682309f2827fdfc885c8dbb13625ccd2e EBUILD rp-pppoe-3.15-r1.ebuild 2097 BLAKE2B 2f1401057ba53f1b7f290417bb7580291e8e7943e3d854c4a33ea1d6b03cf2d5bbe697066b1379959d97e5a4d2f7462cc6129bd250be6889554ceadf74830703 SHA512 489a1de583cc0b531ae6b01557f9b8af16f96e38e4677ceb0c18ddf991727f773435a54c3e1917d225af90d0ab4ec40f7fa5ed2d976e405ece8e1f0d958e6270 +EBUILD rp-pppoe-3.15-r2.ebuild 2188 BLAKE2B 2ab021bfcedfc8b324fef2de4951a02aed9f0b382ac4d8d0fbb3d0842b247521234c720934a852c05864da100afcd7c54466833df38244dd4ac1e87f32d760a5 SHA512 6e18cb3d71cd040062391892df5fda5e1010987fd7c858cedcc6861cd4fd92b130b7a582ef8375e7a72c5ff20aa46fc72ff8827b0403af81cb6894d90bb7f15d EBUILD rp-pppoe-3.15.ebuild 2395 BLAKE2B d485ae601932325e29c94b11d36934a6aa8dcf75e2e64e242ebb6fe766c193004b9ca904909a9990ac16cc29d5dcef89f10d842f0eda7f58e9ab1d350fa92cc6 SHA512 5a81a478d2f2042ef24e7aa6a2abe75452ac6828d0c4e29b17a09acfd2e349c9583bfa3f5a3a90f7fc35670eb5472bf57e9c657c40e4601d1e0e04528c4ddc3c MISC metadata.xml 370 BLAKE2B 04fa2afd30bf660d7c2ac948a09fc1fc9d40f44f0eda79432b4f0be7741dd9f4e0f104db474f94d5515f62a37363df06fb169ca246822d1d01a8980b7f393c7d SHA512 09289baac97746fb9c641bfe3be9ab9dae7f5f2f445a1e2364e89ccb4d2c81c75b70d331ccc6b23b25396e36f27ef06aa92652665ad4aedc3290d6617a4e2b17 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 new file mode 100644 index 000000000000..ecf70f09ddc6 --- /dev/null +++ b/net-dialup/rp-pppoe/files/rp-pppoe-3.15-no_max_interfaces.patch @@ -0,0 +1,91 @@ +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.14.ebuild b/net-dialup/rp-pppoe/rp-pppoe-3.15-r2.ebuild index 21179f572f4f..e7433bcf2749 100644 --- a/net-dialup/rp-pppoe/rp-pppoe-3.14.ebuild +++ b/net-dialup/rp-pppoe/rp-pppoe-3.15-r2.ebuild @@ -5,22 +5,24 @@ EAPI=7 inherit autotools readme.gentoo-r1 toolchain-funcs -PPP_P="ppp-2.4.8" -PATCHES="${P}-patches-01" +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/" SRC_URI="https://dianne.skoll.ca/projects/rp-pppoe/download/${P}.tar.gz - https://github.com/paulusmack/ppp/archive/${PPP_P}.tar.gz - https://dev.gentoo.org/~polynomial-c/dist/${PATCHES}.tar.xz" + https://dev.gentoo.org/~polynomial-c/dist/${PATCHSET}.tar.xz" LICENSE="GPL-2" SLOT="0" -KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ~mips ppc ppc64 sparc x86" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86" IUSE="tk" RDEPEND=" net-dialup/ppp:= + sys-apps/iproute2 tk? ( dev-lang/tk:= ) " DEPEND=">=sys-kernel/linux-headers-2.6.25 @@ -30,9 +32,11 @@ 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_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() { @@ -40,7 +44,10 @@ src_prepare() { 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 @@ -51,28 +58,25 @@ src_configure() { addpredict /dev/ppp cd src || die - # Not a mistake! This comes from the GitHub tarball doing funky naming - econf --enable-plugin=../../ppp-ppp-${PPPD_VER} + + econf --enable-plugin=/usr/include/pppd } src_compile() { cd src || die - emake AR="$(tc-getAR)" + emake AR="$(tc-getAR)" PLUGIN_PATH=rp-pppoe.so PLUGIN_DIR="${PPPD_PLUGIN_DIR}" - if use tk; then + if use tk ; then emake -C "${S}/gui" fi } src_install() { cd src || die - emake DESTDIR="${D}" install + emake DESTDIR="${D}" docdir="/usr/share/doc/${PF}" PLUGIN_DIR="${PPPD_PLUGIN_DIR}" install - #Don't use compiled rp-pppoe plugin - see pkg_preinst below - local pppoe_plugin="${ED}/etc/ppp/plugins/rp-pppoe.so" - if [[ -f "${pppoe_plugin}" ]] ; then - rm "${pppoe_plugin}" || die - fi + # 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" \ @@ -87,10 +91,3 @@ src_install() { readme.gentoo_create_doc } - -pkg_preinst() { - # Use the rp-pppoe plugin that comes with net-dialup/pppd - if [[ -n "${PPPD_VER}" ]] && [[ -f "${EROOT}/usr/$(get_libdir)/pppd/${PPPD_VER}/rp-pppoe.so" ]] ; then - dosym ../../../usr/$(get_libdir)/pppd/${PPPD_VER}/rp-pppoe.so /etc/ppp/plugins/rp-pppoe.so - fi -} |