View | Details | Raw Unified | Return to bug 31937
Collapse All | Expand All

(-)www/horde/Makefile (-5 / +13 lines)
Lines 7-14 Link Here
7
#
7
#
8
8
9
PORTNAME=	horde
9
PORTNAME=	horde
10
PORTVERSION=	1.2.6
10
PORTVERSION=	1.2.7
11
PORTREVISION=	1
12
CATEGORIES=	www
11
CATEGORIES=	www
13
MASTER_SITES=	ftp://ftp.horde.org/pub/horde/tarballs/
12
MASTER_SITES=	ftp://ftp.horde.org/pub/horde/tarballs/
14
13
Lines 68-73 Link Here
68
	@${ECHO_MSG} ""
67
	@${ECHO_MSG} ""
69
.endif
68
.endif
70
69
70
pre-install:
71
	@if [ -f ${HORDEDIR}/index.php ]; then \
72
		${ECHO_MSG} "" ; \
73
		${ECHO_MSG} "Please deinstall the port www/horde-devel." ; \
74
		${ECHO_MSG} "" ; \
75
		${FALSE} ; \
76
	 fi
77
71
do-install:
78
do-install:
72
	${MKDIR}  ${HORDEDIR}
79
	${MKDIR}  ${HORDEDIR}
73
	${MKDIR}  ${PHPLIBDIR}
80
	${MKDIR}  ${PHPLIBDIR}
Lines 83-88 Link Here
83
	${PERL} -pi -e "s:config/horde:${HORDEDIR}/config/horde:g" ${HORDESBIN}/horde_setup.sh
90
	${PERL} -pi -e "s:config/horde:${HORDEDIR}/config/horde:g" ${HORDESBIN}/horde_setup.sh
84
	${PERL} -pi -e "s:imp/config:${HORDEDIR}/imp/config:g" ${HORDESBIN}/horde_setup.sh
91
	${PERL} -pi -e "s:imp/config:${HORDEDIR}/imp/config:g" ${HORDESBIN}/horde_setup.sh
85
	${PERL} -pi -e "s:chmod 444 :chmod 444 ${HORDEDIR}/:g" ${HORDESBIN}/horde_setup.sh
92
	${PERL} -pi -e "s:chmod 444 :chmod 444 ${HORDEDIR}/:g" ${HORDESBIN}/horde_setup.sh
93
	${CHMOD} u+x ${HORDESBIN}/horde_secure.sh
94
	${CHMOD} u+x ${HORDESBIN}/horde_setup.sh
86
	${PERL} -pi -e "s:go to the top level directory for your installation and run:run:g" ${HORDEDIR}/setup.php3
95
	${PERL} -pi -e "s:go to the top level directory for your installation and run:run:g" ${HORDEDIR}/setup.php3
87
	${PERL} -pi -e "s:sh ./install.sh:${HORDESBIN}/horde_setup.sh:g" ${HORDEDIR}/setup.php3
96
	${PERL} -pi -e "s:sh ./install.sh:${HORDESBIN}/horde_setup.sh:g" ${HORDEDIR}/setup.php3
88
	${PERL} -pi -e "s:sh ./install.sh:${HORDESBIN}/horde_setup.sh:g" ${HORDEDIR}/templates/index/horde_notconfigured.inc
97
	${PERL} -pi -e "s:sh ./install.sh:${HORDESBIN}/horde_setup.sh:g" ${HORDEDIR}/templates/index/horde_notconfigured.inc
Lines 108-122 Link Here
108
	@(if [ -f ${APACHE_CONF} ] ; then \
117
	@(if [ -f ${APACHE_CONF} ] ; then \
109
	    (if [ ! -f ${APACHE_CONF}.beforeHorde ] ; then \
118
	    (if [ ! -f ${APACHE_CONF}.beforeHorde ] ; then \
110
		${ECHO} "===> Updating httpd.conf..." ; \
119
		${ECHO} "===> Updating httpd.conf..." ; \
111
		${CP} -p ${.CURDIR}/httpd.conf.phplib ${WRKDIR}/httpd.conf.phplib.orig ; \
120
		${CP} -p ${MASTERDIR}/httpd.conf.phplib ${WRKDIR}/httpd.conf.phplib ; \
112
		${PERL} -pi -e "s:/home/httpd/html/horde:${HORDEDIR}:g" ${WRKDIR}/httpd.conf.phplib ; \
121
		${PERL} -pi -e "s:/home/httpd/html/horde:${HORDEDIR}:g" ${WRKDIR}/httpd.conf.phplib ; \
113
		${PERL} -pi -e "s:/home/httpd/phplib:${PHPLIBDIR}:g" ${WRKDIR}/httpd.conf.phplib ; \
122
		${PERL} -pi -e "s:/home/httpd/phplib:${PHPLIBDIR}:g" ${WRKDIR}/httpd.conf.phplib ; \
114
		${CP} -p ${APACHE_CONF} ${APACHE_CONF}.beforeHorde ; \
123
		${CP} -p ${APACHE_CONF} ${APACHE_CONF}.beforeHorde ; \
115
		${GREP} -qw 'phplib' ${APACHE_CONF} || ${CAT} ${WRKDIR}/httpd.conf.phplib >> ${APACHE_CONF} ; \
124
		${GREP} -qw 'phplib' ${APACHE_CONF} || ${CAT} ${WRKDIR}/httpd.conf.phplib >> ${APACHE_CONF} ; \
116
		${RM} ${.CURDIR}/httpd.conf.phplib ; \
117
		${MV} ${.CURDIR}/httpd.conf.phplib.orig ${.CURDIR}/httpd.conf.phplib ; \
118
	    fi) ; \
125
	    fi) ; \
119
	fi)
126
	fi)
127
	${CHOWN} -R www:www ${HORDEDIR}
120
.if !defined(NOPORTDOCS)
128
.if !defined(NOPORTDOCS)
121
	${MKDIR} ${DOCSDIR}
129
	${MKDIR} ${DOCSDIR}
122
.for FILE in ${DOCS}
130
.for FILE in ${DOCS}
(-)www/horde/distinfo (-1 / +1 lines)
Line 1 Link Here
1
MD5 (horde-1.2.6.tar.gz) = 123d9b8b91f2526ece1595271d33d52c
1
MD5 (horde-1.2.7.tar.gz) = 2433ed0e67739c41021b1a9397130a96
(-)www/horde/pkg-deinstall (+12 lines)
Line 0 Link Here
1
#!/bin/sh
2
# Try to restore httpd.conf when deinstalling Horde
3
4
if [ x$2 != xDEINSTALL ]; then
5
    exit
6
fi
7
8
if [ -f ${PKG_PREFIX}/etc/apache/httpd.conf.beforeHorde ] ; then
9
	echo "Restoring httpd.conf..."
10
	cp ${PKG_PREFIX}/etc/apache/httpd.conf ${PKG_PREFIX}/etc/apache/httpd.conf.deinstHorde
11
	mv ${PKG_PREFIX}/etc/apache/httpd.conf.beforeHorde ${PKG_PREFIX}/etc/apache/httpd.conf
12
fi

Return to bug 31937