summaryrefslogtreecommitdiff
path: root/mail
diff options
context:
space:
mode:
authorjlam <jlam>2002-01-24 20:51:55 +0000
committerjlam <jlam>2002-01-24 20:51:55 +0000
commitab7b264fdc5879ad75760dd4bf4ac9582e008c37 (patch)
tree8037e05b843ab5717943148641012f410567ab3a /mail
parenteed8d6a559e33fd8e50836e982a0ad9f912b5645 (diff)
downloadpkgsrc-ab7b264fdc5879ad75760dd4bf4ac9582e008c37.tar.gz
This package actually needs perl as a dependency, not just a build
dependency, since the cache-cleaning script is a perl script (noted by Amitai Schlair in private email). Also change the permissions on the ldap config files so that LDAP searches have a better chance of succeeding. XXX - The global LDAP searches still don't work, but I haven't yet figured XXX - out why. The queries return records when executed on the command XXX - line, but the records aren't being displayed by sqwebmail.
Diffstat (limited to 'mail')
-rw-r--r--mail/sqwebmail/INSTALL19
-rw-r--r--mail/sqwebmail/Makefile11
2 files changed, 24 insertions, 6 deletions
diff --git a/mail/sqwebmail/INSTALL b/mail/sqwebmail/INSTALL
new file mode 100644
index 00000000000..d7923881138
--- /dev/null
+++ b/mail/sqwebmail/INSTALL
@@ -0,0 +1,19 @@
+# $NetBSD: INSTALL,v 1.1 2002/01/24 20:52:20 jlam Exp $
+
+SYSCONFTOOL="@SYSCONFTOOL@"
+EGDIR=${PKG_PREFIX}/share/examples/courier
+GEN_FILES="@GEN_FILES@"
+
+case ${STAGE} in
+POST-INSTALL)
+ eval set -- ${GEN_FILES}
+ for file
+ do
+ # Merge new config files with the old ones.
+ ${CP} ${EGDIR}/${file}.dist @PKG_SYSCONFDIR@/${file}.dist
+ ${SYSCONFTOOL} @PKG_SYSCONFDIR@/${file}
+ ${CHMOD} 0644 @PKG_SYSCONFDIR@/${file}
+ ${RM} -f @PKG_SYSCONFDIR@/${file}.dist
+ done
+ ;;
+esac
diff --git a/mail/sqwebmail/Makefile b/mail/sqwebmail/Makefile
index 8c2a91f2527..79d7e1d6d8d 100644
--- a/mail/sqwebmail/Makefile
+++ b/mail/sqwebmail/Makefile
@@ -1,15 +1,15 @@
-# $NetBSD: Makefile,v 1.4 2002/01/24 19:40:07 jlam Exp $
+# $NetBSD: Makefile,v 1.5 2002/01/24 20:51:55 jlam Exp $
DISTNAME= sqwebmail-3.3.1
CATEGORIES= www
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.1nb1:../../mail/courier-auth
DEPENDS+= courier-maildirmake>=0.37.1nb1:../../mail/courier-maildirmake
USE_BUILDLINK_ONLY= yes
+USE_PERL5= yes
REPLACE_PERL= sysconftool
.include "../../mail/courier-auth/Makefile.common"
@@ -53,11 +53,10 @@ 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
+CONF_FILES+= ${EGDIR}/${FILE}.dist ${PKG_SYSCONFDIR}/${FILE}
.endfor
+CONF_FILES_PERMS= # empty
.for FILE in ldapsearch sendit.sh
CONF_FILES_PERMS+= ${DATADIR}/sqwebmail/${FILE} \
${PKG_SYSCONFDIR}/${FILE} \
@@ -65,7 +64,7 @@ CONF_FILES_PERMS+= ${DATADIR}/sqwebmail/${FILE} \
.endfor
DEINSTALL_EXTRA_TMPL= ${.CURDIR}/DEINSTALL
-INSTALL_EXTRA_TMPL= ${.CURDIR}/../../mail/courier-auth/INSTALL
+INSTALL_EXTRA_TMPL= ${.CURDIR}/INSTALL
FILES_SUBST+= SYSCONFTOOL=${SYSCONFTOOL:Q}
FILES_SUBST+= GEN_FILES=${GEN_FILES:Q}
MESSAGE_SUBST+= IMAGEDIR=${IMAGEDIR}