blob: 95a64d56471cb59d5f239c0bd8610c3c623548be (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
|
# 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= A sendmail milter API implementation
LIB_DEPENDS= pcre:${PORTSDIR}/devel/pcre
CFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
NO_STAGE= yes
.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 ${PREFIX}/sbin
@${MKDIR} /var/spool/sentinel
${CHOWN} smmsp:smmsp /var/spool/sentinel
${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}
${INSTALL_DATA} ${WRKSRC}/README.FreeBSD ${DOCSDIR}
.endif
post-install:
@${CAT} ${PKGMESSAGE}
.include <bsd.port.post.mk>
|