summaryrefslogtreecommitdiff
path: root/mail/cclient/files
diff options
context:
space:
mode:
Diffstat (limited to 'mail/cclient/files')
-rw-r--r--mail/cclient/files/MESSAGE.PAM9
-rw-r--r--mail/cclient/files/patch-aa21
-rw-r--r--mail/cclient/files/patch-ab113
-rw-r--r--mail/cclient/files/patch-ac19
4 files changed, 162 insertions, 0 deletions
diff --git a/mail/cclient/files/MESSAGE.PAM b/mail/cclient/files/MESSAGE.PAM
new file mode 100644
index 000000000000..a5baa63b4f8d
--- /dev/null
+++ b/mail/cclient/files/MESSAGE.PAM
@@ -0,0 +1,9 @@
+= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
+PAM authentication support is now compiled in by default; you may need to add
+the following lines to /etc/pam.conf:
+
+imap auth required pam_unix.so try_first_pass
+imap account required pam_unix.so try_first_pass
+pop auth required pam_unix.so try_first_pass
+pop account required pam_unix.so try_first_pass
+= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
diff --git a/mail/cclient/files/patch-aa b/mail/cclient/files/patch-aa
new file mode 100644
index 000000000000..4615f235b3fb
--- /dev/null
+++ b/mail/cclient/files/patch-aa
@@ -0,0 +1,21 @@
+--- src/osdep/unix/os_bsi.h.orig Sat Oct 19 20:30:04 1996
++++ src/osdep/unix/os_bsi.h Sun May 24 10:46:33 1998
+@@ -37,7 +37,18 @@
+ #include <unistd.h>
+ #include <string.h>
+ #include <sys/types.h>
++
++/*
++ * FreeBSD v3.x and onward whines about <sys/dir.h> being obsolete, so switch
++ * to POSIX semantics.
++ */
++#if __FreeBSD__ >= 3
++#include <dirent.h>
++#define direct dirent
++#else
+ #include <sys/dir.h>
++#endif
++
+ #include <fcntl.h>
+ #include <syslog.h>
+ #include <sys/file.h>
diff --git a/mail/cclient/files/patch-ab b/mail/cclient/files/patch-ab
new file mode 100644
index 000000000000..51802e3c8345
--- /dev/null
+++ b/mail/cclient/files/patch-ab
@@ -0,0 +1,113 @@
+--- src/osdep/unix/Makefile.orig Mon Jul 3 22:32:37 2000
++++ src/osdep/unix/Makefile Mon Jul 3 22:33:30 2000
+@@ -86,7 +86,7 @@
+ # Commands possibly overriden by the individual port
+
+ ARRC=ar rc
+-CC=cc
++#CC=cc
+ LN=ln -s
+ RANLIB=ranlib
+
+@@ -104,7 +104,7 @@
+ dummy.o pseudo.o netmsg.o flstring.o fdstring.o \
+ rfc822.o nntp.o smtp.o imap4r1.o pop3.o \
+ unix.o mbox.o mbx.o mmdf.o tenex.o mtx.o news.o phile.o mh.o mx.o
+-CFLAGS=$(BASECFLAGS) $(EXTRACFLAGS)
++CFLAGS+=$(BASECFLAGS) $(EXTRACFLAGS)
+ MAKE=make
+ MV=mv
+ RM=rm -rf
+@@ -119,6 +119,10 @@
+ PASSWDTYPE=$(PASSWDTYPE) SPECIALAUTHENTICATORS="$(SPECIALAUTHENTICATORS)"
+ BUILD=$(MAKE) build $(BUILDOPTIONS)
+
++# Need this for the shared library rule to work correctly
++.SUFFIXES: .o .so
++SOFILES=${BINARIES:.o=.so}
++
+ # Here if no make argument established
+
+ missing: osdep.h
+@@ -178,6 +182,15 @@
+ BASECFLAGS="-g -B/usr/lib/big/ -Dvoid=char -Dconst= -DNFSKLUDGE" \
+ RANLIB=true ARRC="ar -rc"
+
++bfp: # FreeBSD Pluggable Authentication Modules
++ $(BUILD) `cat EXTRASPECIALS` OS=bsi SIGTYPE=psx CHECKPW=pam \
++ SPOOLDIR=/var \
++ ACTIVEFILE=/usr/local/news/lib/active \
++ RSHPATH=/usr/bin/rsh \
++ LOCKPGM=$(PREFIX)/libexec/mlock \
++ BASECFLAGS="-DNFSKLUDGE" \
++ BASELDFLAGS="-lpam -lcrypt"
++
+ bs3: # BSD/i386 3.0 or higher
+ $(BUILD) `cat EXTRASPECIALS` OS=bsi CHECKPW=bsi LOGINPW=bsi \
+ SPOOLDIR=/var NEWSSPOOL=/var/news/spool \
+@@ -194,7 +207,8 @@
+ SPOOLDIR=/var \
+ ACTIVEFILE=/usr/local/news/lib/active \
+ RSHPATH=/usr/bin/rsh \
+- BASECFLAGS="-g -O -pipe -DNFSKLUDGE" \
++ LOCKPGM=$(PREFIX)/libexec/mlock \
++ BASECFLAGS="-DNFSKLUDGE" \
+ BASELDFLAGS="-lcrypt"
+
+ bsi: # BSD/i386
+@@ -627,19 +641,31 @@
+
+ # Build it!
+
+-build: clean once $(ARCHIVE)
++build: clean once $(ARCHIVE) $(SHLIBNAME)
+
+-all: $(ARCHIVE)
++all: $(ARCHIVE) $(SHLIBNAME)
+
+ $(ARCHIVE): $(BINARIES)
+ sh -c '$(RM) $(ARCHIVE) || true'
+ @cat ARCHIVE
+ @$(SH) ARCHIVE
+
++$(SHLIBNAME): $(SOFILES)
++.if $(PORTOBJFORMAT) == "elf"
++ ld -shared -x -soname $(SHLIBNAME) -o $(SHLIBNAME) $(SOFILES)
++.else
++ ld -Bshareable -x -o $(SHLIBNAME) $(SOFILES)
++.endif
++ ln -s $(SHLIBNAME) lib$(SHLIBBASE).so
++
++.c.so: osdep.h
++ $(CC) -fpic -DPIC -c $(CFLAGS) ${@:.so=.c} -o $@
++
+ # Cleanup
+
+ clean:
+ sh -c '$(RM) auths.c flockbsd.c linkage.[ch] siglocal.c osdep*.[ch] *.o ARCHIVE *FLAGS *TYPE $(ARCHIVE) || true'
++ $(RM) *.so $(SHLIBNAME)
+
+
+ # Dependencies
+@@ -673,7 +699,7 @@
+
+ # OS-dependent
+
+-osdep.o:mail.h misc.h env.h fs.h ftl.h nl.h tcp.h \
++OSDEPS= mail.h misc.h env.h fs.h ftl.h nl.h tcp.h \
+ osdep.h env_unix.h tcp_unix.h \
+ osdep.c env_unix.c fs_unix.c ftl_unix.c nl_unix.c tcp_unix.c \
+ auths.c flock.c flockbsd.c flcksafe.c fsync.c gethstid.c \
+@@ -685,7 +711,12 @@
+ write.c \
+ strerror.c strpbrk.c strstr.c strtok.c strtoul.c \
+ OSCFLAGS
++
++osdep.o: $(OSDEPS)
+ $(CC) $(CFLAGS) `cat OSCFLAGS` -c osdep.c
++
++osdep.so: $(OSDEPS)
++ $(CC) -fpic -DPIC -c $(CFLAGS) `cat OSCFLAGS` osdep.c -o $@
+
+ osdep.c: osdepbas.c osdepckp.c osdeplog.c
+ cat osdepbas.c osdepckp.c osdeplog.c > osdep.c
diff --git a/mail/cclient/files/patch-ac b/mail/cclient/files/patch-ac
new file mode 100644
index 000000000000..464a98cd60ec
--- /dev/null
+++ b/mail/cclient/files/patch-ac
@@ -0,0 +1,19 @@
+--- Makefile.orig Mon Nov 15 22:20:34 1999
++++ Makefile Sun Dec 19 14:52:58 1999
+@@ -49,6 +49,7 @@
+ # art AIX 2.2.1 for RT
+ # asv Altos SVR4
+ # aux A/UX
++# bfp FreeBSD with Pluggable Authentication Modules (PAM)
+ # bs3 BSD/i386 3.0 and higher
+ # bsd generic BSD 4.3 (as in ancient 1980s version)
+ # bsf FreeBSD
+@@ -293,7 +294,7 @@
+
+ # Note on SCO you may have to set LN to "ln".
+
+-a32 a41 aix bs3 bsf bsi bso d-g d54 do4 drs epx gas gh9 ghp gs5 gso gsu gul hpp hpx lnp lyn mct mnt neb nxt nx3 osf os4 ptx qnx sc5 sco sgi sg6 shp sl4 sl5 slx snx sol sos uw2: an
++a32 a41 aix bfp bs3 bsf bsi bso d-g d54 do4 drs epx gas gh9 ghp gs5 gso gsu gul hpp hpx lnp lyn mct mnt neb nxt nx3 osf os4 ptx qnx sc5 sco sgi sg6 shp sl4 sl5 slx snx sol sos uw2: an
+ $(BUILD) OS=$@
+
+ # If you use sv4, you may find that it works to move it to use the an process.