aboutsummaryrefslogtreecommitdiffstats
path: root/mail/milter-skem/Makefile
blob: 1b133c3176c5cd4a0f304476bfc84577f0eabb11 (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
# Created by: Mikhail Teterin
# $FreeBSD$

PORTNAME=   skem
PORTVERSION=    1.0.1
CATEGORIES= mail
MASTER_SITES=   http://virtual-estates.net/skem/

MAINTAINER= mi@aldan.algebra.com
COMMENT=    Cache earlier sendmail's verdicts for the relays

.if !exists( /usr/include/libmilter/mfapi.h )
BUILD_DEPENDS+= ${LOCALBASE}/include/libmilter/mfapi.h:${PORTSDIR}/mail/sendmail
CFLAGS+=    -I${LOCALBASE}/include
.endif

USES=       tar:bzip2 uidfix

PLIST_FILES=    sbin/skem \
        man/man8/skem.8.gz

OPTIONS_DEFINE= SKEM_MILTER421 SKEM_NO_CLEANUP SKEM_NO_LOGWATCHER SKEM_NETINET6 SKEM_NETINET
SKEM_MILTER421_DESC=    Sendmail was built with -D_FFR_MILTER_421
SKEM_NO_CLEANUP_DESC=   Omit the auto-cleanup module
SKEM_NO_LOGWATCHER_DESC=    Omit the log-watching module
SKEM_NETINET6_DESC= Support IPv6 addresses (not tested)
SKEM_NETINET_DESC=  Support IPv4 addresses

OPTIONS_DEFAULT=    SKEM_NETINET

.include <bsd.port.options.mk>

.if ${ARCH} == "powerpc"
BROKEN=     Does not compile on powerpc
.endif

MAKE_ENV+=  PTHREAD_LIBS="-lpthread"

.for o in ${PORT_OPTIONS:MSKEM_*}
.   if ${PORT_OPTIONS:M$o}
MAKE_ARGS+= -D$o
.   endif
.endfor

.include <bsd.port.mk>