Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 1 Feb 2014 19:35:39 +0000 (UTC)
From:      Pawel Pekala <pawel@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r342208 - head/mail/ssmtp
Message-ID:  <201402011935.s11JZd90033208@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: pawel
Date: Sat Feb  1 19:35:39 2014
New Revision: 342208
URL: http://svnweb.freebsd.org/changeset/ports/342208
QAT: https://qat.redports.org/buildarchive/r342208/

Log:
  - Add CRAMMD5 option [1]
  - Add OPENSSL option [2]
  - Change USE_GMAKE to USES=gmake
  - Convert to option helpers
  - Add support for staging
  - Unmute install commands
  - Fix WWW: line
  
  PR:		ports/181641 [1] [2]
  Submitted by:	Dewayne <dewayne.geraghty@heuristicsystems.com.au> [1]
  		maintainer [2]
  Approved by:	maintainer

Modified:
  head/mail/ssmtp/Makefile
  head/mail/ssmtp/pkg-descr
  head/mail/ssmtp/pkg-plist

Modified: head/mail/ssmtp/Makefile
==============================================================================
--- head/mail/ssmtp/Makefile	Sat Feb  1 19:20:19 2014	(r342207)
+++ head/mail/ssmtp/Makefile	Sat Feb  1 19:35:39 2014	(r342208)
@@ -3,6 +3,7 @@
 
 PORTNAME=	ssmtp
 PORTVERSION=	2.64
+PORTREVISION=   1
 CATEGORIES=	mail ipv6
 MASTER_SITES=	${MASTER_SITE_DEBIAN_POOL}
 DISTFILES=	${PORTNAME}_${PORTVERSION}.orig${EXTRACT_SUFX}
@@ -13,44 +14,33 @@ COMMENT=	Extremely simple MTA to get mai
 USE_BZIP2=	yes
 USE_OPENSSL=	yes
 GNU_CONFIGURE=	yes
-USE_GMAKE=	yes
+USES=		gmake
 GROUPS=		ssmtp
-SHAREGRP=	ssmtp
 BINMODE=	2555
 SHAREMODE=	640
-BINGRP=		ssmtp
 
 SUB_FILES+=	pkg-message
 PKGMESSAGE=	${WRKDIR}/pkg-message
-CONFIGURE_ARGS=	--enable-ssl --enable-md5auth
 MAKE_ENV+=	TARGET_ARCH=
 CFLAGS+=	-I${OPENSSLINC}
 LDFLAGS+=	-L${OPENSSLLIB}
 MAILERCONF=	/etc/mail/mailer.conf
 
-MAN8=		ssmtp.8
-MAN5=		ssmtp.conf.5
+OPTIONS_DEFINE=  LOGFILE IPV6 USERPREFS XORIGIP CRAMMD5 OPENSSL
+OPTIONS_DEFAULT= XORIGIP CRAMMD5 OPENSSL
+LOGFILE_DESC=    Log file
+USERPREFS_DESC=  User-defined revaliases
+XORIGIP_DESC=    X-Originating-IP header for REMOTE_ADDR envvar
+CRAMMD5_DESC=    CRAM-MD5 authentication support
+
+LOGFILE_CONFIGURE_ON=	--enable-logfile
+XORIGIP_EXTRA_PATCHES=	${FILESDIR}/remote-addr.patch
+IPV6_CONFIGURE_ON=	--enable-inet6
+CRAMMD5_CONFIGURE_ON=	--enable-md5auth
+OPENSSL_CONFIGURE_ON=	--enable-ssl
 
-OPTIONS_DEFINE=	LOGFILE IPV6 USERPREFS XORIGIP
-LOGFILE_DESC=	log file
-USERPREFS_DESC=	user defined revaliases
-XORIGIP_DESC=	Add X-Originating-IP header
-
-NO_STAGE=	yes
 .include <bsd.port.options.mk>
 
-.if ${PORT_OPTIONS:MLOGFILE}
-CONFIGURE_ARGS+=	--enable-logfile
-.endif
-
-.if ${PORT_OPTIONS:MXORIGIP}
-EXTRA_PATCHES=	${FILESDIR}/remote-addr.patch
-.endif
-
-.if ${PORT_OPTIONS:MIPV6}
-CONFIGURE_ARGS+=	--enable-inet6
-.endif
-
 .if ${PORT_OPTIONS:MUSERPREFS}
 CFLAGS+=	-DUSERPREFS
 pre-everything::
@@ -73,14 +63,15 @@ replace:
 	@${ECHO_CMD} "purgestat	/usr/bin/true" >> ${MAILERCONF}
 
 do-install:
-	@${INSTALL_PROGRAM} ${WRKSRC}/ssmtp ${PREFIX}/sbin/ssmtp
-	@${MKDIR} ${PREFIX}/etc/ssmtp
-	@${CHMOD} 750 ${PREFIX}/etc/ssmtp
-	@${CHGRP} ${SHAREGRP} ${PREFIX}/etc/ssmtp
-	@${INSTALL_DATA} ${WRKSRC}/revaliases ${PREFIX}/etc/ssmtp/revaliases.sample
-	@${INSTALL_DATA} ${WRKSRC}/ssmtp.conf ${PREFIX}/etc/ssmtp/ssmtp.conf.sample
-	@${INSTALL_MAN} ${WRKSRC}/ssmtp.8 ${MANPREFIX}/man/man8/ssmtp.8
-	@${INSTALL_MAN} ${WRKSRC}/ssmtp.conf.5 ${MANPREFIX}/man/man5/ssmtp.conf.5
-	@${CAT} ${PKGMESSAGE}
+	${INSTALL_PROGRAM} ${WRKSRC}/ssmtp ${STAGEDIR}${PREFIX}/sbin/ssmtp
+	@${MKDIR} ${STAGEDIR}${PREFIX}/etc/ssmtp
+	@${CHMOD} 750 ${STAGEDIR}${PREFIX}/etc/ssmtp
+	${INSTALL_DATA} ${WRKSRC}/revaliases \
+		${STAGEDIR}${PREFIX}/etc/ssmtp/revaliases.sample
+	${INSTALL_DATA} ${WRKSRC}/ssmtp.conf \
+		${STAGEDIR}${PREFIX}/etc/ssmtp/ssmtp.conf.sample
+	${INSTALL_MAN} ${WRKSRC}/ssmtp.8 ${STAGEDIR}${MANPREFIX}/man/man8/ssmtp.8
+	${INSTALL_MAN} ${WRKSRC}/ssmtp.conf.5 \
+		${STAGEDIR}${MANPREFIX}/man/man5/ssmtp.conf.5
 
 .include <bsd.port.mk>

Modified: head/mail/ssmtp/pkg-descr
==============================================================================
--- head/mail/ssmtp/pkg-descr	Sat Feb  1 19:20:19 2014	(r342207)
+++ head/mail/ssmtp/pkg-descr	Sat Feb  1 19:35:39 2014	(r342208)
@@ -7,4 +7,4 @@ WARNING: the above is all it does; it do
 aliases or manage a queue. That belongs on a mail hub with a system
 administrator.
 
-WWW:    http://packages.debian.org/stable/mail/ssmtp
+WWW: http://packages.debian.org/stable/mail/ssmtp

Modified: head/mail/ssmtp/pkg-plist
==============================================================================
--- head/mail/ssmtp/pkg-plist	Sat Feb  1 19:20:19 2014	(r342207)
+++ head/mail/ssmtp/pkg-plist	Sat Feb  1 19:35:39 2014	(r342208)
@@ -1,4 +1,9 @@
+@group ssmtp
 sbin/ssmtp
 etc/ssmtp/revaliases.sample
 etc/ssmtp/ssmtp.conf.sample
+@group
+man/man5/ssmtp.conf.5.gz
+man/man8/ssmtp.8.gz
+@exec chown root:ssmtp %D/etc/ssmtp
 @dirrmtry etc/ssmtp



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