aboutsummaryrefslogtreecommitdiff
path: root/deskutils/horde4-kronolith
diff options
context:
space:
mode:
authorJames E. Housley <jeh@FreeBSD.org>2003-11-06 11:24:48 +0000
committerJames E. Housley <jeh@FreeBSD.org>2003-11-06 11:24:48 +0000
commitc0f73976fb6fa14a652a1e2f91dc6226f294603e (patch)
tree0578dbbbe79da435c8a874ce80b02d49a1720e89 /deskutils/horde4-kronolith
parent4204e2c4d166a31467ac90b40c0311d7af2d8c3b (diff)
downloadports-c0f73976fb6fa14a652a1e2f91dc6226f294603e.tar.gz
ports-c0f73976fb6fa14a652a1e2f91dc6226f294603e.zip
Problem reported by Lewis Thompson: if you run Apache 2, htpasswd
is installed in $LOCALBASE/sbin, not $LOCALBASE/bin. Since I'm there, remove IS_INTERACTIVE (by default, it will depends on lang/php4-horde, build with MCAL support). BUMPED PORTREVISION PR: 58091 Submitted by: MAINTAINER
Notes
Notes: svn path=/head/; revision=93233
Diffstat (limited to 'deskutils/horde4-kronolith')
-rw-r--r--deskutils/horde4-kronolith/Makefile12
1 files changed, 9 insertions, 3 deletions
diff --git a/deskutils/horde4-kronolith/Makefile b/deskutils/horde4-kronolith/Makefile
index 9143b5086f97..762ade31dfa7 100644
--- a/deskutils/horde4-kronolith/Makefile
+++ b/deskutils/horde4-kronolith/Makefile
@@ -7,6 +7,7 @@
PORTNAME= kronolith
PORTVERSION= 1.1
+PORTREVISION= 1
CATEGORIES= deskutils www
MASTER_SITES= ftp://ftp.horde.org/pub/kronolith/ \
ftp://ftp.au.horde.org/pub/horde/kronolith/ \
@@ -22,10 +23,15 @@ RUN_DEPENDS= ${LOCALBASE}/www/horde/imp/index.php:${PORTSDIR}/mail/imp3
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
-IS_INTERACTIVE= 'need to build mod_php4 with MCAL option set.'
NO_BUILD= yes
USE_REINPLACE= yes
+.if defined(WITH_APACHE2)
+HTPASSWD= ${LOCALBASE}/sbin/htpasswd
+.else
+HTPASSWD= ${LOCALBASE}/bin/htpasswd
+.endif
+
REINPLACE_ARGS= -i.beforeKronolith
DOCS= COPYING README docs/CHANGES docs/CREDITS docs/INSTALL
CONFFILE= conf.php html.php keywords.php menu.php prefs.php
@@ -92,13 +98,13 @@ post-install:
${ECHO_MSG} "===> Creating ${LOCALBASE}/etc/mpasswd" ; \
${ECHO} -n "Please enter a password for www's calendar: " ; \
(read PASSCAL; \
- ${LOCALBASE}/bin/htpasswd -bc ${LOCALBASE}/etc/mpasswd www $${PASSCAL}; \
+ ${HTPASSWD} -bc ${LOCALBASE}/etc/mpasswd www $${PASSCAL}; \
${REINPLACE_CMD} -e "s:%%PASSCAL%%:$${PASSCAL}:" ${CONFDIR}/conf.php) \
elif ! ${GREP} -q -e "^www" ${LOCALBASE}/etc/mpasswd ; then \
${ECHO_MSG} "===> Adding www into ${LOCALBASE}/etc/mpasswd" ; \
${ECHO} -n "Please enter a password for www's calendar: " ; \
(read PASSCAL; \
- ${LOCALBASE}/bin/htpasswd -b ${LOCALBASE}/etc/mpasswd www $${PASSCAL} ; \
+ ${HTPASSWD} -b ${LOCALBASE}/etc/mpasswd www $${PASSCAL} ; \
${REINPLACE_CMD} -e "s:%%PASSCAL%%:$${PASSCAL}:" ${CONFDIR}/conf.php) \
else \
${REINPLACE_CMD} -e "s:%%PASSCAL%%:www_cal_password:" ${CONFDIR}/conf.php ; \