Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 11 Jan 2017 01:53:11 +0000 (UTC)
From:      Larry Rosenman <ler@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r431152 - head/mail/smfsav
Message-ID:  <201701110153.v0B1rBlf002038@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: ler
Date: Wed Jan 11 01:53:11 2017
New Revision: 431152
URL: https://svnweb.freebsd.org/changeset/ports/431152

Log:
  Use milter framework to handle libmilter correctly
  updated pkg-plist to use @sample, and changed SMF_RUN_DIR to be substituted
  in the plist otherwise packaging will fail it it's redefined.
  Bumped PORTREVISION.
  
  PR:	214722
  Submitted by:	sasaki@fcc.ad.jp (maintainer)
  Approved by:	adamw (mentor)
  Differential Revision:	https://reviews.freebsd.org/D9126

Modified:
  head/mail/smfsav/Makefile
  head/mail/smfsav/pkg-plist

Modified: head/mail/smfsav/Makefile
==============================================================================
--- head/mail/smfsav/Makefile	Wed Jan 11 01:41:36 2017	(r431151)
+++ head/mail/smfsav/Makefile	Wed Jan 11 01:53:11 2017	(r431152)
@@ -3,7 +3,7 @@
 
 PORTNAME=	smfsav
 PORTVERSION=	1.4.0
-PORTREVISION=	2
+PORTREVISION=	3
 CATEGORIES=	mail
 MASTER_SITES=	SF/smfs
 DISTNAME=	smf-sav-${PORTVERSION}
@@ -26,8 +26,12 @@ CPPFLAGS+=	-D_REENTRANT
 LDFLAGS+=	-lmilter -lpthread
 
 SMFSAV_RUN_DIR?=/var/run/smfs
+PLIST_SUB=	SMFSAV_RUN_DIR=${SMFSAV_RUN_DIR}
 SUB_FILES+=	pkg-message
 
+.include <bsd.port.pre.mk>
+.include "${PORTSDIR}/mail/sendmail/bsd.milter.mk"
+
 post-patch:
 	@${REINPLACE_CMD} -e 's|%%PREFIX%%|${PREFIX}|g' ${WRKSRC}/readme
 	@${REINPLACE_CMD} -e 's|%%PREFIX%%|${PREFIX}|g' ${WRKSRC}/smf-sav.c
@@ -43,4 +47,4 @@ do-install:
 	@${MKDIR} ${STAGEDIR}${DOCSDIR}
 	cd ${WRKSRC} && ${INSTALL_DATA} ChangeLog readme ${STAGEDIR}${DOCSDIR}
 
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>

Modified: head/mail/smfsav/pkg-plist
==============================================================================
--- head/mail/smfsav/pkg-plist	Wed Jan 11 01:41:36 2017	(r431151)
+++ head/mail/smfsav/pkg-plist	Wed Jan 11 01:53:11 2017	(r431152)
@@ -1,5 +1,5 @@
 sbin/smf-sav
-etc/smf-sav.conf.sample
+@sample etc/smf-sav.conf.sample
 %%PORTDOCS%%%%DOCSDIR%%/ChangeLog
 %%PORTDOCS%%%%DOCSDIR%%/readme
-@dir(smfs,smfs,700) /var/run/smfs
+@dir(smfs,smfs,700) %%SMFSAV_RUN_DIR%%



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