diff options
author | Ying-Chieh Liao <ijliao@FreeBSD.org> | 2001-11-14 00:56:29 +0000 |
---|---|---|
committer | Ying-Chieh Liao <ijliao@FreeBSD.org> | 2001-11-14 00:56:29 +0000 |
commit | c20792651287362e39af2f9e6cdbd26f847a8585 (patch) | |
tree | 54169cd411accb138ef3047b50fe10b08a6d901d /mail/imp | |
parent | 05b56c73a4464b0234bee006cb0adbfd343d2b7d (diff) | |
download | ports-c20792651287362e39af2f9e6cdbd26f847a8585.tar.gz ports-c20792651287362e39af2f9e6cdbd26f847a8585.zip |
Notes
Diffstat (limited to 'mail/imp')
-rw-r--r-- | mail/imp/Makefile | 51 | ||||
-rw-r--r-- | mail/imp/distinfo | 2 | ||||
-rw-r--r-- | mail/imp/httpd.conf.imp | 24 | ||||
-rw-r--r-- | mail/imp/pkg-deinstall | 12 | ||||
-rw-r--r-- | mail/imp/pkg-plist | 24 |
5 files changed, 102 insertions, 11 deletions
diff --git a/mail/imp/Makefile b/mail/imp/Makefile index 6c15ad989456..77cf1d4eef61 100644 --- a/mail/imp/Makefile +++ b/mail/imp/Makefile @@ -7,8 +7,7 @@ # PORTNAME= imp -PORTVERSION= 2.2.6 -PORTREVISION= 1 +PORTVERSION= 2.2.7 CATEGORIES= mail www MASTER_SITES= ftp://ftp.horde.org/pub/imp/tarballs/ @@ -42,7 +41,7 @@ MAINTAINER= thierry@thomas.as # # - WITH_COURIER-IMAP : IMP will work with courier-imap. # -# These choice are mutually exclusive, and cyrus-imapd is the default. +# These choice are mutually exclusive, and imap-uw is the default. # #----------------------------------------------------------------------- @@ -58,25 +57,25 @@ LIB_DEPENDS+= ldap.1:${PORTSDIR}/net/openldap \ .endif .endif -RUN_DEPENDS+= ${LOCALBASE}/www/horde/:${PORTSDIR}/www/horde +RUN_DEPENDS+= ${LOCALBASE}/www/horde/index.php3:${PORTSDIR}/www/horde # I have no report about the support of dkimap4 by IMP, # but I shall be happy to add it if somebody report success with it. # If an IMAP server is already installed, we just record the dependence, -# else we shall install cyrus-imapd. +# else we shall install imap-uw. # IMAP servers are ordered according to my tastes, if several are # installed, we just record the first one. .if !defined(WITHOUT_IMAPSERVER) -.if defined(WITH_CYRUS-IMAPD) -RUN_DEPENDS+= ${LOCALBASE}/lib/libacap.a:${PORTSDIR}/mail/cyrus-imapd -.elif defined(WITH_IMAP-UW) +.if defined(WITH_IMAP-UW) RUN_DEPENDS+= ${LOCALBASE}/libexec/imapd:${PORTSDIR}/mail/imap-uw +.elif defined(WITH_CYRUS-IMAPD) +RUN_DEPENDS+= ${LOCALBASE}/lib/libacap.a:${PORTSDIR}/mail/cyrus-imapd .elif defined(WITH_CYRUS) RUN_DEPENDS+= ${LOCALBASE}/cyrus/:${PORTSDIR}/mail/cyrus .elif defined(WITH_COURIER-IMAP) RUN_DEPENDS+= ${LOCALBASE}/libexec/courier-imap/:${PORTSDIR}/mail/courier-imap .else -RUN_DEPENDS+= ${LOCALBASE}/lib/libacap.a:${PORTSDIR}/mail/cyrus-imapd +RUN_DEPENDS+= ${LOCALBASE}/libexec/imapd:${PORTSDIR}/mail/imap-uw .endif .endif @@ -100,12 +99,16 @@ DOCS= COPYING README docs/CHANGES docs/CREDITS docs/DATABASE \ LHORDEDIR?= www/horde LIMPDIR?= ${LHORDEDIR}/imp +HORDESBIN?= ${PREFIX}/sbin PLIST_SUB= HORDEDIR=${LHORDEDIR} IMPDIR=${LIMPDIR} HORDEDIR= ${PREFIX}/${LHORDEDIR} IMPDIR= ${PREFIX}/${LIMPDIR} +APACHE_CNFDIR?= ${LOCALBASE}/etc/apache +APACHE_CONF= ${APACHE_CNFDIR}/httpd.conf + pre-everything:: .if !defined(WITHOUT_IMAPSERVER) @${ECHO_MSG} "" @@ -116,6 +119,12 @@ pre-everything:: pre-install: # N.B.: database dependencies are binded with mod_php#, neither by Horde nor IMP. + @if [ -f ${IMPDIR}/index.php ]; then \ + ${ECHO_MSG} "" ; \ + ${ECHO_MSG} "Please deinstall the port mail/imp-devel." ; \ + ${ECHO_MSG} "" ; \ + ${FALSE} ; \ + fi @if ! ${LDCONFIG} -r | ${GREP} -q -e "c-client4.8"; then \ ${ECHO_MSG} "" ; \ ${ECHO_MSG} "Please configure PHP with IMAP support." ; \ @@ -173,6 +182,12 @@ do-install: ${PERL} -pi -e "s:/bin/tar:/usr/bin/tar:g" ${IMPDIR}/config/defaults.php3.dist ${PERL} -pi -e "s:/usr/bin/zipinfo:${LOCALBASE}/bin/zipinfo:g" \ ${IMPDIR}/config/defaults.php3.dist + ${PERL} -pi -e "s:sh ./secure.sh:${HORDESBIN}/horde_secure.sh:g" \ + ${IMPDIR}/templates/index/imp_notconfigured.inc + ${PERL} -pi -e "s:sh ./install.sh:${HORDESBIN}/horde_setup.sh:g" \ + ${IMPDIR}/templates/index/imp_notconfigured.inc + ${PERL} -pi -e "s:sh ./secure.sh:${HORDESBIN}/horde_secure.sh:g" \ + ${HORDEDIR}/templates/setup/imp/write_file.inc @if [ ! -f ${IMPDIR}/config/defaults.php3 ]; then \ ${CP} ${IMPDIR}/config/defaults.php3.dist ${IMPDIR}/config/defaults.php3; \ fi @@ -186,8 +201,21 @@ do-install: @if [ ! -f ${IMPDIR}/config/servers.php3 ]; then \ ${CP} ${IMPDIR}/config/servers.php3.dist ${IMPDIR}/config/servers.php3; \ fi + ${CHOWN} -R www:www ${IMPDIR} ${CHMOD} 444 ${HORDEDIR}/setup.php3 + @(if [ -f ${APACHE_CONF} ] ; then \ + (if [ ! -f ${APACHE_CONF}.beforeIMP ] ; then \ + ${ECHO} "===> Updating ${APACHE_CONF}..." ; \ + ${CP} -p ${.CURDIR}/httpd.conf.imp ${WRKDIR}/httpd.conf.imp ; \ + ${PERL} -pi -e "s:/home/httpd/html/horde/imp:${IMPDIR}:g" \ + ${WRKDIR}/httpd.conf.imp ; \ + ${CP} -p ${APACHE_CONF} ${APACHE_CONF}.beforeIMP ; \ + ${GREP} -qw 'Added for IMP' ${APACHE_CONF} || ${CAT} ${WRKDIR}/httpd.conf.imp \ + >> ${APACHE_CONF} ; \ + fi) ; \ + fi) .if !defined(NOPORTDOCS) + ${PERL} -pi -e "s:/home/httpd/html/horde/imp:${IMPDIR}:g" ${WRKSRC}/docs/SECURITY ${MKDIR} ${DOCSDIR} .for FILE in ${DOCS} ${INSTALL_DATA} ${WRKSRC}/${FILE} ${DOCSDIR} @@ -208,8 +236,11 @@ post-install: @${ECHO} "In order to end IMP's configuration, please read the" @${ECHO} "file ${DOCSDIR}/INSTALL." @${ECHO} "" + @${ECHO} "If ${APACHE_CONF} has been updated," + @${ECHO} "you have to restart Apache." + @${ECHO} "" @${ECHO} "The configuration utitility is located at" - @${ECHO} "<URL:http://localhost/horde/imp/setup.php3>". + @${ECHO} "<URL:http://localhost/horde/setup.php3>". @${ECHO} "" @${ECHO} "IMP requires an IMAP server. If you want to install one on this" @${ECHO} "machine, you may install the ports mail/cyrus-imapd, or" diff --git a/mail/imp/distinfo b/mail/imp/distinfo index b06bd18b862a..6934dd245690 100644 --- a/mail/imp/distinfo +++ b/mail/imp/distinfo @@ -1 +1 @@ -MD5 (imp-2.2.6.tar.gz) = 10c5f9b73b1894a2c6b78e46935808ea +MD5 (imp-2.2.7.tar.gz) = b5c683e1dc862fd185c9be0ce7188894 diff --git a/mail/imp/httpd.conf.imp b/mail/imp/httpd.conf.imp new file mode 100644 index 000000000000..eddffb5b5f1c --- /dev/null +++ b/mail/imp/httpd.conf.imp @@ -0,0 +1,24 @@ + +# Added for IMP +# +# For security, don't serve pages from the IMP configuration and +# library directories. +# +<Directory "/home/httpd/html/horde/imp/config"> + order deny,allow + deny from all +</Directory> +<Directory "/home/httpd/html/horde/imp/lib"> + order deny,allow + deny from all +</Directory> +<Directory "/home/httpd/html/horde/imp/locale"> + order deny,allow + deny from all +</Directory> +<Directory "/home/httpd/html/horde/imp/templates"> + order deny,allow + deny from all +</Directory> +# End of IMP configuration ================ + diff --git a/mail/imp/pkg-deinstall b/mail/imp/pkg-deinstall new file mode 100644 index 000000000000..ee55cbb6519e --- /dev/null +++ b/mail/imp/pkg-deinstall @@ -0,0 +1,12 @@ +#!/bin/sh +# Try to restore httpd.conf when deinstalling IMP + +if [ x$2 != xDEINSTALL ]; then + exit +fi + +if [ -f ${PKG_PREFIX}/etc/apache/httpd.conf.beforeIMP ] ; then + echo "Restoring httpd.conf..." + cp ${PKG_PREFIX}/etc/apache/httpd.conf ${PKG_PREFIX}/etc/apache/httpd.conf.deinstIMP + mv ${PKG_PREFIX}/etc/apache/httpd.conf.beforeIMP ${PKG_PREFIX}/etc/apache/httpd.conf +fi diff --git a/mail/imp/pkg-plist b/mail/imp/pkg-plist index 3b364c943e1e..1d59e0d71dda 100644 --- a/mail/imp/pkg-plist +++ b/mail/imp/pkg-plist @@ -729,6 +729,29 @@ %%IMPDIR%%/locale/sl/select.lang %%IMPDIR%%/locale/sl/spelling.lang %%IMPDIR%%/locale/sl/status.lang +%%IMPDIR%%/locale/zh/compose.help +%%IMPDIR%%/locale/zh/compose.lang +%%IMPDIR%%/locale/zh/contacts.help +%%IMPDIR%%/locale/zh/contacts.lang +%%IMPDIR%%/locale/zh/folders.help +%%IMPDIR%%/locale/zh/folders.lang +%%IMPDIR%%/locale/zh/help.lang +%%IMPDIR%%/locale/zh/horde.lang +%%IMPDIR%%/locale/zh/login.help +%%IMPDIR%%/locale/zh/login.lang +%%IMPDIR%%/locale/zh/mailbox.lang +%%IMPDIR%%/locale/zh/menu.lang +%%IMPDIR%%/locale/zh/message.lang +%%IMPDIR%%/locale/zh/newuser.entro.txt +%%IMPDIR%%/locale/zh/newuser.intro.txt +%%IMPDIR%%/locale/zh/newuser.lang +%%IMPDIR%%/locale/zh/newuser.start.txt +%%IMPDIR%%/locale/zh/openwin.lang +%%IMPDIR%%/locale/zh/passwd.lang +%%IMPDIR%%/locale/zh/prefs.lang +%%IMPDIR%%/locale/zh/select.lang +%%IMPDIR%%/locale/zh/spelling.lang +%%IMPDIR%%/locale/zh/status.lang %%IMPDIR%%/locale/zh-tw/compose.help %%IMPDIR%%/locale/zh-tw/compose.lang %%IMPDIR%%/locale/zh-tw/contacts.help @@ -850,6 +873,7 @@ @dirrm %%IMPDIR%%/templates @dirrm %%IMPDIR%%/scripts @dirrm %%IMPDIR%%/locale/zh-tw +@dirrm %%IMPDIR%%/locale/zh @dirrm %%IMPDIR%%/locale/sl @dirrm %%IMPDIR%%/locale/sk @dirrm %%IMPDIR%%/locale/se |