# Copyright 1999-2001 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License, v2 or later # Author Grant Goodyear # $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" }