1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-29 01:13:08 +00:00
freebsd-ports/mail/sentinel/Makefile

50 lines
1.3 KiB
Makefile
Raw Normal View History

# 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}
2006-11-09 12:43:27 +00:00
MAINTAINER= dinoex@FreeBSD.org
COMMENT= A sendmail milter API implementation
2013-12-07 05:09:57 +00:00
LIB_DEPENDS= libpcre.so:${PORTSDIR}/devel/pcre
2013-10-27 22:29:46 +00:00
NEED_ROOT= yes
2007-01-13 04:16:24 +00:00
CFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
.include <bsd.port.pre.mk>
2007-01-13 04:16:24 +00:00
.include "${PORTSDIR}/mail/sendmail/bsd.milter.mk"
.if defined(WITHOUT_SENTINEL_DECODE_SUBJECT)
2004-04-10 17:26:55 +00:00
CFLAGS+= -DDO_NOT_DECODE_SUBJECT
.endif
do-build:
cd ${WRKSRC} && \
2003-09-26 20:19:19 +00:00
${CC} ${CFLAGS} ${PTHREAD_CFLAGS} \
-o ${PORTNAME} ${PORTNAME}.c ${LDFLAGS} \
-lmilter -lpcre -lpcreposix ${PTHREAD_LIBS}
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}
.endif
post-install:
@${CAT} ${PKGMESSAGE}
.include <bsd.port.post.mk>