Date: Mon, 18 Jun 2001 01:48:23 +0200 (CEST) From: Anders Nordby <anders@fix.no> To: FreeBSD-gnats-submit@freebsd.org Subject: ports/28244: New port: mail/dkimap4 Message-ID: <20010617234823.2D8EC3C93@totem.fix.no>
next in thread | raw e-mail | index | archive | help
>Number: 28244 >Category: ports >Synopsis: New port: mail/dkimap4 >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports >State: open >Quarter: >Keywords: >Date-Required: >Class: maintainer-update >Submitter-Id: current-users >Arrival-Date: Sun Jun 17 16:50:02 PDT 2001 >Closed-Date: >Last-Modified: >Originator: Anders Nordby >Release: FreeBSD 4.3-STABLE i386 >Organization: Fluxpod Information eXchange >Environment: kern.osreldate: 430000 (4.3-STABLE) kern.osreldate: 500018 (5.0-20010420-CURRENT) >Description: New port of dkimap4, a IMAP4rev1 and POP3 server from the DBOX BBS package. >How-To-Repeat: <Code/input/activities to reproduce the problem (multiple lines)> >Fix: # This is a shell archive. Save it in a file, remove anything before # this line, and then unpack it by entering "sh file". Note, it may # create directories; files and directories will be owned by you and # have default permissions. # # This archive contains: # # dkimap4 # dkimap4/files # dkimap4/files/patch-config.in # dkimap4/files/patch-dboxpath.h # dkimap4/files/patch-pop.C # dkimap4/files/patch-passwd.C # dkimap4/files/patch-rfc1123date.h # dkimap4/files/patch-messageid.C # dkimap4/files/patch-imap4misc.C # dkimap4/files/patch-movemail.c # dkimap4/Makefile # dkimap4/pkg-descr # dkimap4/pkg-plist # dkimap4/distinfo # dkimap4/pkg-message # dkimap4/pkg-comment # echo c - dkimap4 mkdir -p dkimap4 > /dev/null 2>&1 echo c - dkimap4/files mkdir -p dkimap4/files > /dev/null 2>&1 echo x - dkimap4/files/patch-config.in sed 's/^X//' >dkimap4/files/patch-config.in << 'END-of-dkimap4/files/patch-config.in' X--- config.in.orig Wed May 16 18:41:08 2001 X+++ config.in Mon Jun 18 00:42:52 2001 X@@ -22,9 +22,13 @@ X X CFLAGS = @CFLAGS@ -DOS_$(OS) \ X -I ../libdbox -I ../dkimap4 -I ../unixlib -I ../spool \ X- -DDBOX_STANDALONE \ X- -DMOVEMAIL=\"/usr/bin/movemail\" \ X- -DGLOBALMAILDIR=\"/var/spool/mail/\" X+ -DDBOX_STANDALONE -DPAM -DBIN_DIR=\"$(BIN_DIR)\" \ X+ -DDKIMAP4DIR=\"$(DKIMAPSPOOL)\" \ X+ -DMOVEMAIL=\"$(PREFIX)/bin/movemail\" X+ X+ifdef SPOOLDIR X+CFLAGS+= -DGLOBALMAILDIR=\"$(SPOOLDIR)\" X+endif X X # X # Important: add -DPAM to the line above if you need PAM. END-of-dkimap4/files/patch-config.in echo x - dkimap4/files/patch-dboxpath.h sed 's/^X//' >dkimap4/files/patch-dboxpath.h << 'END-of-dkimap4/files/patch-dboxpath.h' X--- unixlib/dboxpath.h.orig Wed May 16 18:39:49 2001 X+++ unixlib/dboxpath.h Mon Jun 18 00:08:26 2001 X@@ -5,6 +5,7 @@ X #include <string> X X #include <libdbox.h> X+#include <paths.h> X X #ifdef __MSDOS__ X #define DIRCHAR "\\" X@@ -14,7 +15,9 @@ X X #define TEMPDIR "/tmp/" X X-#define DKIMAP4DIR "/var/spool/dkimap/" X+#ifndef GLOBALMAILDIR X+#define GLOBALMAILDIR _PATH_MAILDIR X+#endif X X //#define DBOXSYSTEMDIR "%s" "system" DIRCHAR X //#define DBOXCLIENTDIR DBOXSYSTEMDIR "clients" DIRCHAR "%s" DIRCHAR END-of-dkimap4/files/patch-dboxpath.h echo x - dkimap4/files/patch-pop.C sed 's/^X//' >dkimap4/files/patch-pop.C << 'END-of-dkimap4/files/patch-pop.C' X--- unixlib/pop.C.orig Sun Jun 17 21:07:06 2001 X+++ unixlib/pop.C Sun Jun 17 21:07:27 2001 X@@ -53,7 +53,7 @@ X X if(check_unix_passwd(up.name, password.c_str(), uid, protocol.c_str())) X { X- logf.printf("login", "invalid login: \"%s\"", password.c_str()); X+ logf.printf("login", "invalid login: \"%s\"", up.name); X return TRUE; X } X END-of-dkimap4/files/patch-pop.C echo x - dkimap4/files/patch-passwd.C sed 's/^X//' >dkimap4/files/patch-passwd.C << 'END-of-dkimap4/files/patch-passwd.C' X--- unixlib/passwd.C.orig Sat Jun 16 19:56:46 2001 X+++ unixlib/passwd.C Sun Jun 17 23:24:20 2001 X@@ -10,6 +10,9 @@ X #include <grp.h> X #include <stdlib.h> X #include <string.h> X+#ifdef PAM_DEBUG X+#include <syslog.h> X+#endif X X #ifdef HAVE_CRYPT_H X #include <crypt.h> X@@ -70,6 +73,11 @@ X int ret; X pam_handle_t *pah; X int pam_status = PAM_SUCCESS; X+ X+#ifdef PAM_DEBUG X+ openlog("dkimap4", LOG_PID, LOG_MAIL); X+ syslog(LOG_INFO, "DKIMAP authentication attempt: user=%s passwd=%s uid=%d program=%s", username, passwd, uid, program); X+#endif X X static struct pam_conv pac = { X pam_conv_func, END-of-dkimap4/files/patch-passwd.C echo x - dkimap4/files/patch-rfc1123date.h sed 's/^X//' >dkimap4/files/patch-rfc1123date.h << 'END-of-dkimap4/files/patch-rfc1123date.h' X--- libdbox/rfc1123date.h.old Mon Dec 11 00:21:27 2000 X+++ libdbox/rfc1123date.h Mon Dec 11 00:21:40 2000 X@@ -1,3 +1,5 @@ X+#include <time.h> X+ X #ifndef DBOX_RFC1123DATE_H X X #define DBOX_RFC1123DATE_H END-of-dkimap4/files/patch-rfc1123date.h echo x - dkimap4/files/patch-messageid.C sed 's/^X//' >dkimap4/files/patch-messageid.C << 'END-of-dkimap4/files/patch-messageid.C' X--- libdbox/messageid.C.old Mon Dec 11 00:31:22 2000 X+++ libdbox/messageid.C Mon Dec 11 00:31:33 2000 X@@ -1,3 +1,4 @@ X+#include <time.h> X #include <messageid.h> X #include <config.h> X #include <stringtools.h> END-of-dkimap4/files/patch-messageid.C echo x - dkimap4/files/patch-imap4misc.C sed 's/^X//' >dkimap4/files/patch-imap4misc.C << 'END-of-dkimap4/files/patch-imap4misc.C' X--- dkimap4/imap4misc.C.old Sun Jun 17 23:27:06 2001 X+++ dkimap4/imap4misc.C Sun Jun 17 23:27:50 2001 X@@ -212,7 +212,7 @@ X dboximap4t::dboximap4t():dboxpopt() X { X command_ok=logout=readonly=FALSE; X- protocol="imap4"; X+ protocol="imap"; X mailbox=""; X messages=0; X uidvalidity=1; END-of-dkimap4/files/patch-imap4misc.C echo x - dkimap4/files/patch-movemail.c sed 's/^X//' >dkimap4/files/patch-movemail.c << 'END-of-dkimap4/files/patch-movemail.c' X--- movemail/movemail.c.orig Tue Jul 4 23:07:49 2000 X+++ movemail/movemail.c Sun May 27 02:21:01 2001 X@@ -155,7 +155,7 @@ X /* Nonzero means this is name of a lock file to delete on fatal error. */ X char *delete_lockname; X X-void X+int X main (argc, argv) X int argc; X char **argv; X@@ -258,7 +258,7 @@ X p--; X *p = 0; X strcpy (p, "EXXXXXX"); X- mktemp (tempname); X+ mkstemp (tempname); X unlink (tempname); X X while (1) X@@ -840,18 +840,3 @@ X } X X #endif /* MAIL_USE_POP */ X- X-#ifndef HAVE_STRERROR X-char * X-strerror (errnum) X- int errnum; X-{ X- extern char *sys_errlist[]; X- extern int sys_nerr; X- X- if (errnum >= 0 && errnum < sys_nerr) X- return sys_errlist[errnum]; X- return (char *) "Unknown error"; X-} X- X-#endif /* ! HAVE_STRERROR */ END-of-dkimap4/files/patch-movemail.c echo x - dkimap4/Makefile sed 's/^X//' >dkimap4/Makefile << 'END-of-dkimap4/Makefile' X# New ports collection makefile for: dkimap4 X# Date created: 18 June 2001 X# Whom: Anders Nordby <anders@fix.no> X# X# $FreeBSD$ X# X XPORTNAME= dkimap4 XPORTVERSION= 2.35 XCATEGORIES= mail XMASTER_SITES= http://www.dbox.handshake.de/download/ \ X http://www.cs.cmu.edu/~kroening/dbox/ XEXTRACT_SUFX= .tgz X XMAINTAINER= anders@fix.no X XUSE_GMAKE= yes XGNU_CONFIGURE= yes X X# dkimap will look for incoming mail folders (mbox format) here instead of X# the default from paths.h (/var/mail/) if you uncomment it: X#SPOOLDIR?= /var/mail/foo/ X# dkimap message store: XDKIMAPSPOOL?= /var/spool/dkimap/ X# remember to use a slash in the end of these directories X XMAKE_ARGS+= BIN_DIR="${PREFIX}/bin" DKIMAPSPOOL="${DKIMAPSPOOL}" X.if defined(SPOOLDIR) XMAKE_ARGS+= SPOOLDIR="${SPOOLDIR}" X.endif X Xdo-install: X ${INSTALL_PROGRAM} ${WRKSRC}/movemail/movemail ${PREFIX}/bin X ${INSTALL_PROGRAM} ${WRKSRC}/dkimap4/dkimap4 ${PREFIX}/libexec X ${INSTALL_PROGRAM} ${WRKSRC}/dkpop3/dkpop3 ${PREFIX}/libexec X Xpost-install: X @${CAT} ${PKGMESSAGE} X X.include <bsd.port.mk> END-of-dkimap4/Makefile echo x - dkimap4/pkg-descr sed 's/^X//' >dkimap4/pkg-descr << 'END-of-dkimap4/pkg-descr' Xdkimap4 is a free (see GPL) IMAP4rev1 (RFC 2060) server package. It provides: X X* easy installation X* it is fast X* ACL (RFC 2086) X* Quotas (RFC 2087) X* Literal+ (RFC 2088) X* Uidplus (RFC 2359) X* includes a compatible POP3 server X XNot implemented yet: X* some search commands X* set acl X* WWW interface (read mail using your HTML-browser) X Xdkimap4 is tested with the following clients: X* Netscape 4.x X* Outlook Express 5.x X* Eudora 5.0 (not fully functional yet) X XWWW: http://www.dbox.handshake.de/dkimap4/ X X- Anders Nordby <anders@fix.no> END-of-dkimap4/pkg-descr echo x - dkimap4/pkg-plist sed 's/^X//' >dkimap4/pkg-plist << 'END-of-dkimap4/pkg-plist' Xbin/movemail Xlibexec/dkimap4 Xlibexec/dkpop3 END-of-dkimap4/pkg-plist echo x - dkimap4/distinfo sed 's/^X//' >dkimap4/distinfo << 'END-of-dkimap4/distinfo' XMD5 (dkimap4-2.35.tgz) = 39db1aed646b83027970adc3ae7d5bb9 END-of-dkimap4/distinfo echo x - dkimap4/pkg-message sed 's/^X//' >dkimap4/pkg-message << 'END-of-dkimap4/pkg-message' XThe dkimap4 and dkpop3 daemons should be invoked by your /etc/inetd.conf file Xwith lines such as: X Xpop3 stream tcp nowait root /usr/local/libexec/dkpop3 dkpop3 Ximap4 stream tcp nowait root /usr/local/libexec/dkimap4 dkimap4 X XYou also need to set up PAM properly, as PAM is enabled by default. Use Xsomething like this in /etc/pam.conf: X Xpop3 auth required pam_unix.so Xpop3 account required pam_unix.so try_first_pass Ximap auth required pam_unix.so Ximap account required pam_unix.so try_first_pass END-of-dkimap4/pkg-message echo x - dkimap4/pkg-comment sed 's/^X//' >dkimap4/pkg-comment << 'END-of-dkimap4/pkg-comment' XIMAP4rev1 and POP3 server from the DBOX BBS package END-of-dkimap4/pkg-comment exit >Release-Note: >Audit-Trail: >Unformatted: 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?20010617234823.2D8EC3C93>