diff options
author | tv <tv@pkgsrc.org> | 2006-01-31 21:07:30 +0000 |
---|---|---|
committer | tv <tv@pkgsrc.org> | 2006-01-31 21:07:30 +0000 |
commit | bf76c775f42df5623aa6b7d0527543b0841e2372 (patch) | |
tree | 9fc0c61a625c585d27c47e0f4187624c0cdff6f0 /mail | |
parent | ac798391d6746188821947755671839dd7b0f9d5 (diff) | |
download | pkgsrc-bf76c775f42df5623aa6b7d0527543b0841e2372.tar.gz |
Perdition 1.17, a POP3/IMAP4 proxy capable of choosing different destination
servers based on user authentication. From DESCR:
Perdition is a fully featured POP3 and IMAP4 proxy server. It is able to
handle both SSL and non-SSL connections and redirect users to a
real-server based on a database lookup. Perdition supports modular based
database access. ODBC, MySQL, PostgreSQL, GDBM, POSIX Regular Expression
and NIS modules ship with the distribution. The API for modules is open
allowing abitary modules to be written to allow access to any data store.
Perdition can be used to: Create large mail systems where a users mailbox
may be stored on one of several hosts. Integrate different mail systems
together. Migrate between different email infastructure. And in firewall
applications.
Diffstat (limited to 'mail')
-rw-r--r-- | mail/Makefile | 9 | ||||
-rw-r--r-- | mail/perdition-bdb/Makefile | 12 | ||||
-rw-r--r-- | mail/perdition-bdb/PLIST | 4 | ||||
-rw-r--r-- | mail/perdition-gdbm/Makefile | 10 | ||||
-rw-r--r-- | mail/perdition-gdbm/PLIST | 4 | ||||
-rw-r--r-- | mail/perdition-ldap/Makefile | 11 | ||||
-rw-r--r-- | mail/perdition-ldap/PLIST | 4 | ||||
-rw-r--r-- | mail/perdition-mysql/Makefile | 8 | ||||
-rw-r--r-- | mail/perdition-mysql/PLIST | 4 | ||||
-rw-r--r-- | mail/perdition-odbc/Makefile | 11 | ||||
-rw-r--r-- | mail/perdition-odbc/PLIST | 4 | ||||
-rw-r--r-- | mail/perdition-postgresql/Makefile | 9 | ||||
-rw-r--r-- | mail/perdition-postgresql/PLIST | 4 | ||||
-rw-r--r-- | mail/perdition/DESCR | 11 | ||||
-rw-r--r-- | mail/perdition/Makefile | 21 | ||||
-rw-r--r-- | mail/perdition/Makefile.common | 47 | ||||
-rw-r--r-- | mail/perdition/PLIST | 25 | ||||
-rw-r--r-- | mail/perdition/buildlink3.mk | 24 | ||||
-rw-r--r-- | mail/perdition/distinfo | 7 | ||||
-rw-r--r-- | mail/perdition/options.mk | 16 | ||||
-rw-r--r-- | mail/perdition/patches/patch-aa | 17 | ||||
-rw-r--r-- | mail/perdition/patches/patch-ab | 17 |
22 files changed, 278 insertions, 1 deletions
diff --git a/mail/Makefile b/mail/Makefile index 7e61fbbcda9..0402c3bc94d 100644 --- a/mail/Makefile +++ b/mail/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.279 2005/12/28 06:08:54 schmonz Exp $ +# $NetBSD: Makefile,v 1.280 2006/01/31 21:07:30 tv Exp $ # COMMENT= Electronic mail utilities @@ -144,6 +144,13 @@ SUBDIR+= p5-User-Identity SUBDIR+= p5-razor-agents SUBDIR+= pear-Mail SUBDIR+= pear-Mail_Mime +SUBDIR+= perdition +SUBDIR+= perdition-bdb +SUBDIR+= perdition-gdbm +SUBDIR+= perdition-ldap +SUBDIR+= perdition-mysql +SUBDIR+= perdition-odbc +SUBDIR+= perdition-postgresql SUBDIR+= pfqueue SUBDIR+= php-imap SUBDIR+= pine diff --git a/mail/perdition-bdb/Makefile b/mail/perdition-bdb/Makefile new file mode 100644 index 00000000000..fb292c485eb --- /dev/null +++ b/mail/perdition-bdb/Makefile @@ -0,0 +1,12 @@ +# $NetBSD: Makefile,v 1.1 2006/01/31 21:07:30 tv Exp $ +# + +PERDITION_COMMENT= Berkeley DB user database module +PERDITION_PKGNAME= bdb +BUILD_DIRS= makebdb perdition/db/bdb + +BDB_ACCEPTED= db4 + +.include "../../mk/bdb.buildlink3.mk" +.include "../../mail/perdition/buildlink3.mk" +.include "../perdition/Makefile.common" diff --git a/mail/perdition-bdb/PLIST b/mail/perdition-bdb/PLIST new file mode 100644 index 00000000000..eb7cc8a86e3 --- /dev/null +++ b/mail/perdition-bdb/PLIST @@ -0,0 +1,4 @@ +@comment $NetBSD: PLIST,v 1.1 2006/01/31 21:07:30 tv Exp $ +bin/makebdb +lib/libperditiondb_bdb.la +man/man1/makebdb.1 diff --git a/mail/perdition-gdbm/Makefile b/mail/perdition-gdbm/Makefile new file mode 100644 index 00000000000..fef15a955df --- /dev/null +++ b/mail/perdition-gdbm/Makefile @@ -0,0 +1,10 @@ +# $NetBSD: Makefile,v 1.1 2006/01/31 21:07:30 tv Exp $ +# + +PERDITION_COMMENT= GDBM user database module +PERDITION_PKGNAME= gdbm +BUILD_DIRS= makegdbm perdition/db/gdbm + +.include "../../databases/gdbm/buildlink3.mk" +.include "../../mail/perdition/buildlink3.mk" +.include "../perdition/Makefile.common" diff --git a/mail/perdition-gdbm/PLIST b/mail/perdition-gdbm/PLIST new file mode 100644 index 00000000000..cfca5b1738d --- /dev/null +++ b/mail/perdition-gdbm/PLIST @@ -0,0 +1,4 @@ +@comment $NetBSD: PLIST,v 1.1 2006/01/31 21:07:30 tv Exp $ +bin/makegdbm +lib/libperditiondb_gdbm.la +man/man1/makegdbm.1 diff --git a/mail/perdition-ldap/Makefile b/mail/perdition-ldap/Makefile new file mode 100644 index 00000000000..3dcba464837 --- /dev/null +++ b/mail/perdition-ldap/Makefile @@ -0,0 +1,11 @@ +# $NetBSD: Makefile,v 1.1 2006/01/31 21:07:30 tv Exp $ +# + +PERDITION_COMMENT= LDAP user database module +PERDITION_PKGNAME= ldap + +CONFIGURE_ARGS+= --with-ldap-includes=${BUILDLINK_PREFIX.openldap}/include +CONFIGURE_ARGS+= --with-ldap-libs=${BUILDLINK_PREFIX.openldap}/lib + +.include "../../databases/openldap/buildlink3.mk" +.include "../perdition/Makefile.common" diff --git a/mail/perdition-ldap/PLIST b/mail/perdition-ldap/PLIST new file mode 100644 index 00000000000..26b0f154603 --- /dev/null +++ b/mail/perdition-ldap/PLIST @@ -0,0 +1,4 @@ +@comment $NetBSD: PLIST,v 1.1 2006/01/31 21:07:30 tv Exp $ +lib/libperditiondb_ldap.la +man/man8/perditiondb_ldap_makedb.8 +sbin/perditiondb_ldap_makedb diff --git a/mail/perdition-mysql/Makefile b/mail/perdition-mysql/Makefile new file mode 100644 index 00000000000..ebd8a3ecfe2 --- /dev/null +++ b/mail/perdition-mysql/Makefile @@ -0,0 +1,8 @@ +# $NetBSD: Makefile,v 1.1 2006/01/31 21:07:30 tv Exp $ +# + +PERDITION_COMMENT= MySQL user database module +PERDITION_PKGNAME= mysql + +.include "../../mk/mysql.buildlink3.mk" +.include "../perdition/Makefile.common" diff --git a/mail/perdition-mysql/PLIST b/mail/perdition-mysql/PLIST new file mode 100644 index 00000000000..d66300f7ccd --- /dev/null +++ b/mail/perdition-mysql/PLIST @@ -0,0 +1,4 @@ +@comment $NetBSD: PLIST,v 1.1 2006/01/31 21:07:31 tv Exp $ +lib/libperditiondb_mysql.la +man/man8/perditiondb_mysql_makedb.8 +sbin/perditiondb_mysql_makedb diff --git a/mail/perdition-odbc/Makefile b/mail/perdition-odbc/Makefile new file mode 100644 index 00000000000..cdba33b4465 --- /dev/null +++ b/mail/perdition-odbc/Makefile @@ -0,0 +1,11 @@ +# $NetBSD: Makefile,v 1.1 2006/01/31 21:07:31 tv Exp $ +# + +PERDITION_COMMENT= UnixODBC user database module +PERDITION_PKGNAME= odbc + +CONFIGURE_ARGS+= --with-odbc-includes=${BUILDLINK_PREFIX.unixodbc}/include +CONFIGURE_ARGS+= --with-odbc-libs=${BUILDLINK_PREFIX.unixodbc}/lib + +.include "../../databases/unixodbc/buildlink3.mk" +.include "../perdition/Makefile.common" diff --git a/mail/perdition-odbc/PLIST b/mail/perdition-odbc/PLIST new file mode 100644 index 00000000000..3b075e6a472 --- /dev/null +++ b/mail/perdition-odbc/PLIST @@ -0,0 +1,4 @@ +@comment $NetBSD: PLIST,v 1.1 2006/01/31 21:07:31 tv Exp $ +lib/libperditiondb_odbc.la +man/man8/perditiondb_odbc_makedb.8 +sbin/perditiondb_odbc_makedb diff --git a/mail/perdition-postgresql/Makefile b/mail/perdition-postgresql/Makefile new file mode 100644 index 00000000000..3112e79ccc7 --- /dev/null +++ b/mail/perdition-postgresql/Makefile @@ -0,0 +1,9 @@ +# $NetBSD: Makefile,v 1.1 2006/01/31 21:07:31 tv Exp $ +# + +PERDITION_COMMENT= PostgreSQL user database module +PERDITION_PKGNAME= postgresql +PERDITION_SKIP_DISABLE= pg + +.include "../../mk/pgsql.buildlink3.mk" +.include "../perdition/Makefile.common" diff --git a/mail/perdition-postgresql/PLIST b/mail/perdition-postgresql/PLIST new file mode 100644 index 00000000000..3077c05ba42 --- /dev/null +++ b/mail/perdition-postgresql/PLIST @@ -0,0 +1,4 @@ +@comment $NetBSD: PLIST,v 1.1 2006/01/31 21:07:31 tv Exp $ +lib/libperditiondb_postgresql.la +man/man8/perditiondb_postgresql_makedb.8 +sbin/perditiondb_postgresql_makedb diff --git a/mail/perdition/DESCR b/mail/perdition/DESCR new file mode 100644 index 00000000000..5561659060e --- /dev/null +++ b/mail/perdition/DESCR @@ -0,0 +1,11 @@ +Perdition is a fully featured POP3 and IMAP4 proxy server. It is able to +handle both SSL and non-SSL connections and redirect users to a +real-server based on a database lookup. Perdition supports modular based +database access. ODBC, MySQL, PostgreSQL, GDBM, POSIX Regular Expression +and NIS modules ship with the distribution. The API for modules is open +allowing abitary modules to be written to allow access to any data store. + +Perdition can be used to: Create large mail systems where a users mailbox +may be stored on one of several hosts. Integrate different mail systems +together. Migrate between different email infastructure. And in firewall +applications. diff --git a/mail/perdition/Makefile b/mail/perdition/Makefile new file mode 100644 index 00000000000..27e4482efff --- /dev/null +++ b/mail/perdition/Makefile @@ -0,0 +1,21 @@ +# $NetBSD: Makefile,v 1.1 2006/01/31 21:07:30 tv Exp $ +# + +PERDITION_COMMENT= main program + +.include "options.mk" + +USE_PKGINSTALL= YES +OWN_DIRS+= ${PKG_SYSCONFDIR} +.for f in Makefile.popmap perdition.conf popmap popmap.re +CONF_FILES+= ${EGDIR}/perdition/$f ${PKG_SYSCONFDIR}/${f:.popmap=} +.endfor + +SUBST_CLASSES+= paths +SUBST_STAGE.paths= pre-configure +SUBST_FILES.paths= etc/perdition/perdition.conf +SUBST_SED.paths= -e "s|/usr/lib/|${PREFIX}/lib/|g" \ + -e "s|/etc/perdition/|${PKG_SYSCONFDIR}/|g" +SUBST_MESSAGE.paths= Fixing paths. + +.include "Makefile.common" diff --git a/mail/perdition/Makefile.common b/mail/perdition/Makefile.common new file mode 100644 index 00000000000..85378fedf43 --- /dev/null +++ b/mail/perdition/Makefile.common @@ -0,0 +1,47 @@ +# $NetBSD: Makefile.common,v 1.1 2006/01/31 21:07:30 tv Exp $ +# + +PERDITION_VERSION= 1.17 +DISTNAME= perdition-${PERDITION_VERSION} +CATEGORIES= mail +MASTER_SITES= http://www.vergenet.net/linux/perdition/download/1.17/ + +MAINTAINER= tv@duh.org +HOMEPAGE= http://www.vergenet.net/linux/perdition/ +COMMENT= IMAP/POP3 proxy redirector (${PERDITION_COMMENT}) + +USE_TOOLS= gmake +USE_PKGLOCALEDIR= yes +USE_LIBTOOL= yes +GNU_CONFIGURE= yes +PKG_SYSCONFSUBDIR= perdition + +CONFIGURE_ARGS+= --localstatedir=/var/run + +EGDIR= ${PREFIX}/share/examples +INSTALL_AM_MAKEFLAGS= sysconfdir=${EGDIR} +INSTALL_MAKE_FLAGS= ${MAKE_FLAGS} AM_MAKEFLAGS=${INSTALL_AM_MAKEFLAGS:Q} + +.ifdef PERDITION_PKGNAME +PKGNAME= ${DISTNAME:S/-/-${PERDITION_PKGNAME}-/} +DEPENDS+= perdition-${PERDITION_VERSION}{,nb*}:../../mail/perdition +BUILD_DIRS?= perdition/db/${PERDITION_PKGNAME} +.endif + +PERDITION_SKIP_DISABLE?=${PERDITION_PKGNAME} +.for f in mysql odbc pg gdbm bdb ldap ldap-doc +. if empty(PERDITION_SKIP_DISABLE:M$f) +CONFIGURE_ARGS+= --disable-$f +. endif +.endfor + +DESCR_SRC= ${PKGDIR}/../perdition/DESCR +DISTINFO_FILE= ${PKGDIR}/../perdition/distinfo +PATCHDIR= ${PKGDIR}/../perdition/patches + +.include "../../devel/popt/buildlink3.mk" +.include "../../devel/vanessa_adt/buildlink3.mk" +.include "../../devel/vanessa_logger/buildlink3.mk" +.include "../../devel/vanessa_socket/buildlink3.mk" +.include "../../mk/dlopen.buildlink3.mk" +.include "../../mk/bsd.pkg.mk" diff --git a/mail/perdition/PLIST b/mail/perdition/PLIST new file mode 100644 index 00000000000..3dfbf84b430 --- /dev/null +++ b/mail/perdition/PLIST @@ -0,0 +1,25 @@ +@comment $NetBSD: PLIST,v 1.1 2006/01/31 21:07:30 tv Exp $ +include/jain.h +lib/libjain.la +lib/libperditiondb_daemon.la +lib/libperditiondb_nis.la +lib/libperditiondb_posix_regex.la +man/man5/perditiondb.5 +man/man8/perdition.8 +man/man8/perdition.imap4.8 +man/man8/perdition.imap4s.8 +man/man8/perdition.imaps.8 +man/man8/perdition.pop3.8 +man/man8/perdition.pop3s.8 +sbin/perdition +sbin/perdition.imap4 +sbin/perdition.imap4s +sbin/perdition.imaps +sbin/perdition.pop3 +sbin/perdition.pop3s +share/examples/perdition/Makefile +share/examples/perdition/Makefile.popmap +share/examples/perdition/perdition.conf +share/examples/perdition/popmap +share/examples/perdition/popmap.re +@dirrm share/examples/perdition diff --git a/mail/perdition/buildlink3.mk b/mail/perdition/buildlink3.mk new file mode 100644 index 00000000000..847bca0cd13 --- /dev/null +++ b/mail/perdition/buildlink3.mk @@ -0,0 +1,24 @@ +# $NetBSD: buildlink3.mk,v 1.1 2006/01/31 21:07:30 tv Exp $ + +BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH}+ +PERDITION_BUILDLINK3_MK:= ${PERDITION_BUILDLINK3_MK}+ + +.if !empty(BUILDLINK_DEPTH:M+) +BUILDLINK_DEPENDS+= perdition +.endif + +BUILDLINK_PACKAGES:= ${BUILDLINK_PACKAGES:Nperdition} +BUILDLINK_PACKAGES+= perdition + +.if !empty(PERDITION_BUILDLINK3_MK:M+) +BUILDLINK_DEPENDS.perdition+= perdition>=1.17 +BUILDLINK_PKGSRCDIR.perdition?= ../../mail/perdition +.endif # PERDITION_BUILDLINK3_MK + +# The following are included in Makefile.common for "configure"'s sake. +#.include "../../devel/popt/buildlink3.mk" +#.include "../../devel/vanessa_adt/buildlink3.mk" +#.include "../../devel/vanessa_logger/buildlink3.mk" +#.include "../../devel/vanessa_socket/buildlink3.mk" + +BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH:S/+$//} diff --git a/mail/perdition/distinfo b/mail/perdition/distinfo new file mode 100644 index 00000000000..c97e158ebd0 --- /dev/null +++ b/mail/perdition/distinfo @@ -0,0 +1,7 @@ +$NetBSD: distinfo,v 1.1 2006/01/31 21:07:30 tv Exp $ + +SHA1 (perdition-1.17.tar.gz) = 5e04f172db4a7ee2af5b7a28c19c231f955243fc +RMD160 (perdition-1.17.tar.gz) = cc3c4679390132ece6858eca6483ffddead568e4 +Size (perdition-1.17.tar.gz) = 552149 bytes +SHA1 (patch-aa) = 17c6bf55f77187cad59f779e6fbcd85d6921eab1 +SHA1 (patch-ab) = f6500f5ab60e2c7f53673fdd9f8b4b72cac5e6e8 diff --git a/mail/perdition/options.mk b/mail/perdition/options.mk new file mode 100644 index 00000000000..aac5ad0065f --- /dev/null +++ b/mail/perdition/options.mk @@ -0,0 +1,16 @@ +# $NetBSD: options.mk,v 1.1 2006/01/31 21:07:30 tv Exp $ + +PKG_OPTIONS_VAR= PKG_OPTIONS.perdition +PKG_SUPPORTED_OPTIONS= ssl +PKG_SUGGESTED_OPTIONS= ssl + +.include "../../mk/bsd.options.mk" + +### +### Build with OpenSSL as the underlying crypto library. +### +.if !empty(PKG_OPTIONS:Mssl) +. include "../../security/openssl/buildlink3.mk" +.else +CONFIGURE_ARGS+= --disable-ssl +.endif diff --git a/mail/perdition/patches/patch-aa b/mail/perdition/patches/patch-aa new file mode 100644 index 00000000000..ac36bf0a7e3 --- /dev/null +++ b/mail/perdition/patches/patch-aa @@ -0,0 +1,17 @@ +$NetBSD: patch-aa,v 1.1 2006/01/31 21:07:30 tv Exp $ + +--- makegdbm/Makefile.in.orig 2005-06-22 02:32:35.000000000 -0400 ++++ makegdbm/Makefile.in +@@ -144,10 +144,10 @@ EXTRA_DIST = makegdbm.1 + makegdbm_SOURCES = makegdbm.c options.c options.h + + +-makegdbm_LDADD = -L../libjain -L../libjain/.libs/ -ljain -lgdbm -lpopt @dmalloc_lib@ ++makegdbm_LDADD = -L$(prefix)/lib -ljain -lgdbm -lpopt @dmalloc_lib@ + + +-INCLUDES = -I$(top_srcdir)/libjain ++INCLUDES = -I$(prefix)/include + mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs + CONFIG_HEADER = ../config.h + CONFIG_CLEAN_FILES = diff --git a/mail/perdition/patches/patch-ab b/mail/perdition/patches/patch-ab new file mode 100644 index 00000000000..15c54db301f --- /dev/null +++ b/mail/perdition/patches/patch-ab @@ -0,0 +1,17 @@ +$NetBSD: patch-ab,v 1.1 2006/01/31 21:07:30 tv Exp $ + +--- makebdb/Makefile.in.orig 2005-06-22 02:32:35.000000000 -0400 ++++ makebdb/Makefile.in +@@ -144,10 +144,10 @@ EXTRA_DIST = makebdb.1 + makebdb_SOURCES = makebdb.c options.c options.h + + +-makebdb_LDADD = -L../libjain -L../libjain/.libs/ -ljain -ldb -lpopt @dmalloc_lib@ ++makebdb_LDADD = -L$(prefix)/lib -ljain -ldb -lpopt @dmalloc_lib@ + + +-INCLUDES = -I$(top_srcdir)/libjain ++INCLUDES = -I$(prefix)/include + mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs + CONFIG_HEADER = ../config.h + CONFIG_CLEAN_FILES = |