summaryrefslogtreecommitdiff
path: root/mail/prayer
diff options
context:
space:
mode:
authorabs <abs>2002-12-27 12:52:07 +0000
committerabs <abs>2002-12-27 12:52:07 +0000
commitbfd9007619db547ce4a65de56a643ef6ae3f6ed9 (patch)
tree4131447cfde2c8d6880f71c285eaa954ac090a06 /mail/prayer
parentb50e98992b66b02b7f08022965a316dab83ae741 (diff)
downloadpkgsrc-bfd9007619db547ce4a65de56a643ef6ae3f6ed9.tar.gz
Import of prayer 1.0.5
Prayer is a small and fast HTTP to IMAP gateway written entirely in C. * Uses persistent connections to IMAP server and support servers. * Target folders remain SELECTed: not a simple-minded proxy. * Full caching (including sort/thread cache) for each open folder. * Up to five persistent IMAP connections (typically one or two in use): o INBOX and one other folder o Postponed message folder stream o Preferences stream o Folder transfer stream o Various optimisations/sharing to minimise actual IMAP connections * Directory cache: single round trip to IMAP server for directory listing. * Works well with UW IMAP server (even using Unix format mail folders). * Little discernible load on a Pentium III class system running Linux with 5,000 logins/day (400 logins/hour, 150 concurrent logins) * Uses 10% to 20% of the CPU and 400 MBytes of RAM on a PIII class system with 23,000 logins/day (1,700 logins/hour, 850 concurrent logins peak) * Aggressive HTTP/1.0 and 1.1 connection caching to reduce SSL overhead. * Optional gzip compression of pages tunable by IP address range.
Diffstat (limited to 'mail/prayer')
-rw-r--r--mail/prayer/DESCR19
-rw-r--r--mail/prayer/Makefile23
-rw-r--r--mail/prayer/PLIST10
-rw-r--r--mail/prayer/distinfo8
-rw-r--r--mail/prayer/patches/patch-aa58
-rw-r--r--mail/prayer/patches/patch-ab31
-rw-r--r--mail/prayer/patches/patch-ac18
-rw-r--r--mail/prayer/patches/patch-ad15
8 files changed, 182 insertions, 0 deletions
diff --git a/mail/prayer/DESCR b/mail/prayer/DESCR
new file mode 100644
index 00000000000..2700dcb7982
--- /dev/null
+++ b/mail/prayer/DESCR
@@ -0,0 +1,19 @@
+Prayer is a small and fast HTTP to IMAP gateway written entirely in C.
+ * Uses persistent connections to IMAP server and support servers.
+ * Target folders remain SELECTed: not a simple-minded proxy.
+ * Full caching (including sort/thread cache) for each open folder.
+ * Up to five persistent IMAP connections (typically one or two in use):
+ o INBOX and one other folder
+ o Postponed message folder stream
+ o Preferences stream
+ o Folder transfer stream
+ o Various optimisations/sharing to minimise actual IMAP connections
+ * Directory cache: single round trip to IMAP server for directory listing.
+ * Works well with UW IMAP server (even using Unix format mail folders).
+ * Little discernible load on a Pentium III class system running Linux with
+ 5,000 logins/day (400 logins/hour, 150 concurrent logins)
+ * Uses 10% to 20% of the CPU and 400 MBytes of RAM on a PIII class system
+ with 23,000 logins/day (1,700 logins/hour, 850 concurrent logins peak)
+ * Aggressive HTTP/1.0 and 1.1 connection caching to reduce SSL overhead.
+ * Optional gzip compression of pages tunable by IP address range.
+ * Minimal use of fixed length buffers in C source code.
diff --git a/mail/prayer/Makefile b/mail/prayer/Makefile
new file mode 100644
index 00000000000..6db82eec0d4
--- /dev/null
+++ b/mail/prayer/Makefile
@@ -0,0 +1,23 @@
+# $NetBSD: Makefile,v 1.1.1.1 2002/12/27 12:52:07 abs Exp $
+#
+
+DISTNAME= prayer-1.0.5
+CATEGORIES= mail www
+MASTER_SITES= ftp://ftp.csx.cam.ac.uk/pub/software/email/prayer/
+
+MAINTAINER= abs@netbsd.org
+HOMEPAGE= http://www-uxsup.csx.cam.ac.uk/~dpc22/prayer/
+COMMENT= Small, fast, web mail interface
+
+PKG_GROUPS= prayer
+
+USE_BUILDLINK2= YES
+USE_GMAKE=YES
+
+.include "../../databases/db4/buildlink2.mk"
+.include "../../devel/zlib/buildlink2.mk"
+.include "../../mail/imap-uw/buildlink2.mk"
+.include "../../security/openssl/buildlink2.mk"
+
+.include "../../mk/bsd.pkg.install.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/mail/prayer/PLIST b/mail/prayer/PLIST
new file mode 100644
index 00000000000..0d5aae9de9e
--- /dev/null
+++ b/mail/prayer/PLIST
@@ -0,0 +1,10 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2002/12/27 12:52:07 abs Exp $
+etc/prayer.cf
+etc/prayer-accountd.cf
+etc/motd.html
+etc/welcome.html
+sbin/prayer
+sbin/prayer-session
+sbin/prayer-ssl-prune
+sbin/prayer-cyclog
+@dirrm certs
diff --git a/mail/prayer/distinfo b/mail/prayer/distinfo
new file mode 100644
index 00000000000..c00e4d25fd5
--- /dev/null
+++ b/mail/prayer/distinfo
@@ -0,0 +1,8 @@
+$NetBSD: distinfo,v 1.1.1.1 2002/12/27 12:52:07 abs Exp $
+
+SHA1 (prayer-1.0.5.tar.gz) = 56ab33aab2c1960a28bb59f076869b4ebc4c5f4f
+Size (prayer-1.0.5.tar.gz) = 500762 bytes
+SHA1 (patch-aa) = 187f8c69ce9417c4768030bc60d3b5ee8b3b4fed
+SHA1 (patch-ab) = 015dac1b72153c394666e2389339609b3dd9fcb5
+SHA1 (patch-ac) = 5f2cb8083a5b12791a873ca9587cf91c1daa9b4a
+SHA1 (patch-ad) = b7501587b937767304b8bbe2d84f01663e5d74ad
diff --git a/mail/prayer/patches/patch-aa b/mail/prayer/patches/patch-aa
new file mode 100644
index 00000000000..82737c8ef82
--- /dev/null
+++ b/mail/prayer/patches/patch-aa
@@ -0,0 +1,58 @@
+$NetBSD: patch-aa,v 1.1.1.1 2002/12/27 12:52:07 abs Exp $
+
+--- Config.orig Thu Nov 7 08:50:44 2002
++++ Config
+@@ -17,9 +17,9 @@ ACCOUNTD_SSL_ENABLE = false # Enable S
+ DIRECT_ENABLE = false # Experimental. Leave this switched off...
+
+ # Following depend on the way that you have configured c-client
+-CCLIENT_SSL_ENABLE = false # C-client was built with SSL support
++CCLIENT_SSL_ENABLE = true # C-client was built with SSL support
+ CCLIENT_PAM_ENABLE = false # C-client was built with PAM support
+-CCLIENT_KERB_ENABLE = false # C-client was built with Kerberos support
++CCLIENT_KERB_ENABLE = true # C-client was built with Kerberos support
+
+ ############################################################################
+ # Location of compiler
+@@ -53,9 +53,9 @@ BASE_LIBS = -lcrypt
+ # which points to ../../imap/c-client. This just reduces the amount of
+ # noise output on each line when building the package.
+ #
+-CCLIENT_DIR=./c-client
+-CCLIENT_INCLUDE=-I $(CCLIENT_DIR)
+-CCLIENT_LIB=./$(CCLIENT_DIR)/c-client.a
++CCLIENT_DIR=/usr/pkg
++CCLIENT_INCLUDE=-I $(CCLIENT_DIR)/include/c-client
++CCLIENT_LIB=$(CCLIENT_DIR)/lib/libc-client.a
+ CCLIENT_SSL_ENABLE = true
+
+ #
+@@ -99,7 +99,7 @@ PAM_LIBS = -lpam
+
+ # Kerberos (required if CCLIENT_KERB_ENABLE set)
+ KERB_INCLUDE =
+-KERB_LIBS = -L/usr/kerberos/lib -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err
++KERB_LIBS = -L/usr/lib -lgssapi -lcom_err -lkrb5 -lasn1 -lroken -ldes
+
+ # SSL definitions (required if SSL_ENABLE or CCLIENT_SSL_ENABLE set)
+ #
+@@ -121,8 +121,8 @@ DB_INCLUDE=
+ DB_LIBS=-ldb
+
+ # Following suitable for FreeBSD with DB 4 package installed
+-#DB_INCLUDE=-I/usr/local/include/db4
+-#DB_LIBS=-L/usr/local/lib -ldb4
++DB_INCLUDE=-I/usr/pkg/include/db4
++DB_LIBS=-L/usr/pkg/lib -ldb4
+
+ ############################################################################
+
+@@ -143,7 +143,7 @@ RW_GROUP = prayer
+ # Default configuration and permissions does not allow prayer user to
+ # update prayer configuration file.
+
+-PREFIX = /usr/local/prayer
++# PREFIX = /usr/local/prayer
+ RO_USER = root
+ RO_GROUP = prayer
+
diff --git a/mail/prayer/patches/patch-ab b/mail/prayer/patches/patch-ab
new file mode 100644
index 00000000000..47da484909c
--- /dev/null
+++ b/mail/prayer/patches/patch-ab
@@ -0,0 +1,31 @@
+$NetBSD: patch-ab,v 1.1.1.1 2002/12/27 12:52:07 abs Exp $
+
+--- Makefile.orig Wed Oct 30 13:56:30 2002
++++ Makefile
+@@ -12,7 +12,7 @@ endif
+ all:
+ (cd files; $(MAKE) all)
+ (cd prayer; $(MAKE) all)
+- (cd accountd; $(MAKE) all)
++# (cd accountd; $(MAKE) all)
+
+ cert:
+ (cd files; $(MAKE) cert)
+@@ -23,7 +23,7 @@ install-cert:
+ install:
+ (cd files; $(MAKE) install)
+ (cd prayer; $(MAKE) install)
+- (cd accountd; $(MAKE) install)
++# (cd accountd; $(MAKE) install)
+ ifeq ($(strip $(RPM_BUILD)), true)
+ (cd files; $(MAKE) redhat-install-init.d)
+ endif
+@@ -44,7 +44,7 @@ clean:
+ rm -rf docs/*~ docs/\#*\#
+ (cd prayer; $(MAKE) clean)
+ (cd files; $(MAKE) clean)
+- (cd accountd; $(MAKE) clean)
++# (cd accountd; $(MAKE) clean)
+
+ distclean: clean
+ (cd files; $(MAKE) distclean)
diff --git a/mail/prayer/patches/patch-ac b/mail/prayer/patches/patch-ac
new file mode 100644
index 00000000000..ac369124777
--- /dev/null
+++ b/mail/prayer/patches/patch-ac
@@ -0,0 +1,18 @@
+$NetBSD: patch-ac,v 1.1.1.1 2002/12/27 12:52:07 abs Exp $
+
+--- files/Makefile.orig Wed Oct 30 14:08:03 2002
++++ files/Makefile
+@@ -54,11 +54,11 @@ install-cert:
+ fi
+
+ install-config: etc/prayer.cf
+- $(INSTALL) -D -o $(RO_USER) -g $(RO_GROUP) -m $(PUBLIC_FILE) \
++ $(INSTALL) -o $(RO_USER) -g $(RO_GROUP) -m $(PUBLIC_FILE) \
+ etc/prayer.cf ${BROOT}${PRAYER_CONFIG_FILE}
+
+ install-aconfig:
+- $(INSTALL) -D -o $(RO_USER) -g $(RO_GROUP) -m $(PUBLIC_FILE) \
++ $(INSTALL) -o $(RO_USER) -g $(RO_GROUP) -m $(PUBLIC_FILE) \
+ etc/prayer-accountd.cf ${BROOT}${ACCOUNTD_CONFIG_FILE}
+
+ install-motd:
diff --git a/mail/prayer/patches/patch-ad b/mail/prayer/patches/patch-ad
new file mode 100644
index 00000000000..46a7238828e
--- /dev/null
+++ b/mail/prayer/patches/patch-ad
@@ -0,0 +1,15 @@
+$NetBSD: patch-ad,v 1.1.1.1 2002/12/27 12:52:07 abs Exp $
+
+--- prayer/Makefile.orig Wed Oct 30 11:43:18 2002
++++ prayer/Makefile
+@@ -88,8 +88,8 @@ ifeq ($(strip $(CCLIENT_KERB_ENABLE)), t
+ SESSION_LIBS += $(KERB_LIBS)
+ endif
+
+-CFLAGS = $(BASECFLAGS) $(COMMON_SSL_INCLUDE) $(CCLIENT_INCLUDE)
+-LDFLAGS = $(BASELDFLAGS)
++CFLAGS += $(BASECFLAGS) $(COMMON_SSL_INCLUDE) $(CCLIENT_INCLUDE)
++LDFLAGS += $(BASELDFLAGS)
+
+ SHARED_OBJS = \
+ pool.o list.o assoc.o memblock.o buffer.o string.o config.o user_agent.o \