From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Thompson, David" Subject: Re: [PATCH 2/2] gnu: Add esmtp. Date: Tue, 3 Nov 2015 10:21:15 -0500 Message-ID: References: <1446562473-5808-1-git-send-email-wingo@igalia.com> <1446562473-5808-2-git-send-email-wingo@igalia.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:55827) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZtdOk-0003rR-LU for guix-devel@gnu.org; Tue, 03 Nov 2015 10:21:23 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZtdOe-0004Zd-Dn for guix-devel@gnu.org; Tue, 03 Nov 2015 10:21:22 -0500 Received: from mail-yk0-x22d.google.com ([2607:f8b0:4002:c07::22d]:36121) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZtdOe-0004Yp-8H for guix-devel@gnu.org; Tue, 03 Nov 2015 10:21:16 -0500 Received: by ykba4 with SMTP id a4so20684487ykb.3 for ; Tue, 03 Nov 2015 07:21:15 -0800 (PST) In-Reply-To: <1446562473-5808-2-git-send-email-wingo@igalia.com> List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org To: Andy Wingo Cc: guix-devel On Tue, Nov 3, 2015 at 9:54 AM, Andy Wingo wrote: > * gnu/packages/mail.scm (esmtp): New public variable. > --- > gnu/packages/mail.scm | 40 ++++++++++++++++++++++++++++++++++++++++ > 1 file changed, 40 insertions(+) > > diff --git a/gnu/packages/mail.scm b/gnu/packages/mail.scm > index 9a70341..dfc8ec9 100644 > --- a/gnu/packages/mail.scm > +++ b/gnu/packages/mail.scm > @@ -30,6 +30,7 @@ > #:use-module (gnu packages base) > #:use-module (gnu packages backup) > #:use-module (gnu packages bash) > + #:use-module (gnu packages bison) > #:use-module (gnu packages curl) > #:use-module (gnu packages cyrus-sasl) > #:use-module (gnu packages databases) > @@ -44,6 +45,7 @@ > #:use-module (gnu packages gsasl) > #:use-module (gnu packages gtk) > #:use-module (gnu packages guile) > + #:use-module (gnu packages flex) > #:use-module (gnu packages libcanberra) > #:use-module (gnu packages libidn) > #:use-module (gnu packages linux) > @@ -70,6 +72,7 @@ > (expat . license:expat))) > #:use-module (guix packages) > #:use-module (guix download) > + #:use-module (guix git-download) > #:use-module (guix utils) > #:use-module (guix build-system gnu) > #:use-module (guix build-system perl) > @@ -955,4 +958,41 @@ be able to post electronic mail where mail functionality may not be that > program's primary purpose.") > (license (list lgpl2.1+ gpl2+)))) > > +(define-public esmtp > + (package > + (name "esmtp") > + (version "1.2") > + (source > + (origin > + (method git-fetch) > + (uri (git-reference > + (url "https://github.com/andywingo/esmtp.git") > + (commit "01bf9fc"))) > + (sha256 > + (base32 > + "1ay282rrl92h0m0m8z5zzjnwiiagi7c78aq2qvhia5mw7prwfyw2")) > + (file-name (string-append name "-" version "-checkout")))) > + (arguments > + `(#:phases (modify-phases %standard-phases > + (add-before > + 'configure 'autoconf > + (lambda _ (zero? (system* "autoreconf" "-vfi"))))))) > + (build-system gnu-build-system) > + (native-inputs > + `(("bison" ,bison) > + ("flex" ,flex) > + ("libesmtp" ,libesmtp) Should this be a regular input instead? > + ("autoconf" ,autoconf) > + ("automake" ,automake) > + ("libtool" ,libtool))) > + (home-page "http://www.stafford.uklinux.net/libesmtp/") Wrong home page? > + (synopsis "Relay-only mail transfer agent (MTA)") > + (description "Esmtp is a simple relay-only mail transfer agent built using > +libESMTP. It sends e-mail via a remote SMTP server using credentials from the > +user's @file{$HOME/.esmtprc} configuration file; see the @command{esmtprc} man > +page for more on configuration. This package also provides minimal > +compatibility shims for the @command{sendmail}, @command{mailq}, and > +@command{newaliases} commands.") > + (license gpl2+))) > + > ;;; mail.scm ends here > -- > 2.5.0 > > LGTM sans those minor nits. - Dave