diff options
author | Thierry Thomas <thierry@FreeBSD.org> | 2006-01-06 00:38:13 +0000 |
---|---|---|
committer | Thierry Thomas <thierry@FreeBSD.org> | 2006-01-06 00:38:13 +0000 |
commit | e23ee358fa1ac94e411715abac088791dc154c19 (patch) | |
tree | 2f2d07d89e8f9b0b1bbbaa61fc0a3c53d8b1308c /mail/horde4-imp | |
parent | 8931540e0ace91aa22d2f957ccaefa11eb78adca (diff) | |
download | ports-e23ee358fa1ac94e411715abac088791dc154c19.tar.gz ports-e23ee358fa1ac94e411715abac088791dc154c19.zip |
Notes
Diffstat (limited to 'mail/horde4-imp')
-rw-r--r-- | mail/horde4-imp/Makefile | 21 | ||||
-rw-r--r-- | mail/horde4-imp/distinfo | 1 | ||||
-rw-r--r-- | mail/horde4-imp/files/pkg-deinstall.in (renamed from mail/horde4-imp/pkg-deinstall) | 2 | ||||
-rw-r--r-- | mail/horde4-imp/pkg-plist | 2 |
4 files changed, 16 insertions, 10 deletions
diff --git a/mail/horde4-imp/Makefile b/mail/horde4-imp/Makefile index 3e5ccc623cf5..54440c11568a 100644 --- a/mail/horde4-imp/Makefile +++ b/mail/horde4-imp/Makefile @@ -104,6 +104,7 @@ 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_REINPLACE= yes REINPLACE_ARGS= -i.beforeIMP @@ -117,17 +118,15 @@ LHORDEDIR?= www/horde LIMPDIR= ${LHORDEDIR}/imp PEARDIR?= ${LOCALBASE}/share/pear -PLIST_SUB= IMPDIR=${LIMPDIR} -SUB_LIST= IMPDIR=${IMPDIR} PORTSDIR=${PORTSDIR} CONFDIR=${CONFDIR} - +PLIST_SUB= IMPDIR=${LIMPDIR} HORDE_INC=${HORDE_INC:S|^${LOCALBASE}/||} PKGMESSAGE= ${WRKDIR}/pkg-message -SUB_FILES= pkg-message +PKGDEINSTALL= ${WRKDIR}/pkg-deinstall +SUB_FILES= pkg-message pkg-deinstall +SUB_LIST= IMPDIR=${IMPDIR} PORTSDIR=${PORTSDIR} CONFDIR=${CONFDIR} IMPDIR= ${PREFIX}/${LIMPDIR} CONFDIR= ${IMPDIR}/config -HORDE_INC= ${LOCALBASE}/etc/horde - HOSTNAME?= `/bin/hostname` SERVOS?= ${OPSYS}-${OSREL} @@ -158,6 +157,12 @@ 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} "" @@ -200,7 +205,7 @@ pre-configure: . endif .endif @${SED} -e "s:/home/httpd/html/horde/imp:${IMPDIR}:" \ - ${FILESDIR}/httpd.conf.imp > ${WRKDIR}/httpd.conf.imp + ${FILESDIR}/httpd.conf.imp > ${WRKDIR}/httpd-imp.conf .for fc in ${PATCH2RM} @${RM} ${WRKSRC}/config/${fc} .endfor @@ -228,7 +233,7 @@ do-install: fi .endfor @${INSTALL_DATA} ${WRKSRC}/config/conf.xml ${CONFDIR} - @${INSTALL_DATA} ${WRKDIR}/httpd.conf.imp ${HORDE_INC} + @${INSTALL_DATA} ${WRKDIR}/httpd-imp.conf ${HORDE_INC} @${CHOWN} -R ${WWWOWN}:${WWWGRP} ${IMPDIR} @${CHMOD} -R o-rwx ${CONFDIR} .if !defined(NOPORTDOCS) diff --git a/mail/horde4-imp/distinfo b/mail/horde4-imp/distinfo index 06a2bb31b08b..22d57099697c 100644 --- a/mail/horde4-imp/distinfo +++ b/mail/horde4-imp/distinfo @@ -1,2 +1,3 @@ MD5 (imp-h3-4.0.4.tar.gz) = 437767b420c6280e680a42c8e34182d1 +SHA256 (imp-h3-4.0.4.tar.gz) = aa814f8f2bee0912a50df6220c77a60b43d83a52b0bc49dffbd30b63845c08d1 SIZE (imp-h3-4.0.4.tar.gz) = 3349908 diff --git a/mail/horde4-imp/pkg-deinstall b/mail/horde4-imp/files/pkg-deinstall.in index cd0aa1e6c6c5..13bb805c47d5 100644 --- a/mail/horde4-imp/pkg-deinstall +++ b/mail/horde4-imp/files/pkg-deinstall.in @@ -9,7 +9,7 @@ if [ x$2 != xDEINSTALL ]; then fi if [ -z "${PACKAGE_BUILDING}" ]; then - for cf in `ls ${PKG_PREFIX}/www/horde/imp/config/*php ${PKG_PREFIX}/www/horde/imp/config/*txt`; do + for cf in `ls %%IMPDIR%%/config/*php %%IMPDIR%%/config/*txt`; do diff -bBqw $cf $cf.dist >/dev/null 2>&1 case $? in 0) # original config file, will be deleted by pkg-plist diff --git a/mail/horde4-imp/pkg-plist b/mail/horde4-imp/pkg-plist index cc4300f87ce6..4aed11a161f8 100644 --- a/mail/horde4-imp/pkg-plist +++ b/mail/horde4-imp/pkg-plist @@ -361,7 +361,7 @@ %%IMPDIR%%/thread.php %%IMPDIR%%/view.php %%PORTDOCS%%@dirrm %%DOCSDIR%% -etc/horde/httpd.conf.imp +%%HORDE_INC%%/httpd-imp.conf @dirrm %%IMPDIR%%/themes/sun @dirrm %%IMPDIR%%/themes/simplex @dirrm %%IMPDIR%%/themes/postnuke |