2002-09-21 04:26:08 +02:00
|
|
|
# New ports collection makefile for: sentinel
|
|
|
|
# Date created: 14 May 2002
|
|
|
|
# Whom: Peter Hollaubek <fifteen@inext.hu>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= sentinel
|
2003-01-02 19:45:29 +01:00
|
|
|
PORTVERSION= 1.6.1b
|
2002-09-21 04:26:08 +02:00
|
|
|
CATEGORIES= mail
|
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
|
|
|
|
MASTER_SITE_SUBDIR= smfilter
|
|
|
|
|
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2003-02-20 20:00:52 +01:00
|
|
|
COMMENT= Sentinel is a sendmail milter API implementation
|
2002-09-21 04:26:08 +02:00
|
|
|
|
|
|
|
USE_REINPLACE= yes
|
|
|
|
|
|
|
|
post-patch:
|
2003-01-02 19:45:29 +01:00
|
|
|
@${REINPLACE_CMD} -e \
|
|
|
|
's|:/var|:${PREFIX}/var|g' ${WRKSRC}/sentinel.cf.SAMPLE
|
|
|
|
|
|
|
|
do-build:
|
|
|
|
cd ${WRKSRC} && ${CC} ${CFLAGS} ${PTHREAD_CFLAGS} -o ${PORTNAME} \
|
|
|
|
${PORTNAME}.c -lmilter ${PTHREAD_LIBS}
|
2002-09-21 04:26:08 +02:00
|
|
|
|
|
|
|
do-install:
|
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/sentinel ${PREFIX}/sbin
|
|
|
|
@${MKDIR} ${PREFIX}/var/sentinel
|
2002-10-22 00:09:24 +02:00
|
|
|
${CHOWN} smmsp:smmsp ${PREFIX}/var/sentinel
|
2002-09-21 04:26:08 +02:00
|
|
|
${INSTALL_SCRIPT} ${FILESDIR}/000.sentinel.sh ${PREFIX}/etc/rc.d
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/sentinel.cf.SAMPLE ${PREFIX}/etc/sentinel.cf.dist
|
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
@${MKDIR} ${DOCSDIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|