GNU bug report logs -
#26203
[PATCH] gnu: Add swaks.
Previous Next
Full log
View this message in rfc822 format
[Message part 1 (text/plain, inline)]
Your bug report
#26203: [PATCH] gnu: Add swaks.
which was filed against the guix-patches package, has been closed.
The explanation is attached below, along with your original report.
If you require more details, please reply to 26203 <at> debbugs.gnu.org.
--
26203: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=26203
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
[Message part 3 (text/plain, inline)]
Arun Isaac <arunisaac <at> systemreboot.net> writes:
> I have send a new patch. Please feel free to let me know if there are
> any further changes to be made or if I missed something. I won't be
> annoyed or offended. :-)
The patch is great, thanks!
>> + (add-after 'install 'wrap-program
>> + (lambda _
>> + (wrap-program (string-append (assoc-ref %outputs "out")
>> + "/bin/swaks")
>
> It would be nice if the perl-build-system did this wrapping
> automatically just like the python-build-system does. Is there some
> reason the perl-build-system doesn't do wrapping automatically?
I agree this would be nice. Would you like to work on it? :)
By the way, my email client says your PGP signature is bad. Is your
email client incorrectly configured, or is my key out of date? I fetched
0x2E25EE8B61802BB3 from "keys.gnupg.net".
The fingerprint is:
7F73 0343 F2F0 9F3C 77BF 79D3 2E25 EE8B 6180 2BB3
Closing this bug, but feel free to continue the conversation!
[signature.asc (application/pgp-signature, inline)]
[Message part 5 (message/rfc822, inline)]
* gnu/packages/mail.scm (swaks): New variable.
---
gnu/packages/mail.scm | 54 ++++++++++++++++++++++++++++++++++++++++++++++++++-
1 file changed, 53 insertions(+), 1 deletion(-)
diff --git a/gnu/packages/mail.scm b/gnu/packages/mail.scm
index 3bf0e6647..b31cf0252 100644
--- a/gnu/packages/mail.scm
+++ b/gnu/packages/mail.scm
@@ -17,7 +17,7 @@
;;; Copyright © 2016 Troy Sankey <sankeytms <at> gmail.com>
;;; Copyright © 2016, 2017 <contact.ng0 <at> cryptolab.net>
;;; Copyright © 2016 Clément Lassieur <clement <at> lassieur.org>
-;;; Copyright © 2016 Arun Isaac <arunisaac <at> systemreboot.net>
+;;; Copyright © 2016, 2017 Arun Isaac <arunisaac <at> systemreboot.net>
;;; Copyright © 2016 John Darrington <jmd <at> gnu.org>
;;; Copyright © 2016 Marius Bakke <mbakke <at> fastmail.com>
;;; Copyright © 2017 Thomas Danckaert <post <at> thomasdanckaert.be>
@@ -2093,3 +2093,55 @@ indexed mbox files. There are two programs: @code{bindex} and @code{bit}.
are supported). @code{bit} is a CGI/SSI program that generates web pages
on the fly. Both programs are written in C and are very fast.")
(license license:expat)))
+
+(define-public swaks
+ (package
+ (name "swaks")
+ (version "20170101.0")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (string-append
+ "http://jetmore.org/john/code/swaks/files/swaks-"
+ version ".tar.gz"))
+ (sha256
+ (base32
+ "0pli4mlhasnqqxmmxalwyg3x7n2vhcbgsnp2xgddamjavv82vrl4"))))
+ (build-system perl-build-system)
+ (inputs
+ `(("perl-net-dns" ,perl-net-dns)
+ ("perl-net-ssleay" ,perl-net-ssleay)))
+ (arguments
+ `(#:tests? #f ; No tests
+ #:phases
+ (modify-phases %standard-phases
+ (delete 'configure)
+ (replace 'build
+ (lambda _
+ (zero? (system* "pod2man" "doc/ref.pod" "swaks.1"))))
+ (replace 'install
+ (lambda _
+ (let* ((out (assoc-ref %outputs "out"))
+ (bin (string-append out "/bin"))
+ (man (string-append out "/share/man/man1")))
+ (mkdir-p bin)
+ (install-file "swaks" bin)
+ (mkdir-p man)
+ (install-file "swaks.1" man))))
+ (add-after 'install 'wrap-program
+ (lambda _
+ (wrap-program (string-append (assoc-ref %outputs "out")
+ "/bin/swaks")
+ `("PERL5LIB" ":" = (,(getenv "PERL5LIB")))))))))
+ (home-page "http://jetmore.org/john/code/swaks/")
+ (synopsis "Featureful, flexible, scriptable, transaction-oriented SMTP
+test tool")
+ (description "Swaks is a flexible, scriptable, transaction-oriented SMTP
+test tool. It handles SMTP features and extensions such as TLS,
+authentication, and pipelining; multiple version of the SMTP protocol
+including SMTP, ESMTP, and LMTP; and multiple transport methods including
+unix-domain sockets, internet-domain sockets, and pipes to spawned processes.
+Options can be specified in environment variables, configuration files, and
+the command line allowing maximum configurability and ease of use for
+operators and scripters.")
+ (license gpl2+)))
--
2.11.0
This bug report was last modified 8 years and 61 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.