pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/mail/sqwebmail Update mail/sqwebmail to 5.1.6. Change...
details: https://anonhg.NetBSD.org/pkgsrc/rev/d67828a683e0
branches: trunk
changeset: 532047:d67828a683e0
user: jlam <jlam%pkgsrc.org@localhost>
date: Fri Aug 10 17:57:13 2007 +0000
description:
Update mail/sqwebmail to 5.1.6. Changes from version 5.1.2 include:
+ Move a few more things around so that it looks more like a default
installation of Courier. In particular, the "cgi-bin" directory has
been renamed "webmail", and sbin/sqwebmaild to sbin/webmaild.
* Use address returned from authlib as return address of sent messages.
* Forbid rename folder if new folder name contains a dot.
* Quietly prune trailing ':' from the tail end of a header name.
* Trim whitespace from login username and new folder names.
diffstat:
mail/sqwebmail/MESSAGE | 10 +++++-----
mail/sqwebmail/Makefile | 21 ++++++++++-----------
mail/sqwebmail/PLIST | 6 +++---
mail/sqwebmail/distinfo | 17 +++++++++--------
mail/sqwebmail/files/sqwebmail.sh | 11 ++++++-----
mail/sqwebmail/patches/patch-aa | 36 +++++++++++++++++++++++++++---------
mail/sqwebmail/patches/patch-ad | 12 ++++++------
mail/sqwebmail/patches/patch-ah | 6 +++---
mail/sqwebmail/patches/patch-aj | 20 ++++++++++----------
mail/sqwebmail/patches/patch-am | 22 ++++++++++++++++++++++
10 files changed, 101 insertions(+), 60 deletions(-)
diffs (truncated from 319 to 300 lines):
diff -r d7ad83865a93 -r d67828a683e0 mail/sqwebmail/MESSAGE
--- a/mail/sqwebmail/MESSAGE Fri Aug 10 17:57:09 2007 +0000
+++ b/mail/sqwebmail/MESSAGE Fri Aug 10 17:57:13 2007 +0000
@@ -1,5 +1,5 @@
===========================================================================
-$NetBSD: MESSAGE,v 1.7 2006/04/28 18:16:25 jlam Exp $
+$NetBSD: MESSAGE,v 1.8 2007/08/10 17:57:13 jlam Exp $
You must create a cron job that runs at regular intervals (one hour is
fine) that executes the following Perl script to clean the SqWebMail
@@ -10,11 +10,11 @@
There are two things which must be done to make SqWebMail accessible
through your HTTP server:
- (1) Copy the ``sqwebmail'' CGI binary to the appropriate place in your
- HTTP document root, e.g. ${PREFIX}/libexec/cgi-bin, then Maildir
- accounts would be accessible through:
+ (1) Copy the ``webmail'' CGI binary to the appropriate place in your
+ HTTP document root, e.g. ${PREFIX}/libexec/cgi-bin. Maildir
+ accounts would be accessible through, e.g.:
- http://your.domain.com/cgi-bin/sqwebmail
+ http://your.domain.com/cgi-bin/webmail
(2) Make URLs with path ``${IMAGEURL}/'' resolve to the images located
in the ${IMAGEDIR} directory.
diff -r d7ad83865a93 -r d67828a683e0 mail/sqwebmail/Makefile
--- a/mail/sqwebmail/Makefile Fri Aug 10 17:57:09 2007 +0000
+++ b/mail/sqwebmail/Makefile Fri Aug 10 17:57:13 2007 +0000
@@ -1,7 +1,6 @@
-# $NetBSD: Makefile,v 1.54 2007/08/02 22:07:32 jlam Exp $
+# $NetBSD: Makefile,v 1.55 2007/08/10 17:57:13 jlam Exp $
-DISTNAME= sqwebmail-5.1.2
-PKGREVISION= 1
+DISTNAME= sqwebmail-5.1.6
CATEGORIES= mail www
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=courier/}
EXTRACT_SUFX= .tar.bz2
@@ -55,7 +54,7 @@
CONFIGURE_ARGS+= --datadir=${PREFIX}/share/courier
CONFIGURE_ARGS+= --program-transform-name='s/\.rc$$//'
-CONFIGURE_ARGS+= --enable-cgibindir=${PREFIX}/libexec/courier/cgi-bin
+CONFIGURE_ARGS+= --enable-cgibindir=${LIBEXECDIR:Q}/webmail
CONFIGURE_ARGS+= --enable-https=auto
CONFIGURE_ARGS+= --enable-imagedir=${SQWEBMAIL_IMAGEDIR:Q}
CONFIGURE_ARGS+= --enable-imageurl=${SQWEBMAIL_IMAGEURL:Q}
@@ -63,17 +62,17 @@
CONFIGURE_ARGS+= --with-cachedir=${SQWEBMAIL_CACHEDIR:Q}
CONFIGURE_ARGS+= --with-cacheowner=${ROOT_USER:Q}
CONFIGURE_ARGS+= --with-calendardir=${SQWEBMAIL_CALENDARDIR:Q}
-CONFIGURE_ARGS+= --with-ispell="${LOCALBASE}/bin/ispell"
+CONFIGURE_ARGS+= --with-ispell="${PREFIX}/bin/ispell"
CONFIGURE_ARGS+= --with-mailer="${SENDMAIL} -oi -t"
CONFIGURE_ARGS+= --with-mailgroup=${COURIER_GROUP:Q}
-CONFIGURE_ARGS+= --with-piddir=${VARBASE}/run
+CONFIGURE_ARGS+= --with-piddir=${VARBASE:Q}/run
CONFIGURE_ENV+= GZIP=${TOOLS_PATH.gzip:Q}
-CONFIGURE_ENV+= GPG="${LOCALBASE}/bin/gpg"
-CONFIGURE_ENV+= ldapsearch="${LOCALBASE}/bin/ldapsearch"
+CONFIGURE_ENV+= GPG=${PREFIX:Q}/bin/gpg
+CONFIGURE_ENV+= ldapsearch=${PREFIX:Q}/bin/ldapsearch
REQD_DIRS+= ${DATADIR} ${DOCDIR} ${EGDIR} ${LIBEXECDIR}
-REQD_DIRS_PERMS+= ${LIBEXECDIR}/cgi-bin \
+REQD_DIRS_PERMS+= ${LIBEXECDIR}/webmail \
${REAL_ROOT_USER} ${REAL_ROOT_GROUP} 0700
MAKE_DIRS+= ${VARBASE}/run ${LOCALSTATEDIR}
OWN_DIRS+= ${SQWEBMAIL_STATEDIR}
@@ -111,10 +110,10 @@
${ECHO} "local" > ${WRKDIR}/calendarmode
# The sqwebmail install target incorrectly overwrites the mode on
-# cgi-bin directory, so fix it back to the right value.
+# the webmail directory, so fix it back to the right value.
#
fix-perms:
- ${CHMOD} 0700 ${LIBEXECDIR}/cgi-bin
+ ${CHMOD} 0700 ${LIBEXECDIR}/webmail
post-install: fix-perms
${LN} -s ${PREFIX}/share/courier/sqwebmail/webgpg ${PREFIX}/sbin
diff -r d7ad83865a93 -r d67828a683e0 mail/sqwebmail/PLIST
--- a/mail/sqwebmail/PLIST Fri Aug 10 17:57:09 2007 +0000
+++ b/mail/sqwebmail/PLIST Fri Aug 10 17:57:13 2007 +0000
@@ -1,11 +1,11 @@
-@comment $NetBSD: PLIST,v 1.8 2006/06/09 22:12:01 jlam Exp $
+@comment $NetBSD: PLIST,v 1.9 2007/08/10 17:57:13 jlam Exp $
bin/mimegpg
-libexec/courier/cgi-bin/sqwebmail
libexec/courier/pcpd
libexec/courier/sqwebmaild
libexec/courier/sqwebpasswd
+libexec/courier/webmail/webmail
man/man1/mimegpg.1
-sbin/sqwebmaild
+sbin/webmaild
sbin/webgpg
share/courier/sqwebmail/cleancache.pl
share/courier/sqwebmail/html/en
diff -r d7ad83865a93 -r d67828a683e0 mail/sqwebmail/distinfo
--- a/mail/sqwebmail/distinfo Fri Aug 10 17:57:09 2007 +0000
+++ b/mail/sqwebmail/distinfo Fri Aug 10 17:57:13 2007 +0000
@@ -1,10 +1,11 @@
-$NetBSD: distinfo,v 1.15 2006/06/09 22:12:01 jlam Exp $
+$NetBSD: distinfo,v 1.16 2007/08/10 17:57:13 jlam Exp $
-SHA1 (sqwebmail-5.1.2.tar.bz2) = 0ddcf4f9b53304a356ba40e4ae3ea27bb9118108
-RMD160 (sqwebmail-5.1.2.tar.bz2) = af66ac38d40ef69da4aa57450915ba954c45703a
-Size (sqwebmail-5.1.2.tar.bz2) = 3743815 bytes
-SHA1 (patch-aa) = 5f263487244e8127845050a19d3b68356f846aa2
-SHA1 (patch-ad) = 5aad3cb93e747f7522c023e46496b8ba956ea664
-SHA1 (patch-ah) = b4f198638e3c9e6b4cd0a88f058b85a196c7ac9d
+SHA1 (sqwebmail-5.1.6.tar.bz2) = 04ecff69dfcd01fc947adfafe39d8f2bd80254e6
+RMD160 (sqwebmail-5.1.6.tar.bz2) = 231c0f972a7423c231ff7db8bacc6417aae5354a
+Size (sqwebmail-5.1.6.tar.bz2) = 3809004 bytes
+SHA1 (patch-aa) = 85ce29b1be7335d547740783eb726d25cc4f0765
+SHA1 (patch-ad) = 813bab377ad047599af8846631e16a240f2fd7ec
+SHA1 (patch-ah) = 5f88760e7d69fbad6894557283c069e0c9592044
SHA1 (patch-ai) = def2f4d30bf5f15ea78f401f3c4ca2f2ec8c0ad2
-SHA1 (patch-aj) = 2ad7d2500a54ca4f94ba00aaab89df29adcf864e
+SHA1 (patch-aj) = 510c91faf9d0cd584b5ec9da07a034a7d89d62f3
+SHA1 (patch-am) = 8d78356319eead76a9170bf8183ddddb34481552
diff -r d7ad83865a93 -r d67828a683e0 mail/sqwebmail/files/sqwebmail.sh
--- a/mail/sqwebmail/files/sqwebmail.sh Fri Aug 10 17:57:09 2007 +0000
+++ b/mail/sqwebmail/files/sqwebmail.sh Fri Aug 10 17:57:13 2007 +0000
@@ -1,6 +1,6 @@
#!@RCD_SCRIPTS_SHELL@
#
-# $NetBSD: sqwebmail.sh,v 1.7 2006/11/20 11:45:14 cube Exp $
+# $NetBSD: sqwebmail.sh,v 1.8 2007/08/10 17:57:14 jlam Exp $
#
# Courier SqWebMail services daemon
#
@@ -17,11 +17,12 @@
pidfile="@VARBASE@/run/sqwebmaild.pid"
required_files="@PKG_SYSCONFDIR@/calendarmode @PKG_SYSCONFDIR@/sqwebmaild"
-start_precmd="sqwebmail_prestart"
-start_cmd="sqwebmail_doit start"
-stop_cmd="sqwebmail_doit stop"
+start_precmd="${name}_prestart"
+start_cmd="${name}_doit start"
+stop_cmd="${name}_doit stop"
-mkdir_perms() {
+mkdir_perms()
+{
dir="$1"; user="$2"; group="$3"; mode="$4"
@TEST@ -d $dir || @MKDIR@ $dir
@CHOWN@ $user $dir
diff -r d7ad83865a93 -r d67828a683e0 mail/sqwebmail/patches/patch-aa
--- a/mail/sqwebmail/patches/patch-aa Fri Aug 10 17:57:09 2007 +0000
+++ b/mail/sqwebmail/patches/patch-aa Fri Aug 10 17:57:13 2007 +0000
@@ -1,14 +1,13 @@
-$NetBSD: patch-aa,v 1.7 2006/01/03 05:59:12 jlam Exp $
+$NetBSD: patch-aa,v 1.8 2007/08/10 17:57:14 jlam Exp $
---- Makefile.in.orig 2005-12-25 17:02:47.000000000 -0500
+--- Makefile.in.orig 2007-04-22 14:40:39.000000000 -0400
+++ Makefile.in
-@@ -237,19 +237,18 @@ EXTRA_DIST = INSTALL.html README NEWS RE
- pgpkeys.txt
+@@ -239,18 +239,18 @@ EXTRA_DIST = INSTALL.html README NEWS RE
scriptbindir = $(sbindir)
--scriptbin_SCRIPTS = \
+ scriptbin_SCRIPTS = \
- sharedindexinstall sharedindexsplit
-+scriptbin_SCRIPTS = sqwebmaild.rc
++ webmaild.rc
-pkglibPROGRAMS = maildirmake deliverquota reformime makemime pcpd
-pkglibexecdir = $(libexecdir)/sqwebmail
@@ -21,10 +20,29 @@
pkgman8dir = @mandir@/man8
-pkgman8_DATA = deliverquota.8
-+pkgman8_DATA =
++pkgman8_DATA =
pkgman1dir = @mandir@/man1
-pkgman1_DATA = maildirmake.1
-+pkgman1_DATA =
- @HAVE_HTMLPAGES_TRUE@NEWS_SOURCE = html/main.html
++pkgman1_DATA =
+ @HAVE_HTMLPAGES_TRUE@NEWS_SOURCE = html/index2.html
all: config.h
$(MAKE) $(AM_MAKEFLAGS) all-recursive
+@@ -823,6 +823,9 @@ uninstall-info: uninstall-info-recursive
+ sqwebmaild.dist: sqwebmail/sqwebmaild.dist
+ cp sqwebmail/sqwebmaild.dist .
+
++webmaild.rc: sqwebmaild.rc
++ cp sqwebmaild.rc webmaild.rc
++
+ pcpd: pcp/pcpd
+ cp pcp/pcpd .
+
+@@ -858,7 +861,7 @@ install-exec-local:
+ $(mkinstalldirs) $(DESTDIR)$(cgibindir)
+ test -w $(DESTDIR)$(cgibindir) || exit 0; \
+ $(INSTALL_PROGRAM) sqwebmail/sqwebmail \
+- $(DESTDIR)$(cgibindir)/sqwebmail
++ $(DESTDIR)$(cgibindir)/webmail
+ $(mkinstalldirs) $(DESTDIR)$(pkglibexecdir)
+ $(INSTALL_PROGRAM) sqwebmail/sqwebmaild $(DESTDIR)$(pkglibexecdir)/sqwebmaild
+
diff -r d7ad83865a93 -r d67828a683e0 mail/sqwebmail/patches/patch-ad
--- a/mail/sqwebmail/patches/patch-ad Fri Aug 10 17:57:09 2007 +0000
+++ b/mail/sqwebmail/patches/patch-ad Fri Aug 10 17:57:13 2007 +0000
@@ -1,8 +1,8 @@
-$NetBSD: patch-ad,v 1.7 2006/06/09 22:12:01 jlam Exp $
+$NetBSD: patch-ad,v 1.8 2007/08/10 17:57:14 jlam Exp $
---- sqwebmail/Makefile.in.orig 2006-05-24 19:48:14.000000000 -0400
+--- sqwebmail/Makefile.in.orig 2007-04-22 14:18:04.000000000 -0400
+++ sqwebmail/Makefile.in
-@@ -992,7 +992,7 @@ install-perms-local: install-perms-cache
+@@ -991,7 +991,7 @@ install-perms-local: install-perms-cache
htmllibdir.h: config.status
echo '#define HTMLLIBDIR "@htmldir@"' >htmllibdir.h
@@ -11,7 +11,7 @@
echo '#define CALENDARMODE "$(sysconfdir)/calendarmode"' >>htmllibdir.h
echo '#define LOGINDOMAINLIST "$(sysconfdir)/logindomainlist"' >>htmllibdir.h
echo '#define MAXMSGSIZE @MAXMSGSIZE@' >>htmllibdir.h
-@@ -1000,7 +1000,7 @@ htmllibdir.h: config.status
+@@ -999,7 +999,7 @@ htmllibdir.h: config.status
echo '#define SOCKDIR "$(localstatedir)"' >>htmllibdir.h
echo '#define SHAREDINDEXFILE "$(sysconfdir)/shared/index"' >>htmllibdir.h
echo '#define SQWEBPASSWD "$(pkglibexecdir)/sqwebpasswd"' >>htmllibdir.h
@@ -20,7 +20,7 @@
; then \
echo '#define HOSTNAMEFILE "$(sysconfdir)/defaultdomain"' >>htmllibdir.h \
; echo '#define MAKEMIME "$(bindir)/makemime"' >>htmllibdir.h \
-@@ -1009,7 +1009,7 @@ htmllibdir.h: config.status
+@@ -1008,7 +1008,7 @@ htmllibdir.h: config.status
; echo '#define MAKEMIME "$(pkglibexecdir)/makemime"' >>htmllibdir.h \
; fi
echo '#define LDAPADDRESSBOOK "$(sysconfdir)/ldapaddressbook"' >>htmllibdir.h
@@ -29,7 +29,7 @@
echo '#define AUTHCHARSET "$(sysconfdir)/authcharset"' >>htmllibdir.h
ldapsearch: ../ldapaddressbook/ldapsearch
-@@ -1037,9 +1037,6 @@ install-perms-cache:
+@@ -1036,9 +1036,6 @@ install-perms-cache:
@echo "@cachedir@ 700 @cacheowner@ bin" >>permissions.dat
cache-reminder:
diff -r d7ad83865a93 -r d67828a683e0 mail/sqwebmail/patches/patch-ah
--- a/mail/sqwebmail/patches/patch-ah Fri Aug 10 17:57:09 2007 +0000
+++ b/mail/sqwebmail/patches/patch-ah Fri Aug 10 17:57:13 2007 +0000
@@ -1,8 +1,8 @@
-$NetBSD: patch-ah,v 1.4 2006/06/09 22:12:01 jlam Exp $
+$NetBSD: patch-ah,v 1.5 2007/08/10 17:57:14 jlam Exp $
---- sqwebmail/configure.orig 2006-05-24 19:48:13.000000000 -0400
+--- sqwebmail/configure.orig 2007-04-22 14:18:04.000000000 -0400
+++ sqwebmail/configure
-@@ -20269,7 +20269,7 @@ fi;
+@@ -19225,7 +19225,7 @@ fi;
diff -r d7ad83865a93 -r d67828a683e0 mail/sqwebmail/patches/patch-aj
--- a/mail/sqwebmail/patches/patch-aj Fri Aug 10 17:57:09 2007 +0000
+++ b/mail/sqwebmail/patches/patch-aj Fri Aug 10 17:57:13 2007 +0000
@@ -1,13 +1,13 @@
-$NetBSD: patch-aj,v 1.5 2006/04/28 18:16:25 jlam Exp $
+$NetBSD: patch-aj,v 1.6 2007/08/10 17:57:14 jlam Exp $
---- INSTALL.html.orig 2006-02-25 12:13:16.000000000 -0500
+--- INSTALL.html.orig 2007-03-15 22:05:22.000000000 -0400
+++ INSTALL.html
-@@ -707,7 +707,7 @@ Qmail box.</p>
- installation. The following presumes that SqWebMail's configuration files are
- installed in <code>/usr/lib/sqwebmail</code> (the default).</p>
+@@ -806,7 +806,7 @@ BrowserMatch "MSIE" nokeepalive downgrad
+ configuration files are installed in
+ <code>/usr/lib/sqwebmail</code> (the default).</p>
--<p><code>/usr/lib/sqwebmail/etc/hostname</code> - when SqWebMail is installed
-+<p><code>/usr/lib/sqwebmail/etc/defaultdomain</code> - when SqWebMail is installed
- with a basic configuration for a single domain, SqWebMail sets the domain in
- the return address for outgoing messages to the defined system hostname. If
- this file exists it will be used instead of the defined system hostname.</p>
+- <p><code>/usr/lib/sqwebmail/etc/hostname</code> - when SqWebMail
++ <p><code>/usr/lib/sqwebmail/etc/defaultdomain</code> - when SqWebMail
+ is installed with a basic configuration for a single domain,
+ SqWebMail sets the domain in the return address for outgoing
+ messages to the defined system hostname. If this file exists it
diff -r d7ad83865a93 -r d67828a683e0 mail/sqwebmail/patches/patch-am
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/mail/sqwebmail/patches/patch-am Fri Aug 10 17:57:13 2007 +0000
@@ -0,0 +1,22 @@
+$NetBSD: patch-am,v 1.1 2007/08/10 17:57:14 jlam Exp $
+
+--- pcp/configure.orig 2007-08-09 13:50:02.000000000 -0400
Home |
Main Index |
Thread Index |
Old Index