summaryrefslogtreecommitdiffstats
path: root/mail-client
diff options
context:
space:
mode:
authorSuren A. Chilingaryan <csa@suren.me>2019-09-01 00:00:32 +0200
committerSuren A. Chilingaryan <csa@suren.me>2019-09-01 00:00:32 +0200
commitca9627e70852f6b2e835660df870fe3ab405882d (patch)
tree0a008b1d5b16fa0679a195ed7b5662c7891f591c /mail-client
downloaddarklin4-ca9627e70852f6b2e835660df870fe3ab405882d.tar.gz
darklin4-ca9627e70852f6b2e835660df870fe3ab405882d.tar.bz2
darklin4-ca9627e70852f6b2e835660df870fe3ab405882d.tar.xz
darklin4-ca9627e70852f6b2e835660df870fe3ab405882d.zip
Initial import
Diffstat (limited to 'mail-client')
-rw-r--r--mail-client/mailx/Manifest5
-rw-r--r--mail-client/mailx/files/mailx-8.1.2.20050715-offsetof.patch36
-rw-r--r--mail-client/mailx/files/mailx-ds-rt.patch12
-rw-r--r--mail-client/mailx/mailx-8.1.2.20160123-r1.ebuild57
4 files changed, 110 insertions, 0 deletions
diff --git a/mail-client/mailx/Manifest b/mail-client/mailx/Manifest
new file mode 100644
index 0000000..7ddfa9f
--- /dev/null
+++ b/mail-client/mailx/Manifest
@@ -0,0 +1,5 @@
+AUX mailx-8.1.2.20050715-offsetof.patch 1566 SHA256 be6bf29554e6f695492e2c9dd3a8e6d6e19a4e375982c7478941c61f992dfe4b SHA512 f6c865cfe32d75d2ce2cf3538822db3c22edc09038ba72f7e25001bfda9b4b2c320e03f91622b316a268cfbdc1f57780ffe199dd8da8c78fbcfe93daf9972aea WHIRLPOOL 3589532bf8a43f95c6ca3c94338e1227e3462754b748e9333a21ccd3b40ca1785befc770aa84bcd84f343701a5aa63009bf68f8d909fa08012745f7a87c32749
+AUX mailx-ds-rt.patch 474 SHA256 21c0c8ed9165b280947e63a7ec63ee318f45ed10936e0445d6dcebca9a2f850c SHA512 d4ea4c2ef44d1f6beff1e4f87219b4f2be5f648bc0736b639b44f3c0ee8325e8a3d494ae45180511f3a8e54709f2ff3bcb868b99cf8ecc215eaaab6c01c994dd WHIRLPOOL deb1a27ff02749370b170ce8b79f3b96e0e18738d26eac3ef5a885c897488a04fd2d48e27711220f5b51a8bd3277c5b44647d850618a4462dfd7e5661383f4e1
+DIST bsd-mailx_8.1.2-0.20160123cvs-4.debian.tar.xz 45768 SHA256 cae1e6a7a35a2d1601d71097a7e6e0b1690927de301e978ca724f848dca7014e SHA512 79d822b4e0e9796970e96f656814cf835fe522d2e33b79484257af50e631a264f6fae99e225d96fa37f50d7ce9f3b9e9577ddb361a27c6e59af8db4736250c19 WHIRLPOOL 87ec85771089308a64af7108b03d99b39b5bda05459d4fc9c7f9d3b8c72d9bf41ad787ad504932c3dc482547b3351d4a42a6de8329922d3cc1c09c44a453dcb0
+DIST bsd-mailx_8.1.2-0.20160123cvs.orig.tar.bz2 76715 SHA256 e4b7384d4ceb704491b6c319be8e18d53ef32321793b7fd6224b4718f4c6fbf1 SHA512 b66dd0fc5a150c0e1068b9aedda8425c73be7ac7e22d91f2c52de3f2d416016886f46dd54ec5024c0cd4c7e736aee7bdb68d9117f9b2b455fc42d05e1a677373 WHIRLPOOL 94a4db459b24ae0a39d69c2049138e82325d9c873c780a6d7d3322f5ca90fd2244e698baa478baadf9345605e760fb54878841f8b5288728e9a6d3fcb8ff73bc
+EBUILD mailx-8.1.2.20160123-r1.ebuild 1294 SHA256 a19dd46473f6b905754bc9294435b53e607871438cc72eac9e9eb19862f3574b SHA512 f02ab94cbe401baa1a499c3ff3d1194c312d6259937c6b6db91b5518593b91727f56238b324b8b6abbe7e50df33d08351523776dbaffe171b79d7ef20b7dc401 WHIRLPOOL 38ce7c7cad4d77bda9e43410e9938ae4c74d7998fa96e6724d2ba0632c8e2778290c941dd056008c5fd4946c7f6e57910aa8d31f177f2e70e987a2d214df8c88
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 0000000..7af8128
--- /dev/null
+++ b/mail-client/mailx/files/mailx-8.1.2.20050715-offsetof.patch
@@ -0,0 +1,36 @@
+diff -r -u mailx-8.1.2-0.20050715cvs.orig.orig/def.h mailx-8.1.2-0.20050715cvs.orig/def.h
+--- mailx-8.1.2-0.20050715cvs.orig.orig/def.h 2003-10-14 21:50:20.000000000 +0900
++++ mailx-8.1.2-0.20050715cvs.orig/def.h 2010-03-31 10:29:37.000000000 +0900
+@@ -97,7 +97,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))
+
+ /*
+diff -r -u mailx-8.1.2-0.20050715cvs.orig.orig/edit.c mailx-8.1.2-0.20050715cvs.orig/edit.c
+--- mailx-8.1.2-0.20050715cvs.orig.orig/edit.c 2004-05-25 01:34:32.000000000 +0900
++++ mailx-8.1.2-0.20050715cvs.orig/edit.c 2010-03-31 10:41:28.000000000 +0900
+@@ -111,7 +111,7 @@
+ (void)fseek(otf, 0L, 2);
+ 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;
+diff -r -u mailx-8.1.2-0.20050715cvs.orig.orig/fio.c mailx-8.1.2-0.20050715cvs.orig/fio.c
+--- mailx-8.1.2-0.20050715cvs.orig.orig/fio.c 2004-05-25 01:34:32.000000000 +0900
++++ mailx-8.1.2-0.20050715cvs.orig/fio.c 2010-03-31 10:29:28.000000000 +0900
+@@ -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/files/mailx-ds-rt.patch b/mail-client/mailx/files/mailx-ds-rt.patch
new file mode 100644
index 0000000..07d49d7
--- /dev/null
+++ b/mail-client/mailx/files/mailx-ds-rt.patch
@@ -0,0 +1,12 @@
+diff -dPNur bsd-mailx-8.1.2-0.20160123cvs.orig/Makefile bsd-mailx-8.1.2-0.20160123cvs.orig-ds/Makefile
+--- bsd-mailx-8.1.2-0.20160123cvs.orig/Makefile 2018-04-10 22:47:18.000000000 +0000
++++ bsd-mailx-8.1.2-0.20160123cvs.orig-ds/Makefile 2018-04-10 22:49:25.000000000 +0000
+@@ -10,7 +10,7 @@
+ popen.c quit.c send.c strings.c temp.c tty.c vars.c
+
+ OBJS=$(SRCS:%.c=%.o)
+-LIBS=-llockfile -lbsd
++LIBS=-llockfile -lbsd -lrt
+
+ SFILES= mail.help mail.tildehelp
+ EFILES= mail.rc
diff --git a/mail-client/mailx/mailx-8.1.2.20160123-r1.ebuild b/mail-client/mailx/mailx-8.1.2.20160123-r1.ebuild
new file mode 100644
index 0000000..4e451d7
--- /dev/null
+++ b/mail-client/mailx/mailx-8.1.2.20160123-r1.ebuild
@@ -0,0 +1,57 @@
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit eutils
+
+DP="bsd-${PN}_${PV%.*}-0.${PV##*.}cvs"
+DPT="${DP}.orig.tar.bz2"
+DPP="${DP}-4.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 ~sh sparc x86 ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x86-macos"
+IUSE=""
+
+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}-ds-rt.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
+}