summaryrefslogtreecommitdiffstats
path: root/mail/nbsmtp
diff options
context:
space:
mode:
authornovel <novel@FreeBSD.org>2005-07-13 19:46:31 +0000
committernovel <novel@FreeBSD.org>2005-07-13 19:46:31 +0000
commitd17901571442be1f1625c46caff9568802480def (patch)
tree3fe88621d232a6c774dbcdf58b5774cf1f868543 /mail/nbsmtp
parentca5c18d448e362ce23dfd81982899e734189a72c (diff)
downloadFreeBSD-ports-d17901571442be1f1625c46caff9568802480def.zip
FreeBSD-ports-d17901571442be1f1625c46caff9568802480def.tar.gz
- Update to 0.99
- Add SSL, IPv6 and DEBUG options PR: 83333 Submitted by: Marcus Grando <marcus@corp.grupos.com.br>
Diffstat (limited to 'mail/nbsmtp')
-rw-r--r--mail/nbsmtp/Makefile31
-rw-r--r--mail/nbsmtp/distinfo4
-rw-r--r--mail/nbsmtp/files/patch-configure31
3 files changed, 57 insertions, 9 deletions
diff --git a/mail/nbsmtp/Makefile b/mail/nbsmtp/Makefile
index 2e5d2f4..e416d5b 100644
--- a/mail/nbsmtp/Makefile
+++ b/mail/nbsmtp/Makefile
@@ -4,9 +4,11 @@
#
# $FreeBSD$
#
+# WITH_SSL=yes "Support for secure connection to mail server"
+#
PORTNAME= nbsmtp
-PORTVERSION= 0.98
+PORTVERSION= 0.99
CATEGORIES= mail
MASTER_SITES= http://www.gentoo-es.org/~ferdy/ \
http://www.it.uc3m.es/~ferdy/nbsmtp/
@@ -14,15 +16,30 @@ MASTER_SITES= http://www.gentoo-es.org/~ferdy/ \
MAINTAINER= ports@FreeBSD.org
COMMENT= Simple program for outgoing SMTP delivery
-PLIST_FILES= bin/nbsmtp
+USE_BZIP2= yes
GNU_CONFIGURE= yes
+OPTIONS= IPV6 "Support for IPv6 connections" off \
+ DEBUG "Enable debug information (for developers)" off
+
+PLIST_FILES= bin/nbsmtp
+
MAN5= nbsmtprc.5
MAN8= nbsmtp.8
-do-install:
- ${INSTALL_PROGRAM} ${WRKSRC}/nbsmtp ${PREFIX}/bin
- ${INSTALL_MAN} ${WRKSRC}/nbsmtp.8 ${MAN8PREFIX}/man/man8
- ${INSTALL_MAN} ${WRKSRC}/nbsmtprc.5 ${MAN5PREFIX}/man/man5
+.if defined(WITH_SSL)
+USE_OPENSSL= yes
+CONFIGURE_ARGS+= --enable-ssl
+.endif
+
+.include <bsd.port.pre.mk>
+
+.if !defined(WITHOUT_IPV6)
+CONFIGURE_ARGS+= --enable-ipv6
+.endif
+
+.if !defined(WITHOUT_DEBUG)
+CONFIGURE_ARGS+= --enable-debug
+.endif
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>
diff --git a/mail/nbsmtp/distinfo b/mail/nbsmtp/distinfo
index febc0a3..27065c0 100644
--- a/mail/nbsmtp/distinfo
+++ b/mail/nbsmtp/distinfo
@@ -1,2 +1,2 @@
-MD5 (nbsmtp-0.98.tar.gz) = fe055f4e01e6cfd9eb9c80681a42f7eb
-SIZE (nbsmtp-0.98.tar.gz) = 111390
+MD5 (nbsmtp-0.99.tar.bz2) = 36db70c4f8f9aa31dc5f417d8cbdd1d2
+SIZE (nbsmtp-0.99.tar.bz2) = 103949
diff --git a/mail/nbsmtp/files/patch-configure b/mail/nbsmtp/files/patch-configure
new file mode 100644
index 0000000..77a910f
--- /dev/null
+++ b/mail/nbsmtp/files/patch-configure
@@ -0,0 +1,31 @@
+--- configure.orig Mon May 2 20:19:27 2005
++++ configure Tue Jul 12 11:47:51 2005
+@@ -4583,7 +4583,7 @@
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+ else
+ ac_check_lib_save_LIBS=$LIBS
+-LIBS="-lcrypto $LIBS"
++LIBS="-lcrypto -lssl $LIBS"
+ cat >conftest.$ac_ext <<_ACEOF
+ /* confdefs.h. */
+ _ACEOF
+@@ -4640,7 +4640,7 @@
+ #define HAVE_LIBCRYPTO 1
+ _ACEOF
+
+- LIBS="-lcrypto $LIBS"
++ LIBS="-lcrypto -lssl $LIBS"
+
+ fi
+
+@@ -4948,8 +4948,8 @@
+ #define HAVE_DEBUG 1
+ _ACEOF
+
+- CFLAGS=${CFLAGS/-O?/-ggdb -O0}
+- CFLAGS=${CFLAGS/-fomit-frame-pointer/}
++ CFLAGS=`echo $CFLAGS | sed "s/-O[0-9]/-ggdb -O0/"`
++ CFLAGS=`echo $CFLAGS | sed "s/-fomit-frame-pointer//"`
+ fi
+ enableval=""
+
OpenPOWER on IntegriCloud