diff options
author | sat <sat@FreeBSD.org> | 2007-04-06 20:00:53 +0800 |
---|---|---|
committer | sat <sat@FreeBSD.org> | 2007-04-06 20:00:53 +0800 |
commit | 753640af6967149f0da39e03513873830738032a (patch) | |
tree | d14518a9f3d790cabd229194f6b935d6022e22e6 /mail/horde-imp | |
parent | 012ee77416e61dfbbcacbb1bde79d2249c9e79eb (diff) | |
download | freebsd-ports-gnome-753640af6967149f0da39e03513873830738032a.tar.gz freebsd-ports-gnome-753640af6967149f0da39e03513873830738032a.tar.zst freebsd-ports-gnome-753640af6967149f0da39e03513873830738032a.zip |
- Remove dependency on imap server
- Remove apache cruft
- Fix package
- Bump portrevision
Submitted by: Beech Rintoul <beech@alaskaparadise.com> (maintainer)
Diffstat (limited to 'mail/horde-imp')
-rw-r--r-- | mail/horde-imp/Makefile | 80 | ||||
-rw-r--r-- | mail/horde-imp/files/httpd.conf.imp | 31 | ||||
-rw-r--r-- | mail/horde-imp/files/pkg-message.in | 6 | ||||
-rw-r--r-- | mail/horde-imp/pkg-plist | 1 |
4 files changed, 10 insertions, 108 deletions
diff --git a/mail/horde-imp/Makefile b/mail/horde-imp/Makefile index a75f3f6b2e6e..48e7a1ebb674 100644 --- a/mail/horde-imp/Makefile +++ b/mail/horde-imp/Makefile @@ -8,6 +8,7 @@ PORTNAME= imp PORTVERSION= 4.1.4 DISTVERSIONPREFIX= h3- +PORTREVISION= 1 CATEGORIES= mail www MASTER_SITES= HORDE @@ -33,28 +34,7 @@ COMMENT= Webmail system for IMAP/POP3 mailboxes # # - WITH_VALID_CERT : if you own a valid SSL certificate; # -# - WITHOUT_INGO : if you don't need filters management; -# -# - WITHOUT_NAG : if you don't want tasks management; -# -# - WITHOUT_TURBA : if you do not want adressbooks; -# # - WITH_HTML : enable HTML composition mode; -# -# - WITH_IMAPSERVER : if you to depend on an IMAP server; -# -# or you can select to work with one of these servers: -# -# - WITH_CYRUS-IMAPD : IMP will work with cyrus-imapd; -# -# - WITH_IMAP-UW : IMP will work with imap-uw; -# -# - WITH_DOVECOT : IMP will work with dovecot; -# -# - WITH_COURIER-IMAP : IMP will work with courier-imap. -# -# These choices are mutually exclusive, and imap-uw is the default. -# #----------------------------------------------------------------------- RUN_DEPENDS+= ${PEARDIR}/Auth/SASL.php:${PORTSDIR}/security/pear-Auth_SASL @@ -62,22 +42,11 @@ RUN_DEPENDS+= ${PEARDIR}/Auth/SASL.php:${PORTSDIR}/security/pear-Auth_SASL CONFLICTS= imp-3.* USE_PHP= imap -.if defined(WITHOUT_TURBA) . if !defined(WITHOUT_LDAP) USE_PHP+= ldap . endif -RUN_DEPENDS+= ${LOCALBASE}/${LHORDEDIR}/rpc.php:${PORTSDIR}/www/horde-base -.else -RUN_DEPENDS+= ${LOCALBASE}/${LHORDEDIR}/turba/minisearch.php:${PORTSDIR}/mail/turba -.endif -.if !defined(WITHOUT_INGO) -RUN_DEPENDS+= ${LOCALBASE}/${LHORDEDIR}/ingo/filters.php:${PORTSDIR}/mail/ingo -.endif - -.if !defined(WITHOUT_NAG) -RUN_DEPENDS+= ${LOCALBASE}/${LHORDEDIR}/nag/data.php:${PORTSDIR}/deskutils/nag -.endif +RUN_DEPENDS+= ${LOCALBASE}/${LHORDEDIR}/rpc.php:${PORTSDIR}/www/horde-base .if !defined(WITHOUT_SMIME) USE_PHP+= openssl @@ -98,7 +67,6 @@ RUN_DEPENDS+= ${PEARDIR}/HTTP/Request.php:${PORTSDIR}/www/pear-HTTP_Request .endif NO_BUILD= yes -USE_APACHE= 1.3+ # needed to test APACHE_VERSION USE_GETTEXT= yes REINPLACE_ARGS= -i.beforeIMP @@ -131,40 +99,6 @@ PATCH2RM= prefs.php.dist.orig servers.php.dist.orig conf.xml.orig \ .include <bsd.port.pre.mk> -# I have no report about the support of dkimap4 by IMP, -# but I shall be happy to add it if someone report success with it. -# If an IMAP server is already installed, we just record the dependence, -# 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(WITH_IMAPSERVER) -. if defined(WITH_IMAP-UW) || exists(${LOCALBASE}/libexec/imapd) -RUN_DEPENDS+= ${LOCALBASE}/libexec/imapd:${PORTSDIR}/mail/imap-uw -. elif defined(WITH_CYRUS-IMAPD) || exists(${LOCALBASE}/cyrus/bin/master) -RUN_DEPENDS+= ${LOCALBASE}/cyrus/bin/master:${PORTSDIR}/mail/cyrus-imapd23 -. elif defined(WITH_COURIER-IMAP) || exists(${LOCALBASE}/bin/deliverquota) -RUN_DEPENDS+= ${LOCALBASE}/bin/deliverquota:${PORTSDIR}/mail/courier-imap -. elif defined(WITH_DOVECOT) || exists(${LOCALBASE}/libexec/dovecot/imap) -RUN_DEPENDS+= ${LOCALBASE}/libexec/dovecot/imap:${PORTSDIR}/mail/dovecot -. else -RUN_DEPENDS+= ${LOCALBASE}/libexec/imapd:${PORTSDIR}/mail/imap-uw -. endif -.endif - -.if ${APACHE_VERSION} >= 20 -HORDE_INC= ${LOCALBASE}/etc/apache${APACHE_VERSION:S/20/2/}/Includes/ -.else -HORDE_INC= ${LOCALBASE}/etc/horde/ -.endif - -pre-everything:: -.if !defined(WITHOUT_IMAPSERVER) - @${ECHO_MSG} "" - @${ECHO_MSG} "Press CTRL-C and define WITHOUT_IMAPSERVER" - @${ECHO_MSG} "if you intend to run an IMAP server on an other machine." - @${ECHO_MSG} "" -.endif - post-extract: @${MV} ${WRKSRC}/README ${WRKSRC}/docs/ @@ -201,8 +135,7 @@ pre-configure: ${WRKSRC}/config/servers.php.dist . endif .endif - @${SED} -e "s:/home/httpd/html/horde/imp:${IMPDIR}:" \ - ${FILESDIR}/httpd.conf.imp > ${WRKDIR}/httpd-imp.conf + .for fc in ${PATCH2RM} @${RM} ${WRKSRC}/config/${fc} .endfor @@ -223,9 +156,12 @@ do-install: @${CP} -Rp ${SUB_DIRS:S|^|${WRKSRC}/|} ${IMPDIR}/ @${CP} -p ${WRKSRC}/*.php ${IMPDIR}/ @${INSTALL_DATA} ${WRKSRC}/config/conf.xml ${CONFDIR}/ - @${INSTALL_DATA} ${WRKDIR}/httpd-imp.conf ${HORDE_INC}/ @${CHOWN} -R ${WWWOWN}:${WWWGRP} ${IMPDIR}/ - @${CHMOD} -R o-rwx ${CONFDIR}/ + @${CHMOD} -R o-rwx ${IMPDIR}/ + ${ECHO_CMD} @exec ${CHOWN} -R ${WWWOWN}:${WWWGRP}\ + %D/${IMPDIR:S|^${PREFIX}/||}/ >> ${TMPPLIST} + ${ECHO_CMD} @exec ${CHMOD} -R o-rwx\ + %D/${IMPDIR:S|^${PREFIX}/||}/ >> ${TMPPLIST} .if !defined(NOPORTDOCS) @${INSTALL} -d ${DOCSDIR}/ @${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/docs/|} ${DOCSDIR}/ diff --git a/mail/horde-imp/files/httpd.conf.imp b/mail/horde-imp/files/httpd.conf.imp deleted file mode 100644 index edd7b1df357e..000000000000 --- a/mail/horde-imp/files/httpd.conf.imp +++ /dev/null @@ -1,31 +0,0 @@ -# This is included in Apache's httpd.conf 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/po"> - order deny,allow - deny from all -</Directory> -<Directory "/home/httpd/html/horde/imp/scripts"> - 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/horde-imp/files/pkg-message.in b/mail/horde-imp/files/pkg-message.in index 1e77290035f9..0d82a9a5d916 100644 --- a/mail/horde-imp/files/pkg-message.in +++ b/mail/horde-imp/files/pkg-message.in @@ -5,8 +5,8 @@ configuration files. Horde must be configured and the tables created; if not, see `pkg_info -D -x horde'. -Then, you might have to tune the configuration files located in -%%CONFDIR%%/, specially the file servers.php. +Then, you have to tune the configuration files located in +%%CONFDIR%%/, specially the file servers.php to define your mailserver. Then, you must login to Horde as a Horde Administrator to finish the configuration. Please read %%DOCSDIR%%/INSTALL. @@ -14,8 +14,6 @@ configuration. Please read %%DOCSDIR%%/INSTALL. Warning: if you are upgrading from IMP 4.0.x, please read %%DOCSDIR%%/UPGRADING. -To protect your configuration files, you have to restart Apache. - To secure your installation, it is at least recommended that you change the default database password used by horde and imp. Then, you might change the 'session.save_path' setting in php.ini to a diff --git a/mail/horde-imp/pkg-plist b/mail/horde-imp/pkg-plist index 7ad86f23f91d..7aeb4b50a7c6 100644 --- a/mail/horde-imp/pkg-plist +++ b/mail/horde-imp/pkg-plist @@ -351,7 +351,6 @@ %%IMPDIR%%/themes/sun/screen.css %%IMPDIR%%/thread.php %%IMPDIR%%/view.php -%%HORDE_INC%%httpd-imp.conf @dirrm %%IMPDIR%%/themes/sun @dirrm %%IMPDIR%%/themes/simplex @dirrm %%IMPDIR%%/themes/postnuke |