Index: head/mail/smfsav/Makefile =================================================================== --- head/mail/smfsav/Makefile (revision 431151) +++ head/mail/smfsav/Makefile (revision 431152) @@ -1,46 +1,50 @@ # Created by: Anton Lysenok # $FreeBSD$ PORTNAME= smfsav PORTVERSION= 1.4.0 -PORTREVISION= 2 +PORTREVISION= 3 CATEGORIES= mail MASTER_SITES= SF/smfs DISTNAME= smf-sav-${PORTVERSION} DIST_SUBDIR= ${PORTNAME} MAINTAINER= sasaki@fcc.ad.jp COMMENT= Sendmail Sender Address Validator LICENSE= GPLv2 LICENSE_FILE= ${WRKSRC}/COPYING USERS= smfs GROUPS= smfs OPTIONS_DEFINE= DOCS USE_RC_SUBR= smfsav 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 +.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 @${REINPLACE_CMD} -e 's|%%PREFIX%%|${PREFIX}|g' ${WRKSRC}/smf-sav.conf do-build: cd ${WRKSRC} && ${CC} ${CFLAGS} ${CPPFLAGS} -o smf-sav smf-sav.c ${LDFLAGS} do-install: ${INSTALL_PROGRAM} ${WRKSRC}/smf-sav ${STAGEDIR}${PREFIX}/sbin ${INSTALL_DATA} ${WRKSRC}/smf-sav.conf ${STAGEDIR}${PREFIX}/etc/smf-sav.conf.sample @${MKDIR} ${STAGEDIR}${SMFSAV_RUN_DIR} @${MKDIR} ${STAGEDIR}${DOCSDIR} cd ${WRKSRC} && ${INSTALL_DATA} ChangeLog readme ${STAGEDIR}${DOCSDIR} -.include +.include Index: head/mail/smfsav/pkg-plist =================================================================== --- head/mail/smfsav/pkg-plist (revision 431151) +++ head/mail/smfsav/pkg-plist (revision 431152) @@ -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%%