aboutsummaryrefslogtreecommitdiffstats
path: root/mail
diff options
context:
space:
mode:
authormbr <mbr@FreeBSD.org>2004-05-12 20:47:19 +0800
committermbr <mbr@FreeBSD.org>2004-05-12 20:47:19 +0800
commit91d29eaca83d52054356943215a15442e10abfbf (patch)
treef71d9ba819a1c61feea46905a6e8c3ac4bd47c94 /mail
parent7885ff4fc6924918ad80c4cb0a58fd13344a3614 (diff)
downloadfreebsd-ports-gnome-91d29eaca83d52054356943215a15442e10abfbf.tar.gz
freebsd-ports-gnome-91d29eaca83d52054356943215a15442e10abfbf.tar.zst
freebsd-ports-gnome-91d29eaca83d52054356943215a15442e10abfbf.zip
Add UP-Imap-proxy, a caching IMAP proxy server.
Diffstat (limited to 'mail')
-rw-r--r--mail/up-imapproxy/Makefile41
-rw-r--r--mail/up-imapproxy/distinfo2
-rw-r--r--mail/up-imapproxy/files/imapproxyd.conf11
-rw-r--r--mail/up-imapproxy/files/imapproxyd.sh25
-rw-r--r--mail/up-imapproxy/files/patch-Makefile.in11
-rw-r--r--mail/up-imapproxy/files/patch-configure.in26
-rw-r--r--mail/up-imapproxy/pkg-descr7
-rw-r--r--mail/up-imapproxy/pkg-message9
-rw-r--r--mail/up-imapproxy/pkg-plist4
9 files changed, 136 insertions, 0 deletions
diff --git a/mail/up-imapproxy/Makefile b/mail/up-imapproxy/Makefile
new file mode 100644
index 000000000000..a5ebd85cf154
--- /dev/null
+++ b/mail/up-imapproxy/Makefile
@@ -0,0 +1,41 @@
+# New ports collection makefile for: imapproxy
+# Date created: 11.05.04
+# Whom: Martin Blapp
+#
+# $FreeBSD$
+#
+
+PORTNAME= up-imapproxy
+PORTVERSION= 1.2.1
+CATEGORIES= mail
+MASTER_SITES= http://www.imapproxy.org/downloads/
+DISTNAME= ${PORTNAME}-${PORTVERSION}
+EXTRACT_SUFX= .tar.gz
+
+MAINTAINER= mbr@FreeBSD.org
+COMMENT= A caching IMAP proxy server
+
+GNU_CONFIGURE= YES
+USE_AUTOCONF= YES
+USE_RC_SUBR= YES
+
+SAMPLE_EXT= sample
+
+.include <bsd.port.pre.mk>
+
+RC_SCRIPTS_SUB= PREFIX=${PREFIX} \
+ RC_SUBR=${RC_SUBR}
+
+post-install:
+ @${SED} ${RC_SCRIPTS_SUB:S/$/!g/:S/^/ -e s!%%/:S/=/%%!/} \
+ < ${FILESDIR}/imapproxyd.conf > ${WRKSRC}/imapproxyd.conf ;
+ @if [ ! -f ${PREFIX}/etc/imapproxyd.conf ]; then \
+ ${INSTALL} -c ${WRKSRC}/imapproxyd.conf ${PREFIX}/etc/imapproxyd.conf ; \
+ fi
+ ${INSTALL} -c ${WRKSRC}/scripts/imapproxy.conf ${PREFIX}/etc/imapproxyd.conf.${SAMPLE_EXT} ;
+ @${SED} ${RC_SCRIPTS_SUB:S/$/!g/:S/^/ -e s!%%/:S/=/%%!/} \
+ < ${FILESDIR}/imapproxyd.sh > ${WRKSRC}/imapproxyd.sh
+ ${INSTALL_SCRIPT} ${WRKSRC}/imapproxyd.sh ${PREFIX}/etc/rc.d/imapproxyd.sh
+ @${CAT} ${PKGMESSAGE}
+
+.include <bsd.port.post.mk>
diff --git a/mail/up-imapproxy/distinfo b/mail/up-imapproxy/distinfo
new file mode 100644
index 000000000000..8f9fb3fa0529
--- /dev/null
+++ b/mail/up-imapproxy/distinfo
@@ -0,0 +1,2 @@
+MD5 (up-imapproxy-1.2.1.tar.gz) = debd3edeb7441b9f713aaa9e9d7f2329
+SIZE (up-imapproxy-1.2.1.tar.gz) = 111393
diff --git a/mail/up-imapproxy/files/imapproxyd.conf b/mail/up-imapproxy/files/imapproxyd.conf
new file mode 100644
index 000000000000..859666943b67
--- /dev/null
+++ b/mail/up-imapproxy/files/imapproxyd.conf
@@ -0,0 +1,11 @@
+server_hostname yourserver.host.com
+cache_size 10000
+listen_port 10143
+server_port 143
+cache_expiration_time 60
+proc_username nobody
+proc_groupname nogroup
+stat_filename /var/run/pimpstats
+protocol_log_filename /var/log/imapproxy_protocol.log
+syslog_facility LOG_MAIL
+send_tcp_keepalives no
diff --git a/mail/up-imapproxy/files/imapproxyd.sh b/mail/up-imapproxy/files/imapproxyd.sh
new file mode 100644
index 000000000000..82aac33ffc04
--- /dev/null
+++ b/mail/up-imapproxy/files/imapproxyd.sh
@@ -0,0 +1,25 @@
+#!/bin/sh
+#
+# $FreeBSD$
+#
+
+# PROVIDE: imapproxyd
+# REQUIRE: LOGIN
+# BEFORE: mail
+# KEYWORD: FreeBSD shutdown
+
+#
+# Add the following line to /etc/rc.conf to enable imapproxyd:
+#
+#imapproxyd_enable="YES"
+#
+
+. %%RC_SUBR%%
+
+name=imapproxyd
+rcvar=`set_rcvar`
+
+command=%%PREFIX%%/sbin/in.imapproxyd
+
+load_rc_config $name
+run_rc_command "$1"
diff --git a/mail/up-imapproxy/files/patch-Makefile.in b/mail/up-imapproxy/files/patch-Makefile.in
new file mode 100644
index 000000000000..596ad1774a18
--- /dev/null
+++ b/mail/up-imapproxy/files/patch-Makefile.in
@@ -0,0 +1,11 @@
+--- Makefile.in.orig Fri Nov 7 17:36:05 2003
++++ Makefile.in Wed May 12 14:37:33 2004
+@@ -24,7 +24,7 @@
+ rpm_prefix = @rpm_prefix@
+
+ CC = @CC@
+-CPPFLAGS = @CPPFLAGS@
++CPPFLAGS = @CPPFLAGS@ -DDEFAULT_CONFIG_FILE=\"$(prefix)/etc/imapproxyd.conf\"
+ LDFLAGS = @LDFLAGS@
+ LIBS = @LIBS@
+ DEFINES = @DEFINES@
diff --git a/mail/up-imapproxy/files/patch-configure.in b/mail/up-imapproxy/files/patch-configure.in
new file mode 100644
index 000000000000..277aa286cdf7
--- /dev/null
+++ b/mail/up-imapproxy/files/patch-configure.in
@@ -0,0 +1,26 @@
+--- configure.in.orig Wed May 12 14:17:03 2004
++++ configure.in Wed May 12 14:17:15 2004
+@@ -86,23 +86,6 @@
+ LDFLAGS="${LDFLAGS} -L${with_libwrap}/lib"
+ fi
+
+-
+-dnl Check for libwrap
+-save_LIBS="$LIBS"
+-if test "$with_libwrap" != no; then
+- AC_CHECK_LIB(nsl, yp_get_default_domain, , [
+- with_libwrap=no
+- AC_WARN([nsl library not found!!! Wrappers will be disabled.])
+- ])
+- if test "$with_libwrap" != no; then
+- AC_CHECK_LIB(wrap, request_init, , [
+- LIBS="$save_LIBS"
+- AC_WARN([Wrappers library not found!!! Wrappers will be disabled.])
+- ])
+- fi
+-fi
+-
+-
+ dnl Check for crypto library
+ AC_CHECK_LIB(crypto, EVP_DigestInit, ,
+ AC_ERROR([Can't compile without OpenSSL crypto library!!!])
diff --git a/mail/up-imapproxy/pkg-descr b/mail/up-imapproxy/pkg-descr
new file mode 100644
index 000000000000..99ac887a0791
--- /dev/null
+++ b/mail/up-imapproxy/pkg-descr
@@ -0,0 +1,7 @@
+The IMAP Proxy server is a caching IMAP proxy server.
+It was written to reduce the load that Webmail clients
+put on an IMAP server by keeping server connections
+alive for reuse, thus avoiding a new server connection
+for each Webmail transaction.
+
+WWW: http://www.imapproxy.org
diff --git a/mail/up-imapproxy/pkg-message b/mail/up-imapproxy/pkg-message
new file mode 100644
index 000000000000..215d94c1398c
--- /dev/null
+++ b/mail/up-imapproxy/pkg-message
@@ -0,0 +1,9 @@
+****************************************************************************
+
+Please change the name of your mailserver in the imapproxyd.conf and setup
+the correct ports.
+
+To run the imapproxyd from startup, add imapproxyd_enable="YES" in your
+/etc/rc.conf.
+
+****************************************************************************
diff --git a/mail/up-imapproxy/pkg-plist b/mail/up-imapproxy/pkg-plist
new file mode 100644
index 000000000000..7a63eb56bd76
--- /dev/null
+++ b/mail/up-imapproxy/pkg-plist
@@ -0,0 +1,4 @@
+sbin/pimpstat
+sbin/in.imapproxyd
+etc/rc.d/imapproxyd.sh
+etc/imapproxyd.conf.sample