View | Details | Raw Unified | Return to bug 216652 | Differences between
and this patch

Collapse All | Expand All

(-)Makefile (-1 / +3 lines)
Lines 28-33 Link Here
28
SMFSAV_RUN_DIR?=/var/run/smfs
28
SMFSAV_RUN_DIR?=/var/run/smfs
29
PLIST_SUB=	SMFSAV_RUN_DIR=${SMFSAV_RUN_DIR}
29
PLIST_SUB=	SMFSAV_RUN_DIR=${SMFSAV_RUN_DIR}
30
SUB_FILES+=	pkg-message
30
SUB_FILES+=	pkg-message
31
SUB_LIST:=	${PLIST_SUB}
31
32
32
.include <bsd.port.pre.mk>
33
.include <bsd.port.pre.mk>
33
.include "${PORTSDIR}/mail/sendmail/bsd.milter.mk"
34
.include "${PORTSDIR}/mail/sendmail/bsd.milter.mk"
Lines 35-41 Link Here
35
post-patch:
36
post-patch:
36
	@${REINPLACE_CMD} -e 's|%%PREFIX%%|${PREFIX}|g' ${WRKSRC}/readme
37
	@${REINPLACE_CMD} -e 's|%%PREFIX%%|${PREFIX}|g' ${WRKSRC}/readme
37
	@${REINPLACE_CMD} -e 's|%%PREFIX%%|${PREFIX}|g' ${WRKSRC}/smf-sav.c
38
	@${REINPLACE_CMD} -e 's|%%PREFIX%%|${PREFIX}|g' ${WRKSRC}/smf-sav.c
38
	@${REINPLACE_CMD} -e 's|%%PREFIX%%|${PREFIX}|g' ${WRKSRC}/smf-sav.conf
39
	@${REINPLACE_CMD} -e 's|%%PREFIX%%|${PREFIX}|g' \
40
		-e 's|%%SMFSAV_RUN_DIR%%|${SMFSAV_RUN_DIR}|g' ${WRKSRC}/smf-sav.conf
39
41
40
do-build:
42
do-build:
41
	cd ${WRKSRC} && ${CC} ${CFLAGS} ${CPPFLAGS} -o smf-sav smf-sav.c ${LDFLAGS}
43
	cd ${WRKSRC} && ${CC} ${CFLAGS} ${CPPFLAGS} -o smf-sav smf-sav.c ${LDFLAGS}
(-)files/patch-smf-sav.conf (-2 / +14 lines)
Lines 1-5 Link Here
1
--- smf-sav.conf.orig	2006-10-26 05:15:10.000000000 +0900
1
--- smf-sav.conf.orig	2006-10-25 20:15:10 UTC
2
+++ smf-sav.conf	2015-06-02 13:32:07.814150000 +0900
2
+++ smf-sav.conf
3
@@ -1,4 +1,4 @@
3
@@ -1,4 +1,4 @@
4
-# /etc/mail/smfs/smf-sav.conf
4
-# /etc/mail/smfs/smf-sav.conf
5
+# %%PREFIX%%/etc/smf-sav.conf
5
+# %%PREFIX%%/etc/smf-sav.conf
Lines 6-8 Link Here
6
 #
6
 #
7
 # smf-sav configuration file v1.4.0 (it's read at start)
7
 # smf-sav configuration file v1.4.0 (it's read at start)
8
 #
8
 #
9
@@ -103,9 +103,9 @@ SafeCallBack	postmaster@yourdomain.tld	#
10
 
11
 # Socket used to communicate with a Sendmail daemon
12
 #
13
-# Default: unix:/var/run/smfs/smf-sav.sock
14
+# Default: unix:%%SMFSAV_RUN_DIR%%/smf-sav.sock
15
 #
16
-#Socket		unix:/var/run/smfs/smf-sav.sock
17
+#Socket		unix:%%SMFSAV_RUN_DIR%%/smf-sav.sock
18
 
19
 # Facility for logging via a Syslog daemon
20
 #
(-)files/pkg-message.in (-1 / +1 lines)
Lines 3-9 Link Here
3
1. Inspect and edit the %%PREFIX%%/etc/smfsav.conf file
3
1. Inspect and edit the %%PREFIX%%/etc/smfsav.conf file
4
2. Add these lines to your Sendmail configuration file (usually sendmail.mc):
4
2. Add these lines to your Sendmail configuration file (usually sendmail.mc):
5
    define(`confMILTER_MACROS_HELO', confMILTER_MACROS_HELO`, {verify}')dnl
5
    define(`confMILTER_MACROS_HELO', confMILTER_MACROS_HELO`, {verify}')dnl
6
    INPUT_MAIL_FILTER(`smf-sav', `S=unix:/var/run/smfs/smf-sav.sock, T=S:30s;R:4m')dnl
6
    INPUT_MAIL_FILTER(`smf-sav', `S=unix:%%SMFSAV_RUN_DIR%%/smf-sav.sock, T=S:30s;R:4m')dnl
7
3. Put line smfsav_enable="YES" to /etc/rc.conf file
7
3. Put line smfsav_enable="YES" to /etc/rc.conf file
8
4. Run `service smfsav start`
8
4. Run `service smfsav start`
9
=====================================================================================
9
=====================================================================================

Return to bug 216652