diff options
author | adrianp <adrianp@pkgsrc.org> | 2006-05-08 21:58:31 +0000 |
---|---|---|
committer | adrianp <adrianp@pkgsrc.org> | 2006-05-08 21:58:31 +0000 |
commit | 5605e23cc4d2154bfaf82f05049dc03c2feac56c (patch) | |
tree | 87b69e003a924e21a6401acc05227abcc3e476e2 /mail | |
parent | f35a8637fe6608eb24644f1d5214a6dbbf244d4d (diff) | |
download | pkgsrc-5605e23cc4d2154bfaf82f05049dc03c2feac56c.tar.gz |
Proxies IMAP transactions between an IMAP client and an IMAP server. The
general idea is that the client should never know that it's not talking to
the real IMAP server. The only thing that makes this a slightly unique Imap
Proxy server is that it caches server connections.
Diffstat (limited to 'mail')
-rw-r--r-- | mail/up-imapproxy/DESCR | 4 | ||||
-rw-r--r-- | mail/up-imapproxy/Makefile | 38 | ||||
-rw-r--r-- | mail/up-imapproxy/PLIST | 10 | ||||
-rw-r--r-- | mail/up-imapproxy/distinfo | 7 | ||||
-rw-r--r-- | mail/up-imapproxy/files/upimapproxy.sh | 19 | ||||
-rw-r--r-- | mail/up-imapproxy/patches/patch-aa | 15 | ||||
-rw-r--r-- | mail/up-imapproxy/patches/patch-ab | 15 |
7 files changed, 108 insertions, 0 deletions
diff --git a/mail/up-imapproxy/DESCR b/mail/up-imapproxy/DESCR new file mode 100644 index 00000000000..a411d9ca02b --- /dev/null +++ b/mail/up-imapproxy/DESCR @@ -0,0 +1,4 @@ +Proxies IMAP transactions between an IMAP client and an IMAP server. The +general idea is that the client should never know that it's not talking to +the real IMAP server. The only thing that makes this a slightly unique Imap +Proxy server is that it caches server connections. diff --git a/mail/up-imapproxy/Makefile b/mail/up-imapproxy/Makefile new file mode 100644 index 00000000000..e8898440965 --- /dev/null +++ b/mail/up-imapproxy/Makefile @@ -0,0 +1,38 @@ +# $NetBSD: Makefile,v 1.1.1.1 2006/05/08 21:58:31 adrianp Exp $ + +DISTNAME= up-imapproxy-1.2.4 +CATEGORIES= mail +MASTER_SITES= http://www.imapproxy.org/downloads/ + +MAINTAINER= adrianp@NetBSD.org +HOMEPAGE= http://www.imapproxy.org/ +COMMENT= Connection caching IMAP proxy server + +GNU_CONFIGURE= YES +RCD_SCRIPTS= upimapproxy + +SUBST_CLASSES+= paths +SUBST_STAGE.paths= post-patch +SUBST_FILES.paths= include/imapproxy.h +SUBST_SED.paths= -e "s|@PKG_SYSCONFDIR@|${PKG_SYSCONFDIR}|g" +SUBST_MESSAGE.paths= Fixing hard coded paths. + +CONF_FILES= ${PREFIX}/share/examples/up-imapproxy/imapproxy.conf \ + ${PKG_SYSCONFDIR}/imapproxy.conf + +.include "../../security/openssl/buildlink3.mk" +.include "../../mk/pthread.buildlink3.mk" + +post-install: + ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/up-imapproxy + ${INSTALL_DATA_DIR} ${PREFIX}/share/examples/up-imapproxy + + ${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/share/doc/up-imapproxy + ${INSTALL_DATA} ${WRKSRC}/README.ssl ${PREFIX}/share/doc/up-imapproxy + + ${INSTALL_DATA} ${WRKSRC}/README.known_issues \ + ${PREFIX}/share/doc/up-imapproxy + ${INSTALL_DATA} ${WRKSRC}/scripts/imapproxy.conf \ + ${PREFIX}/share/examples/up-imapproxy + +.include "../../mk/bsd.pkg.mk" diff --git a/mail/up-imapproxy/PLIST b/mail/up-imapproxy/PLIST new file mode 100644 index 00000000000..6548631baea --- /dev/null +++ b/mail/up-imapproxy/PLIST @@ -0,0 +1,10 @@ +@comment $NetBSD: PLIST,v 1.1.1.1 2006/05/08 21:58:31 adrianp Exp $ +sbin/in.imapproxyd +sbin/pimpstat +share/doc/up-imapproxy/README +share/doc/up-imapproxy/README.known_issues +share/doc/up-imapproxy/README.ssl +share/examples/rc.d/upimapproxy +share/examples/up-imapproxy/imapproxy.conf +@dirrm share/examples/up-imapproxy +@dirrm share/doc/up-imapproxy diff --git a/mail/up-imapproxy/distinfo b/mail/up-imapproxy/distinfo new file mode 100644 index 00000000000..505f7b4aa24 --- /dev/null +++ b/mail/up-imapproxy/distinfo @@ -0,0 +1,7 @@ +$NetBSD: distinfo,v 1.1.1.1 2006/05/08 21:58:31 adrianp Exp $ + +SHA1 (up-imapproxy-1.2.4.tar.gz) = e2484d413ef8613a8af567d8e7a7f9836c603bfb +RMD160 (up-imapproxy-1.2.4.tar.gz) = f763af637c3988d01a3f67d7437516327962a4e3 +Size (up-imapproxy-1.2.4.tar.gz) = 131331 bytes +SHA1 (patch-aa) = ff6f92050ec95f5ac3b1b82585e427a66338809e +SHA1 (patch-ab) = 3a7a54799cc089fce71c7f60f63e4b757a9f3485 diff --git a/mail/up-imapproxy/files/upimapproxy.sh b/mail/up-imapproxy/files/upimapproxy.sh new file mode 100644 index 00000000000..0fccd85dc8d --- /dev/null +++ b/mail/up-imapproxy/files/upimapproxy.sh @@ -0,0 +1,19 @@ +#!@RCD_SCRIPTS_SHELL@ +# +# $NetBSD: upimapproxy.sh,v 1.1.1.1 2006/05/08 21:58:31 adrianp Exp $ +# + +# PROVIDE: upimapproxy +# REQUIRE: DAEMON + +if [ -f /etc/rc.subr ]; then + . /etc/rc.subr +fi + +name="upimapproxy" +rcvar=$name +command="@PREFIX@/sbin/in.imapproxyd" +required_files="@PKG_SYSCONFDIR@/imapproxy.conf" + +load_rc_config $name +run_rc_command "$1" diff --git a/mail/up-imapproxy/patches/patch-aa b/mail/up-imapproxy/patches/patch-aa new file mode 100644 index 00000000000..a29e3544a25 --- /dev/null +++ b/mail/up-imapproxy/patches/patch-aa @@ -0,0 +1,15 @@ +$NetBSD: patch-aa,v 1.1.1.1 2006/05/08 21:58:31 adrianp Exp $ + +# set default location of config file + +--- include/imapproxy.h.orig Fri Jun 25 00:20:05 2004 ++++ include/imapproxy.h Fri Jun 25 00:20:54 2004 +@@ -145,7 +145,7 @@ + #define SELECT_STATUS_BUF_SIZE 256 /* size of select status */ + + #ifndef DEFAULT_CONFIG_FILE +-#define DEFAULT_CONFIG_FILE "/etc/imapproxy.conf" ++#define DEFAULT_CONFIG_FILE "@PKG_SYSCONFDIR@/imapproxy.conf" + #endif + + #define LITERAL_PASSWORD 1 diff --git a/mail/up-imapproxy/patches/patch-ab b/mail/up-imapproxy/patches/patch-ab new file mode 100644 index 00000000000..dc71fd25081 --- /dev/null +++ b/mail/up-imapproxy/patches/patch-ab @@ -0,0 +1,15 @@ +$NetBSD: patch-ab,v 1.1.1.1 2006/05/08 21:58:31 adrianp Exp $ + +# fix a format string vulnerability (DSA 852-1) + +--- src/main.c.orig 2005-11-03 15:41:01.000000000 +0000 ++++ src/main.c +@@ -849,7 +849,7 @@ static int ParseBannerAndCapability( cha + exit( 1 ); + } + +- sprintf( DestBuf, CP ); ++ sprintf( DestBuf, "%s", CP ); + + /* + * initially assume that the server doesn't support UNSELECT. |