summaryrefslogtreecommitdiff
path: root/mail-client/mailx
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2020-04-25 11:37:10 +0100
committerV3n3RiX <venerix@redcorelinux.org>2020-04-25 11:37:10 +0100
commit38423c67c8a23f6a1bc42038193182e2da3116eb (patch)
tree04e2cf4bd43601b77daa79fe654e409187093c5e /mail-client/mailx
parent623ee73d661e5ed8475cb264511f683407d87365 (diff)
gentoo resync : 25.04.2020
Diffstat (limited to 'mail-client/mailx')
-rw-r--r--mail-client/mailx/Manifest4
-rw-r--r--mail-client/mailx/files/mailx-8.1.2.20180807-fno-common.patch156
-rw-r--r--mail-client/mailx/mailx-8.1.2.20180807.ebuild56
3 files changed, 216 insertions, 0 deletions
diff --git a/mail-client/mailx/Manifest b/mail-client/mailx/Manifest
index 295d557900d8..5f1597a42ce2 100644
--- a/mail-client/mailx/Manifest
+++ b/mail-client/mailx/Manifest
@@ -1,5 +1,9 @@
AUX mailx-8.1.2.20050715-offsetof.patch 1566 BLAKE2B 0878d9f3b639e292e1cfc69676c3e8b3ef68627764828f89fb252c72ac8133162fc4bda234ed1a82487a39306efbead9406b2dc750548deea3fb4c767ddc26c1 SHA512 f6c865cfe32d75d2ce2cf3538822db3c22edc09038ba72f7e25001bfda9b4b2c320e03f91622b316a268cfbdc1f57780ffe199dd8da8c78fbcfe93daf9972aea
+AUX mailx-8.1.2.20180807-fno-common.patch 7481 BLAKE2B e847c7865c2346bfaeae2a32539aae3e5a73452073253af52615f3791285e822bbb96174dfabc97daec576a36d7d9ec7a2e9fc94b7372aea8efa08c363095f5f SHA512 37a5ed4b1b31eecd05d8a05b59aec9f8cba78cda838bd2ce06ed3f6c7a4f1e586223207e9ebdbd2cf952bab1dcbf06466aa61c61bcf0527fd57bc0b018acfe85
DIST bsd-mailx_8.1.2-0.20160123cvs-4.debian.tar.xz 45768 BLAKE2B 7e5ae62dee742502ea86c55803615f67b2be082b0fe3e6dbf5f64ca7b63fa79014195f4c2262ffaba23624677227df4a94d3966611e9de4bf491f52e050c88b9 SHA512 79d822b4e0e9796970e96f656814cf835fe522d2e33b79484257af50e631a264f6fae99e225d96fa37f50d7ce9f3b9e9577ddb361a27c6e59af8db4736250c19
DIST bsd-mailx_8.1.2-0.20160123cvs.orig.tar.bz2 76715 BLAKE2B c6491cd88e99b62184da60cc6f8a42aac5f7f5a828c80c05d3dc4493c77727e553b916cb646dade38214d3a6738c084559764abb812a1dfe1fcce2e4d6a04960 SHA512 b66dd0fc5a150c0e1068b9aedda8425c73be7ac7e22d91f2c52de3f2d416016886f46dd54ec5024c0cd4c7e736aee7bdb68d9117f9b2b455fc42d05e1a677373
+DIST bsd-mailx_8.1.2-0.20180807cvs-1.debian.tar.xz 47916 BLAKE2B 6776dc1705383438e4249269f38a0db963731580ce4df3a2f6fddb112495db3225608b97718cd3916e7bb40b71d0338e6d262416a42b60ba19a6f4a8e1c8627e SHA512 3c99c5be121ecb37f2495b885e2a00290173b16578da100bb7955f86c7e76b8a8cd6bf8f936c1f00b906611e8649c0a6a25089b647d7f5ebcea8c8df3f334e28
+DIST bsd-mailx_8.1.2-0.20180807cvs.orig.tar.xz 79684 BLAKE2B 2846cd752472a193f89f7672d6a61de9759beea5530484c75ae4703335afc22a833226a87141853e4fbb2c951f9818ff35c8b79349b8a7a9a77f7788c6569bab SHA512 7a33d35934b0a98660732259d3132235ed14cd6843e79edd5683b668c3a550b45f0664021af35c219043640c20ce5aa34eaaf6dc275dc7e83aaed44853d008c9
EBUILD mailx-8.1.2.20160123.ebuild 1252 BLAKE2B c0dbe3c57cbe7c344f7516b84f9195534456269078403ffa7d7394b817bf0011f312ff4c198244f43af815d81a8486287358b430f606759442d6b3e9903e56f8 SHA512 00e923afa6639b52ba0e46c35a2e41d58f176718f7bd4bd0e24248758ebd8f85f42f8c8a7e5fe9b5ca75ddd162c86ac183d6a5882d1625203fde91150149719a
+EBUILD mailx-8.1.2.20180807.ebuild 1303 BLAKE2B eb3d131506919d528b6afc41f2aba8ac666ebac1feb7afa7b570605787937f99277c554453b043b336b20c77388b3a56ef21e680c54b65f3c23fa2b1993c45df SHA512 6bac51e74ee5bac15ad4e71f07a450056af0abef5e0b7474e6c0d7ccab6f219b29bcae92db0386ce8bcb7f278ac04e58db783439df2679d57dd5dd36bdb0b296
MISC metadata.xml 166 BLAKE2B c254f1fb642881aba57637be14fb0a89b10384f91a128feaec3a8c870d76efc2cbacb92caccc0dee2dd19a5ac5eaf8643080dafa05c4e2ac96a68568927e5afd SHA512 a56648c974a1d14dd4c18237532773c72057a13ab90c58b5da04f185e3c12a8bd8d5c21fb06053507f31766291a82dc7d87b34cd65fd94cfe2af7295c813ef84
diff --git a/mail-client/mailx/files/mailx-8.1.2.20180807-fno-common.patch b/mail-client/mailx/files/mailx-8.1.2.20180807-fno-common.patch
new file mode 100644
index 000000000000..cfde60d1d576
--- /dev/null
+++ b/mail-client/mailx/files/mailx-8.1.2.20180807-fno-common.patch
@@ -0,0 +1,156 @@
+--- a/glob.h
++++ b/glob.h
+@@ -37,48 +37,48 @@
+ * A bunch of global variable declarations lie herein.
+ * def.h must be included first.
+ */
+-int msgCount; /* Count of messages read in */
+-int rcvmode; /* True if receiving mail */
+-int sawcom; /* Set after first command */
+-int senderr; /* An error while checking */
+-int edit; /* Indicates editing a file */
+-int readonly; /* Will be unable to rewrite file */
+-int noreset; /* String resets suspended */
+-int sourcing; /* Currently reading variant file */
+-int loading; /* Loading user definitions */
+-int cond; /* Current state of conditional exc. */
+-FILE *itf; /* Input temp file buffer */
+-FILE *otf; /* Output temp file buffer */
+-int image; /* File descriptor for image of msg */
+-FILE *input; /* Current command input file */
+-char mailname[PATHSIZE]; /* Name of current file */
+-char prevfile[PATHSIZE]; /* Name of previous file */
+-char *homedir; /* Path name of home directory */
+-char *myname; /* My login name */
+-off_t mailsize; /* Size of system mailbox */
+-int lexnumber; /* Number of TNUMBER from scan() */
+-char lexstring[STRINGLEN]; /* String from TSTRING, scan() */
+-int regretp; /* Pointer to TOS of regret tokens */
+-int regretstack[REGDEP]; /* Stack of regretted tokens */
+-char *string_stack[REGDEP]; /* Stack of regretted strings */
+-int numberstack[REGDEP]; /* Stack of regretted numbers */
+-struct message *dot; /* Pointer to current message */
+-struct message *message; /* The actual message structure */
+-struct var *variables[HSHSIZE]; /* Pointer to active var list */
+-struct grouphead *groups[HSHSIZE];/* Pointer to active groups */
+-struct ignoretab ignore[2]; /* ignored and retained fields
+- 0 is ignore, 1 is retain */
+-struct ignoretab saveignore[2]; /* ignored and retained fields
+- on save to folder */
+-struct ignoretab ignoreall[2]; /* special, ignore all headers */
+-char **altnames; /* List of alternate names for user */
+-int debug; /* Debug flag set */
+-int screenwidth; /* Screen width, or best guess */
+-int screenheight; /* Screen height, or best guess,
+- for "header" command */
+-int realscreenheight; /* the real screen height */
+-int uflag; /* Are we in -u mode? */
+-sigset_t intset; /* Signal set that is just SIGINT */
++extern int msgCount; /* Count of messages read in */
++extern int rcvmode; /* True if receiving mail */
++extern int sawcom; /* Set after first command */
++extern int senderr; /* An error while checking */
++extern int edit; /* Indicates editing a file */
++extern int readonly; /* Will be unable to rewrite file */
++extern int noreset; /* String resets suspended */
++extern int sourcing; /* Currently reading variant file */
++extern int loading; /* Loading user definitions */
++extern int cond; /* Current state of conditional exc. */
++extern FILE *itf; /* Input temp file buffer */
++extern FILE *otf; /* Output temp file buffer */
++extern int image; /* File descriptor for image of msg */
++extern FILE *input; /* Current command input file */
++extern char mailname[PATHSIZE]; /* Name of current file */
++extern char prevfile[PATHSIZE]; /* Name of previous file */
++extern char *homedir; /* Path name of home directory */
++extern char *myname; /* My login name */
++extern off_t mailsize; /* Size of system mailbox */
++extern int lexnumber; /* Number of TNUMBER from scan() */
++extern char lexstring[STRINGLEN]; /* String from TSTRING, scan() */
++extern int regretp; /* Pointer to TOS of regret tokens */
++extern int regretstack[REGDEP]; /* Stack of regretted tokens */
++extern char *string_stack[REGDEP]; /* Stack of regretted strings */
++extern int numberstack[REGDEP]; /* Stack of regretted numbers */
++extern struct message *dot; /* Pointer to current message */
++extern struct message *message; /* The actual message structure */
++extern struct var *variables[HSHSIZE]; /* Pointer to active var list */
++extern struct grouphead *groups[HSHSIZE];/* Pointer to active groups */
++extern struct ignoretab ignore[2]; /* ignored and retained fields
++ 0 is ignore, 1 is retain */
++extern struct ignoretab saveignore[2]; /* ignored and retained fields
++ on save to folder */
++extern struct ignoretab ignoreall[2]; /* special, ignore all headers */
++extern char **altnames; /* List of alternate names for user */
++extern int debug; /* Debug flag set */
++extern int screenwidth; /* Screen width, or best guess */
++extern int screenheight; /* Screen height, or best guess,
++ for "header" command */
++extern int realscreenheight; /* the real screen height */
++extern int uflag; /* Are we in -u mode? */
++extern sigset_t intset; /* Signal set that is just SIGINT */
+
+ /*
+ * The pointers for the string allocation routines,
+@@ -87,7 +87,7 @@
+ * twice as much, and so on.
+ */
+ #define NSPACE 25 /* Total number of string spaces */
+-struct strings {
++extern struct strings {
+ char *s_topFree; /* Beginning of this area */
+ char *s_nextFree; /* Next alloctable place here */
+ unsigned s_nleft; /* Number of bytes left here */
+--- a/main.c
++++ b/main.c
+@@ -36,6 +36,51 @@
+ #include "extern.h"
+ #include <locale.h>
+
++int msgCount; /* Count of messages read in */
++int rcvmode; /* True if receiving mail */
++int sawcom; /* Set after first command */
++int senderr; /* An error while checking */
++int edit; /* Indicates editing a file */
++int readonly; /* Will be unable to rewrite file */
++int noreset; /* String resets suspended */
++int sourcing; /* Currently reading variant file */
++int loading; /* Loading user definitions */
++int cond; /* Current state of conditional exc. */
++FILE *itf; /* Input temp file buffer */
++FILE *otf; /* Output temp file buffer */
++int image; /* File descriptor for image of msg */
++FILE *input; /* Current command input file */
++char mailname[PATHSIZE]; /* Name of current file */
++char prevfile[PATHSIZE]; /* Name of previous file */
++char *homedir; /* Path name of home directory */
++char *myname; /* My login name */
++off_t mailsize; /* Size of system mailbox */
++int lexnumber; /* Number of TNUMBER from scan() */
++char lexstring[STRINGLEN]; /* String from TSTRING, scan() */
++int regretp; /* Pointer to TOS of regret tokens */
++int regretstack[REGDEP]; /* Stack of regretted tokens */
++char *string_stack[REGDEP]; /* Stack of regretted strings */
++int numberstack[REGDEP]; /* Stack of regretted numbers */
++struct message *dot; /* Pointer to current message */
++struct message *message; /* The actual message structure */
++struct var *variables[HSHSIZE]; /* Pointer to active var list */
++struct grouphead *groups[HSHSIZE];/* Pointer to active groups */
++struct ignoretab ignore[2]; /* ignored and retained fields
++ 0 is ignore, 1 is retain */
++struct ignoretab saveignore[2]; /* ignored and retained fields
++ on save to folder */
++struct ignoretab ignoreall[2]; /* special, ignore all headers */
++char **altnames; /* List of alternate names for user */
++int debug; /* Debug flag set */
++int screenwidth; /* Screen width, or best guess */
++int screenheight; /* Screen height, or best guess,
++ for "header" command */
++int realscreenheight; /* the real screen height */
++int uflag; /* Are we in -u mode? */
++sigset_t intset; /* Signal set that is just SIGINT */
++
++struct strings stringdope[NSPACE];
++
+ static void usage(void);
+ int main(int, char **);
+
diff --git a/mail-client/mailx/mailx-8.1.2.20180807.ebuild b/mail-client/mailx/mailx-8.1.2.20180807.ebuild
new file mode 100644
index 000000000000..48401bc46945
--- /dev/null
+++ b/mail-client/mailx/mailx-8.1.2.20180807.ebuild
@@ -0,0 +1,56 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+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 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos"
+
+DEPEND=">=net-libs/liblockfile-1.03
+ dev-libs/libbsd
+ virtual/mta
+ mail-client/mailx-support"
+
+RDEPEND="${DEPEND}
+ !mail-client/nail
+ !net-mail/mailutils"
+
+src_prepare() {
+ eapply "${WORKDIR}/debian/patches"
+ eapply "${FILESDIR}/${PN}-8.1.2.20050715-offsetof.patch"
+ eapply "${FILESDIR}/${PN}-8.1.2.20180807-fno-common.patch"
+ eapply_user
+}
+
+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
+}