From 9636591edfbbcbce311b1d42f315acc6d0dfa56f Mon Sep 17 00:00:00 2001 From: Tobias Geerinckx-Rice Date: Wed, 30 Jun 2021 15:28:14 +0200 Subject: [PATCH] gnu: libesmtp: Build from Git sources. * gnu/packages/mail.scm (libesmtp)[source]: Use GIT-FETCH and GIT-FILE-NAME. [native-inputs]: Add autoconf, automake, and libtool. --- gnu/packages/mail.scm | 21 ++++++++++----------- 1 file changed, 10 insertions(+), 11 deletions(-) diff --git a/gnu/packages/mail.scm b/gnu/packages/mail.scm index bfca298808..b739439083 100644 --- a/gnu/packages/mail.scm +++ b/gnu/packages/mail.scm @@ -2317,19 +2317,18 @@ (define-public libesmtp (version "1.0.6") (source (origin - (method url-fetch) - (uri (list (string-append "https://pkgs.fedoraproject.org/repo/pkgs/" - "libesmtp/libesmtp-" version ".tar.bz2/" - "bf3915e627fd8f35524a8fdfeed979c8/libesmtp-" - version ".tar.bz2") - ;; XXX This site is offline, so we fetch Fedora's cached copy - ;; of the source tarball. - (string-append "http://www.stafford.uklinux.net/libesmtp/libesmtp-" - version ".tar.bz2"))) + (method git-fetch) + (uri (git-reference + (url "https://github.com/libesmtp/libESMTP") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) (sha256 - (base32 - "02zbniyz7qys1jmx3ghx21kxmns1wc3hmv80gp7ag7yra9f1m9nh")))) + (base32 "0pylvjpdf92i0j9bl43sg37k1ksbzk1k7cgdk91kkcc0krh0r09g")))) (build-system gnu-build-system) + (native-inputs + `(("autoconf" ,autoconf) + ("automake" ,automake) + ("libtool" ,libtool))) (propagated-inputs `(("openssl" ,openssl))) (home-page "http://www.stafford.uklinux.net/libesmtp/")