View | Details | Raw Unified | Return to bug 65094
Collapse All | Expand All

(-)msmtp/Makefile (-21 / +25 lines)
Lines 6-12 Link Here
6
#
6
#
7
7
8
PORTNAME=	msmtp
8
PORTNAME=	msmtp
9
PORTVERSION=	0.5.0
9
PORTVERSION=	0.7.2
10
CATEGORIES=	mail
10
CATEGORIES=	mail
11
MASTER_SITES=	${MASTER_SITE_SOURCEFORGE}
11
MASTER_SITES=	${MASTER_SITE_SOURCEFORGE}
12
MASTER_SITE_SUBDIR=	msmtp
12
MASTER_SITE_SUBDIR=	msmtp
Lines 14-41 Link Here
14
MAINTAINER=	rip@devco.net
14
MAINTAINER=	rip@devco.net
15
COMMENT=	SMTP plugin for MUAs
15
COMMENT=	SMTP plugin for MUAs
16
16
17
USE_GETOPT_LONG=	yes
17
GNU_CONFIGURE=	yes
18
USE_OPENSSL=	yes
18
CPPFLAGS+=      -I${LOCALBASE}/include
19
USE_REINPLACE=	yes
19
LDFLAGS+=       -L${LOCALBASE}/lib
20
20
CONFIGURE_ENV=  CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}"
21
CONFIGURE_TARGET=       --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
22
USE_GMAKE=	yes
21
MAN1=		msmtp.1
23
MAN1=		msmtp.1
22
PLIST_FILES=	bin/msmtp
24
PLIST_FILES=	bin/msmtp
23
25
24
post-patch:
26
.if !defined(WITH_OPENSSL)
25
	@${REINPLACE_CMD} -e 's|CFLAGS =|CFLAGS +=|g ; \
27
WITH_GNUTLS=	yes
26
		s|CC =|CC ?=|g' \
28
.endif
27
		${WRKSRC}/Makefile
29
28
30
.if defined(WITH_GNUTLS)
29
do-install:
31
LIB_DEPENDS+=	gnutls:${PORTSDIR}/security/gnutls
30
	${INSTALL_PROGRAM} ${WRKSRC}/msmtp ${PREFIX}/bin
32
.endif
31
	${INSTALL_MAN} ${WRKSRC}/msmtp.1 ${PREFIX}/man/man1
33
32
34
.if defined(WITH_OPENSSL)
33
post-install:
35
USE_OPENSSL=	yes
34
	@${ECHO_CMD} "*****************************************************************************"
36
CONFIGURE_ARGS+=	--with-ssl=openssl
35
	@${ECHO_CMD} ""
37
.endif
36
	@${ECHO_CMD} "Please note that since version 0.5.0 this program uses a configuration file"
38
37
	@${ECHO_CMD} "rather than the old command line options, see the man page."
39
.if defined(WITH_GNU_SASL)
38
	@${ECHO_CMD} ""
40
LIB_DEPENDS+=	gsasl:${PORTSDIR}/security/gsasl
39
	@${ECHO_CMD} "***************************************************************************##"
41
.else
42
CONFIGURE_ARGS+=	--disable-gsasl
43
.endif
40
44
41
.include <bsd.port.mk>
45
.include <bsd.port.mk>
(-)msmtp/distinfo (-2 / +2 lines)
Lines 1-2 Link Here
1
MD5 (msmtp-0.5.0.tar.gz) = 8d1f7b62eb7f9d32355bf11d6dbb5817
1
MD5 (msmtp-0.7.2.tar.gz) = a9a44243211c8b84a220779335a257a5
2
SIZE (msmtp-0.5.0.tar.gz) = 41147
2
SIZE (msmtp-0.7.2.tar.gz) = 139544
(-)msmtp/files/patch-aa (-37 lines)
Lines 1-37 Link Here
1
*** Makefile.orig	Thu Aug 21 22:28:13 2003
2
--- Makefile	Thu Aug 21 22:28:44 2003
3
***************
4
*** 3,18 ****
5
  # 
6
  
7
  # GNU/Linux and GNU/Hurd
8
- CC = gcc
9
- CFLAGS = -DHAVE_VASPRINTF -DHAVE_GETOPT_LONG -D_GNU_SOURCE -Wall -O2
10
- LFLAGS = -lssl -lcrypto -s
11
- EXTRAOBJS = 
12
- 
13
- # FreeBSD, NetBSD, OpenBSD
14
  #CC = gcc
15
! #CFLAGS = -DHAVE_VASPRINTF -DHAVE_GETOPT_LONG -Wall -O2
16
  #LFLAGS = -lssl -lcrypto -s
17
  #EXTRAOBJS = 
18
  
19
  # SunOS
20
  #CC = cc
21
--- 3,18 ----
22
  # 
23
  
24
  # GNU/Linux and GNU/Hurd
25
  #CC = gcc
26
! #CFLAGS = -DHAVE_VASPRINTF -DHAVE_GETOPT_LONG -D_GNU_SOURCE -Wall -O2
27
  #LFLAGS = -lssl -lcrypto -s
28
  #EXTRAOBJS = 
29
+ 
30
+ # FreeBSD, NetBSD, OpenBSD
31
+ CC = gcc
32
+ CFLAGS = -DHAVE_VASPRINTF -DHAVE_GETOPT_LONG -Wall -O2 -I${LOCALBASE}/include
33
+ LFLAGS = -lssl -lcrypto -s -L${LOCALBASE}/lib
34
+ EXTRAOBJS = getopt.o getopt1.o
35
  
36
  # SunOS
37
  #CC = cc
(-)msmtp/pkg-descr (-10 / +13 lines)
Lines 1-18 Link Here
1
msmtp -- SMTP plugin for MUAs
1
msmtp -- An SMTP client 
2
2
3
This is a simple program that works as an "SMTP plugin" for Mutt and probably 
3
Is an SMTP client that can be used as an "SMTP plugin" for Mutt and probably 
4
other MUAs (mail user agents).  msmtp forwards mails to an SMTP server (for 
4
other MUAs (mail user agents). It forwards mails to an SMTP server (for 
5
example at a free mail provider) which does the delivery.  
5
example at a free mail provider) which does the delivery.
6
To use this program, create a configuration file with your mail account(s) and 
7
tell your MUA to call msmtp instead of /usr/sbin/sendmail.
6
8
7
Features include:
9
Features include:
10
8
    * SMTP AUTH methods PLAIN, LOGIN and CRAM-MD5
11
    * SMTP AUTH methods PLAIN, LOGIN and CRAM-MD5
12
      (and DIGEST-MD5 and NTLM when compiled with GSASL support)
9
    * TLS encrypted connections
13
    * TLS encrypted connections
10
    * IPv6 support
14
      (including server certificate verification and the possibility to send 
11
    * robustness
15
       a client certificate)
12
    * detailed error messages (including the full answer of the SMTP server) 
16
    * DSN (Delivery Status Notification) support
13
      if something goes wrong
17
    * IPv6 support (on systems that support it)
18
    * support for multiple accounts
14
    * sendmail compatible exit codes (which most MUAs understand).
19
    * sendmail compatible exit codes (which most MUAs understand).
15
16
Simply tell your MUA to call msmtp instead of /usr/sbin/sendmail 
17
20
18
WWW: http://msmtp.sourceforge.net/
21
WWW: http://msmtp.sourceforge.net/

Return to bug 65094