SwordArMor-gentoo-overlay/net-mail/swaks/swaks-20240103.0.ebuild

49 lines
1,022 B
Bash
Raw Normal View History

2024-01-24 14:32:28 +01:00
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
2024-06-08 10:13:09 +02:00
inherit perl-functions optfeature
2024-01-24 14:32:28 +01:00
DESCRIPTION="Swiss Army Knife SMTP; Command line SMTP testing, including TLS and AUTH"
HOMEPAGE="https://www.jetmore.org/john/code/swaks/
https://github.com/jetmore/swaks"
SRC_URI="http://www.jetmore.org/john/code/swaks/${P}.tar.gz"
LICENSE="GPL-2+"
SLOT="0"
KEYWORDS="amd64 ~ppc ~x86"
RDEPEND="
2024-06-08 10:13:09 +02:00
virtual/perl-MIME-Base64
virtual/perl-Digest-MD5
2024-01-24 14:32:28 +01:00
virtual/perl-Digest-SHA
2024-06-08 10:13:09 +02:00
dev-perl/Authen-NTLM
dev-perl/Authen-SASL
dev-perl/Net-DNS
dev-perl/Net-SSLeay
virtual/perl-Time-HiRes
2024-01-24 14:32:28 +01:00
"
2024-06-08 10:13:09 +02:00
# Net::Netrc
# IPC::Open2
# IO::Socket::UNIX
# IO::Socket::IP
# POSIX
# Sys::Hostname
2024-01-24 14:32:28 +01:00
BDEPEND="app-text/txt2man"
src_compile() {
/usr/bin/txt2man -s 1 -t "${PN}" -v "Mail tools" doc/ref.txt \
> swaks.1 \
|| die "man page compulation failed"
}
src_install() {
dobin swaks
doman swaks.1
dodoc README.txt doc/*.txt
}
pkg_postinst() {
optfeature "ssl" dev-perl/IO-Socket-SSL
}