2013-01-26 16:06:35 +00:00
|
|
|
# Created by: Peter Hollaubek <fifteen@inext.hu>
|
2002-09-21 02:26:08 +00:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= sentinel
|
2003-11-16 14:58:44 +00:00
|
|
|
PORTVERSION= 1.7b
|
2012-12-10 19:11:11 +00:00
|
|
|
PORTREVISION= 3
|
2002-09-21 02:26:08 +00:00
|
|
|
CATEGORIES= mail
|
2009-08-22 00:28:34 +00:00
|
|
|
MASTER_SITES= SF/smfilter/${PORTNAME}/Sentinel%20${PORTVERSION}
|
2002-09-21 02:26:08 +00:00
|
|
|
|
2006-11-09 12:43:27 +00:00
|
|
|
MAINTAINER= dinoex@FreeBSD.org
|
2003-05-12 06:57:51 +00:00
|
|
|
COMMENT= A sendmail milter API implementation
|
|
|
|
|
2013-12-07 05:09:57 +00:00
|
|
|
LIB_DEPENDS= libpcre.so:${PORTSDIR}/devel/pcre
|
2013-09-21 11:06:03 +00:00
|
|
|
|
2013-10-27 22:29:46 +00:00
|
|
|
NEED_ROOT= yes
|
2013-09-21 11:06:03 +00:00
|
|
|
|
2007-01-13 04:16:24 +00:00
|
|
|
CFLAGS+= -I${LOCALBASE}/include
|
|
|
|
LDFLAGS+= -L${LOCALBASE}/lib
|
2002-09-21 02:26:08 +00:00
|
|
|
|
2003-09-26 20:15:58 +00:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2007-01-13 04:16:24 +00:00
|
|
|
.include "${PORTSDIR}/mail/sendmail/bsd.milter.mk"
|
2003-09-07 14:09:23 +00:00
|
|
|
|
2003-12-20 05:11:02 +00:00
|
|
|
.if defined(WITHOUT_SENTINEL_DECODE_SUBJECT)
|
2004-04-10 17:26:55 +00:00
|
|
|
CFLAGS+= -DDO_NOT_DECODE_SUBJECT
|
2003-12-20 05:11:02 +00:00
|
|
|
.endif
|
|
|
|
|
2003-01-02 18:45:29 +00:00
|
|
|
do-build:
|
2003-05-12 06:57:51 +00:00
|
|
|
cd ${WRKSRC} && \
|
2003-09-26 20:19:19 +00:00
|
|
|
${CC} ${CFLAGS} ${PTHREAD_CFLAGS} \
|
|
|
|
-o ${PORTNAME} ${PORTNAME}.c ${LDFLAGS} \
|
2003-11-16 14:58:44 +00:00
|
|
|
-lmilter -lpcre -lpcreposix ${PTHREAD_LIBS}
|
2002-09-21 02:26:08 +00:00
|
|
|
|
|
|
|
do-install:
|
2013-10-27 22:29:46 +00:00
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/sentinel ${STAGEDIR}${PREFIX}/sbin/
|
|
|
|
@${MKDIR} ${STAGEDIR}/var/spool/sentinel
|
|
|
|
${CHOWN} smmsp:smmsp ${STAGEDIR}/var/spool/sentinel
|
|
|
|
${INSTALL_DATA} ${FILESDIR}/000.sentinel.sh ${STAGEDIR}${PREFIX}/etc/rc.d/sentinel.sh-dist
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/sentinel.cf.SAMPLE ${STAGEDIR}${PREFIX}/etc/sentinel.cf.dist
|
|
|
|
.if ${PORT_OPTIONS:MDOCS}
|
|
|
|
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/README ${STAGEDIR}${DOCSDIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/README.FreeBSD ${STAGEDIR}${DOCSDIR}
|
2002-09-21 02:26:08 +00:00
|
|
|
.endif
|
|
|
|
|
2003-09-07 14:09:23 +00:00
|
|
|
post-install:
|
|
|
|
@${CAT} ${PKGMESSAGE}
|
|
|
|
|
2003-09-26 20:15:58 +00:00
|
|
|
.include <bsd.port.post.mk>
|