› Foros › PC › Software libre
--- net.c.old 2003-05-11 19:23:02.000000000 +0200
+++ net.c 2003-05-11 19:47:37.000000000 +0200
@@ -29,6 +29,9 @@
#ifdef HAVE_SSL
SSL *ssl;
+extern Bool UseTLS;
+extern Bool UseTLSCert;
+extern char *TLSCert;
#endif
--- Makefile.in.old 2003-05-11 20:19:13.000000000 +0200
+++ Makefile.in 2003-05-11 20:19:24.000000000 +0200
@@ -78,7 +78,7 @@
# Binaries:
ssmtp: $(OBJS)
- $(CC) -o ssmtp $(OBJS) @LIBS@
+ $(CC) -o ssmtp $(OBJS) @LIBS@ -lssl
vpath %.c $(srcdir)
--- /usr/portage/net-mail/ssmtp/ssmtp-2.48.ebuild 2003-04-18 22:33:13.000000000 +0200
+++ /usr/local/portage/net-mail/ssmtp/ssmtp-2.48-r1.ebuild 2003-05-11 20:30:36.000000000 +0200
@@ -10,15 +10,22 @@
SLOT="0"
KEYWORDS="x86 ppc sparc alpha ~hppa arm mips"
LICENSE="GPL-2"
-IUSE=""
+IUSE="ssl"
-DEPEND="virtual/glibc"
-RDEPEND="!virtual/mta net-mail/mailbase"
+DEPEND="virtual/glibc
+ ssl? ( dev-libs/openssl )"
+RDEPEND="!virtual/mta net-mail/mailbase
+ ssl? ( dev-libs/openssl )"
PROVIDE="virtual/mta"
S=${WORKDIR}/${P}
-src_compile() {
+src_compile() {
+ if [ "`use ssl`" ]; then
+ epatch ${FILESDIR}/net.c.diff || die "epatch failed"
+ epatch ${FILESDIR}/Makefile.in.diff || die "epatch failed"
+ econf --enable-ssl
+ fi
make clean || die
make ${MAKEOPTS} || die
}
# USE="ssl" emerge ssmtp
UseTLS=YES
mailhub=example.com:465
set sendmail = "/usr/sbin/ssmtp -au usuario -ap password"
mutt es un cliente de correo basado en consola.