168f57451a
COMMENT typos and surrounding whitespace fixes. A few Makefiles where not included as they contain Latin-1 characters that break the Phabricator workflow. Category M. CR: D306 Approved by: portmgr (bapt)
49 lines
1.3 KiB
Makefile
49 lines
1.3 KiB
Makefile
# Created by: Peter Hollaubek <fifteen@inext.hu>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= sentinel
|
|
PORTVERSION= 1.7b
|
|
PORTREVISION= 3
|
|
CATEGORIES= mail
|
|
MASTER_SITES= SF/smfilter/${PORTNAME}/Sentinel%20${PORTVERSION}
|
|
|
|
MAINTAINER= dinoex@FreeBSD.org
|
|
COMMENT= Sendmail milter API implementation
|
|
|
|
LIB_DEPENDS= libpcre.so:${PORTSDIR}/devel/pcre
|
|
|
|
NEED_ROOT= yes
|
|
|
|
CFLAGS+= -I${LOCALBASE}/include
|
|
LDFLAGS+= -L${LOCALBASE}/lib
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
.include "${PORTSDIR}/mail/sendmail/bsd.milter.mk"
|
|
|
|
.if defined(WITHOUT_SENTINEL_DECODE_SUBJECT)
|
|
CFLAGS+= -DDO_NOT_DECODE_SUBJECT
|
|
.endif
|
|
|
|
do-build:
|
|
cd ${WRKSRC} && \
|
|
${CC} ${CFLAGS} ${PTHREAD_CFLAGS} \
|
|
-o ${PORTNAME} ${PORTNAME}.c ${LDFLAGS} \
|
|
-lmilter -lpcre -lpcreposix ${PTHREAD_LIBS}
|
|
|
|
do-install:
|
|
${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}
|
|
.endif
|
|
|
|
post-install:
|
|
@${CAT} ${PKGMESSAGE}
|
|
|
|
.include <bsd.port.post.mk>
|