blob: a0cf2d21a523b52bbb10e57dcf8a664466ca067e (
plain)
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
|
# ex:ts=8
# Ports collection makefile for: anubis
# Date created: Jul 31, 2002
# Whom: ijliao
#
# $FreeBSD$
#
###########################################################################
#
# Following compile-time options are available:
#
# WITH_GNUTLS=yes Enable GnuTLS API instead of default OpenSSL API
# WITHOUT_OPENSSL=yes Disable the OpenSSL support; unless WITH_GNUTLS
# is specified, this will disables TLS/SSL suport
# WITHOUT_GPGME=yes Disable the GnuPG (GPGME library) support
# WITH_PCRE=yes Enable the PCRE library support
#
###########################################################################
PORTNAME= anubis
PORTVERSION= 3.6.2
PORTREVISION= 2
CATEGORIES= mail
MASTER_SITES= ${MASTER_SITE_GNU}
MASTER_SITE_SUBDIR= ${PORTNAME}
MAINTAINER= sergei@FreeBSD.org
COMMENT= Outgoing SMTP mail processor
USE_REINPLACE= yes
USE_GETOPT_LONG= yes
GNU_CONFIGURE= yes
CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ENV= MAKEINFO="makeinfo --no-split" LDFLAGS="${LDFLAGS}"
LDFLAGS+= -L${LOCALBASE}/lib
# Select TLS/SSL API: either OpenSSL (default), GnuTLS, or none
.if defined(WITH_GNUTLS)
LIB_DEPENDS+= gnutls:${PORTSDIR}/security/gnutls
.elif !defined(WITHOUT_OPENSSL)
USE_OPENSSL= yes
CONFIGURE_ARGS+= --with-openssl
.else
CONFIGURE_ARGS+= --without-gnutls
.endif
# GPGME
.if defined(WITHOUT_GPGME)
CONFIGURE_ARGS+= --without-gpgme
.else
LIB_DEPENDS+= gpgme:${PORTSDIR}/security/gpgme
.endif
# PCRE
.if defined(WITH_PCRE)
LIB_DEPENDS+= pcre:${PORTSDIR}/devel/pcre
CONFIGURE_ARGS+= --with-pcre
.endif
# PAM
.if exists(/usr/lib/libpam.so)
WITH_PAM= yes
CONFIGURE_ARGS+= --with-pam
PLIST_SUB+= PAM=""
.else
PLIST_SUB+= PAM="@comment "
.endif
# TCP Wrappers
.if exists(/usr/include/tcpd.h)
WITH_TCP_WRAPPERS= yes
CONFIGURE_ARGS+= --with-tcp-wrappers
.endif
MAN1= anubis.1
INFO= anubis
DOCS= AUTHORS INSTALL NEWS README THANKS TODO
pre-configure:
@${ECHO_MSG} ""
.if defined(WITH_GNUTLS)
@${ECHO_MSG} "Using GnuTLS as TLS/SSL API"
.elif !defined(WITHOUT_OPENSSL)
@${ECHO_MSG} "Using OpenSSL as TLS/SSL API"
.else
@${ECHO_MSG} "Disabling TLS/SSL support"
.endif
.if defined(WITHOUT_GPGME)
@${ECHO_MSG} "Disabling GnuPG (GPGME) support"
.endif
.if defined(WITH_PCRE)
@${ECHO_MSG} "Enabling PCRE support"
.else
@${ECHO_MSG} "You could define WITH_PCRE to enable PCRE support"
.endif
.if defined(WITH_PAM)
@${ECHO_MSG} "Enabling PAM support"
.endif
.if defined(WITH_TCP_WRAPPERS)
@${ECHO_MSG} "Enabling TCP wrappers support"
.endif
@${ECHO_MSG} ""
@${RM} -f ${WRKSRC}/doc/anubis.info*
post-patch:
@${REINPLACE_CMD} -e "s|/etc|${PREFIX}/etc|g" ${WRKSRC}/src/headers.h
@${SED} -e "s|%%PREFIX%%|${PREFIX}|g" ${FILESDIR}/anubis.sh > \
${WRKSRC}/anubis.sh
post-install:
${INSTALL_SCRIPT} ${WRKSRC}/anubis.sh ${PREFIX}/etc/rc.d/anubis.sh.sample
@${MKDIR} ${EXAMPLESDIR}
${INSTALL_DATA} ${WRKSRC}/examples/*rc ${EXAMPLESDIR}
.if defined(WITH_PAM)
@${MKDIR} ${EXAMPLESDIR}/pam
${INSTALL_DATA} ${WRKSRC}/examples/pam/* ${EXAMPLESDIR}/pam
.endif
.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
cd ${WRKSRC} && ${INSTALL_DATA} ${DOCS} ${DOCSDIR}
.endif
.include <bsd.port.mk>
|