diff options
author | clsung <clsung@FreeBSD.org> | 2006-11-02 14:52:54 +0800 |
---|---|---|
committer | clsung <clsung@FreeBSD.org> | 2006-11-02 14:52:54 +0800 |
commit | a756c8ee8af6552fb54b7cd24c32c381e7b1ab1e (patch) | |
tree | c82c2e39f799b5c2971eff8c3af452c2cb59e4f6 /mail/milter-regex/Makefile | |
parent | 2e887b935356156d71be402a5b71e1aea392708c (diff) | |
download | freebsd-ports-gnome-a756c8ee8af6552fb54b7cd24c32c381e7b1ab1e.tar.gz freebsd-ports-gnome-a756c8ee8af6552fb54b7cd24c32c381e7b1ab1e.tar.zst freebsd-ports-gnome-a756c8ee8af6552fb54b7cd24c32c381e7b1ab1e.zip |
- Add support for rc.d style startup scripts for mail/milter-regex port.
- reset maintainership
PR: ports/103114
Submitted by: Derek Marcotte <derekm dot nospam_AT_rogers dot com>
Approved by: maintainer (dhartmei)
Diffstat (limited to 'mail/milter-regex/Makefile')
-rw-r--r-- | mail/milter-regex/Makefile | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/mail/milter-regex/Makefile b/mail/milter-regex/Makefile index af01401bccd6..55b0df1b8df3 100644 --- a/mail/milter-regex/Makefile +++ b/mail/milter-regex/Makefile @@ -12,7 +12,7 @@ CATEGORIES= mail MASTER_SITES= http://www.benzedrine.cx/ DISTNAME= milter-regex-${PORTVERSION} -MAINTAINER= dhartmei@FreeBSD.org +MAINTAINER= ports@freebsd.org COMMENT= Milter plugin to sendmail for regular expression filtering WRKSRC= ${WRKDIR}/milter-regex @@ -21,6 +21,11 @@ MAN8= milter-regex.8 PLIST_FILES= libexec/milter-regex MAKE_ENV+= LDFLAGS="${LDFLAGS}" +USE_RC_SUBR= milterregex.sh + +SPOOLDIR= /var/run/milter-regex +SUB_LIST= SPOOLDIR=${SPOOLDIR} + .include <bsd.port.pre.mk> .if defined(SENDMAIL_MILTER_PORT) @@ -43,9 +48,11 @@ pre-everything:: post-patch: @${REINPLACE_CMD} -e \ "s:/etc/milter-regex.conf:${PREFIX}/etc/milter-regex.conf:g; \ + s:/var/spool/milter-regex:${SPOOLDIR}:g; \ s:_milter-regex:${MAILUSER}:g;" ${WRKSRC}/milter-regex.c @${REINPLACE_CMD} -e \ "s:/etc/milter-regex.conf:${PREFIX}/etc/milter-regex.conf:g; \ + s:/var/spool/milter-regex:${SPOOLDIR}:g; \ s:mailstats 1:mailstats 8:;" ${WRKSRC}/milter-regex.8 @${REINPLACE_CMD} -e "s:-lpthread:${PTHREAD_LIBS}:g; \ s:-I/usr/src/gnu/usr.sbin/sendmail/include:${PTHREAD_CFLAGS}:g; \ @@ -55,6 +62,9 @@ post-patch: do-install: @${INSTALL_PROGRAM} ${WRKSRC}/milter-regex ${PREFIX}/libexec @${INSTALL_MAN} ${WRKSRC}/milter-regex.8 ${PREFIX}/man/man8 - @${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL + @${INSTALL} -d -o ${MAILUSER} -g daemon -m 0700 ${SPOOLDIR} + +post-install: + @${CAT} ${PKGMESSAGE} .include <bsd.port.post.mk> |