diff options
author | Robin H. Johnson <robbat2@gentoo.org> | 2015-08-08 13:49:04 -0700 |
---|---|---|
committer | Robin H. Johnson <robbat2@gentoo.org> | 2015-08-08 17:38:18 -0700 |
commit | 56bd759df1d0c750a065b8c845e93d5dfa6b549d (patch) | |
tree | 3f91093cdb475e565ae857f1c5a7fd339e2d781e /mail-client/mailx | |
download | gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.gz gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.bz2 gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.zip |
proj/gentoo: Initial commit
This commit represents a new era for Gentoo:
Storing the gentoo-x86 tree in Git, as converted from CVS.
This commit is the start of the NEW history.
Any historical data is intended to be grafted onto this point.
Creation process:
1. Take final CVS checkout snapshot
2. Remove ALL ChangeLog* files
3. Transform all Manifests to thin
4. Remove empty Manifests
5. Convert all stale $Header$/$Id$ CVS keywords to non-expanded Git $Id$
5.1. Do not touch files with -kb/-ko keyword flags.
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
X-Thanks: Alec Warner <antarus@gentoo.org> - did the GSoC 2006 migration tests
X-Thanks: Robin H. Johnson <robbat2@gentoo.org> - infra guy, herding this project
X-Thanks: Nguyen Thai Ngoc Duy <pclouds@gentoo.org> - Former Gentoo developer, wrote Git features for the migration
X-Thanks: Brian Harring <ferringb@gentoo.org> - wrote much python to improve cvs2svn
X-Thanks: Rich Freeman <rich0@gentoo.org> - validation scripts
X-Thanks: Patrick Lauer <patrick@gentoo.org> - Gentoo dev, running new 2014 work in migration
X-Thanks: Michał Górny <mgorny@gentoo.org> - scripts, QA, nagging
X-Thanks: All of other Gentoo developers - many ideas and lots of paint on the bikeshed
Diffstat (limited to 'mail-client/mailx')
-rw-r--r-- | mail-client/mailx/Manifest | 2 | ||||
-rw-r--r-- | mail-client/mailx/files/mailx-8.1.2.20050715-nostrip.patch | 22 | ||||
-rw-r--r-- | mail-client/mailx/files/mailx-8.1.2.20050715-offsetof.patch | 36 | ||||
-rw-r--r-- | mail-client/mailx/mailx-8.1.2.20050715-r6.ebuild | 70 | ||||
-rw-r--r-- | mail-client/mailx/metadata.xml | 5 |
5 files changed, 135 insertions, 0 deletions
diff --git a/mail-client/mailx/Manifest b/mail-client/mailx/Manifest new file mode 100644 index 000000000000..45f2054aa14c --- /dev/null +++ b/mail-client/mailx/Manifest @@ -0,0 +1,2 @@ +DIST mailx_8.1.2-0.20050715cvs-1.diff.gz 36758 SHA256 2fb891f912624766d0bef765d69cec75ad3334dda1aa58659f3c3c1d0579c2c3 SHA512 6506261f24d5a022fd9cee596a78488a279a0b39b7281cdad9c3e52b5c7f6c2506a1b24970c28cf7b4ffa4ce2d71fec650f42d22959b53aeca0f160b2885b2fe WHIRLPOOL f265880c7b318b4353b182f3e7923315bca5b42d1d1770232cba39d6e92b362acb13c6ca05330c43523ed9c8e55d5602ad71cef579d08f506476c5b107ecaab3 +DIST mailx_8.1.2-0.20050715cvs.orig.tar.gz 94664 SHA256 5c578a8c573b4430358d4f6523f8acd8b2c5039579d907c88ec09dab13b226d3 SHA512 1c1d991a0e522b2e78a49b9c78eed80b1f6d4f68ca0427ef720ebe77a3a2881bcd3d63967ab04f5d6f75fbf2212e260e4a841152f8a69d300c46acd90bb48d68 WHIRLPOOL d21dcdfa16a8d5ac8a750618b1319688781542d348397b7616d4efef660c2bc25dd0cd923fddadc772dc08a25dabc114179014e659ce3fe6cf4afc1a98fe2048 diff --git a/mail-client/mailx/files/mailx-8.1.2.20050715-nostrip.patch b/mail-client/mailx/files/mailx-8.1.2.20050715-nostrip.patch new file mode 100644 index 000000000000..14a05ba4d6dc --- /dev/null +++ b/mail-client/mailx/files/mailx-8.1.2.20050715-nostrip.patch @@ -0,0 +1,22 @@ +Index: mailx-8.1.2-0.20050715cvs.orig/Makefile +=================================================================== +--- mailx-8.1.2-0.20050715cvs.orig.orig/Makefile ++++ mailx-8.1.2-0.20050715cvs.orig/Makefile +@@ -3,16 +3,7 @@ + PROG=mail + CC=gcc + +-CFLAGS=-D_BSD_SOURCE -DDEBIAN -g -Wall -IEXT +- +-ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) +- CFLAGS += -O0 +-else +- CFLAGS += -O2 +-endif +-ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS))) +- LDFLAGS += -s +-endif ++CFLAGS=-D_BSD_SOURCE -DDEBIAN -g -Wall -IEXT ${EXTRAFLAGS} + + SRCS= version.c aux.c cmd1.c cmd2.c cmd3.c cmdtab.c collect.c \ + edit.c fio.c getname.c head.c v7.local.c lex.c list.c main.c names.c \ 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..7af81285d33c --- /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/mailx-8.1.2.20050715-r6.ebuild b/mail-client/mailx/mailx-8.1.2.20050715-r6.ebuild new file mode 100644 index 000000000000..1c8140edaee8 --- /dev/null +++ b/mail-client/mailx/mailx-8.1.2.20050715-r6.ebuild @@ -0,0 +1,70 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +inherit eutils flag-o-matic toolchain-funcs + +MX_MAJ_VER=${PV%.*} +MX_MIN_VER=${PV##*.} +MY_PV=${MX_MAJ_VER}-0.${MX_MIN_VER}cvs +S=${WORKDIR}/${PN}-${MY_PV}.orig/ +debian_patch=${PN}_${MY_PV}-1.diff.gz + +DESCRIPTION="The /bin/mail program, which is used to send mail via shell scripts" +HOMEPAGE="http://www.debian.org/" +SRC_URI="mirror://gentoo/mailx_${MY_PV}.orig.tar.gz + mirror://gentoo/${debian_patch}" + +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 + virtual/mta + mail-client/mailx-support" + +RDEPEND="${DEPEND} + !mail-client/nail + !net-mail/mailutils" + +src_unpack() { + unpack ${A} + cd "${S}" + epatch "${DISTDIR}/${debian_patch}" + epatch "${FILESDIR}/${P}-nostrip.patch" + sed -i -e "s: -O2: \$(EXTRAFLAGS):g" Makefile + epatch "${FILESDIR}/${P}-offsetof.patch" +} + +src_compile() { + emake CC=$(tc-getCC) EXTRAFLAGS="${CFLAGS}" || die +} + +src_install() { + dodir /usr/bin /bin /usr/share/man/man1 /etc + + insinto /usr/bin + insopts -m 755 + doins mail || die + + 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 || die + insinto /etc + insopts -m 644 + doins misc/mail.rc || die + + # compatibility link + dosym /usr/bin/mail /bin/mail || die +} + +pkg_postinst() { + elog "mail command now lives in /usr/bin." + elog "Please adjust your scripts." +} diff --git a/mail-client/mailx/metadata.xml b/mail-client/mailx/metadata.xml new file mode 100644 index 000000000000..51f94e3fbe0e --- /dev/null +++ b/mail-client/mailx/metadata.xml @@ -0,0 +1,5 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>net-mail</herd> +</pkgmetadata> |