summaryrefslogtreecommitdiff
path: root/mail
diff options
context:
space:
mode:
authorKelly Yancey <kbyanc@FreeBSD.org>2000-07-17 08:19:34 +0000
committerKelly Yancey <kbyanc@FreeBSD.org>2000-07-17 08:19:34 +0000
commit700098a64c536fe031b99ffd27b17bc6bf900f39 (patch)
tree24457025db08cf7155a17bcd26c50ff883416667 /mail
parentUpdate to 3.4.4. (diff)
Update the pine4 port to utilize the new cclient port.
Pine has historically built against an internal copy of the c-client library, however c-client development has progressed beyond what is shipped with pine. (It would appear that all new development work is being done via UW's imap server codebase.) This change allows pine to utilize improvements/bugfixes in the c-client library. In addition, the cclient port builds c-client as a a shared library. Now, pine links against this shared library. As a result, pine binaries are approximately 550k smaller. On the other hand, the c-client library itself is a good 650k. The real benefit here is that c-client may be shared amongst multiple binaries (i.e. imap-uw, php, and perl scripts using the p5-Mail-CClient module), thereby potentially reducing the overall disk and memory usage. PR: 19731 Submitted by: kbyanc@posi.net Reviewed by: will
Notes
Notes: svn path=/head/; revision=30738
Diffstat (limited to 'mail')
-rw-r--r--mail/pine4/Makefile2
-rw-r--r--mail/pine4/files/patch-al44
-rw-r--r--mail/pine4/files/patch-ax28
-rw-r--r--mail/pine4/files/patch-ay18
-rw-r--r--mail/pine4/files/patch-az77
5 files changed, 158 insertions, 11 deletions
diff --git a/mail/pine4/Makefile b/mail/pine4/Makefile
index 3dfb296277ba..dbc379a3bf4d 100644
--- a/mail/pine4/Makefile
+++ b/mail/pine4/Makefile
@@ -20,6 +20,8 @@ Y2K= http://www.washington.edu/pine/QandA/sysadmins.html#Millenium
MAN1= pine.1 pico.1 pilot.1
+LIB_DEPENDS= c-client4.7:${PORTSDIR}/mail/cclient
+
# Define "WITH_LDAP" to include ldap support.
# If the ldap port is installed somewhere other than /usr/local, define
# LDAP_PREFIX as well.
diff --git a/mail/pine4/files/patch-al b/mail/pine4/files/patch-al
index a55e334900a9..e47b0ff84392 100644
--- a/mail/pine4/files/patch-al
+++ b/mail/pine4/files/patch-al
@@ -1,5 +1,5 @@
---- build.orig Fri Feb 19 18:30:54 1999
-+++ build Wed Oct 13 17:53:42 1999
+--- build.orig Mon Nov 15 14:16:25 1999
++++ build Wed Jul 5 21:22:26 2000
@@ -80,8 +80,9 @@
pine The Pine mailer. Once compiled this should work just fine on
your system with no other files than this binary, and no
@@ -12,22 +12,36 @@
pico The standalone editor similar to the Pine message composer.
This is a very simple straight forward text editor.
-@@ -278,10 +279,10 @@
+@@ -277,17 +278,17 @@
+ esac
+ fi
- if [ -s c-client ] ; then rm -f c-client ; fi
- ln -s imap/c-client c-client
+- if [ -s c-client ] ; then rm -f c-client ; fi
+- ln -s imap/c-client c-client
- if [ -s mtest ] ; then rm -f mtest ; fi
- ln -s imap/mtest mtest
- if [ -s imapd ] ; then rm -f imapd ; fi
- ln -s imap/imapd imapd
+- echo "Making c-client library, mtest and imapd"
+- eval echo make "$makeargs" "$K1" "$K2" $ccltarg
+- cd $PHOME/imap
+- eval make "$makeargs" "$K1" "$K2" $ccltarg
+- echo ''
++# if [ -s c-client ] ; then rm -f c-client ; fi
++# ln -s imap/c-client c-client
+# if [ -s mtest ] ; then rm -f mtest ; fi
+# ln -s imap/mtest mtest
+# if [ -s imapd ] ; then rm -f imapd ; fi
+# ln -s imap/imapd imapd
- echo "Making c-client library, mtest and imapd"
- eval echo make "$makeargs" "$K1" "$K2" $ccltarg
- cd $PHOME/imap
-@@ -303,14 +304,14 @@
++# echo "Making c-client library, mtest and imapd"
++# eval echo make "$makeargs" "$K1" "$K2" $ccltarg
++# cd $PHOME/imap
++# eval make "$makeargs" "$K1" "$K2" $ccltarg
++# echo ''
+
+ echo "Making Pico and Pilot"
+ cd $PHOME/pico
+@@ -304,14 +305,14 @@
cd $PHOME/bin
rm -f pine mtest imapd pico pilot
if [ -s ../pine/pine ] ; then ln ../pine/pine pine ; fi
@@ -45,8 +59,16 @@
case $maketarg in
mnt) echo "Fixing stacksizes ..."
fixstk 64K bin/pine bin/pico bin/imapd bin/mtest bin/pilot
-@@ -325,10 +326,10 @@
- make clean
+@@ -321,15 +322,15 @@
+
+
+ clean) # This only sort of works
+- echo "Cleaning c-client and imapd"
+- cd $PHOME/imap
+- make clean
++# echo "Cleaning c-client and imapd"
++# cd $PHOME/imap
++# make clean
echo "Cleaning Pine"
cd $PHOME/pine
- make -f makefile.ult clean
diff --git a/mail/pine4/files/patch-ax b/mail/pine4/files/patch-ax
new file mode 100644
index 000000000000..5e7870db660d
--- /dev/null
+++ b/mail/pine4/files/patch-ax
@@ -0,0 +1,28 @@
+--- pine/makefile.bsf.orig Thu Aug 27 09:49:51 1998
++++ pine/makefile.bsf Wed Jul 5 22:10:10 2000
+@@ -50,7 +50,7 @@
+ PROFILE= # -pg
+ DEBUG= -DDEBUG # -g
+
+-CCLIENTDIR= ../c-client
++CCLIENTDIR= $(PREFIX)/include/c-client
+ PICODIR= ../pico
+
+ # Only need to uncomment next two lines if you run make from this directory
+@@ -61,12 +61,11 @@
+ LDAPOFILES= addrbook.o adrbkcmd.o args.o bldaddr.o init.o \
+ other.o pine.o takeaddr.o
+
+-STDLIBS= -ltermlib
+-LOCLIBS= $(PICODIR)/libpico.a $(CCLIENTDIR)/c-client.a
+-LIBS= $(EXTRALIBES) $(LOCLIBS) $(LDAPLIBS) $(STDLIBS) \
+- `cat $(CCLIENTDIR)/LDFLAGS`
++STDLIBS= -ltermlib -lpam -L$(PREFIX)/lib -lc-client4
++LOCLIBS= $(PICODIR)/libpico.a
++LIBS= $(EXTRALIBES) $(LOCLIBS) $(LDAPLIBS) $(STDLIBS)
+
+-STDCFLAGS= -DBSDI -DSYSTYPE=\"BSF\" -DMOUSE
++STDCFLAGS= -DBSDI -DSYSTYPE=\"BSF\" -DMOUSE -I/usr/local/include
+ CFLAGS= $(OPTIMIZE) $(PROFILE) $(DEBUG) $(EXTRACFLAGS) $(LDAPCFLAGS) \
+ $(STDCFLAGS)
+
diff --git a/mail/pine4/files/patch-ay b/mail/pine4/files/patch-ay
new file mode 100644
index 000000000000..a84564c72ad5
--- /dev/null
+++ b/mail/pine4/files/patch-ay
@@ -0,0 +1,18 @@
+--- pine/headers.h.orig Tue Feb 9 14:53:20 1999
++++ pine/headers.h Wed Jul 5 21:57:02 2000
+@@ -59,12 +59,12 @@
+ #include "../pico/headers.h"
+
+
+-#include "../c-client/mail.h"
++#include "c-client/mail.h"
+
+ #include "os.h"
+
+-#include "../c-client/rfc822.h"
+-#include "../c-client/misc.h"
++#include "c-client/rfc822.h"
++#include "c-client/misc.h"
+
+ #ifdef ENABLE_LDAP
+
diff --git a/mail/pine4/files/patch-az b/mail/pine4/files/patch-az
new file mode 100644
index 000000000000..ac90942e3645
--- /dev/null
+++ b/mail/pine4/files/patch-az
@@ -0,0 +1,77 @@
+--- pine/osdep/os-bsf.h.orig Wed Oct 7 14:51:40 1998
++++ pine/osdep/os-bsf.h Wed Jul 5 22:03:54 2000
+@@ -40,7 +40,7 @@
+ #ifndef _OS_INCLUDED
+ #define _OS_INCLUDED
+
+-#include "../c-client/osdep.h"
++#include "c-client/osdep.h"
+
+
+ /*----------------------------------------------------------------------
+--- pine/abookcpy.c.orig Wed Jul 5 22:13:36 2000
++++ pine/abookcpy.c Wed Jul 5 22:13:56 2000
+@@ -63,7 +63,7 @@
+ FILE *fp;
+ int trimsize;
+
+-#include "../c-client/linkage.c"
++#include "c-client/linkage.c"
+
+ trimsize = parse_args(argc, argv, &local, &remote);
+
+--- pine/pine.c.orig Wed Jul 5 22:16:28 2000
++++ pine/pine.c Mon Sep 20 16:17:58 1999
+@@ -40,7 +40,7 @@
+ ----------------------------------------------------------------------*/
+
+ #include "headers.h"
+-#include "../c-client/imap4r1.h"
++#include "c-client/imap4r1.h"
+
+
+ /*
+@@ -299,7 +299,7 @@
+ #endif
+
+ /*------- Set up c-client drivers -------*/
+-#include "../c-client/linkage.c"
++#include "c-client/linkage.c"
+
+ /*------- ... then tune the drivers just installed -------*/
+ #ifdef DOS
+--- pine/adrbklib.c.orig Wed Jul 5 22:18:28 2000
++++ pine/adrbklib.c Wed Jul 5 22:18:46 2000
+@@ -41,7 +41,7 @@
+
+ #include "headers.h"
+ #include "adrbklib.h"
+-#include "../c-client/imap4r1.h" /* for LEVELSTATUS() */
++#include "c-client/imap4r1.h" /* for LEVELSTATUS() */
+
+ /*
+ * We don't want any end of line fixups to occur, so include "b" in DOS modes.
+--- pine/mailindx.c.orig Wed Jul 5 22:19:38 2000
++++ pine/mailindx.c Wed Jul 5 22:19:49 2000
+@@ -50,7 +50,7 @@
+ ====*/
+
+ #include "headers.h"
+-#include "../c-client/imap4r1.h"
++#include "c-client/imap4r1.h"
+
+ /*
+ * Some common Command Bindings
+--- pine/send.c.orig Wed Jul 5 22:21:18 2000
++++ pine/send.c Wed Jul 5 22:21:37 2000
+@@ -47,8 +47,8 @@
+ ====*/
+
+ #include "headers.h"
+-#include "../c-client/smtp.h"
+-#include "../c-client/nntp.h"
++#include "c-client/smtp.h"
++#include "c-client/nntp.h"
+
+
+ #ifndef TCPSTREAM