Date: Mon, 25 Oct 1999 22:47:16 +0900 From: Akinori MUSHA aka knu <knu@idaemons.org> To: freebsd-ports@freebsd.org Cc: imap-uw@freebsd.ady.ro Subject: Re: ports/14359: Update port: mail/imap-uw Message-ID: <14356.24420.80474.13334F@archon.my.domain> In-Reply-To: In your message of "Mon, 25 Oct 1999 18:45:44 %2B0900" <14356.9928.366891.72159A@archon.my.domain> References: <14344.7145.148375.72159A@archon.my.domain> <14356.9928.366891.72159A@archon.my.domain>
next in thread | previous in thread | raw e-mail | index | archive | help
--Multipart_Mon_Oct_25_22:47:16_1999-1 Content-Type: text/plain; charset=US-ASCII Sorry, that was my screwup. I forgot gets() chomps LF at the EOL but fgets() does not. So I hacked up safegets() to correct this. Supersede the previous patch, thanks. -- / /__ __ / ) ) ) ) / http://www.idaemons.org/knu/ Akinori MUSHA aka / (_ / ( (__( mailto:knu@idaemons.org "We are but hungry.. Associated Ita-meshi Daemons!" http://www.idaemons.org/ --Multipart_Mon_Oct_25_22:47:16_1999-1 Content-Type: text/plain; charset=US-ASCII Content-Disposition: attachment; filename="imap-uw.diff" Content-Transfer-Encoding: 7bit Index: Makefile =================================================================== RCS file: /home/cvs/imap-uw/Makefile,v retrieving revision 1.1.1.1 retrieving revision 1.1.1.1.2.3 diff -u -r1.1.1.1 -r1.1.1.1.2.3 --- Makefile 1999/10/24 18:13:26 1.1.1.1 +++ Makefile 1999/10/25 13:05:26 1.1.1.1.2.3 @@ -1,17 +1,17 @@ # New ports collection makefile for: imap-uw -# Version required: 4.5 +# Version required: 4.6 # Date created: 9 Jan 1997 # Whom: pst # # $FreeBSD: ports/mail/imap-uw/Makefile,v 1.30 1999/09/18 17:29:19 steve Exp $ # -DISTNAME= imap-4.5 -PKGNAME= imap-uw-4.5 +DISTNAME= imap-4.6 +PKGNAME= imap-uw-4.6 CATEGORIES= mail -MASTER_SITES= ftp://ftp.cac.washington.edu/imap/old/ \ - ftp://ftp.funet.fi/pub/mirrors/ftp.cac.washington.edu/mail/old/ \ - ftp://ftp.uni-halle.de/pub/mail/pine/ +MASTER_SITES= ftp://ftp.cac.washington.edu/imap/ \ + http://mirror.nucba.ac.jp/mirror/imap/ \ + ftp://ftp.funet.fi/pub/mirrors/ftp.cac.washington.edu/mail/ EXTRACT_SUFX= .tar.Z MAINTAINER= imap-uw@freebsd.ady.ro @@ -36,6 +36,9 @@ post-configure: @${ECHO_MSG} ">> The c-client shared library will be named ${SHLIBNAME}" +post-patch: + @${CP} ${FILESDIR}/safegets.[ch] ${WRKSRC}/src/mtest/ + do-install: ${INSTALL_DATA} ${WRKSRC}/c-client/mail.h ${PREFIX}/include ${INSTALL_DATA} ${WRKSRC}/c-client/rfc822.h ${PREFIX}/include @@ -53,6 +56,8 @@ ${WRKSRC}/src/imapd/imapd.8c ${PREFIX}/man/man8/imapd.8 ${INSTALL_MAN} \ ${WRKSRC}/src/ipopd/ipopd.8c ${PREFIX}/man/man8/ipopd.8 + + @${CAT} ${PKGMESSAGE} post-install: ${SETENV} OBJFORMAT=${PORTOBJFORMAT} ${LDCONFIG} -m ${PREFIX}/lib Index: files/md5 =================================================================== RCS file: /home/cvs/imap-uw/files/md5,v retrieving revision 1.1.1.1 retrieving revision 1.1.1.1.2.1 diff -u -r1.1.1.1 -r1.1.1.1.2.1 --- md5 1999/10/24 18:13:26 1.1.1.1 +++ md5 1999/10/24 18:23:53 1.1.1.1.2.1 @@ -1,2 +1 @@ -MD5 (imap-4.5.tar.Z) = 24e5ff01e0f14ecc647f10a9148a9dbd -SIZE (imap-4.5.tar.Z) = 1656569 +MD5 (imap-4.6.tar.Z) = d5d7e5ebbdace57eed7706d4fd2ffc09 Index: files/safegets.c =================================================================== RCS file: safegets.c diff -N safegets.c --- /dev/null Mon Oct 25 22:27:10 1999 +++ /tmp/cvsD36910 Mon Oct 25 22:34:39 1999 @@ -0,0 +1,19 @@ +#include <stdio.h> +#include <string.h> +#include "mail.h" /* MAILTMPLEN */ + +static char buf[MAILTMPLEN]; + +char *safegets(char *buf) { + char *p; + + if (!fgets(buf, MAILTMPLEN, stdin)) { + return NULL; + } + + if (NULL != (p = strchr(buf, '\n'))) { + *p = '\0'; + } + + return buf; +} Index: files/safegets.h =================================================================== RCS file: safegets.h diff -N safegets.h --- /dev/null Mon Oct 25 22:27:10 1999 +++ /tmp/cvst36910 Mon Oct 25 22:34:39 1999 @@ -0,0 +1 @@ +char *safegets(char *buf); Index: patches/patch-ab =================================================================== RCS file: /home/cvs/imap-uw/patches/patch-ab,v retrieving revision 1.1.1.1 retrieving revision 1.1.1.1.2.2 diff -u -r1.1.1.1 -r1.1.1.1.2.2 --- patch-ab 1999/10/24 18:13:26 1.1.1.1 +++ patch-ab 1999/10/25 09:25:22 1.1.1.1.2.2 @@ -1,6 +1,6 @@ ---- src/osdep/unix/Makefile.orig Wed Jan 27 01:17:39 1999 -+++ src/osdep/unix/Makefile Sat Feb 27 17:16:00 1999 -@@ -100,7 +100,7 @@ +--- src/osdep/unix/Makefile.orig Thu Sep 30 14:52:54 1999 ++++ src/osdep/unix/Makefile Mon Oct 25 16:49:02 1999 +@@ -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 @@ -9,8 +9,8 @@ MAKE=make MV=mv RM=rm -rf -@@ -115,6 +115,10 @@ - PASSWDTYPE=$(PASSWDTYPE) +@@ -119,6 +119,10 @@ + PASSWDTYPE=$(PASSWDTYPE) SPECIALAUTHENTICATORS="$(SPECIALAUTHENTICATORS)" BUILD=$(MAKE) build $(BUILDOPTIONS) +# Need this for the shared library rule to work correctly @@ -20,16 +20,23 @@ # Here if no make argument established missing: osdep.h -@@ -190,7 +194,7 @@ +@@ -191,11 +195,13 @@ + + bsf: # FreeBSD + $(BUILD) `cat EXTRASPECIALS` OS=bsi SIGTYPE=psx \ ++ CHECKPW=pam \ SPOOLDIR=/var \ ACTIVEFILE=/usr/local/news/lib/active \ RSHPATH=/usr/bin/rsh \ - BASECFLAGS="-g -O -pipe -DNFSKLUDGE" \ +- BASELDFLAGS="-lcrypt" ++ LOCKPGM=/etc/mlock \ + BASECFLAGS="-DNFSKLUDGE -DIGNORE_LOCK_EACCES_ERRORS" \ - BASELDFLAGS="-lcrypt" ++ BASELDFLAGS="-lpam -lcrypt" bsi: # BSD/i386 -@@ -606,19 +610,31 @@ + $(BUILD) `cat EXTRASPECIALS` OS=$@ \ +@@ -620,19 +626,31 @@ # Build it! @@ -63,7 +70,7 @@ # Dependencies -@@ -652,7 +668,7 @@ +@@ -666,7 +684,7 @@ # OS-dependent @@ -72,7 +79,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 flock.c flockbsd.c flcksafe.c fsync.c gethstid.c \ -@@ -664,7 +680,12 @@ +@@ -678,7 +696,12 @@ write.c \ strerror.c strpbrk.c strstr.c strtok.c strtoul.c \ OSCFLAGS Index: patches/patch-ac =================================================================== RCS file: /home/cvs/imap-uw/patches/patch-ac,v retrieving revision 1.1.1.1 retrieving revision 1.1.1.1.2.2 diff -u -r1.1.1.1 -r1.1.1.1.2.2 --- patch-ac 1999/10/24 18:13:26 1.1.1.1 +++ patch-ac 1999/10/25 12:46:28 1.1.1.1.2.2 @@ -1,5 +1,5 @@ ---- src/imapd/Makefile.orig Sat Nov 21 05:26:03 1998 -+++ src/imapd/Makefile Sat Feb 27 17:19:33 1999 +--- src/imapd/Makefile.orig Tue Oct 5 15:13:35 1999 ++++ src/imapd/Makefile Sat Oct 16 03:17:51 1999 @@ -31,9 +31,9 @@ # WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. @@ -12,10 +12,10 @@ SHELL= /bin/sh # The "Manage Mail" menu item of Netscape Messager puts up an error message -@@ -56,7 +56,7 @@ - CC = `cat $C/CCTYPE` +@@ -59,7 +59,7 @@ CFLAGS = -I$C `cat $C/CFLAGS` $(EXTRACFLAGS) -DANOFILE=\"$(ANO)\" \ - -DALERTFILE=\"$(ALERT)\" -DUSERALERTFILE=\"$(USERALERT)\" + -DALERTFILE=\"$(ALERT)\" -DUSERALERTFILE=\"$(USERALERT)\" \ + -DWEBEXPRESS_BRAIN_DAMAGE=1 -LDFLAGS = $(CCLIENTLIB) `cat $C/LDFLAGS` +LDFLAGS = -L$C -l$(SHLIBBASE) `cat $C/LDFLAGS` @@ -31,15 +31,4 @@ +LDFLAGS = -L$C -l$(SHLIBBASE) `cat $C/LDFLAGS` ipopd: ipop2d ipop3d - ---- src/mtest/Makefile.orig Wed Apr 15 01:42:04 1998 -+++ src/mtest/Makefile Sat Oct 10 21:48:18 1998 -@@ -39,7 +39,7 @@ - - CC = `cat $C/CCTYPE` - CFLAGS = -I$C `cat $C/CFLAGS` --LDFLAGS = $(CCLIENTLIB) `cat $C/LDFLAGS` -+LDFLAGS = -L$C -l$(SHLIBBASE) `cat $C/LDFLAGS` - - all: mtest Index: patches/patch-ad =================================================================== RCS file: patch-ad diff -N patch-ad --- /dev/null Mon Oct 25 22:27:10 1999 +++ /tmp/cvsB36910 Mon Oct 25 22:34:39 1999 @@ -0,0 +1,22 @@ +--- src/mtest/Makefile.orig Wed Apr 15 07:42:04 1998 ++++ src/mtest/Makefile Mon Oct 25 21:37:51 1999 +@@ -39,14 +39,16 @@ + + CC = `cat $C/CCTYPE` + CFLAGS = -I$C `cat $C/CFLAGS` +-LDFLAGS = $(CCLIENTLIB) `cat $C/LDFLAGS` ++LDFLAGS = -L$C -l$(SHLIBBASE) `cat $C/LDFLAGS` + + all: mtest + +-mtest: $(CCLIENTLIB) mtest.o +- $(CC) $(CFLAGS) -o mtest mtest.o $(LDFLAGS) ++mtest: $(CCLIENTLIB) mtest.o safegets.o ++ $(CC) $(CFLAGS) -o mtest mtest.o safegets.o $(LDFLAGS) + + mtest.o: $C/mail.h $C/misc.h $C/osdep.h $C/rfc822.h $C/smtp.h $C/nntp.h ++ ++safegets.o: $C/mail.h + + $(CCLIENTLIB): + cd $C;make Index: patches/patch-ae =================================================================== RCS file: patch-ae diff -N patch-ae --- /dev/null Mon Oct 25 22:27:10 1999 +++ /tmp/cvsP36910 Mon Oct 25 22:34:39 1999 @@ -0,0 +1,28 @@ +--- src/mtest/mtest.c.orig Sat May 29 14:07:06 1999 ++++ src/mtest/mtest.c Mon Oct 25 21:36:50 1999 +@@ -49,6 +49,7 @@ + #include "rfc822.h" + #include "smtp.h" + #include "nntp.h" ++#include "safegets.h" + + /* Excellent reasons to hate ifdefs, and why my real code never uses them */ + +@@ -528,7 +529,7 @@ + void prompt (char *msg,char *txt) + { + printf ("%s",msg); +- gets (txt); ++ safegets (txt); + } + + /* Interfaces to C-client */ +@@ -713,7 +714,7 @@ + puts (" Msg (end with a line with only a '.'):"); + body->type = TYPETEXT; + *text = '\0'; +- while (gets (line)) { ++ while (safegets (line)) { + if (line[0] == '.') { + if (line[1] == '\0') break; + else strcat (text,"."); Index: pkg/DESCR =================================================================== RCS file: /home/cvs/imap-uw/pkg/DESCR,v retrieving revision 1.1.1.1 retrieving revision 1.1.1.1.2.1 diff -u -r1.1.1.1 -r1.1.1.1.2.1 --- DESCR 1999/10/24 18:13:26 1.1.1.1 +++ DESCR 1999/10/24 18:25:02 1.1.1.1.2.1 @@ -12,9 +12,9 @@ pop3 stream tcp nowait root /usr/local/libexec/ipop3d ipop3d imap4 stream tcp nowait root /usr/local/libexec/imapd imapd -You may also have to edit your /etc/services (or Yellow Pages, -NetInfo, etc. equivalent) to register these services, such as: +and /etc/pam.conf file with lines such as: -pop 109/tcp -pop3 110/tcp -imap4 143/tcp [imap2 and imap4 share the same port again] +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 Index: pkg/MESSAGE =================================================================== RCS file: MESSAGE diff -N MESSAGE --- /dev/null Mon Oct 25 22:27:10 1999 +++ /tmp/cvsL36910 Mon Oct 25 22:34:39 1999 @@ -0,0 +1,9 @@ +### +As of imap-uw 4.6 and later, you need to edit /etc/pam.conf to add support +for IMAP/POP. To do so, add the following four lines to this file: + +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 +### --Multipart_Mon_Oct_25_22:47:16_1999-1-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?14356.24420.80474.13334F>