Import imapproxy 1.2.3

imapproxy keeps the connection to an IMAP server open after a client
logs out and reuses it when the client connects again. This is mostly
useful for webmail clients.

From Holger Mauermann <holger@mauermann.org>
This commit is contained in:
alek 2005-05-08 12:22:09 +00:00
parent 9ddc333e90
commit 6e3f7cab62
8 changed files with 100 additions and 0 deletions

33
mail/imapproxy/Makefile Normal file
View File

@ -0,0 +1,33 @@
# $OpenBSD: Makefile,v 1.1.1.1 2005/05/08 12:22:09 alek Exp $
COMMENT= "caching IMAP proxy to be used with webmail clients"
DISTNAME= up-imapproxy-1.2.3
PKGNAME= imapproxy-1.2.3
CATEGORIES= mail
HOMEPAGE= http://www.imapproxy.org/
MAINTAINER= Holger Mauermann <holger@mauermann.org>
# GPL
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
MASTER_SITES= ${HOMEPAGE}/downloads/
WANTLIB= curses c ssl crypto pthread
CONFIGURE_STYLE=gnu
post-install:
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/imapproxy
${INSTALL_DATA} ${WRKSRC}/scripts/imapproxy.conf \
${PREFIX}/share/examples/imapproxy
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/imapproxy
${INSTALL_DATA} ${WRKSRC}/README ${WRKSRC}/README.ssl \
${PREFIX}/share/examples/imapproxy
.include <bsd.port.mk>

4
mail/imapproxy/distinfo Normal file
View File

@ -0,0 +1,4 @@
MD5 (up-imapproxy-1.2.3.tar.gz) = ad4dafd1417903feb1e09ec569ff1ad5
RMD160 (up-imapproxy-1.2.3.tar.gz) = 7f291a877f0d2581d1495927496fc09fcd6688b0
SHA1 (up-imapproxy-1.2.3.tar.gz) = 2c7f679d623f8db08ea350c7dfeee67c4d91c27e
SIZE (up-imapproxy-1.2.3.tar.gz) = 122991

View File

@ -0,0 +1,24 @@
--- Makefile.in.orig Mon Feb 21 20:14:47 2005
+++ Makefile.in Sun May 8 11:40:26 2005
@@ -53,7 +53,7 @@ TAT_OBJ = ./src/pimpstat.o ./src/config.
# Final targets
-XYD_BIN = ./bin/in.imapproxyd
+XYD_BIN = ./bin/imapproxyd
TAT_BIN = ./bin/pimpstat
# Rules
@@ -78,9 +78,9 @@ distclean: clean
rm -f config.cache config.log config.h Makefile
install: $(XYD_BIN) $(TAT_BIN)
- mkdir -p $(EBIN)
- $(INSTALL) -o bin -g bin -m 0755 $(XYD_BIN) $(EBIN)
- $(INSTALL) -o bin -g bin -m 0755 $(TAT_BIN) $(EBIN)
+ mkdir -p $(DESTDIR)$(EBIN)
+ $(INSTALL) -m 0755 $(XYD_BIN) $(DESTDIR)$(EBIN)
+ $(INSTALL) -m 0755 $(TAT_BIN) $(DESTDIR)$(EBIN)
install-init:
$(INSTALL) -o root -g sys -m 0755 ./scripts/imapproxy.init $(ETC)/init.d/imapproxy

View File

@ -0,0 +1,10 @@
--- src/imapcommon.c.orig Wed Feb 9 01:26:13 2005
+++ src/imapcommon.c Wed Feb 9 01:27:56 2005
@@ -129,6 +129,7 @@
#include <errno.h>
#include <openssl/evp.h>
+#include <openssl/md5.h>
#include <pthread.h>
#include <sys/types.h>

View File

@ -0,0 +1,11 @@
--- include/imapproxy.h.orig Wed Feb 9 01:30:49 2005
+++ include/imapproxy.h Wed Feb 9 01:31:09 2005
@@ -141,7 +141,7 @@
/*
* Common definitions
*/
-#define PGM "in.imapproxyd"
+#define PGM "imapproxyd"
#define IMAP_UNTAGGED_OK "* OK " /* untagged OK response */
#define IMAP_TAGGED_OK "1 OK " /* tagged OK response */
#define BUFSIZE 4096 /* default buffer size */

3
mail/imapproxy/pkg/DESCR Normal file
View File

@ -0,0 +1,3 @@
imapproxy keeps the connection to an IMAP server open after a client
logs out and reuses it when the client connects again. This is mostly
useful for webmail clients.

View File

@ -0,0 +1,6 @@
In order to start imapproxy at boot time, edit ${SYSCONFDIR}/imapproxy.conf
and add the following lines to /etc/rc.local:
if [ -x ${PREFIX}/sbin/imapproxyd ]; then
echo -n ' imapproxy'; ${PREFIX}/sbin/imapproxyd
fi

9
mail/imapproxy/pkg/PLIST Normal file
View File

@ -0,0 +1,9 @@
@comment $OpenBSD: PLIST,v 1.1.1.1 2005/05/08 12:22:09 alek Exp $
sbin/imapproxyd
sbin/pimpstat
share/examples/imapproxy/
share/examples/imapproxy/imapproxy.conf
@sample ${SYSCONFDIR}/imapproxy.conf
share/doc/imapproxy/
share/doc/imapproxy/README
share/doc/imapproxy/README.ssl