# Copyright 1999-2004 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/mail-client/nail/nail-10.8.ebuild,v 1.3 2004/09/25 21:52:25 weeve Exp $ inherit eutils DESCRIPTION="Nail is a mail user agent derived from Berkeley Mail 8.1 and contains builtin support for MIME messages." SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2" HOMEPAGE="http://nail.sourceforge.net/" PROVIDE="virtual/mailx" DEPEND="virtual/libc !virtual/mailx" SLOT="0" LICENSE="BSD" KEYWORDS="x86 sparc ~ppc" IUSE="" src_compile() { # ./configure no longer required # patch to Gentoo specifics. epatch ${FILESDIR}/${P}-Makefile.patch || die "patch failed." emake || die "emake failed" } src_install () { #add smtp flag to nail.rc so that it uses smtp by default (making it #essentially mailer independent echo -e "\n#use smtp on the local system by default. Change" >> nail.rc echo -e "#\"localhost\" to your smtp server if you use a remote" >> nail.rc echo -e "#smtp server. (Delete this line to use sendmail instead)" >> nail.rc echo -e "set smtp=localhost" >> nail.rc make DESTDIR=${D} install || die "install failed" dodoc AUTHORS COPYING I18N INSTALL README dodir /bin dosym /usr/bin/nail /bin/mail dosym /usr/bin/nail /usr/bin/mail dosym /usr/bin/nail /usr/bin/Mail } pkg_postinst () { echo -e "\n NOTE: The nail mailer does _not_ support maildir format.\n" \ " It is best to use nail only for outgoing mail, and\n" \ " really only use it for scripts that require it.\n\n" \ "NOTE: This build has ~/.maildir compiled in as the\n" \ " mail spool directory (for incoming mail).\n" \ " Nail will work for sending outgoing mail even if\n" \ " the mail spool directory does not exist.\n\n" \ "NOTE: When used to send mail via a remote smtp server\n" \ " nail does not require a local mail transfer agent.\n" \ " ISP smtp servers tend to have names like\n" \ " mail.ispname.com\n" \ " or\n" \ " smtp.ispname.com.\n" \ " If you do not wish to use a remote smtp server,\n" \ " then you WILL have to install a mta such as sendmail,\n" \ " postfix, exim, etcetera.\n" }