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 | b0ff084fc7d6ffa25361ddbc5edabb11f32dcb00 (patch) | |
tree | 9fc0c61a625c585d27c47e0f4187624c0cdff6f0 /mail/perdition | |
parent | d9ac814c8aa448f1c5de1ee7613cd07dd86c6a56 (diff) | |
download | pkgsrc-b0ff084fc7d6ffa25361ddbc5edabb11f32dcb00.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/perdition')
-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 |
9 files changed, 185 insertions, 0 deletions
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 = |