aboutsummaryrefslogtreecommitdiff
path: root/mail/nullmailer
diff options
context:
space:
mode:
authorGreg Larkin <glarkin@FreeBSD.org>2013-01-16 18:49:50 +0000
committerGreg Larkin <glarkin@FreeBSD.org>2013-01-16 18:49:50 +0000
commitd665f5752b7be2a98089459e8a18d81767a1d4f6 (patch)
tree07e6070a607103db30636d1eaadec6a1f78f96b6 /mail/nullmailer
parent2fb341efa3de54cb1060d124b8ff3fb8dc7e5678 (diff)
downloadports-d665f5752b7be2a98089459e8a18d81767a1d4f6.tar.gz
ports-d665f5752b7be2a98089459e8a18d81767a1d4f6.zip
- Updated 1.11
- Added support for GNU TLS - Converted to OptionsNG - Trimmed Makefile header PR: ports/173263 Submitted by: Ilya Skalozubov <skinc@skinc.ru>
Notes
Notes: svn path=/head/; revision=310509
Diffstat (limited to 'mail/nullmailer')
-rw-r--r--mail/nullmailer/Makefile30
-rw-r--r--mail/nullmailer/distinfo4
-rw-r--r--mail/nullmailer/files/patch-src-Makefile.in7
-rw-r--r--mail/nullmailer/pkg-plist1
4 files changed, 27 insertions, 15 deletions
diff --git a/mail/nullmailer/Makefile b/mail/nullmailer/Makefile
index 94eb7896ddb0..a8ed5dfe714e 100644
--- a/mail/nullmailer/Makefile
+++ b/mail/nullmailer/Makefile
@@ -1,13 +1,8 @@
-# Ports collection makefile for: nullmailer
-# Date created: Tue Jan 30 2001
-# Whom: clive
-#
+# Created by: clive
# $FreeBSD$
-#
PORTNAME= nullmailer
-PORTVERSION= 1.05
-PORTREVISION= 4
+PORTVERSION= 1.11
PORTEPOCH= 1
CATEGORIES= mail
MASTER_SITES= http://untroubled.org/nullmailer/ \
@@ -17,6 +12,8 @@ MASTER_SITE_SUBDIR= ${PORTVERSION}
MAINTAINER= glarkin@FreeBSD.org
COMMENT= MTA for hosts which relay to a fixed set of smart relays
+LICENSE= GPLv2
+
LOCALSTATEDIR= /var/spool
.if defined(MAINTAINER_MODE)
@@ -28,10 +25,8 @@ GROUPS= nullmail
NULLMAIL_UID= 522
NULLMAIL_GID= 522
-LICENSE= GPLv2
-
GNU_CONFIGURE= yes
-CONFIGURE_ARGS+= --localstatedir=${LOCALSTATEDIR}
+CONFIGURE_ARGS+=--localstatedir=${LOCALSTATEDIR}
USE_SUBMAKE= yes
@@ -47,6 +42,21 @@ MAN1= nullmailer-inject.1 sendmail.1
MAN7= nullmailer.7
MAN8= nullmailer-queue.8 nullmailer-send.8
+
+OPTIONS_DEFINE= GNUTLS
+
+.include <bsd.port.options.mk>
+
+.if ${PORT_OPTIONS:MGNUTLS}
+LIB_DEPENDS+= gnutls:${PORTSDIR}/security/gnutls
+CPPFLAGS+= -I${LOCALBASE}/include
+LDFLAGS+= -L${LOCALBASE}/lib -lgnutls
+CONFIGURE_ENV+= CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}"
+CONFIGURE_ARGS+=--enable-tls
+.else
+CONFIGURE_ARGS+=--disable-tls
+.endif
+
post-install:
@cd ${WRKSRC} && ${MAKE} install-root
diff --git a/mail/nullmailer/distinfo b/mail/nullmailer/distinfo
index 3fedeb810cc8..35ac98fc9384 100644
--- a/mail/nullmailer/distinfo
+++ b/mail/nullmailer/distinfo
@@ -1,2 +1,2 @@
-SHA256 (nullmailer-1.05.tar.gz) = 90356ed2bd95eef09ed04713fdef1f81c1ab95e02eee333a96a8e3eb230cac2f
-SIZE (nullmailer-1.05.tar.gz) = 176800
+SHA256 (nullmailer-1.11.tar.gz) = bf61c839b5f0927e0998c6183f229fa644f97165d3d5402adc59369b2bdaf25e
+SIZE (nullmailer-1.11.tar.gz) = 203239
diff --git a/mail/nullmailer/files/patch-src-Makefile.in b/mail/nullmailer/files/patch-src-Makefile.in
index 1c73ddc4f8bd..7f68757e6197 100644
--- a/mail/nullmailer/files/patch-src-Makefile.in
+++ b/mail/nullmailer/files/patch-src-Makefile.in
@@ -1,13 +1,14 @@
--- src/Makefile.in.orig 2007-10-09 19:23:25.000000000 -0400
+++ src/Makefile.in 2009-08-11 17:24:28.000000000 -0400
-@@ -30,9 +30,9 @@
+@@ -30,10 +30,9 @@
NORMAL_UNINSTALL = :
PRE_UNINSTALL = :
POST_UNINSTALL = :
--bin_PROGRAMS = mailq$(EXEEXT) nullmailer-inject$(EXEEXT)
+-bin_PROGRAMS = mailq$(EXEEXT) nullmailer-inject$(EXEEXT) \
+- nullmailer-smtpd$(EXEEXT)
-sbin_PROGRAMS = nullmailer-queue$(EXEEXT) nullmailer-send$(EXEEXT) \
- sendmail$(EXEEXT)
-+bin_PROGRAMS = nullmailer-inject$(EXEEXT)
++bin_PROGRAMS = nullmailer-inject$(EXEEXT) nullmailer-smtpd$(EXEEXT)
+sbin_PROGRAMS = nullmailer-queue$(EXEEXT) nullmailer-send$(EXEEXT)
+libexec_PROGRAMS = mailq$(EXEEXT) sendmail$(EXEEXT)
subdir = src
diff --git a/mail/nullmailer/pkg-plist b/mail/nullmailer/pkg-plist
index 65923d000d8e..fdcc63b24b83 100644
--- a/mail/nullmailer/pkg-plist
+++ b/mail/nullmailer/pkg-plist
@@ -5,6 +5,7 @@ libexec/nullmailer/mailq
@exec chown %%NULLMAIL_USER%% %D/libexec/nullmailer/mailq
libexec/nullmailer/sendmail
bin/nullmailer-inject
+bin/nullmailer-smtpd
sbin/nullmailer-queue
@exec chmod u+s %D/sbin/nullmailer-queue
@exec chown %%NULLMAIL_USER%% %D/sbin/nullmailer-queue