summaryrefslogtreecommitdiff
path: root/mail-client/mailx
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 /mail-client/mailx
parent24f9cbfc4c34fdb6a6e03311674414e881ceab47 (diff)
downloadbaldeagleos-repo-b590c8d7572b727d565cc0b8ff660d43569845de.tar.gz
baldeagleos-repo-b590c8d7572b727d565cc0b8ff660d43569845de.tar.xz
baldeagleos-repo-b590c8d7572b727d565cc0b8ff660d43569845de.zip
Adding metadata
Diffstat (limited to 'mail-client/mailx')
-rw-r--r--mail-client/mailx/Manifest2
-rw-r--r--mail-client/mailx/files/mailx-8.1.2-20180807-musl-CCEQ.patch17
-rw-r--r--mail-client/mailx/files/mailx-8.1.2.20050715-offsetof.patch33
-rw-r--r--mail-client/mailx/mailx-8.1.2.20220412.ebuild55
-rw-r--r--mail-client/mailx/metadata.xml5
5 files changed, 112 insertions, 0 deletions
diff --git a/mail-client/mailx/Manifest b/mail-client/mailx/Manifest
new file mode 100644
index 000000000000..7e6e1d632c74
--- /dev/null
+++ b/mail-client/mailx/Manifest
@@ -0,0 +1,2 @@
+DIST bsd-mailx_8.1.2-0.20220412cvs-1.debian.tar.xz 49564 BLAKE2B 4df1fa6be15b811e2a23f059b52a961849818f9defeb5671ec01f6ca9604998d7bf6e182edfc54c9b06b2b0c6e8cb1c270ca1758e2ca9a2aa6758ea41cd05014 SHA512 8794d8a41ec86012f4e74509f489afa8dcb624a17a6bc779024b2bb6eed8a7a86826785601bd295147641cd26f4288ec73aa8c3a2451b35b41fbc682f91c157f
+DIST bsd-mailx_8.1.2-0.20220412cvs.orig.tar.xz 79616 BLAKE2B 436a312125f36067e5c126cb1e5bc91d8b4675c22ee827a822b14fb1f5ca23b7a43cd58ca14602929bb6c0cb48701ef6101ad2ed07ea9b7e9239c25edf73346e SHA512 acee80e49fbac85dfaa48d885dd310a056a1418c6e3b02ee9f30441a34c104b134fb7c47cac91a1b2359d3d3cba0cf026d9cdf51f659b8c172100d7f98156203
diff --git a/mail-client/mailx/files/mailx-8.1.2-20180807-musl-CCEQ.patch b/mail-client/mailx/files/mailx-8.1.2-20180807-musl-CCEQ.patch
new file mode 100644
index 000000000000..d04ddd789e3a
--- /dev/null
+++ b/mail-client/mailx/files/mailx-8.1.2-20180807-musl-CCEQ.patch
@@ -0,0 +1,17 @@
+https://bugs.gentoo.org/719512
+
+Tiny definition copied from /usr/include/termios.h.
+--- a/tty.c
++++ b/tty.c
+@@ -57,6 +57,10 @@
+ size_t cursor;
+ };
+
++#ifndef CCEQ
++#define CCEQ(val, c) ((c) == (val) && (val) != _POSIX_VDISABLE)
++#endif
++
+ static void tty_flush(struct tty *);
+ static int tty_getc(struct tty *);
+ static int tty_insert(struct tty *, int, int);
+
diff --git a/mail-client/mailx/files/mailx-8.1.2.20050715-offsetof.patch b/mail-client/mailx/files/mailx-8.1.2.20050715-offsetof.patch
new file mode 100644
index 000000000000..37c8bbedbe38
--- /dev/null
+++ b/mail-client/mailx/files/mailx-8.1.2.20050715-offsetof.patch
@@ -0,0 +1,33 @@
+--- a/def.h
++++ b/def.h
+@@ -107,7 +107,7 @@
+ * Given a file address, determine the block number it represents.
+ */
+ #define blockof(off) ((int) ((off) / 4096))
+-#define offsetof(off) ((int) ((off) % 4096))
++#define offsetofmailx(off) ((int) ((off) % 4096))
+ #define positionof(block, offset) ((off_t)(block) * 4096 + (offset))
+
+ /*
+--- a/edit.c
++++ b/edit.c
+@@ -133,7 +133,7 @@
+ (void)fseek(otf, 0L, SEEK_END);
+ size = ftell(otf);
+ mp->m_block = blockof(size);
+- mp->m_offset = offsetof(size);
++ mp->m_offset = offsetofmailx(size);
+ mp->m_size = fsize(fp);
+ mp->m_lines = 0;
+ mp->m_flag |= MODIFY;
+--- a/fio.c
++++ b/fio.c
+@@ -139,7 +139,7 @@
+ this.m_size = 0;
+ this.m_lines = 0;
+ this.m_block = blockof(offset);
+- this.m_offset = offsetof(offset);
++ this.m_offset = offsetofmailx(offset);
+ inhead = 1;
+ } else if (linebuf[0] == 0) {
+ inhead = 0;
diff --git a/mail-client/mailx/mailx-8.1.2.20220412.ebuild b/mail-client/mailx/mailx-8.1.2.20220412.ebuild
new file mode 100644
index 000000000000..e8e4fc33913a
--- /dev/null
+++ b/mail-client/mailx/mailx-8.1.2.20220412.ebuild
@@ -0,0 +1,55 @@
+# Copyright 1999-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit toolchain-funcs
+
+DP="bsd-${PN}_${PV%.*}-0.${PV##*.}cvs"
+DPT="${DP}.orig.tar.xz"
+DPP="${DP}-1.debian.tar.xz"
+
+DESCRIPTION="The $ mail program, which is used to send mail via shell scripts"
+HOMEPAGE="https://www.debian.org/"
+SRC_URI="
+ http://http.debian.net/debian/pool/main/b/bsd-${PN}/${DPT}
+ http://http.debian.net/debian/pool/main/b/bsd-${PN}/${DPP}
+"
+S="${WORKDIR}/${DP/_/-}.orig"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~alpha amd64 arm arm64 ~hppa ~mips ppc ppc64 ~riscv ~s390 ~sparc x86"
+
+DEPEND="
+ >=net-libs/liblockfile-1.03
+ dev-libs/libbsd
+ virtual/mta
+ || ( mail-client/mailx-support mail-mta/opensmtpd )"
+RDEPEND="${DEPEND}
+ !net-mail/mailutils"
+
+PATCHES=(
+ "${WORKDIR}"/debian/patches
+ "${FILESDIR}"/${PN}-8.1.2.20050715-offsetof.patch
+ "${FILESDIR}"/${PN}-8.1.2-20180807-musl-CCEQ.patch
+)
+
+src_compile() {
+ emake CC="$(tc-getCC)" EXTRAFLAGS="${CFLAGS}"
+}
+
+src_install() {
+ dobin mail
+
+ doman mail.1
+
+ dosym mail /usr/bin/Mail
+ dosym mail /usr/bin/mailx
+ dosym mail.1 /usr/share/man/man1/Mail.1
+
+ insinto /usr/share/mailx/
+ doins misc/mail.help misc/mail.tildehelp
+ insinto /etc
+ doins misc/mail.rc
+}
diff --git a/mail-client/mailx/metadata.xml b/mail-client/mailx/metadata.xml
new file mode 100644
index 000000000000..5f33304011d5
--- /dev/null
+++ b/mail-client/mailx/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "https://docs.baldeagleos.com/dtd/metadata.dtd">
+<pkgmetadata>
+ <origin>baldeagleos-repo</origin>
+</pkgmetadata>