2010-11-26 09:44:27 -05:00
|
|
|
# $OpenBSD: Makefile,v 1.10 2010/11/26 14:44:27 espie Exp $
|
2006-11-16 18:26:00 -05:00
|
|
|
|
2007-09-15 20:17:04 -04:00
|
|
|
COMMENT-main= fully featured POP3 and IMAP4 proxy server
|
|
|
|
COMMENT-ldap= LDAP backend for perdition mail proxy
|
|
|
|
COMMENT-mysql= MySQL backend for perdition mail proxy
|
|
|
|
COMMENT-pgsql= PostgreSQL backend for perdition mail proxy
|
2006-11-16 18:26:00 -05:00
|
|
|
|
2008-06-08 06:55:25 -04:00
|
|
|
DISTVER= 1.17.1
|
2006-11-16 18:26:00 -05:00
|
|
|
DISTNAME= perdition-${DISTVER}
|
2008-06-08 06:55:25 -04:00
|
|
|
PKGNAME-main= ${DISTNAME}
|
2010-11-11 05:54:02 -05:00
|
|
|
PKGNAME-ldap= perdition-ldap-${DISTVER}
|
2010-11-26 09:44:27 -05:00
|
|
|
REVISION-main = 0
|
2010-11-11 05:54:02 -05:00
|
|
|
REVISION-ldap = 0
|
2006-11-16 18:26:00 -05:00
|
|
|
PKGNAME-mysql= perdition-mysql-${DISTVER}
|
|
|
|
PKGNAME-pgsql= perdition-pgsql-${DISTVER}
|
|
|
|
|
|
|
|
CATEGORIES= mail
|
|
|
|
|
|
|
|
SHARED_LIBS += jain 0.0 # .0.0
|
|
|
|
SHARED_LIBS += perditiondb_bdb 0.0 # .0.0
|
|
|
|
SHARED_LIBS += perditiondb_nis 0.0 # .0.0
|
|
|
|
SHARED_LIBS += perditiondb_posix_regex 0.0 # .0.0
|
|
|
|
SHARED_LIBS += perditiondb_daemon 0.0 # .0.0
|
2008-06-08 06:55:25 -04:00
|
|
|
SHARED_LIBS += perditiondb_daemon_base 0.0 # .0.0
|
2006-11-16 18:26:00 -05:00
|
|
|
|
|
|
|
HOMEPAGE= http://www.vergenet.net/linux/perdition/
|
|
|
|
|
|
|
|
# GPL
|
|
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
|
|
PERMIT_DISTFILES_FTP= Yes
|
|
|
|
|
|
|
|
MASTER_SITES= ${HOMEPAGE}download/${DISTVER}/
|
|
|
|
|
|
|
|
USE_GMAKE= Yes
|
|
|
|
USE_LIBTOOL= Yes
|
2010-10-18 15:59:15 -04:00
|
|
|
USE_GROFF = Yes
|
2006-11-16 18:26:00 -05:00
|
|
|
|
|
|
|
CONFIGURE_STYLE=gnu
|
|
|
|
CFLAGS+=-I${LOCALBASE}/include -I${LOCALBASE}/include/db4
|
|
|
|
CONFIGURE_ENV+="LDFLAGS=-L${LOCALBASE}/lib"
|
|
|
|
|
|
|
|
CONFIGURE_ARGS+= --enable-ssl \
|
|
|
|
--with-ssl-includes=/usr/include \
|
|
|
|
--with-ssl-libraries=/usr/lib \
|
|
|
|
--disable-gdbm \
|
|
|
|
--disable-odbc \
|
|
|
|
--with-user=_perdition \
|
|
|
|
--with-group=_perdition \
|
|
|
|
--localstatedir=/var
|
|
|
|
|
2006-11-24 04:41:09 -05:00
|
|
|
NO_REGRESS=Yes
|
2006-11-16 18:26:00 -05:00
|
|
|
|
2006-11-24 04:41:09 -05:00
|
|
|
PSEUDO_FLAVORS= no_bdb no_ldap no_mysql no_pgsql
|
2006-11-16 18:26:00 -05:00
|
|
|
FLAVOR?=
|
2006-11-24 04:41:09 -05:00
|
|
|
|
|
|
|
MULTI_PACKAGES= -main
|
|
|
|
|
2010-11-19 02:23:05 -05:00
|
|
|
WANTLIB-main= c crypto ssl util db>=4.2 vanessa_adt>=0.3 \
|
|
|
|
vanessa_logger>=0.3 vanessa_socket>=0.3 popt
|
|
|
|
LIB_DEPENDS-main= databases/db/v4 \
|
|
|
|
devel/vanessa/adt \
|
|
|
|
devel/vanessa/logger \
|
|
|
|
devel/vanessa/socket \
|
|
|
|
devel/popt
|
2006-11-16 18:26:00 -05:00
|
|
|
|
|
|
|
.if ${FLAVOR:L:Mno_ldap}
|
|
|
|
CONFIGURE_ARGS+= --disable-ldap
|
|
|
|
.else
|
2006-11-24 04:41:09 -05:00
|
|
|
SHARED_LIBS += perditiondb_ldap 0.0 # .0.0
|
2006-11-16 18:26:00 -05:00
|
|
|
MULTI_PACKAGES+= -ldap
|
|
|
|
CONFIGURE_ARGS+= --with-ldap-libraries=${LOCALBASE}/lib \
|
|
|
|
--with-ldap-includes=${LOCALBASE}/include \
|
|
|
|
--disable-ldap-doc
|
2010-11-19 02:23:05 -05:00
|
|
|
LIB_DEPENDS-ldap= security/cyrus-sasl2 \
|
|
|
|
openldap-client->=2,<3:databases/openldap
|
2010-11-11 05:54:02 -05:00
|
|
|
WANTLIB-ldap= asn1 com_err crypto gssapi krb5 ssl util sasl2 \
|
2010-11-19 02:23:05 -05:00
|
|
|
ldap>=2 lber>=2
|
2006-11-16 18:26:00 -05:00
|
|
|
.endif
|
|
|
|
|
|
|
|
.if ${FLAVOR:L:Mno_mysql}
|
|
|
|
CONFIGURE_ARGS+= --disable-mysql
|
|
|
|
.else
|
2006-11-24 04:41:09 -05:00
|
|
|
SHARED_LIBS += perditiondb_mysql 0.0 # .0.0
|
2006-11-16 18:26:00 -05:00
|
|
|
MULTI_PACKAGES+= -mysql
|
|
|
|
CONFIGURE_ARGS+= --with-mysql-libraries=${LOCALBASE}/lib/mysql \
|
|
|
|
--with-mysql-includes=${LOCALBASE}/include/mysql
|
2010-11-19 02:23:05 -05:00
|
|
|
LIB_DEPENDS-mysql= databases/mysql \
|
|
|
|
devel/vanessa/adt \
|
|
|
|
devel/vanessa/logger
|
|
|
|
WANTLIB-mysql= crypto ssl util m z lib/mysql/mysqlclient>=10 \
|
|
|
|
vanessa_adt>=0.3 vanessa_logger>=0.3
|
2006-11-16 18:26:00 -05:00
|
|
|
.endif
|
|
|
|
|
|
|
|
.if ${FLAVOR:L:Mno_pgsql}
|
|
|
|
CONFIGURE_ARGS+= --disable-pg
|
|
|
|
.else
|
2006-11-24 04:41:09 -05:00
|
|
|
SHARED_LIBS += perditiondb_postgresql 0.0 # .0.0
|
2006-11-16 18:26:00 -05:00
|
|
|
MULTI_PACKAGES+= -pgsql
|
|
|
|
CONFIGURE_ARGS+= --enable-pg
|
2010-11-19 02:23:05 -05:00
|
|
|
LIB_DEPENDS-pgsql= databases/postgresql \
|
|
|
|
devel/vanessa/adt \
|
|
|
|
devel/vanessa/logger
|
|
|
|
WANTLIB-pgsql= crypto ssl util pq>=2 vanessa_adt>=0.3 \
|
|
|
|
vanessa_logger>=0.3
|
2006-11-16 18:26:00 -05:00
|
|
|
.endif
|
|
|
|
|
|
|
|
EXAMPLE_DIR= ${PREFIX}/share/examples/perdition/
|
|
|
|
|
|
|
|
post-install:
|
|
|
|
${INSTALL_DATA_DIR} ${EXAMPLE_DIR}
|
|
|
|
@mv ${WRKINST}${SYSCONFDIR}/perdition/* ${EXAMPLE_DIR}
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|