summaryrefslogtreecommitdiff
path: root/sys-apps/most
diff options
context:
space:
mode:
authorroot <root@alpha.trunkmasters.com>2026-06-12 19:09:37 -0500
committerroot <root@alpha.trunkmasters.com>2026-06-12 19:09:37 -0500
commitb590c8d7572b727d565cc0b8ff660d43569845de (patch)
tree06f7a4102ea4e845df8b66660f252920d52952f9 /sys-apps/most
parent24f9cbfc4c34fdb6a6e03311674414e881ceab47 (diff)
downloadbaldeagleos-repo-b590c8d7572b727d565cc0b8ff660d43569845de.tar.gz
baldeagleos-repo-b590c8d7572b727d565cc0b8ff660d43569845de.tar.xz
baldeagleos-repo-b590c8d7572b727d565cc0b8ff660d43569845de.zip
Adding metadata
Diffstat (limited to 'sys-apps/most')
-rw-r--r--sys-apps/most/Manifest1
-rw-r--r--sys-apps/most/files/most-5.0.0a-donot-hardcode-path.patch33
-rw-r--r--sys-apps/most/files/most-5.2.0-buffer-overflow.patch29
-rw-r--r--sys-apps/most/metadata.xml9
-rw-r--r--sys-apps/most/most-5.2.0-r1.ebuild39
-rw-r--r--sys-apps/most/most-5.2.0.ebuild37
6 files changed, 148 insertions, 0 deletions
diff --git a/sys-apps/most/Manifest b/sys-apps/most/Manifest
new file mode 100644
index 000000000000..a11602700ee6
--- /dev/null
+++ b/sys-apps/most/Manifest
@@ -0,0 +1 @@
+DIST most-5.2.0.tar.gz 256075 BLAKE2B ae73680cedb0306dd6980c637fd8c0d016537663ab707e925931972822f718dd31fc80d83598af9832c7869b5abf4ec3333bc076ce56c4a6d42f71d30be1a50d SHA512 3aa3cb46ddd456532a009fb9cfcd746971396be33e03e52a15b754a6d7683f4efd020edb0ec4eb36d22ba20f050aaac4ba6cdd3b69bb5701ea58ddb9a903c59d
diff --git a/sys-apps/most/files/most-5.0.0a-donot-hardcode-path.patch b/sys-apps/most/files/most-5.0.0a-donot-hardcode-path.patch
new file mode 100644
index 000000000000..37e786c26b0c
--- /dev/null
+++ b/sys-apps/most/files/most-5.0.0a-donot-hardcode-path.patch
@@ -0,0 +1,33 @@
+Author: Benda Xu <heroxbd@gentoo.org>
+Date: 2014-12-08
+Forwarded: John E. Davis <jed@jedsoft.org>
+
+cp or rm does not necessarily reside in /bin. If it does, /bin is
+in $PATH by convention. In either case, hardcoding /bin/cp or /bin/rm
+is not a good idea.
+
+Index: most-5.0.0a/src/Makefile.in
+===================================================================
+--- most-5.0.0a.orig/src/Makefile.in
++++ most-5.0.0a/src/Makefile.in
+@@ -61,7 +61,7 @@ $(OBJDIR):
+ -mkdir $(OBJDIR)
+ #
+ $(CONFIG_H) : $(SRCDIR)/sysconf.h
+- /bin/cp $(SRCDIR)/sysconf.h $(CONFIG_H)
++ cp $(SRCDIR)/sysconf.h $(CONFIG_H)
+ #
+ slangversion: $(OBJDIR)/chkslang
+ $(OBJDIR)/chkslang $(EXEC) 20000
+@@ -75,9 +75,9 @@ $(SRCDIR)/version.h: $(SRCDIR)/../change
+ fi
+ #
+ clean:
+- /bin/rm -f $(OBJDIR)/* *~
++ rm -f $(OBJDIR)/* *~
+ distclean: clean
+- /bin/rm -rf $(OBJDIR) Makefile sysconf.h
++ rm -rf $(OBJDIR) Makefile sysconf.h
+ installdirs:
+ $(MKINSDIR) $(DEST_DOCDIR)
+ $(MKINSDIR) $(DEST_MANDIR)/man1
diff --git a/sys-apps/most/files/most-5.2.0-buffer-overflow.patch b/sys-apps/most/files/most-5.2.0-buffer-overflow.patch
new file mode 100644
index 000000000000..b0e45e9b95af
--- /dev/null
+++ b/sys-apps/most/files/most-5.2.0-buffer-overflow.patch
@@ -0,0 +1,29 @@
+https://bugs.gentoo.org/963958
+https://gitlab.archlinux.org/archlinux/packaging/packages/most/-/raw/a07ea9304fd99710f8fc15e3b9d02304fd766e6e/most-5.2.0-most_message-buffer-overlow.patch
+https://github.com/jedsoft/most/commit/77653f684ab2793696b0a5b9502e79d86632b10c
+
+From 77653f684ab2793696b0a5b9502e79d86632b10c Mon Sep 17 00:00:00 2001
+From: "John E. Davis" <jed@jedsoft.org>
+Date: Thu, 3 Jul 2025 19:51:37 -0400
+Subject: [PATCH] pre5.2.5: Avoid a buffer overflow in most_message. This
+ addresses
+ https://gitlab.archlinux.org/archlinux/packaging/packages/most/-/issues/1
+
+---
+ src/window.c | 3 ++-
+ 3 files changed, 5 insertions(+), 2 deletions(-)
+
+diff --git a/src/window.c b/src/window.c
+index 41f5356..483dc8b 100644
+--- a/src/window.c
++++ b/src/window.c
+@@ -61,7 +61,8 @@ static int Minibuffer_Selected;
+
+ void most_message(char *what, int how)
+ {
+- strcpy (Most_Mini_Buf,what);
++ strncpy (Most_Mini_Buf, what, sizeof(Most_Mini_Buf));
++ Most_Mini_Buf[sizeof(Most_Mini_Buf)-1] = 0;
+ if (how) Beep_Mini = 1; else Beep_Mini = 0;
+ }
+
diff --git a/sys-apps/most/metadata.xml b/sys-apps/most/metadata.xml
new file mode 100644
index 000000000000..6aac50524584
--- /dev/null
+++ b/sys-apps/most/metadata.xml
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "https://docs.baldeagleos.com/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>shell-tools@gentoo.org</email>
+ <name>Gentoo Shell Tools Project</name>
+ </maintainer>
+ <origin>baldeagleos-repo</origin>
+</pkgmetadata>
diff --git a/sys-apps/most/most-5.2.0-r1.ebuild b/sys-apps/most/most-5.2.0-r1.ebuild
new file mode 100644
index 000000000000..37afde5d2727
--- /dev/null
+++ b/sys-apps/most/most-5.2.0-r1.ebuild
@@ -0,0 +1,39 @@
+# Copyright 1999-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DESCRIPTION="Paging program that displays, one windowful at a time, the contents of a file"
+HOMEPAGE="https://www.jedsoft.org/most/"
+SRC_URI="
+ https://www.jedsoft.org/releases/${PN}/${P}.tar.gz
+ https://www.jedsoft.org/releases/${PN}/old/${P}.tar.gz
+"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~mips ~ppc ~ppc64 ~riscv ~sparc ~x86 ~x64-macos"
+
+RDEPEND=">=sys-libs/slang-2.1.3"
+DEPEND="${RDEPEND}"
+
+PATCHES=(
+ "${FILESDIR}"/${PN}-5.0.0a-donot-hardcode-path.patch
+ "${FILESDIR}"/${PN}-5.2.0-buffer-overflow.patch
+)
+
+src_prepare() {
+ default
+ # Do not strip by default
+ sed -e '/\$(INSTALL)/s@ -s@@' -i src/Makefile.in || die
+}
+
+src_configure() {
+ unset ARCH
+ econf
+}
+
+src_install() {
+ emake DESTDIR="${D}" DOC_DIR="${EPREFIX}/usr/share/doc/${PF}" \
+ install
+}
diff --git a/sys-apps/most/most-5.2.0.ebuild b/sys-apps/most/most-5.2.0.ebuild
new file mode 100644
index 000000000000..40a4218fe483
--- /dev/null
+++ b/sys-apps/most/most-5.2.0.ebuild
@@ -0,0 +1,37 @@
+# Copyright 1999-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DESCRIPTION="Paging program that displays, one windowful at a time, the contents of a file"
+HOMEPAGE="https://www.jedsoft.org/most/"
+SRC_URI="https://www.jedsoft.org/releases/${PN}/${P}.tar.gz
+ https://www.jedsoft.org/releases/${PN}/old/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~alpha amd64 arm ~arm64 ~mips ppc ppc64 ~riscv ~sparc x86 ~x64-macos"
+IUSE=""
+
+RDEPEND=">=sys-libs/slang-2.1.3"
+DEPEND="${RDEPEND}"
+
+PATCHES=(
+ "${FILESDIR}"/${PN}-5.0.0a-donot-hardcode-path.patch
+)
+
+src_prepare() {
+ default
+ # Do not strip by default
+ sed -e '/\$(INSTALL)/s@ -s@@' -i src/Makefile.in || die
+}
+
+src_configure() {
+ unset ARCH
+ econf
+}
+
+src_install() {
+ emake DESTDIR="${D}" DOC_DIR="${EPREFIX}/usr/share/doc/${PF}" \
+ install
+}