Lines 6-38
Link Here
|
6 |
# |
6 |
# |
7 |
|
7 |
|
8 |
PORTNAME= smtp-gated |
8 |
PORTNAME= smtp-gated |
9 |
PORTVERSION= 1.4.16.3 |
9 |
PORTVERSION= 1.4.18.8 |
10 |
PORTREVISION= 1 |
|
|
11 |
CATEGORIES= mail |
10 |
CATEGORIES= mail |
12 |
MASTER_SITES= http://software.klolik.org/smtp-gated/files/ |
11 |
MASTER_SITES= http://software.klolik.org/smtp-gated/files/ |
13 |
|
12 |
|
14 |
MAINTAINER= ports@FreeBSD.org |
13 |
MAINTAINER= ports@FreeBSD.org |
15 |
COMMENT= This software block SMTP sessions used by e-mail worms and viruses |
14 |
COMMENT= Proxy for SMTP sessions with virus and spam scan |
16 |
|
15 |
|
17 |
HAS_CONFIGURE= yes |
16 |
LICENSE= GPLv2 |
18 |
USE_AUTOTOOLS= autoheader |
|
|
19 |
|
17 |
|
20 |
OPTIONS= NAT "NAT transparent proxy code" On \ |
18 |
OPTIONS= NAT "NAT transparent proxy code" On \ |
21 |
CHUNKING "Enable support for SMTP CHUNKING extension" Off \ |
19 |
CHUNKING "Enable support for SMTP CHUNKING extension" Off \ |
22 |
ECONNRESET "Be quiet about Connection reset by peer message" Off |
20 |
ECONNRESET "Be quiet about Connection reset by peer message" Off \ |
|
|
21 |
PCRE "Enable support for PCRE" On |
23 |
|
22 |
|
24 |
PLIST_FILES= sbin/smtp-gated |
|
|
25 |
MAN5= smtp-gated.conf.5 |
26 |
MAN8= smtp-gated.8 |
27 |
|
23 |
|
28 |
.include <bsd.port.pre.mk> |
24 |
GNU_CONFIGURE= yes |
|
|
25 |
MAKE_JOBS_SAFE= yes |
29 |
|
26 |
|
30 |
.if ${ARCH} == "powerpc" |
27 |
CPPFLAGS+= -I${LOCALBASE}/include |
31 |
BROKEN= Does not compile on powerpc: cannot determine endianness |
28 |
LDFLAGS+= -L${LOCALBASE}/lib |
32 |
.endif |
29 |
|
|
|
30 |
MAN5= smtp-gated.conf.5 |
31 |
MAN8= smtp-gated.8 |
32 |
PLIST_FILES= sbin/smtp-gated |
33 |
|
33 |
|
34 |
post-patch: |
34 |
.include <bsd.port.options.mk> |
35 |
${REINPLACE_CMD} -e 's,install-man: install-man5 install-man8 install-manh,install-man: install-man5 install-man8,' ${WRKSRC}/doc/Makefile.in |
|
|
36 |
|
35 |
|
37 |
.if defined(WITH_NAT) |
36 |
.if defined(WITH_NAT) |
38 |
CONFIGURE_ARGS+= --enable-nat |
37 |
CONFIGURE_ARGS+= --enable-nat |
Lines 48-51
Link Here
|
48 |
CONFIGURE_ARGS+= --enable-silent-econnreset |
47 |
CONFIGURE_ARGS+= --enable-silent-econnreset |
49 |
.endif |
48 |
.endif |
50 |
|
49 |
|
|
|
50 |
.if defined(WITH_PCRE) |
51 |
LIB_DEPENDS+= pcre.1:${PORTSDIR}/devel/pcre |
52 |
.else |
53 |
CONFIGURE_ARGS+= --disable-pcre |
54 |
.endif |
55 |
|
56 |
.include <bsd.port.pre.mk> |
57 |
|
58 |
.if ${ARCH} == "powerpc" |
59 |
BROKEN= Does not compile on powerpc: cannot determine endianness |
60 |
.endif |
61 |
|
51 |
.include <bsd.port.post.mk> |
62 |
.include <bsd.port.post.mk> |