summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDiego Elio Pettenò <flameeyes@gentoo.org>2010-07-26 22:50:28 +0000
committerDiego Elio Pettenò <flameeyes@gentoo.org>2010-07-26 22:50:28 +0000
commit5c37b76667c786fa2257ba06ca515e837170523a (patch)
tree372717a1f70baf64158e481062fbf8444d4930f0 /mail-client
parentAdd patch for building nptl with hppa targets #301642. (diff)
downloadhistorical-5c37b76667c786fa2257ba06ca515e837170523a.tar.gz
historical-5c37b76667c786fa2257ba06ca515e837170523a.tar.bz2
historical-5c37b76667c786fa2257ba06ca515e837170523a.zip
Make ssl and kerberos USE flags to be dependent on net; make sure that kerberos is disabled (to avoid automagic dependencies); describe the USE flags better.
Package-Manager: portage-2.2_rc67/cvs/Linux x86_64
Diffstat (limited to 'mail-client')
-rw-r--r--mail-client/nail/ChangeLog10
-rw-r--r--mail-client/nail/Manifest15
-rw-r--r--mail-client/nail/metadata.xml17
-rw-r--r--mail-client/nail/nail-12.4-r1.ebuild97
4 files changed, 134 insertions, 5 deletions
diff --git a/mail-client/nail/ChangeLog b/mail-client/nail/ChangeLog
index 9aa07be5bc47..739a6c25fcf7 100644
--- a/mail-client/nail/ChangeLog
+++ b/mail-client/nail/ChangeLog
@@ -1,6 +1,14 @@
# ChangeLog for mail-client/nail
# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/mail-client/nail/ChangeLog,v 1.69 2010/07/25 15:24:17 ssuominen Exp $
+# $Header: /var/cvsroot/gentoo-x86/mail-client/nail/ChangeLog,v 1.70 2010/07/26 22:50:28 flameeyes Exp $
+
+*nail-12.4-r1 (26 Jul 2010)
+
+ 26 Jul 2010; Diego E. Pettenò <flameeyes@gentoo.org>
+ +nail-12.4-r1.ebuild, metadata.xml:
+ Make ssl and kerberos USE flags to be dependent on net; make sure that
+ kerberos is disabled (to avoid automagic dependencies); describe the USE
+ flags better.
25 Jul 2010; Samuli Suominen <ssuominen@gentoo.org> nail-12.4.ebuild:
ppc64 stable wrt #324127
diff --git a/mail-client/nail/Manifest b/mail-client/nail/Manifest
index 11888ae89479..f2dabc88682b 100644
--- a/mail-client/nail/Manifest
+++ b/mail-client/nail/Manifest
@@ -1,9 +1,20 @@
+-----BEGIN PGP SIGNED MESSAGE-----
+Hash: SHA1
+
AUX nail-12.4-debian.patch 1060 RMD160 0df7a5654c0cc8b38570cc73fb5e8efcceaab26e SHA1 59066d0220e6ca4d86fc24c87d5f74900e149645 SHA256 57d6259bb0de14e8583fc77dbff4329ac6a9ebcd002fcc38d435d7d94db4efb8
AUX nail-12.4-openssl-1.patch 1860 RMD160 93e57687e7a65b2751c86e83da7749df68817313 SHA1 aee47cfa611d44ecf2abf2ea79ae2e214fa57480 SHA256 0c3fbb7f23f0000a40addf20d3d41d0a8e62ec8f93172118fa8798eb45dfa2e1
AUX nail-nosocket.patch 473 RMD160 1598331c9a0ea4fcaa6682bae9e04cb5d7bb3117 SHA1 600c8bb47a17008c992297e28e29c73fb44108ef SHA256 840a0f3f592de84d03c225ccdc6c363b4d372eb605750a0ee7e1b02320547dc9
DIST mailx-12.4.tar.bz2 271482 RMD160 8244d04d0a0058fdbe9867ca503c7cda8d580154 SHA1 b1e105adf9d36269daf317dedf68b6e4cca404a7 SHA256 92201e769fe346bc0364c87437a330ef3c97ab3e9d7b2235b93f509e85e5716a
DIST nail-11.25.tar.bz2 267959 RMD160 d72a5a4760cc43bcc2e9223e2eca4f0a8de7605f SHA1 dd15a5bdedb74175763ababa8be70989334963e4 SHA256 ae831aa7ebee1a348d84cb37228fe784b32c6ccf2d06edfba141de8f165515c5
EBUILD nail-11.25-r3.ebuild 1985 RMD160 3f41c625e9647158370245bcee5616befea1fe55 SHA1 251a6b438ba909e733886680ebdb5ed4e1d588a0 SHA256 3b119bc9ac33b7e67017a740f86ea245037349ad1d9351ebeb014039be51a6c2
+EBUILD nail-12.4-r1.ebuild 2190 RMD160 2fe29cf738babb7b4ef8a3aef2c2119b74bfc353 SHA1 bba0c04eb836aeb076799504d2abc2f5891dcba1 SHA256 f659cdb897edf3647233a4ac66bbfd89c8ee0791d4bddab02fa41cd5eb219ef2
EBUILD nail-12.4.ebuild 2301 RMD160 03bec01cb4c619291693204d209713c40bc9fd6a SHA1 66a09311b778eb5a02fffd43ec3bee7e64347347 SHA256 e4ee63df4d72802db32d92ccef61b2fcdd4d4a011189297008146fbab691a1a1
-MISC ChangeLog 9062 RMD160 ebdfe5bf70de50bafad67e27be2cc9c7efcd2596 SHA1 dd324ed5ba30b0c1442595c6743a28bdfb25ff4c SHA256 9f192a62d856ec323f2c4e9dab7a39786fb3305687187185cc94b9cf211430ae
-MISC metadata.xml 259 RMD160 7bd304e664ab666fab49794d575652f4a5e1587c SHA1 1f0507ccb185c8f48f26b7ad1cfe4df64ce01ad1 SHA256 2b207df02a39323049a95d476319fcaafda0b918c0c4e1feaab97b61ca1a93c6
+MISC ChangeLog 9350 RMD160 478c683965a81d746c5efec7be43300b0e1927c0 SHA1 a7312066c7095c01babecc394e72a3f2038b8e16 SHA256 17b3160f6ca62013e7d8ceeae03fa4df45471ea405a05ce3ea855f01718639e4
+MISC metadata.xml 712 RMD160 4acf28b606445ff08083a5ef2ff7d7d564cdb9c4 SHA1 e9791b10bc607988ad84a5e2952435597c35183d SHA256 d9d57b7a783c9ad55da9c29b6688e272a8339bbd3a2906cfdf7baf83096b8f84
+-----BEGIN PGP SIGNATURE-----
+Version: GnuPG v2.0.16 (GNU/Linux)
+
+iEYEARECAAYFAkxOET4ACgkQAiZjviIA2XiYJwCfTv0UlZtc4SPf3P4rtSJ/Wckj
+HS8AoLSMa+nQ7i6KRv2VPQNQaABmOYLv
+=xtr0
+-----END PGP SIGNATURE-----
diff --git a/mail-client/nail/metadata.xml b/mail-client/nail/metadata.xml
index 5f58cc6d09b4..e0b4a839f0a2 100644
--- a/mail-client/nail/metadata.xml
+++ b/mail-client/nail/metadata.xml
@@ -3,7 +3,20 @@
<pkgmetadata>
<herd>net-mail</herd>
<use>
- <flag name='net'>Enable network support (thus enabling POP, IMAP and
- SMTP)</flag>
+ <flag name='net'>
+ Enable support for network protocols (POP, IMAP and SMTP). If you
+ only need to send mail with the local Transport Agent, disabling
+ this will get you support for only /usr/sbin/sendmail call.
+ </flag>
+
+ <flag name='ssl'>
+ If network is enabled, this adds support for S/MIME and
+ SSL/TLS-powered protocols through <pkg>dev-libs/openssl</pkg>.
+ </flag>
+
+ <flag name='kerberos'>
+ If network is enabled, this adds support for GSSAPI login on IMAP
+ through <pkg>virtual/kerberos</pkg>.
+ </flag>
</use>
</pkgmetadata>
diff --git a/mail-client/nail/nail-12.4-r1.ebuild b/mail-client/nail/nail-12.4-r1.ebuild
new file mode 100644
index 000000000000..475e45664515
--- /dev/null
+++ b/mail-client/nail/nail-12.4-r1.ebuild
@@ -0,0 +1,97 @@
+# Copyright 1999-2010 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/mail-client/nail/nail-12.4-r1.ebuild,v 1.1 2010/07/26 22:50:28 flameeyes Exp $
+
+EAPI="3"
+
+inherit eutils toolchain-funcs
+
+HOMEPAGE="http://heirloom.sourceforge.net/"
+DESCRIPTION="an enhanced mailx-compatible mail client"
+LICENSE="BSD"
+
+MY_PN="mailx"
+MY_P="${MY_PN}-${PV}"
+SRC_URI="mirror://sourceforge/project/heirloom/heirloom-${MY_PN}/${PV}/${MY_P}.tar.bz2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~x86-freebsd ~x86-interix"
+IUSE="ssl net kerberos"
+
+PROVIDE="virtual/mailx"
+RDEPEND="
+ net? (
+ ssl? ( dev-libs/openssl )
+ kerberos? ( virtual/krb5 )
+ )
+ !virtual/mailx
+"
+DEPEND="${RDEPEND}"
+
+S=${WORKDIR}/${MY_P}
+
+undef() {
+ sed -i -e "/$1/s:#define:#undef:" config.h || die
+}
+
+droplib() {
+ sed -i -e "/$1/s:^:#:" LIBS || die
+}
+
+src_prepare() {
+ epatch "${FILESDIR}"/${P}-debian.patch \
+ "${FILESDIR}"/${P}-openssl-1.patch
+ # Do not strip the binary
+ sed -i -e '/STRIP/d' Makefile
+}
+
+src_configure() {
+ # Build config.h and LIBS, neccesary to tweak the config
+ make config.h LIBS
+
+ # Logic to 'configure' the package
+
+ if ! use ssl || ! use net ; then
+ undef 'USE_\(OPEN\)\?SSL'
+ droplib -lssl
+ fi
+
+ if ! use kerberos || ! use net ; then
+ undef 'USE_GSSAPI'
+ droplib -lgssapi_krb5
+ fi
+
+ if ! use net ; then
+ undef 'HAVE_SOCKETS'
+ fi
+}
+
+src_compile() {
+ # No configure script to check for and set this
+ tc-export CC
+
+ emake \
+ CPPFLAGS="${CPPFLAGS} -D_GNU_SOURCE"
+ PREFIX="${EPREFIX}"/usr SYSCONFDIR="${EPREFIX}"/etc \
+ MAILSPOOL='/var/spool/mail' \
+ || die "emake failed"
+}
+
+src_install () {
+ # Use /usr/lib/sendmail by default and provide an example
+ cat <<- EOSMTP >> nail.rc
+
+ # Use the local sendmail (/usr/lib/sendmail) binary by default.
+ # (Uncomment the following line to use a SMTP server)
+ #set smtp=localhost
+ EOSMTP
+
+ make DESTDIR="${D}" \
+ UCBINSTALL=$(type -p install) \
+ PREFIX="${EPREFIX}"/usr SYSCONFDIR="${EPREFIX}"/etc install \
+ || die
+ dodoc AUTHORS README
+ dodir /bin
+ dosym /usr/bin/mailx /bin/mail
+ dosym /usr/bin/mailx /usr/bin/mail
+ dosym /usr/bin/mailx /usr/bin/Mail
+}