public inbox for gentoo-dev@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-dev] Nail portage revision
@ 2001-07-11  4:00 Jerry A!
  2001-07-11 12:51 ` Daniel Robbins
  0 siblings, 1 reply; 2+ messages in thread
From: Jerry A! @ 2001-07-11  4:00 UTC (permalink / raw
  To: gentoo-dev

[-- Attachment #1: Type: text/plain, Size: 697 bytes --]

Okay, here's nail-9.27-r1.ebuild.  I made the changes to make it fit
into the mail architecture changes we've been discussing the past few
days.  Dan, Achim and Grant (as well as anyone else who pleases), please
look over the attached ebuild and let me know what you think.  If you
like it, I'll go ahead and commit it.

Dan, if everyone is cool with this revision, then I would say have
nail/ssmtp be the defaults in package.mask.

        --Jerry

name:  Jerry Alexandratos         ||  Open-Source software isn't a
phone: 703.599.6023               ||  matter of life or death...
email: jerry@thehutt.org          ||  ...It's much more important
                                  ||  than that!

[-- Attachment #2: nail-9.27-r1.ebuild --]
[-- Type: text/plain, Size: 2584 bytes --]

# Copyright 1999-2001 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License, v2 or later
# Author Grant Goodyear <g2boojum@gentoo.org>
# $Header: /home/cvsroot/gentoo-x86/net-mail/nail/nail-9.27.ebuild,v 1.3 2001/07/08 17:44:37 g2boojum Exp $

S=${WORKDIR}/${P}

DESCRIPTION="Nail is a mail user agent derived from Berkeley Mail 8.1
             and contains builtin support for MIME messages."

SRC_URI="http://omnibus.ruf.uni-freiburg.de/~gritter/archive/nail/${P}.tar.gz"
HOMEPAGE="http://omnibus.ruf.uni-freiburg.de/~gritter/"

DEPEND="virtual/glibc"
RDEPEND="virtual/mta"


src_unpack() {
    cd ${WORKDIR}
    unpack ${A}

    cd ${S}
    echo -e "\n\b" \
        "# Uncomment the following line and change \"localhost\" to point\n\b" \
        "# to your remote smtp server to enable direct smtp connections\n\b" \
        "# instead of using /usr/sbin/sendmail.\n\b" \
        "#set smtp=localhost\n" >> nail.rc
}

src_compile() {
    try ./configure --infodir=/usr/share/info --mandir=/usr/share/man \
        --prefix=/usr --host=${CHOST} --with-mailspool=~/.maildir
# Note the use of --infodir and --mandir, above.
# This is to make this package FHS 2.2-compliant
# (/usr/share is used for info and man now).

    try emake
}

src_install() {
    try make DESTDIR=${D} install

    dodoc AUTHORS COPYING I18N INSTALL README

    dodir /bin
    dosym /usr/bin/nail /bin/mail

    cd ${D}/usr/bin
    ln -sf nail mail
    ln -sf nail Mail
}

pkg_postinst() {
    echo -e "\n" \
        "NOTE: The nail mailer does _not_ support maildir format.  It\n" \
        "      is best to use nail only for outgoing mail, and really\n" \
        "      only use it for scripts that require it.\n" \
        "NOTE: This build has ~/.maildir compiled in as the mail spool\n" \
        "      directory (for incoming mail).  Nail will work for\n" \
        "      sending outgoing mail even if the mail spool directory\n" \
        "      does not exist.\n" \
        "NOTE: When used to send mail via a remote smtp server nail\n" \
        "      does not require a local mail transfer agent.  ISP smtp\n" \
        "      servers tend to have names like:\n" \
        "\n" \
        "        mail.ispname.com\n" \
        "      or\n" \
        "        smtp.ispname.com.\n" \
        "\n" \
        "NOTE: By default nail uses /usr/sbin/sendmail as it's MTA.  If\n" \
        "      you'd prefer to have nail make direct smtp connections\n" \
        "      look look at /etc/nail.rc for instructions on how to set\n" \
        "      this up.\n"
}

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2001-07-11 18:50 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-07-11  4:00 [gentoo-dev] Nail portage revision Jerry A!
2001-07-11 12:51 ` Daniel Robbins

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox