summaryrefslogtreecommitdiff
path: root/mail
diff options
context:
space:
mode:
authorjlam <jlam>2002-01-24 07:23:44 +0000
committerjlam <jlam>2002-01-24 07:23:44 +0000
commit2de82942b1434e19dff458751ebe52d7b79f5c85 (patch)
treecbb20582551e628c6010fbaff4f8a72145d7e8bc /mail
parentd549f802ff25375893966ac2891807c7fa354f05 (diff)
downloadpkgsrc-2de82942b1434e19dff458751ebe52d7b79f5c85.tar.gz
Initial import of mail/sqwebmail, the Courier webmail CGI.
SqWebMail is a web CGI client for sending and receiving E-mail using Maildir mailboxes. It is very lightweight -- it reads mail directly from Maildirs.
Diffstat (limited to 'mail')
-rw-r--r--mail/sqwebmail/DEINSTALL9
-rw-r--r--mail/sqwebmail/DESCR3
-rw-r--r--mail/sqwebmail/MESSAGE32
-rw-r--r--mail/sqwebmail/Makefile89
-rw-r--r--mail/sqwebmail/PLIST107
-rw-r--r--mail/sqwebmail/distinfo8
-rw-r--r--mail/sqwebmail/patches/patch-aa89
-rw-r--r--mail/sqwebmail/patches/patch-ab30
-rw-r--r--mail/sqwebmail/patches/patch-ac12
-rw-r--r--mail/sqwebmail/patches/patch-ad22
10 files changed, 401 insertions, 0 deletions
diff --git a/mail/sqwebmail/DEINSTALL b/mail/sqwebmail/DEINSTALL
new file mode 100644
index 00000000000..70110035798
--- /dev/null
+++ b/mail/sqwebmail/DEINSTALL
@@ -0,0 +1,9 @@
+# $NetBSD: DEINSTALL,v 1.1.1.1 2002/01/24 07:23:44 jlam Exp $
+
+# Additional files that are may be created for sqwebmail.
+ALL_FILES="${ALL_FILES} /dev/null @PKG_SYSCONFDIR@/calendarmode"
+ALL_FILES="${ALL_FILES} /dev/null @PKG_SYSCONFDIR@/defaultdomain"
+ALL_FILES="${ALL_FILES} /dev/null @PKG_SYSCONFDIR@/logindomainlist"
+ALL_FILES="${ALL_FILES} /dev/null @PKG_SYSCONFDIR@/nochangingfrom"
+ALL_FILES="${ALL_FILES} /dev/null @PKG_SYSCONFDIR@/noimages"
+ALL_FILES="${ALL_FILES} /dev/null @PKG_SYSCONFDIR@/usexsender"
diff --git a/mail/sqwebmail/DESCR b/mail/sqwebmail/DESCR
new file mode 100644
index 00000000000..2a5db668690
--- /dev/null
+++ b/mail/sqwebmail/DESCR
@@ -0,0 +1,3 @@
+SqWebMail is a web CGI client for sending and receiving E-mail using
+Maildir mailboxes. It is very lightweight -- it reads mail directly
+from Maildirs.
diff --git a/mail/sqwebmail/MESSAGE b/mail/sqwebmail/MESSAGE
new file mode 100644
index 00000000000..ccef32759bc
--- /dev/null
+++ b/mail/sqwebmail/MESSAGE
@@ -0,0 +1,32 @@
+===========================================================================
+$NetBSD: MESSAGE,v 1.1.1.1 2002/01/24 07:23:44 jlam Exp $
+
+You must create a cron job that runs at regular intervals to clean the
+SqWebMail user cache that executes the following script:
+
+ ${PREFIX}/share/courier/sqwebmail/cleancache.pl
+
+You will need to make SqWebMail accessible through your HTTP server by
+making URLs with path "/images/sqwebmail/" resolve to the images in
+${IMAGEDIR}.
+
+If you are running Apache, then you may add the following snippet into
+httpd.conf:
+
+ <IfModule mod_alias.c>
+ Alias /images/sqwebmail/ "${IMAGEDIR}/"
+ </IfModule>
+
+Also, certain versions of Microsoft Internet Explorer have a bug in their
+HTTP/1.1 protocol implementation that results in errors when downloading
+attachments. You should configure your HTTP server to force a HTTP/1.0
+protocol response for MSIE clients, e.g. for Apache, add the following to
+httpd.conf:
+
+ BrowserMatch "MSIE [45]" nokeepalive downgrade-1.0 force-response-1.0
+
+Maildir accounts will be accessible through:
+
+ http://www.domain.com/cgi-bin/sqwebmail
+
+===========================================================================
diff --git a/mail/sqwebmail/Makefile b/mail/sqwebmail/Makefile
new file mode 100644
index 00000000000..34c8353db88
--- /dev/null
+++ b/mail/sqwebmail/Makefile
@@ -0,0 +1,89 @@
+# $NetBSD: Makefile,v 1.1.1.1 2002/01/24 07:23:44 jlam Exp $
+
+DISTNAME= sqwebmail-3.3.1
+COMMENT= webmail CGI for access to local Maildir-style mailboxes
+HOMEPAGE= http://www.inter7.com/sqwebmail/
+
+BUILD_DEPENDS+= perl>=${PERL5_REQD}:../../lang/perl5
+DEPENDS+= courier-auth>=0.37.1:../../mail/courier-auth
+DEPENDS+= courier-maildirmake>=0.37.1nb1:../../mail/courier-maildirmake
+
+USE_BUILDLINK_ONLY= yes
+REPLACE_PERL= sysconftool
+
+.include "../../mail/courier-auth/Makefile.common"
+
+.if !defined(STRIPFLAG) || empty(STRIPFLAG:M-s)
+INSTALL_TARGET= install-strip
+.else
+INSTALL_TARGET= install
+.endif
+
+MAIL_GROUP?= mail
+
+STATEDIR= /var/sqwebmail
+CACHEDIR= ${STATEDIR}/cache
+CALENDARDIR= ${STATEDIR}/calendar
+IMAGEDIR= ${DATADIR}/sqwebmail/images
+HTMLDIR= ${PREFIX}/share/doc/html/sqwebmail
+
+CONFIGURE_ARGS+= --with-cachedir=${CACHEDIR}
+CONFIGURE_ARGS+= --with-calendardir=${CALENDARDIR}
+CONFIGURE_ARGS+= --with-cacheowner=${ROOT_USER}
+CONFIGURE_ARGS+= --enable-https=auto
+CONFIGURE_ARGS+= --enable-cgibindir=${PREFIX}/libexec/cgi-bin
+CONFIGURE_ARGS+= --enable-imagedir=${IMAGEDIR}
+CONFIGURE_ARGS+= --enable-imageurl=/images/sqwebmail
+
+MIME_TYPES= ${PKG_SYSCONFDIR}/mime.types:${PKG_SYSCONFBASE}/httpd/mime.types:${PREFIX}/etc/mime.types:/etc/mime.types
+CONFIGURE_ARGS+= --enable-mimetypes="${MIME_TYPES}"
+CONFIGURE_ARGS+= --with-ispell="${LOCALBASE}/bin/ispell"
+
+PKG_GROUPS= ${MAIL_GROUP}
+
+OWN_DIRS= ${STATEDIR}
+OWN_DIRS_PERMS= ${CACHEDIR} ${ROOT_USER} ${ROOT_GROUP} 0755
+OWN_DIRS_PERMS+= ${CALENDARDIR} ${ROOT_USER} ${MAIL_GROUP} 0755
+OWN_DIRS_PERMS+= ${CALENDARDIR}/public ${ROOT_USER} ${MAIL_GROUP} 0755
+OWN_DIRS_PERMS+= ${CALENDARDIR}/private ${ROOT_USER} ${MAIL_GROUP} 0750
+OWN_DIRS_PERMS+= ${CALENDARDIR}/localcache ${ROOT_USER} ${MAIL_GROUP} 0700
+
+SYSCONFTOOL= ${PREFIX}/sbin/sqwebmail.sysconftool
+GEN_FILES= ldapaddressbook
+
+CONF_FILES= ${EGDIR}/authmodulelist ${PKG_SYSCONFDIR}/authmodulelist
+CONF_FILES_PERMS= # empty
+.for FILE in ${GEN_FILES}
+CONF_FILES_PERMS+= ${EGDIR}/${FILE}.dist ${PKG_SYSCONFDIR}/${FILE} \
+ ${ROOT_USER} ${ROOT_GROUP} 0600
+.endfor
+.for FILE in ldapsearch sendit.sh
+CONF_FILES_PERMS+= ${DATADIR}/sqwebmail/${FILE}.dist \
+ ${PKG_SYSCONFDIR}/${FILE} \
+ ${ROOT_USER} ${ROOT_GROUP} 0755
+.endfor
+
+DEINSTALL_EXTRA_TMPL= ${.CURDIR}/DEINSTALL
+INSTALL_EXTRA_TMPL= ${.CURDIR}/../../mail/courier-auth/INSTALL
+FILES_SUBST+= SYSCONFTOOL=${SYSCONFTOOL:Q}
+FILES_SUBST+= GEN_FILES=${GEN_FILES:Q}
+MESSAGE_SUBST+= IMAGEDIR=${IMAGEDIR}
+
+pre-configure: configure-init
+
+post-install:
+ ${INSTALL_SCRIPT} ${WRKSRC}/sysconftool ${SYSCONFTOOL}
+ for file in ldapaddressbook.dist; do \
+ ${INSTALL_DATA} ${PKG_SYSCONFDIR}/$${file} ${EGDIR}; \
+ ${RM} -f ${PKG_SYSCONFDIR}/$${file}; \
+ done
+ cd ${WRKSRC}; ${INSTALL_DATA} sqwebmail/webmail.authpam \
+ ${EGDIR}/webmail.pam
+ ${INSTALL_DATA_DIR} ${HTMLDIR} ${HTMLDIR}/sqwebmail ${HTMLDIR}/pcp
+ cd ${WRKSRC}; ${INSTALL_DATA} COPYING INSTALL.html ${HTMLDIR}
+ cd ${WRKSRC}/pcp; ${INSTALL_DATA} README.html ${HTMLDIR}/pcp
+ cd ${WRKSRC}/sqwebmail; ${INSTALL_DATA} BUGS.html SECURITY.html \
+ ${HTMLDIR}/sqwebmail
+
+.include "../../mk/bsd.pkg.install.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/mail/sqwebmail/PLIST b/mail/sqwebmail/PLIST
new file mode 100644
index 00000000000..1249b21aa99
--- /dev/null
+++ b/mail/sqwebmail/PLIST
@@ -0,0 +1,107 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2002/01/24 07:23:44 jlam Exp $
+libexec/cgi-bin/sqwebmail
+libexec/courier/sqwebmail/mimegpg
+libexec/courier/sqwebmail/pcpd
+sbin/sqwebmail.sysconftool
+share/courier/sqwebmail/cleancache.pl
+share/courier/sqwebmail/html/en
+share/courier/sqwebmail/html/en-us/CHARSET
+share/courier/sqwebmail/html/en-us/ISPELLDICT
+share/courier/sqwebmail/html/en-us/LANGUAGE
+share/courier/sqwebmail/html/en-us/LANGUAGE_PREF
+share/courier/sqwebmail/html/en-us/LOCALE
+share/courier/sqwebmail/html/en-us/TIMEZONELIST
+share/courier/sqwebmail/html/en-us/abooklist.html
+share/courier/sqwebmail/html/en-us/attachments.html
+share/courier/sqwebmail/html/en-us/autoresponder.html
+share/courier/sqwebmail/html/en-us/calendarlogin.inc.html
+share/courier/sqwebmail/html/en-us/empty.html
+share/courier/sqwebmail/html/en-us/eventacl.html
+share/courier/sqwebmail/html/en-us/eventdaily.html
+share/courier/sqwebmail/html/en-us/eventdelete.html
+share/courier/sqwebmail/html/en-us/eventmonthly.html
+share/courier/sqwebmail/html/en-us/eventnotifydelete.txt
+share/courier/sqwebmail/html/en-us/eventnotifynew.txt
+share/courier/sqwebmail/html/en-us/eventnotifysubject.txt
+share/courier/sqwebmail/html/en-us/eventshow.html
+share/courier/sqwebmail/html/en-us/eventweekly.html
+share/courier/sqwebmail/html/en-us/expired.html
+share/courier/sqwebmail/html/en-us/filter.html
+share/courier/sqwebmail/html/en-us/folder.html
+share/courier/sqwebmail/html/en-us/folders.html
+share/courier/sqwebmail/html/en-us/gpg.html
+share/courier/sqwebmail/html/en-us/gpgcreate.html
+share/courier/sqwebmail/html/en-us/gpgerr.html
+share/courier/sqwebmail/html/en-us/index.html
+share/courier/sqwebmail/html/en-us/invalid.html
+share/courier/sqwebmail/html/en-us/keyimport.html
+share/courier/sqwebmail/html/en-us/ldaplist.html
+share/courier/sqwebmail/html/en-us/ldapsearch.html
+share/courier/sqwebmail/html/en-us/login.html
+share/courier/sqwebmail/html/en-us/navbar.inc.html
+share/courier/sqwebmail/html/en-us/navbar2.inc.html
+share/courier/sqwebmail/html/en-us/navbar3.inc.html
+share/courier/sqwebmail/html/en-us/newevent.html
+share/courier/sqwebmail/html/en-us/newmsg.html
+share/courier/sqwebmail/html/en-us/preferences.html
+share/courier/sqwebmail/html/en-us/print.html
+share/courier/sqwebmail/html/en-us/printnocookie.html
+share/courier/sqwebmail/html/en-us/printredirect.html
+share/courier/sqwebmail/html/en-us/quickadd.html
+share/courier/sqwebmail/html/en-us/readmsg.html
+share/courier/sqwebmail/html/en-us/redirect.html
+share/courier/sqwebmail/html/en-us/spellchk.html
+share/courier/sqwebmail/images/bg.gif
+share/courier/sqwebmail/images/bluebottomleft.gif
+share/courier/sqwebmail/images/bluebottomright.gif
+share/courier/sqwebmail/images/bluetopleft.gif
+share/courier/sqwebmail/images/bluetopright.gif
+share/courier/sqwebmail/images/calendar.gif
+share/courier/sqwebmail/images/cancel.gif
+share/courier/sqwebmail/images/folder.gif
+share/courier/sqwebmail/images/folder2.gif
+share/courier/sqwebmail/images/folders.gif
+share/courier/sqwebmail/images/forward.gif
+share/courier/sqwebmail/images/forwardatt.gif
+share/courier/sqwebmail/images/fullheaders.gif
+share/courier/sqwebmail/images/graybottomleft.gif
+share/courier/sqwebmail/images/graybottomright.gif
+share/courier/sqwebmail/images/graytopleft.gif
+share/courier/sqwebmail/images/graytopright.gif
+share/courier/sqwebmail/images/left.gif
+share/courier/sqwebmail/images/left2.gif
+share/courier/sqwebmail/images/logo.gif
+share/courier/sqwebmail/images/print.gif
+share/courier/sqwebmail/images/reply.gif
+share/courier/sqwebmail/images/replyall.gif
+share/courier/sqwebmail/images/replylist.gif
+share/courier/sqwebmail/images/right.gif
+share/courier/sqwebmail/images/right2.gif
+share/courier/sqwebmail/images/save.gif
+share/courier/sqwebmail/images/sep.gif
+share/courier/sqwebmail/images/signin.gif
+share/courier/sqwebmail/images/sqwebmail.css
+share/courier/sqwebmail/images/trash2.gif
+share/courier/sqwebmail/images/uncancel.gif
+share/courier/sqwebmail/ldapsearch
+share/courier/sqwebmail/sendit.sh
+share/courier/sqwebmail/webgpg
+share/doc/html/sqwebmail/COPYING
+share/doc/html/sqwebmail/INSTALL.html
+share/doc/html/sqwebmail/pcp/README.html
+share/doc/html/sqwebmail/sqwebmail/BUGS.html
+share/doc/html/sqwebmail/sqwebmail/SECURITY.html
+share/examples/courier/authmodulelist
+share/examples/courier/ldapaddressbook.dist
+share/examples/courier/webmail.pam
+@unexec ${RMDIR} -p %D/share/examples/courier 2>/dev/null || ${TRUE}
+@dirrm share/doc/html/sqwebmail/sqwebmail
+@dirrm share/doc/html/sqwebmail/pcp
+@dirrm share/doc/html/sqwebmail
+@dirrm share/courier/sqwebmail/images
+@dirrm share/courier/sqwebmail/html/en-us
+@dirrm share/courier/sqwebmail/html
+@dirrm share/courier/sqwebmail
+@unexec ${RMDIR} -p %D/share/courier 2>/dev/null || ${TRUE}
+@dirrm libexec/courier/sqwebmail
+@unexec ${RMDIR} -p %D/libexec/courier 2>/dev/null || ${TRUE}
diff --git a/mail/sqwebmail/distinfo b/mail/sqwebmail/distinfo
new file mode 100644
index 00000000000..8090185f550
--- /dev/null
+++ b/mail/sqwebmail/distinfo
@@ -0,0 +1,8 @@
+$NetBSD: distinfo,v 1.1.1.1 2002/01/24 07:23:44 jlam Exp $
+
+SHA1 (sqwebmail-3.3.1.tar.gz) = ce1650cc37d8f7abbb056d6340f495598ebf3885
+Size (sqwebmail-3.3.1.tar.gz) = 1482655 bytes
+SHA1 (patch-aa) = 8c679457a3fa835f4300b78214fd799357cfa6d5
+SHA1 (patch-ab) = 7c91a1a6f138512c66a2820ad30fb8744198125f
+SHA1 (patch-ac) = f85ae9f2f56c1885180ae86b156ff508aa2491c4
+SHA1 (patch-ad) = 7fd765a8ed9c178de5f1d0a90bc8abec3e469a57
diff --git a/mail/sqwebmail/patches/patch-aa b/mail/sqwebmail/patches/patch-aa
new file mode 100644
index 00000000000..d20c65eb161
--- /dev/null
+++ b/mail/sqwebmail/patches/patch-aa
@@ -0,0 +1,89 @@
+$NetBSD: patch-aa,v 1.1.1.1 2002/01/24 07:23:47 jlam Exp $
+
+--- Makefile.in.orig Fri Jan 18 22:54:52 2002
++++ Makefile.in
+@@ -28,7 +28,7 @@
+ sbindir = @sbindir@
+ libexecdir = @libexecdir@
+ datadir = @datadir@
+-sysconfdir = @sysconfdir@
++sysconfdir = $(prefix)/share/examples/courier
+ sharedstatedir = @sharedstatedir@
+ localstatedir = @localstatedir@
+ libdir = @libdir@
+@@ -98,16 +98,16 @@
+ @HAS_USERDB_FALSE@userdb_data =
+
+ scriptbindir = $(sbindir)
+-scriptbin_SCRIPTS = $(userdb_scripts)
++scriptbin_SCRIPTS =
+
+ pkglibexecdir = $(libexecdir)/sqwebmail
+-pkglibexec_PROGRAMS = maildirmake reformime makemime mimegpg pcpd
++pkglibexec_PROGRAMS = mimegpg pcpd
+
+ pkgman8dir = @mandir@/man8
+-pkgman8_DATA = deliverquota.8 $(userdb_data)
++pkgman8_DATA =
+
+ pkgman1dir = @mandir@/man1
+-pkgman1_DATA = maildirmake.1
++pkgman1_DATA =
+
+ pcpd_SOURCES =
+
+@@ -628,50 +628,24 @@
+ # Install SqWebMail setuid to root, if we're running as root
+ #
+
+-install-exec-local: install-userdb-script
++install-exec-local:
+ $(mkinstalldirs) $(DESTDIR)$(cgibindir)
+ test -w $(DESTDIR)$(cgibindir) || exit 0; \
+ $(INSTALL_PROGRAM) sqwebmail/sqwebmail \
+ $(DESTDIR)$(cgibindir)/sqwebmail ; \
+- test -w /etc || continue ; \
+ chown root $(DESTDIR)$(cgibindir)/sqwebmail ; \
+ chmod u+s $(DESTDIR)$(cgibindir)/sqwebmail
+- $(mkinstalldirs) $(DESTDIR)$(libexecdir)/authlib
+- for f in `cat authlib/installlist` dummy ; do \
+- test "$$f" = "dummy" && continue ; \
+- $(INSTALL_PROGRAM) $(INSTALL_STRIP_FLAG) authlib/$$f \
+- $(DESTDIR)$(libexecdir)/authlib/$$f ; done
+- for f in `cat authlib/installlist.sh` dummy ; do \
+- test "$$f" = "dummy" && continue ; \
+- $(INSTALL_SCRIPT) authlib/$$f \
+- $(DESTDIR)$(libexecdir)/authlib/$$f ; done
+- . authlib/authpwdprogs ; for f in `echo $$PWPROGS dummy` ; do \
+- test "$$f" = "dummy" && continue ; \
+- $(INSTALL_PROGRAM) authlib/$$f \
+- $(DESTDIR)$(libexecdir)/authlib/$$f \
+- && chmod u+s $(DESTDIR)$(libexecdir)/authlib/$$f; done
+- . authlib/authpwdprogs ; for f in `echo $$PWSCRIPTS dummy` ; do \
+- test "$$f" = "dummy" && continue ; \
+- $(INSTALL_SCRIPT) authlib/$$f \
+- $(DESTDIR)$(libexecdir)/authlib/$$f ; done
+-
+-install-data-local: install-userdb-local
+- . authlib/authdaemonrc ; test "$$authdaemonvar" != "" || exit 0 ; \
+- $(mkinstalldirs) $(DESTDIR)@authdaemonvar@ || exit 1 ; \
+- chmod 700 $(DESTDIR)@authdaemonvar@
++
++install-data-local:
+ -$(mkinstalldirs) $(DESTDIR)@imagedir@
+ -for f in `cat sqwebmail/images/filelist` ; do \
+ $(INSTALL_DATA) $(srcdir)/sqwebmail/images/$$f $(DESTDIR)@imagedir@/$$f ;\
+ done
+ @cat sqwebmail/sqwebmail.msg
+- @cat authlib/authdaemon.msg
+
+-uninstall-local: uninstall-userdb-local uninstall-userdb-script
++uninstall-local:
+ test -w $(DESTDIR)$(cgibindir) || exit 0; \
+ rm -f $(DESTDIR)$(cgibindir)/sqwebmail
+- . authlib/authpwdprogs ; \
+- for f in `cat authlib/installlist authlib/installlist.sh ; echo $$PWPROGS $$PWSCRIPTS` ; do \
+- rm -f $(DESTDIR)$(libexecdir)/authlib/$$f ; done
+ for f in `cat sqwebmail/images/filelist` ; do \
+ rm -f $(DESTDIR)@imagedir@/$$f ;\
+ done
diff --git a/mail/sqwebmail/patches/patch-ab b/mail/sqwebmail/patches/patch-ab
new file mode 100644
index 00000000000..22b1b82cecf
--- /dev/null
+++ b/mail/sqwebmail/patches/patch-ab
@@ -0,0 +1,30 @@
+$NetBSD: patch-ab,v 1.1.1.1 2002/01/24 07:23:44 jlam Exp $
+
+--- authlib/Makefile.in.orig Fri Jan 18 22:54:59 2002
++++ authlib/Makefile.in
+@@ -2056,23 +2056,9 @@
+
+ # automake still a bit stupid...
+
+-install-data-local: install-authldaprc install-authdaemonrc install-authmysqlrc install-authpgsqlrc
+- test "$(man_LINKS)" = "" && exit 0; \
+- $(mkinstalldirs) $(DESTDIR)$(man7dir) ; \
+- for f in $(man_MANS) "" ; do \
+- test "$$f" = "" && continue ; \
+- $(INSTALL_DATA) $$f $(DESTDIR)$(man7dir) ; done ; \
+- cd $(DESTDIR)$(man7dir) || exit 1 ; \
+- for f in $(man_LINKS) "" ; do \
+- test "$$f" = "" && continue ; \
+- rm -f $$f; $(LN_S) authlib.7 $$f ; \
+- test -w /etc && chown bin $$f && chgrp bin $$f ; \
+- done ; exit 0
++install-data-local:
+
+-uninstall-local: uninstall-authldaprc uninstall-authdaemonrc uninstall-authmysqlrc uninstall-authpgsqlrc
+- cd $(DESTDIR)$(man7dir) 2>/dev/null || exit 0 ; \
+- test "$(man_LINKS)" = "" && exit 0; \
+- rm -f $(man_LINKS) $(man_MANS)
++uninstall-local:
+
+ authlib.html: authlib.html.in
+ CONFIG_FILES=authlib.html CONFIG_HEADERS= $(SHELL) ./config.status
diff --git a/mail/sqwebmail/patches/patch-ac b/mail/sqwebmail/patches/patch-ac
new file mode 100644
index 00000000000..c5ca9161970
--- /dev/null
+++ b/mail/sqwebmail/patches/patch-ac
@@ -0,0 +1,12 @@
+$NetBSD: patch-ac,v 1.1.1.1 2002/01/24 07:23:44 jlam Exp $
+
+--- authlib/cryptpassword.c.orig Wed Jun 20 21:44:04 2001
++++ authlib/cryptpassword.c
+@@ -6,6 +6,7 @@
+ #if HAVE_CONFIG_H
+ #include "config.h"
+ #endif
++#include <stdlib.h>
+ #include <string.h>
+ #if HAVE_UNISTD_H
+ #include <unistd.h>
diff --git a/mail/sqwebmail/patches/patch-ad b/mail/sqwebmail/patches/patch-ad
new file mode 100644
index 00000000000..d80c380b9ed
--- /dev/null
+++ b/mail/sqwebmail/patches/patch-ad
@@ -0,0 +1,22 @@
+$NetBSD: patch-ad,v 1.1.1.1 2002/01/24 07:23:47 jlam Exp $
+
+--- sqwebmail/Makefile.in.orig Tue Jan 22 19:05:17 2002
++++ sqwebmail/Makefile.in
+@@ -677,7 +677,7 @@
+
+ htmllibdir.h: config.status
+ echo '#define HTMLLIBDIR "@htmldir@"' >htmllibdir.h
+- echo '#define SENDITSH "$(scriptdir)/sendit.sh"' >>htmllibdir.h
++ echo '#define SENDITSH "$(sysconfdir)/sendit.sh"' >>htmllibdir.h
+ echo '#define NOCHANGINGFROM "$(sysconfdir)/nochangingfrom"' >>htmllibdir.h
+ echo '#define USEXSENDER "$(sysconfdir)/usexsender"' >>htmllibdir.h
+ echo '#define CALENDARMODE "$(sysconfdir)/calendarmode"' >>htmllibdir.h
+@@ -695,7 +695,7 @@
+ ; echo '#define MIMEGPG "$(pkglibexecdir)/mimegpg"' >>htmllibdir.h \
+ ; fi
+ echo '#define LDAPADDRESSBOOK "$(sysconfdir)/ldapaddressbook"' >>htmllibdir.h
+- echo '#define LDAPSEARCH "$(scriptdir)/ldapsearch"' >>htmllibdir.h
++ echo '#define LDAPSEARCH "$(sysconfdir)/ldapsearch"' >>htmllibdir.h
+ echo '#define MODULEFILE "$(sysconfdir)/authmodulelist"' >>htmllibdir.h
+ echo '#define NOIMAGES "$(sysconfdir)/noimages"' >>htmllibdir.h
+