svn commit: r431152 - head/mail/smfsav
Larry Rosenman
ler at FreeBSD.org
Wed Jan 11 01:53:13 UTC 2017
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 at 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
+ at sample etc/smf-sav.conf.sample
%%PORTDOCS%%%%DOCSDIR%%/ChangeLog
%%PORTDOCS%%%%DOCSDIR%%/readme
- at dir(smfs,smfs,700) /var/run/smfs
+ at dir(smfs,smfs,700) %%SMFSAV_RUN_DIR%%
More information about the svn-ports-head
mailing list