1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-24 00:45:52 +00:00

Fix cclient and imap-uw to use the latest UW beta and use the

bsd.port.mk SSL variables

Submitted by:	anders@fix.no
This commit is contained in:
Nick Sayer 2001-04-09 23:29:39 +00:00
parent 138b5db23b
commit 39e13470d4
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=41156
5 changed files with 46 additions and 57 deletions

View File

@ -1,26 +1,21 @@
--- src/osdep/unix/Makefile.orig Tue Mar 6 07:07:37 2001
+++ src/osdep/unix/Makefile Tue Apr 3 21:46:31 2001
@@ -28,10 +28,17 @@
--- src/osdep/unix/Makefile.orig Thu Apr 5 00:45:53 2001
+++ src/osdep/unix/Makefile Tue Apr 10 00:48:00 2001
@@ -28,10 +28,10 @@
# Extended flags needed for SSL. You may need to modify.
-SSLDIR=/usr/local/ssl
+.if ${OSVERSION} >= 400014
+SSLDIR=/usr
+SSLCERTS=$(PREFIX)/certs
+SSLINCLUDE=$(SSLDIR)/include/openssl
+SSLLIB=$(SSLDIR)/lib
+.else
+SSLDIR=$(PREFIX)
SSLCERTS=$(SSLDIR)/certs
-SSLCERTS=$(SSLDIR)/certs
-SSLINCLUDE=$(SSLDIR)/include
+SSLINCLUDE=$(SSLDIR)/include/openssl
SSLLIB=$(SSLDIR)/lib
+.endif
-SSLLIB=$(SSLDIR)/lib
+SSLDIR=$(OPENSSLBASE)
+SSLCERTS=$(PREFIX)/certs
+SSLINCLUDE=$(OPENSSLINC)
+SSLLIB=$(OPENSSLLIB)
SSLCRYPTO=-lcrypto
@@ -97,7 +104,7 @@
@@ -97,7 +97,7 @@
# Commands possibly overriden by the individual port
ARRC=ar rc
@ -29,7 +24,7 @@
LN=ln -s
RANLIB=ranlib
@@ -115,7 +122,7 @@
@@ -115,7 +115,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
@ -38,7 +33,7 @@
CAT=cat
MAKE=make
@@ -132,6 +139,10 @@
@@ -132,6 +132,10 @@
PASSWDTYPE=$(PASSWDTYPE) SSLTYPE=$(SSLTYPE)
@ -49,7 +44,7 @@
# Here if no make argument established
missing: osdep.h
@@ -212,13 +223,14 @@
@@ -212,13 +216,14 @@
BASECFLAGS="-g -Dconst="
bsf: # FreeBSD
@ -67,7 +62,7 @@
bsi: # BSD/i386
$(BUILD) `$(CAT) SPECIALS` OS=$@ \
@@ -752,15 +764,26 @@
@@ -762,15 +767,26 @@
# Build it!
@ -96,7 +91,7 @@
.c.o:
`$(CAT) CCTYPE` -c `$(CAT) CFLAGS` $*.c
@@ -769,6 +792,7 @@
@@ -779,6 +795,7 @@
clean:
sh -c '$(RM) auths.c crexcl.c flockbsd.c linkage.[ch] siglocal.c osdep*.[ch] *.o ARCHIVE *FLAGS *TYPE $(ARCHIVE) || true'
@ -104,7 +99,7 @@
# Dependencies
@@ -802,7 +826,7 @@
@@ -812,7 +829,7 @@
# OS-dependent
@ -113,7 +108,7 @@
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 crexcl.c flock.c flockbsd.c flcksafe.c fsync.c gethstid.c \
@@ -814,7 +838,12 @@
@@ -824,7 +841,12 @@
write.c sslstdio.c \
strerror.c strpbrk.c strstr.c strtok.c strtoul.c \
OSCFLAGS

View File

@ -6,7 +6,7 @@
#
PORTNAME= imap
PORTVERSION= 0104031813
PORTVERSION= 0104051333
CATEGORIES= mail
MASTER_SITES= ftp://ftp.cac.washington.edu/imap/%SUBDIR%/ \
ftp://ftp.funet.fi/pub/mirrors/ftp.cac.washington.edu/mail/%SUBDIR%/ \
@ -23,15 +23,13 @@ LIB_DEPENDS= c-client4.8:${PORTSDIR}/mail/cclient
.if defined(WITH_DRAC)
BUILD_DEPENDS= ${LOCALBASE}/lib/libdrac.a:${PORTSDIR}/mail/drac
.endif
.if defined(WITH_SSL)
USE_OPENSSL= yes
.endif
MAN8= ipopd.8 imapd.8
.if defined(WITH_SSL)
ALL_TARGET= bsf SSLTYPE=unix
.else
ALL_TARGET= bsf
.if defined(WITH_SSL)
MAKE_ARGS+= SSLTYPE=unix
USE_OPENSSL= yes
.endif
.include <bsd.port.pre.mk>
@ -70,7 +68,7 @@ post-install:
@${ECHO} "To create and install a new SSL certificate for imapd and ipop3d, type \"make"
@${ECHO} "cert\"."
@${ECHO}
@${ECHO} "Example inetd config for the SSL services:"
@${ECHO} "Example inetd config for SSL only services:"
@${ECHO}
@${ECHO} "pop3s stream tcp nowait root /usr/local/libexec/ipop3d ipop3d"
@${ECHO} "imaps stream tcp nowait root /usr/local/libexec/imapd imapd"

View File

@ -1,2 +1,2 @@
MD5 (imap-2001.BETA.SNAP-0104031813.tar.Z) = 327a8494019c07880072a855eb24060f
MD5 (imap-2001.BETA.SNAP-0104051333.tar.Z) = 81453371c29ce2c6b5aaca3a2f35dbc1
MD5 (imap-utils.tar.Z) = a6453029f201b32e9ed761e662c47b0f

View File

@ -1,6 +1,6 @@
--- src/osdep/unix/Makefile.orig Tue Mar 6 07:07:37 2001
+++ src/osdep/unix/Makefile Tue Apr 3 23:48:08 2001
@@ -22,16 +22,23 @@
--- src/osdep/unix/Makefile.orig Thu Apr 5 00:45:53 2001
+++ src/osdep/unix/Makefile Tue Apr 10 01:13:38 2001
@@ -22,16 +22,16 @@
EXTRAAUTHENTICATORS=
EXTRADRIVERS=mbox
@ -12,22 +12,17 @@
# Extended flags needed for SSL. You may need to modify.
-SSLDIR=/usr/local/ssl
+.if ${OSVERSION} >= 400014
+SSLDIR=/usr
+SSLCERTS=$(PREFIX)/certs
+SSLINCLUDE=$(SSLDIR)/include/openssl
+SSLLIB=$(SSLDIR)/lib
+.else
+SSLDIR=$(PREFIX)
SSLCERTS=$(SSLDIR)/certs
-SSLCERTS=$(SSLDIR)/certs
-SSLINCLUDE=$(SSLDIR)/include
+SSLINCLUDE=$(SSLDIR)/include/openssl
SSLLIB=$(SSLDIR)/lib
+.endif
-SSLLIB=$(SSLDIR)/lib
+SSLDIR=$(OPENSSLBASE)
+SSLCERTS=$(PREFIX)/certs
+SSLINCLUDE=$(OPENSSLINC)
+SSLLIB=$(OPENSSLLIB)
SSLCRYPTO=-lcrypto
@@ -60,7 +67,7 @@
@@ -60,7 +60,7 @@
# AFSLDFLAGS may also need -L/usr/ucblib -lucb
DCECFLAGS= -DDCE_MINIMAL -DPASSWD_OVERRIDE=\"/opt/pop3/passwd/passwd\"
DCELDFLAGS= -ldce
@ -36,7 +31,7 @@
# Build parameters normally set by the individual port
@@ -97,7 +104,7 @@
@@ -97,7 +97,7 @@
# Commands possibly overriden by the individual port
ARRC=ar rc
@ -45,7 +40,7 @@
LN=ln -s
RANLIB=ranlib
@@ -115,7 +122,7 @@
@@ -115,7 +115,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
@ -54,7 +49,7 @@
CAT=cat
MAKE=make
@@ -198,6 +205,15 @@
@@ -198,6 +198,15 @@
BASECFLAGS="-g -B/usr/lib/big/ -Dvoid=char -Dconst=" \
RANLIB=true ARRC="ar -rc"
@ -70,7 +65,7 @@
bs3: # BSD/i386 3.0 or higher
$(BUILD) `$(CAT) SPECIALS` OS=bsi \
CHECKPW=bsi LOGINPW=bsi CRXTYPE=nfs \
@@ -213,12 +229,13 @@
@@ -213,12 +222,13 @@
bsf: # FreeBSD
$(BUILD) `$(CAT) SPECIALS` OS=$@ \
@ -87,7 +82,7 @@
bsi: # BSD/i386
$(BUILD) `$(CAT) SPECIALS` OS=$@ \
@@ -754,7 +771,7 @@
@@ -764,7 +774,7 @@
build: clean once $(ARCHIVE)

View File

@ -1,6 +1,6 @@
--- src/imapd/imapd.c.old Wed Apr 4 00:31:43 2001
+++ src/imapd/imapd.c Wed Apr 4 00:34:15 2001
@@ -29,6 +29,11 @@
--- src/imapd/imapd.c.old Tue Apr 10 00:56:28 2001
+++ src/imapd/imapd.c Tue Apr 10 00:59:08 2001
@@ -29,6 +29,12 @@
#include "c-client.h"
#include <sys/stat.h>
@ -9,10 +9,11 @@
+#include <arpa/inet.h>
+#include <stdlib.h>
+#endif /* DRAC_AUTH */
+
#define CRLF PSOUT ("\015\012") /* primary output terpri */
@@ -171,6 +176,12 @@
@@ -172,6 +178,12 @@
/* Global storage */
@ -22,10 +23,10 @@
+extern char *getenv ();
+#endif /* DRAC_AUTH */
+
char *version = "2001.297"; /* version number of this server */
char *version = "2001.298"; /* version number of this server */
time_t alerttime = 0; /* time of last alert */
time_t sysalerttime = 0; /* time of last system alert */
@@ -1160,6 +1171,45 @@
@@ -1161,6 +1173,45 @@
lasterror ());
return;
}