2012-12-11 14:23:47 +00:00
|
|
|
# Created by: Konstantinos Konstantinidis <kkonstan@daemon.gr>
|
2001-05-20 04:00:00 +00:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= perdition
|
2013-01-08 22:33:10 +00:00
|
|
|
PORTVERSION= 1.18
|
2013-01-09 10:43:22 +00:00
|
|
|
PORTREVISION= 1
|
2001-05-20 04:00:00 +00:00
|
|
|
CATEGORIES= mail net security
|
2013-01-08 22:33:10 +00:00
|
|
|
MASTER_SITES= http://horms.net/projects/perdition/download/${PORTVERSION}/
|
2001-05-20 04:00:00 +00:00
|
|
|
|
2005-12-19 10:06:19 +00:00
|
|
|
MAINTAINER= thomas@bsdunix.ch
|
2012-12-11 14:23:47 +00:00
|
|
|
COMMENT= POP3 & IMAP4 proxy that can map users to multiple backend servers
|
2001-05-20 04:00:00 +00:00
|
|
|
|
2012-12-11 14:23:47 +00:00
|
|
|
LIB_DEPENDS= popt:${PORTSDIR}/devel/popt \
|
|
|
|
vanessa_logger:${PORTSDIR}/devel/libvanessa_logger \
|
|
|
|
vanessa_socket:${PORTSDIR}/devel/libvanessa_socket \
|
|
|
|
vanessa_adt:${PORTSDIR}/devel/libvanessa_adt
|
2001-05-20 04:00:00 +00:00
|
|
|
|
|
|
|
MAN5= perditiondb.5
|
|
|
|
MAN8= perdition.8
|
2013-01-09 10:43:22 +00:00
|
|
|
MLINKS= perdition.8 perdition.imap4.8 \
|
|
|
|
perdition.8 perdition.imap4s.8 \
|
|
|
|
perdition.8 perdition.imaps.8 \
|
|
|
|
perdition.8 perdition.pop3.8 \
|
|
|
|
perdition.8 perdition.pop3s.8
|
2003-07-31 06:40:01 +00:00
|
|
|
MANCOMPRESSED= no
|
2001-05-20 04:00:00 +00:00
|
|
|
|
2010-12-04 07:34:27 +00:00
|
|
|
USE_AUTOTOOLS= libtool
|
2013-04-24 18:10:30 +00:00
|
|
|
USES= gettext
|
2006-02-23 10:40:44 +00:00
|
|
|
GNU_CONFIGURE= yes
|
2011-09-23 22:26:39 +00:00
|
|
|
CPPFLAGS+= -I${LOCALBASE}/include
|
2003-09-01 14:02:08 +00:00
|
|
|
LDFLAGS+= -L${LOCALBASE}/lib
|
2003-07-03 05:54:50 +00:00
|
|
|
MAKE_ENV+= DOCSDIR=${DOCSDIR}
|
2013-01-08 22:33:10 +00:00
|
|
|
CONFIGURE_ARGS+=--localstatedir=/var
|
2003-07-03 05:54:50 +00:00
|
|
|
|
2007-11-06 11:08:18 +00:00
|
|
|
USE_LDCONFIG= yes
|
2007-12-11 22:15:36 +00:00
|
|
|
USE_RC_SUBR= perdition perdition.pop3 perdition.pop3s \
|
|
|
|
perdition.imap4 perdition.imap4s perdition.imaps
|
2001-05-20 04:00:00 +00:00
|
|
|
|
2013-01-09 10:43:22 +00:00
|
|
|
OPTIONS_DEFINE= BDB DAEMON_MAP DOCS GDBM LDAP MYSQL NIS ODBC \
|
|
|
|
OPENSSL PGSQL POSIX_REGEX
|
|
|
|
OPTIONS_DEFAULT= GDBM OPENSSL POSIX_REGEX
|
2013-01-08 22:33:10 +00:00
|
|
|
|
|
|
|
DAEMON_MAP_DESC= Daemon Map support
|
2013-01-09 10:43:22 +00:00
|
|
|
GDBM_DESC= GDBM database
|
2013-01-08 22:33:10 +00:00
|
|
|
POSIX_REGEX_DESC= Native regex support
|
|
|
|
|
2013-09-20 19:59:12 +00:00
|
|
|
NO_STAGE= yes
|
2013-01-08 22:33:10 +00:00
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
|
|
|
|
.if ${PORT_OPTIONS:MOPENSSL}
|
2003-07-03 05:54:50 +00:00
|
|
|
CONFIGURE_ARGS+= --enable-ssl
|
|
|
|
USE_OPENSSL= yes
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --disable-ssl
|
|
|
|
.endif
|
|
|
|
|
2013-01-08 22:33:10 +00:00
|
|
|
.if ${PORT_OPTIONS:MPOSIX_REGEX}
|
2003-07-03 05:54:50 +00:00
|
|
|
CONFIGURE_ARGS+= --enable-posix_regex
|
2003-12-15 20:53:59 +00:00
|
|
|
PLIST_SUB+= POSIXREGEX=""
|
2003-07-03 05:54:50 +00:00
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --disable-posix_regex
|
2003-12-15 20:53:59 +00:00
|
|
|
PLIST_SUB+= POSIXREGEX="@comment "
|
|
|
|
.endif
|
|
|
|
|
2013-01-08 22:33:10 +00:00
|
|
|
.if ${PORT_OPTIONS:MDAEMON_MAP}
|
2003-12-15 20:53:59 +00:00
|
|
|
CONFIGURE_ARGS+= --enable-daemon-map
|
|
|
|
PLIST_SUB+= DAEMONMAP=""
|
|
|
|
LIB_DEPENDS+= gdbm:${PORTSDIR}/databases/gdbm
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --disable-daemon-map
|
|
|
|
PLIST_SUB+= DAEMONMAP="@comment "
|
2003-07-03 05:54:50 +00:00
|
|
|
.endif
|
|
|
|
|
2013-01-08 22:33:10 +00:00
|
|
|
.if ${PORT_OPTIONS:MBDB}
|
|
|
|
CPPFLAGS+= -I${BDB_INCLUDE_DIR}
|
2003-07-03 05:54:50 +00:00
|
|
|
CONFIGURE_ARGS+= --enable-bdb
|
|
|
|
PLIST_SUB+= BDB=""
|
2013-01-08 22:33:10 +00:00
|
|
|
USE_BDB= yes
|
2003-07-03 05:54:50 +00:00
|
|
|
MAN1+= makebdb.1
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --disable-bdb
|
|
|
|
PLIST_SUB+= BDB="@comment "
|
|
|
|
.endif
|
|
|
|
|
2013-01-08 22:33:10 +00:00
|
|
|
.if ${PORT_OPTIONS:MNIS}
|
2003-07-03 05:54:50 +00:00
|
|
|
CONFIGURE_ARGS+= --enable-nis
|
|
|
|
PLIST_SUB+= NIS=""
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --disable-nis
|
|
|
|
PLIST_SUB+= NIS="@comment "
|
|
|
|
.endif
|
|
|
|
|
2013-01-08 22:33:10 +00:00
|
|
|
.if ${PORT_OPTIONS:MGDBM}
|
2003-07-03 05:54:50 +00:00
|
|
|
CONFIGURE_ARGS+= --enable-gdbm
|
2013-01-08 22:33:10 +00:00
|
|
|
LIB_DEPENDS+= gdbm:${PORTSDIR}/databases/gdbm
|
2003-07-03 05:54:50 +00:00
|
|
|
PLIST_SUB+= GDBM=""
|
|
|
|
MAN1+= makegdbm.1
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --disable-gdbm
|
|
|
|
PLIST_SUB+= GDBM="@comment "
|
|
|
|
.endif
|
|
|
|
|
2013-01-08 22:33:10 +00:00
|
|
|
.if ${PORT_OPTIONS:MMYSQL}
|
|
|
|
USE_MYSQL= yes
|
2003-07-03 05:54:50 +00:00
|
|
|
CONFIGURE_ARGS+= --enable-mysql
|
|
|
|
PLIST_SUB+= MYSQL=""
|
|
|
|
MAN8+= perditiondb_mysql_makedb.8
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --disable-mysql
|
|
|
|
PLIST_SUB+= MYSQL="@comment "
|
|
|
|
.endif
|
|
|
|
|
2013-01-08 22:33:10 +00:00
|
|
|
.if ${PORT_OPTIONS:MPGSQL}
|
2003-07-03 05:54:50 +00:00
|
|
|
CONFIGURE_ARGS+= --enable-pg
|
2005-01-31 00:35:55 +00:00
|
|
|
USE_PGSQL= yes
|
2003-07-03 05:54:50 +00:00
|
|
|
PLIST_SUB+= PGSQL=""
|
|
|
|
MAN8+= perditiondb_postgresql_makedb.8
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --disable-pg
|
|
|
|
PLIST_SUB+= PGSQL="@comment "
|
|
|
|
.endif
|
|
|
|
|
2013-01-09 10:43:22 +00:00
|
|
|
.if ${PORT_OPTIONS:MLDAP}
|
2013-01-08 22:33:10 +00:00
|
|
|
USE_OPENLDAP= yes
|
2007-11-06 11:08:18 +00:00
|
|
|
CONFIGURE_ARGS+= --enable-ldap \
|
|
|
|
--with-ldap-schema-directory=${LOCALBASE}/etc/openldap/schema/ \
|
|
|
|
--disable-ldap-doc
|
2013-01-09 10:43:22 +00:00
|
|
|
PLIST_SUB+= LDAP=""
|
2003-07-03 05:54:50 +00:00
|
|
|
MAN8+= perditiondb_ldap_makedb.8
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --disable-ldap
|
2013-01-09 10:43:22 +00:00
|
|
|
PLIST_SUB+= LDAP="@comment "
|
2003-07-03 05:54:50 +00:00
|
|
|
.endif
|
|
|
|
|
2013-01-08 22:33:10 +00:00
|
|
|
.if ${PORT_OPTIONS:MODBC}
|
2003-07-03 05:54:50 +00:00
|
|
|
CONFIGURE_ARGS+= --enable-odbc
|
2013-01-08 22:33:10 +00:00
|
|
|
LIB_DEPENDS+= odbc:${PORTSDIR}/databases/unixODBC
|
2003-07-03 05:54:50 +00:00
|
|
|
PLIST_SUB+= ODBC=""
|
|
|
|
MAN8+= perditiondb_odbc_makedb.8
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --disable-odbc
|
|
|
|
PLIST_SUB+= ODBC="@comment "
|
|
|
|
.endif
|
|
|
|
|
2013-01-08 22:33:10 +00:00
|
|
|
post-patch:
|
|
|
|
cd ${WRKSRC} && ${REINPLACE_CMD} -e 's|-ldb|-l${BDB_LIB_NAME}|g' \
|
|
|
|
configure \
|
|
|
|
makebdb/Makefile.in \
|
|
|
|
perdition/db/bdb/Makefile.in
|
2003-12-15 20:53:59 +00:00
|
|
|
|
2003-07-03 05:54:50 +00:00
|
|
|
post-install:
|
2013-01-08 22:33:10 +00:00
|
|
|
.if ${PORT_OPTIONS:MDOCS}
|
2003-07-03 05:54:50 +00:00
|
|
|
@${MKDIR} ${DOCSDIR}
|
|
|
|
@${INSTALL_DATA} ${WRKSRC}/etc/pam.d/perdition ${DOCSDIR}/perdition-pam.sample
|
|
|
|
@${ECHO_MSG} ""
|
|
|
|
@${ECHO_MSG} "/********************************************************/"
|
|
|
|
@${ECHO_MSG} " If you want to use PAM with perdition, have a look at :"
|
|
|
|
@${ECHO_MSG} " ${DOCSDIR}/perdition-pam.sample"
|
|
|
|
@${ECHO_MSG} "/********************************************************/"
|
|
|
|
@${ECHO_MSG} ""
|
2003-12-15 20:53:59 +00:00
|
|
|
.endif
|
2001-05-20 04:00:00 +00:00
|
|
|
|
2003-08-28 12:14:21 +00:00
|
|
|
.include <bsd.port.mk>
|