Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 23 May 2014 07:43:32 +0100 (BST)
From:      Jamie Landeg-Jones <jamie@dyslexicfish.net>
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   ports/190134: port update: mail/heirloom-mailx - add option to use sendmail from ports, and take ownership
Message-ID:  <201405230643.s4N6hWbJ087975@catnip.dyslexicfish.net>
Resent-Message-ID: <201405230710.s4N7A0DP090556@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         190134
>Category:       ports
>Synopsis:       port update: mail/heirloom-mailx - add option to use sendmail from ports, and take ownership
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Fri May 23 07:10:00 UTC 2014
>Closed-Date:
>Last-Modified:
>Originator:     Jamie Landeg-Jones
>Release:        FreeBSD 10.0-STABLE amd64
>Organization:
>Environment:
System: FreeBSD catnip.dyslexicfish.net 10.0-STABLE FreeBSD 10.0-STABLE #0: Sat May 10 20:24:29 BST 2014 root@catflap.dyslexicfish.net:/usr/obj/usr/src/sys/CATFLAP amd64


	
>Description:
	
1) mail/heirloom-mailx - add option to use sendmail from ports instead of base.

2) Take ownership of port.
>How-To-Repeat:
	
>Fix:
apply patch within dir: $PORTSDIR/mail/heirloom-mailx
	

--- patch-Makefile begins here ---
--- Makefile.orig	2013-09-20 20:59:12.000000000 +0100
+++ Makefile	2014-05-23 07:28:55.000000000 +0100
@@ -3,15 +3,16 @@
 
 PORTNAME=	mailx
 PORTVERSION=	12.4
-PORTREVISION=	3
+PORTREVISION=	4
 CATEGORIES=	mail ipv6
 MASTER_SITES=	SF/heirloom/heirloom-${PORTNAME}/${PORTVERSION}
 PKGNAMEPREFIX=	heirloom-
 
-MAINTAINER=	ports@FreeBSD.org
+MAINTAINER=	jamie@dyslexicfish.net
 COMMENT=	BSD mail utility with MIME, IMAP, POP3, SMTP, and S/MIME extensions
 
-OPTIONS_DEFINE=	IPV6 DOCS
+OPTIONS_DEFINE=	IPV6 DOCS SENDMAIL_PORT
+SENDMAIL_PORT_DESC=	Use sendmail from ports instead of base
 
 CONFLICTS=	mailx-[0-9]*
 
@@ -21,7 +22,6 @@
 USE_OPENSSL=	yes
 MAKE_ARGS=	PREFIX="${PREFIX}" \
 		SYSCONFDIR="${PREFIX}/etc" \
-		SENDMAIL="/usr/sbin/sendmail" \
 		CPPFLAGS="${CPPFLAGS}" \
 		LDFLAGS="${LDFLAGS}"
 
@@ -43,6 +43,13 @@
 MAKE_ARGS+=	IPv6="-DHAVE_IPv6_FUNCS"
 .endif
 
+.if ${PORT_OPTIONS:MSENDMAIL_PORT}
+MAKE_ARGS+=	SENDMAIL="${LOCALBASE}/sbin/sendmail"
+RUN_DEPENDS=	${LOCALBASE}/sbin/sendmail:${PORTSDIR}/mail/sendmail
+.else
+MAKE_ARGS+=	SENDMAIL="/usr/sbin/sendmail"
+.endif
+
 do-install:
 	${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin
 	${INSTALL_MAN} ${WRKSRC}/${MAN1} ${MAN1PREFIX}/man/man1
--- patch-Makefile ends here ---


>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201405230643.s4N6hWbJ087975>