2002-07-31 18:52:14 +00:00
|
|
|
# ex:ts=8
|
|
|
|
# Ports collection makefile for: anubis
|
|
|
|
# Date created: Jul 31, 2002
|
|
|
|
# Whom: ijliao
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
2002-09-19 21:09:11 +00:00
|
|
|
###########################################################################
|
|
|
|
#
|
|
|
|
# Following compile-time options are available:
|
|
|
|
#
|
2003-01-07 14:09:18 +00:00
|
|
|
# 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
|
2002-09-19 21:09:11 +00:00
|
|
|
# WITHOUT_GPGME=yes Disable the GnuPG (GPGME library) support
|
|
|
|
# WITH_PCRE=yes Enable the PCRE library support
|
|
|
|
#
|
|
|
|
###########################################################################
|
2002-07-31 18:52:14 +00:00
|
|
|
|
2003-04-18 05:39:42 +00:00
|
|
|
PORTNAME= anubis
|
|
|
|
PORTVERSION= 3.6.2
|
2004-10-13 12:34:06 +00:00
|
|
|
PORTREVISION= 3
|
2003-04-18 05:39:42 +00:00
|
|
|
CATEGORIES= mail
|
|
|
|
MASTER_SITES= ${MASTER_SITE_GNU}
|
2002-07-31 18:52:14 +00:00
|
|
|
MASTER_SITE_SUBDIR= ${PORTNAME}
|
|
|
|
|
2003-10-23 05:42:49 +00:00
|
|
|
MAINTAINER= sergei@FreeBSD.org
|
2003-04-18 05:39:42 +00:00
|
|
|
COMMENT= Outgoing SMTP mail processor
|
2002-07-31 18:52:14 +00:00
|
|
|
|
2003-04-18 05:39:42 +00:00
|
|
|
USE_REINPLACE= yes
|
|
|
|
USE_GETOPT_LONG= yes
|
|
|
|
GNU_CONFIGURE= yes
|
2003-01-07 14:09:18 +00:00
|
|
|
CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
|
2004-12-21 08:59:42 +00:00
|
|
|
CONFIGURE_ENV= MAKEINFO="makeinfo --no-split" LDFLAGS="${LDFLAGS}" \
|
|
|
|
CFLAGS="${CFLAGS}" CPPFLAGS="${CFLAGS}"
|
2003-04-18 05:39:42 +00:00
|
|
|
LDFLAGS+= -L${LOCALBASE}/lib
|
2002-09-19 21:09:11 +00:00
|
|
|
|
2004-10-13 12:34:06 +00:00
|
|
|
.if defined(WITHOUT_NLS)
|
|
|
|
CONFIGURE_ARGS+= --disable-nls
|
|
|
|
PLIST_SUB+= NLS="@comment "
|
|
|
|
.else
|
|
|
|
USE_ICONV= yes
|
|
|
|
USE_GETTEXT= yes
|
|
|
|
PLIST_SUB+= NLS=""
|
|
|
|
.endif
|
|
|
|
|
2003-01-07 14:09:18 +00:00
|
|
|
# Select TLS/SSL API: either OpenSSL (default), GnuTLS, or none
|
|
|
|
.if defined(WITH_GNUTLS)
|
|
|
|
LIB_DEPENDS+= gnutls:${PORTSDIR}/security/gnutls
|
|
|
|
.elif !defined(WITHOUT_OPENSSL)
|
2002-09-19 21:09:11 +00:00
|
|
|
USE_OPENSSL= yes
|
2002-11-11 08:27:46 +00:00
|
|
|
CONFIGURE_ARGS+= --with-openssl
|
2003-01-07 14:09:18 +00:00
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --without-gnutls
|
2002-09-19 21:09:11 +00:00
|
|
|
.endif
|
|
|
|
|
|
|
|
# GPGME
|
|
|
|
.if defined(WITHOUT_GPGME)
|
|
|
|
CONFIGURE_ARGS+= --without-gpgme
|
|
|
|
.else
|
2004-12-21 08:59:42 +00:00
|
|
|
LIB_DEPENDS+= gpgme03.9:${PORTSDIR}/security/gpgme03
|
|
|
|
CFLAGS+= -I${LOCALBASE}/include/gpgme03
|
2002-09-19 21:09:11 +00:00
|
|
|
.endif
|
|
|
|
|
|
|
|
# PCRE
|
|
|
|
.if defined(WITH_PCRE)
|
|
|
|
LIB_DEPENDS+= pcre:${PORTSDIR}/devel/pcre
|
|
|
|
CONFIGURE_ARGS+= --with-pcre
|
|
|
|
.endif
|
|
|
|
|
|
|
|
# PAM
|
2003-01-07 14:09:18 +00:00
|
|
|
.if exists(/usr/lib/libpam.so)
|
2003-10-25 22:41:49 +00:00
|
|
|
WITH_PAM= yes
|
2002-09-19 21:09:11 +00:00
|
|
|
CONFIGURE_ARGS+= --with-pam
|
2003-01-07 14:09:18 +00:00
|
|
|
PLIST_SUB+= PAM=""
|
2002-09-19 21:09:11 +00:00
|
|
|
.else
|
2003-01-07 14:09:18 +00:00
|
|
|
PLIST_SUB+= PAM="@comment "
|
2002-09-19 21:09:11 +00:00
|
|
|
.endif
|
|
|
|
|
|
|
|
# TCP Wrappers
|
2003-01-07 14:09:18 +00:00
|
|
|
.if exists(/usr/include/tcpd.h)
|
2003-10-25 22:41:49 +00:00
|
|
|
WITH_TCP_WRAPPERS= yes
|
2002-09-19 21:09:11 +00:00
|
|
|
CONFIGURE_ARGS+= --with-tcp-wrappers
|
|
|
|
.endif
|
2002-07-31 18:52:14 +00:00
|
|
|
|
|
|
|
MAN1= anubis.1
|
2003-08-06 21:44:23 +00:00
|
|
|
INFO= anubis
|
2002-09-19 21:09:11 +00:00
|
|
|
DOCS= AUTHORS INSTALL NEWS README THANKS TODO
|
|
|
|
|
2003-01-07 14:09:18 +00:00
|
|
|
pre-configure:
|
2002-10-15 15:08:35 +00:00
|
|
|
@${ECHO_MSG} ""
|
2003-10-25 22:41:49 +00:00
|
|
|
.if defined(WITH_GNUTLS)
|
2003-01-07 14:09:18 +00:00
|
|
|
@${ECHO_MSG} "Using GnuTLS as TLS/SSL API"
|
2003-10-25 22:41:49 +00:00
|
|
|
.elif !defined(WITHOUT_OPENSSL)
|
|
|
|
@${ECHO_MSG} "Using OpenSSL as TLS/SSL API"
|
2002-10-15 15:08:35 +00:00
|
|
|
.else
|
2003-01-07 14:09:18 +00:00
|
|
|
@${ECHO_MSG} "Disabling TLS/SSL support"
|
2002-10-15 15:08:35 +00:00
|
|
|
.endif
|
|
|
|
.if defined(WITHOUT_GPGME)
|
2003-01-07 14:09:18 +00:00
|
|
|
@${ECHO_MSG} "Disabling GnuPG (GPGME) support"
|
2002-10-15 15:08:35 +00:00
|
|
|
.endif
|
|
|
|
.if defined(WITH_PCRE)
|
2003-01-07 14:09:18 +00:00
|
|
|
@${ECHO_MSG} "Enabling PCRE support"
|
2002-10-15 15:08:35 +00:00
|
|
|
.else
|
2003-01-07 14:09:18 +00:00
|
|
|
@${ECHO_MSG} "You could define WITH_PCRE to enable PCRE support"
|
2002-10-15 15:08:35 +00:00
|
|
|
.endif
|
2003-10-25 22:41:49 +00:00
|
|
|
.if defined(WITH_PAM)
|
2003-01-07 14:09:18 +00:00
|
|
|
@${ECHO_MSG} "Enabling PAM support"
|
2002-10-15 15:08:35 +00:00
|
|
|
.endif
|
2003-10-25 22:41:49 +00:00
|
|
|
.if defined(WITH_TCP_WRAPPERS)
|
2003-01-07 14:09:18 +00:00
|
|
|
@${ECHO_MSG} "Enabling TCP wrappers support"
|
2002-10-15 15:08:35 +00:00
|
|
|
.endif
|
|
|
|
@${ECHO_MSG} ""
|
2003-01-07 14:09:18 +00:00
|
|
|
@${RM} -f ${WRKSRC}/doc/anubis.info*
|
2002-09-29 05:46:40 +00:00
|
|
|
|
2002-07-31 18:52:14 +00:00
|
|
|
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:
|
2003-01-07 14:09:18 +00:00
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/anubis.sh ${PREFIX}/etc/rc.d/anubis.sh.sample
|
2002-07-31 18:52:14 +00:00
|
|
|
@${MKDIR} ${EXAMPLESDIR}
|
2002-09-19 21:09:11 +00:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/examples/*rc ${EXAMPLESDIR}
|
2003-10-25 22:41:49 +00:00
|
|
|
.if defined(WITH_PAM)
|
2002-09-19 21:09:11 +00:00
|
|
|
@${MKDIR} ${EXAMPLESDIR}/pam
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/examples/pam/* ${EXAMPLESDIR}/pam
|
|
|
|
.endif
|
2002-08-31 17:45:36 +00:00
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
@${MKDIR} ${DOCSDIR}
|
2003-04-18 05:39:42 +00:00
|
|
|
cd ${WRKSRC} && ${INSTALL_DATA} ${DOCS} ${DOCSDIR}
|
2002-07-31 18:52:14 +00:00
|
|
|
.endif
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|