Add pkg-message about INPUT_MAIL_FILTER

Check for libmilter.a presence
Remove 000. prefix on rc.d script installation
This commit is contained in:
Andrey A. Chernov 2003-09-07 14:09:23 +00:00
parent 4f455641ff
commit b592f32da6
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=88690
3 changed files with 20 additions and 3 deletions

View File

@ -7,7 +7,7 @@
PORTNAME= sentinel
PORTVERSION= 1.6.5b
PORTREVISION= 1
PORTREVISION= 2
CATEGORIES= mail
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= smfilter
@ -19,6 +19,10 @@ LIB_DEPENDS= pcre.0:${PORTSDIR}/devel/pcre
USE_REINPLACE= yes
.if !exists(/usr/lib/libmilter.a)
IGNORE= requires Sendmail 8.12; upgrade the base system
.endif
post-patch:
@${REINPLACE_CMD} -e \
's|:/var|:${PREFIX}/var|g' ${WRKSRC}/sentinel.cf.SAMPLE
@ -33,11 +37,14 @@ do-install:
${INSTALL_PROGRAM} ${WRKSRC}/sentinel ${PREFIX}/sbin
@${MKDIR} ${PREFIX}/var/sentinel
${CHOWN} smmsp:smmsp ${PREFIX}/var/sentinel
${INSTALL_DATA} ${FILESDIR}/000.sentinel.sh ${PREFIX}/etc/rc.d/000.sentinel.sh-dist
${INSTALL_DATA} ${FILESDIR}/000.sentinel.sh ${PREFIX}/etc/rc.d/sentinel.sh-dist
${INSTALL_DATA} ${WRKSRC}/sentinel.cf.SAMPLE ${PREFIX}/etc/sentinel.cf.dist
.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
.endif
post-install:
@${CAT} ${PKGMESSAGE}
.include <bsd.port.mk>

10
mail/sentinel/pkg-message Normal file
View File

@ -0,0 +1,10 @@
************************************************************************
In order to run this port, please add the following line to
/etc/mail/YOUR-CONF.mc:
INPUT_MAIL_FILTER(`sentinel', `S=local:/usr/local/var/sentinel/sentinel.socket, F=T, T=S:2m;R:4m;E:6m')
Don't forget remake sendmail configuration file after modifying YOUR-CONF.mc
************************************************************************

View File

@ -1,6 +1,6 @@
sbin/sentinel
etc/sentinel.cf.dist
etc/rc.d/000.sentinel.sh-dist
etc/rc.d/sentinel.sh-dist
@exec mkdir %D/var/sentinel
@exec chown smmsp:smmsp %D/var/sentinel
@unexec rmdir %D/var/sentinel 2>/dev/null || true