View | Details | Raw Unified | Return to bug 203199
Collapse All | Expand All

(-)Makefile (+1 lines)
Lines 40-44 Link Here
40
do-install:
40
do-install:
41
	${INSTALL_PROGRAM} ${WRKSRC}/milter-regex ${STAGEDIR}${PREFIX}/libexec/
41
	${INSTALL_PROGRAM} ${WRKSRC}/milter-regex ${STAGEDIR}${PREFIX}/libexec/
42
	${INSTALL_MAN} ${WRKSRC}/milter-regex.8 ${STAGEDIR}${PREFIX}/man/man8/
42
	${INSTALL_MAN} ${WRKSRC}/milter-regex.8 ${STAGEDIR}${PREFIX}/man/man8/
43
	${MKDIR} ${STAGEDIR}${SPOOLDIR}
43
44
44
.include <bsd.port.post.mk>
45
.include <bsd.port.post.mk>
(-)files/milterregex.in (-9 lines)
Lines 29-45 Link Here
29
command="%%PREFIX%%/libexec/milter-regex"
29
command="%%PREFIX%%/libexec/milter-regex"
30
pidfile="${spooldir}/milter-regex.pid"
30
pidfile="${spooldir}/milter-regex.pid"
31
required_files="%%PREFIX%%/etc/milter-regex.conf"
31
required_files="%%PREFIX%%/etc/milter-regex.conf"
32
start_precmd="milterregex_prestart"
33
stop_postcmd="milterregex_poststop"
32
stop_postcmd="milterregex_poststop"
34
33
35
milterregex_prestart() {
36
	if test ! -d "${spooldir}"
37
	then
38
		mkdir -m 750 -p "${spooldir}"
39
		chown mailnull:mail "${spooldir}"
40
	fi
41
}
42
43
milterregex_poststop() {
34
milterregex_poststop() {
44
	/bin/rm -f ${pidfile}
35
	/bin/rm -f ${pidfile}
45
}
36
}
(-)pkg-plist (-1 / +1 lines)
Lines 1-3 Link Here
1
libexec/milter-regex
1
libexec/milter-regex
2
man/man8/milter-regex.8.gz
2
man/man8/milter-regex.8.gz
3
@unexec rmdir %%SPOOLDIR%% 2>/dev/null || true
3
@dir(mailnull,mail,750) %%SPOOLDIR%%

Return to bug 203199