2001-05-20 00:00:00 -04:00
|
|
|
# New ports collection makefile for: perdition
|
|
|
|
# Date created: 28 April 2001
|
|
|
|
# Whom: Konstantinos Konstantinidis <kkonstan@daemon.gr>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= perdition
|
2003-07-03 01:54:50 -04:00
|
|
|
PORTVERSION= 1.11
|
2003-08-26 16:25:58 -04:00
|
|
|
PORTREVISION= 2
|
2001-05-20 00:00:00 -04:00
|
|
|
CATEGORIES= mail net security
|
2003-02-11 20:59:08 -05:00
|
|
|
MASTER_SITES= http://www.vergenet.net/linux/perdition/download/${PORTVERSION}/
|
2001-05-20 00:00:00 -04:00
|
|
|
|
2003-07-03 01:54:50 -04:00
|
|
|
MAINTAINER= sheepkiller@cultdeadsheep.org
|
2003-02-20 14:00:52 -05:00
|
|
|
COMMENT= A POP3 & IMAP4 proxy that can map users to multiple backend servers
|
2001-05-20 00:00:00 -04:00
|
|
|
|
2003-08-25 01:41:38 -04:00
|
|
|
LIB_DEPENDS= intl.5:${PORTSDIR}/devel/gettext \
|
2001-05-20 00:00:00 -04:00
|
|
|
popt.0:${PORTSDIR}/devel/popt \
|
|
|
|
vanessa_logger.0:${PORTSDIR}/devel/libvanessa_logger \
|
2001-05-25 11:48:15 -04:00
|
|
|
vanessa_socket.0:${PORTSDIR}/devel/libvanessa_socket \
|
2001-05-20 00:00:00 -04:00
|
|
|
vanessa_adt.0:${PORTSDIR}/devel/libvanessa_adt
|
|
|
|
|
|
|
|
MAN5= perditiondb.5
|
|
|
|
MAN8= perdition.8
|
2003-07-03 01:54:50 -04:00
|
|
|
MLINK= perdition.8 - perdition.pop3s.8 \
|
|
|
|
- perdition.imap4.8 - perdition.imap4s.8 \
|
|
|
|
- perdition.imaps.8 - perdition.pop3.8
|
|
|
|
|
2003-07-31 02:40:01 -04:00
|
|
|
MANCOMPRESSED= no
|
2001-05-20 00:00:00 -04:00
|
|
|
|
|
|
|
USE_LIBTOOL= YES
|
2003-09-01 10:02:08 -04:00
|
|
|
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include"
|
|
|
|
LDFLAGS+= -L${LOCALBASE}/lib
|
2003-07-03 01:54:50 -04:00
|
|
|
MAKE_ENV+= DOCSDIR=${DOCSDIR}
|
|
|
|
|
2001-05-20 00:00:00 -04:00
|
|
|
INSTALLS_SHLIB= yes
|
|
|
|
|
2003-07-03 01:54:50 -04:00
|
|
|
# Available knobs:
|
|
|
|
# WITHOUT_SSL: Disable OpenSSL support
|
|
|
|
# WITHOUT_POSIX_REGEX: Disable native regex support
|
|
|
|
# WITH_BDB: Enable Berkerley database backend
|
|
|
|
# WITH_NIS: Enable NIS database backend
|
|
|
|
# WITH_GDBM: Enable gdbm database backend
|
|
|
|
# WITH_MYSQL: Enable MySQL database backend
|
|
|
|
# WITH_PGSQL: Enable PostgreSQL database backend
|
|
|
|
# WITH_OPENLDAP: Enable OpenLDAP database backend
|
|
|
|
# WITH_ODBC: Enable ODBC database backend
|
|
|
|
|
|
|
|
.if !defined(WITHOUT_SSL)
|
|
|
|
CONFIGURE_ARGS+= --enable-ssl
|
|
|
|
USE_OPENSSL= yes
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --disable-ssl
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if !defined(WITHOUT_POSIX_REGEX)
|
|
|
|
CONFIGURE_ARGS+= --enable-posix_regex
|
|
|
|
PLIST_SUB+= POSIX_REGEX=""
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --disable-posix_regex
|
|
|
|
PLIST_SUB+= POSIX_REGEX="@comment "
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(WITH_BDB)
|
|
|
|
CONFIGURE_ARGS+= --enable-bdb
|
|
|
|
PLIST_SUB+= BDB=""
|
|
|
|
LIB_DEPENDS+= db3.3:${PORTSDIR}/databases/db3
|
|
|
|
MAN1+= makebdb.1
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --disable-bdb
|
|
|
|
PLIST_SUB+= BDB="@comment "
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(WITH_NIS)
|
|
|
|
CONFIGURE_ARGS+= --enable-nis
|
|
|
|
PLIST_SUB+= NIS=""
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --disable-nis
|
|
|
|
PLIST_SUB+= NIS="@comment "
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(WITH_GDBM)
|
|
|
|
CONFIGURE_ARGS+= --enable-gdbm
|
|
|
|
LIB_DEPENDS+= gdbm.3:${PORTSDIR}/databases/gdbm
|
|
|
|
PLIST_SUB+= GDBM=""
|
|
|
|
MAN1+= makegdbm.1
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --disable-gdbm
|
|
|
|
PLIST_SUB+= GDBM="@comment "
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(WITH_MYSQL)
|
2003-08-28 08:14:21 -04:00
|
|
|
USE_MYSQL= YES
|
2003-07-03 01:54:50 -04:00
|
|
|
CONFIGURE_ARGS+= --enable-mysql
|
|
|
|
PLIST_SUB+= MYSQL=""
|
|
|
|
MAN8+= perditiondb_mysql_makedb.8
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --disable-mysql
|
|
|
|
PLIST_SUB+= MYSQL="@comment "
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(WITH_PGSQL)
|
|
|
|
CONFIGURE_ARGS+= --enable-pg
|
|
|
|
LIB_DEPENDS+= pq:${PORTSDIR}/databases/postgresql7
|
|
|
|
PLIST_SUB+= PGSQL=""
|
|
|
|
MAN8+= perditiondb_postgresql_makedb.8
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --disable-pg
|
|
|
|
PLIST_SUB+= PGSQL="@comment "
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(WITH_OPENLDAP)
|
2003-08-28 08:14:21 -04:00
|
|
|
USE_OPENLDAP= YES
|
2003-07-03 01:54:50 -04:00
|
|
|
CONFIGURE_ARGS+= --enable-ldap --with-ldap-schema-directory=${LOCALBASE}/etc/openldap/schema/
|
|
|
|
PLIST_SUB+= OPENLDAP=""
|
|
|
|
MAN8+= perditiondb_ldap_makedb.8
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --disable-ldap
|
|
|
|
PLIST_SUB+= OPENLDAP="@comment "
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(WITH_ODBC)
|
|
|
|
CONFIGURE_ARGS+= --enable-odbc
|
|
|
|
LIB_DEPENDS+= odbc.1:${PORTSDIR}/databases/unixODBC
|
|
|
|
PLIST_SUB+= ODBC=""
|
|
|
|
MAN8+= perditiondb_odbc_makedb.8
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --disable-odbc
|
|
|
|
PLIST_SUB+= ODBC="@comment "
|
|
|
|
.endif
|
|
|
|
|
|
|
|
post-install:
|
|
|
|
@${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} ""
|
2001-05-20 00:00:00 -04:00
|
|
|
|
2003-08-28 08:14:21 -04:00
|
|
|
.include <bsd.port.mk>
|