diff options
author | thierry <thierry@FreeBSD.org> | 2006-01-06 08:38:13 +0800 |
---|---|---|
committer | thierry <thierry@FreeBSD.org> | 2006-01-06 08:38:13 +0800 |
commit | 922106489a63564790d516923e03c8fa28346fa9 (patch) | |
tree | 20dad146d367f92c711d016c12e8e3340824db6b /ftp | |
parent | 65a0f264588bfc3e5c26e6b14ba972c45fca49a3 (diff) | |
download | freebsd-ports-gnome-922106489a63564790d516923e03c8fa28346fa9.tar.gz freebsd-ports-gnome-922106489a63564790d516923e03c8fa28346fa9.tar.zst freebsd-ports-gnome-922106489a63564790d516923e03c8fa28346fa9.zip |
- Replace WITH_APACHE2 by USE_APACHE, rename httpd.conf.xxx to
httpd-xxx.conf and fix configuration if APACHE_VERSION > 20.
- Don't use the MCAL back-end by default for Kronolith, it is
deprecated.
- Deinstall bug reported by John Nielsen <john (at) jnielsen.net>:
respect LHORDEDIR.
- Fix horde-passwd installation / deinstallation.
- Don't bump PORTREVISION, because running installations are not
concerned.
Diffstat (limited to 'ftp')
-rw-r--r-- | ftp/gollem/Makefile | 19 | ||||
-rw-r--r-- | ftp/gollem/files/pkg-deinstall.in (renamed from ftp/gollem/pkg-deinstall) | 2 | ||||
-rw-r--r-- | ftp/gollem/pkg-plist | 2 | ||||
-rw-r--r-- | ftp/horde-gollem/Makefile | 19 | ||||
-rw-r--r-- | ftp/horde-gollem/files/pkg-deinstall.in (renamed from ftp/horde-gollem/pkg-deinstall) | 2 | ||||
-rw-r--r-- | ftp/horde-gollem/pkg-plist | 2 |
6 files changed, 30 insertions, 16 deletions
diff --git a/ftp/gollem/Makefile b/ftp/gollem/Makefile index 9d68649310d3..017d1c74ccec 100644 --- a/ftp/gollem/Makefile +++ b/ftp/gollem/Makefile @@ -24,11 +24,12 @@ COMMENT= Gollem is the Horde web-based File Manager RUN_DEPENDS= ${LOCALBASE}/${LHORDEDIR}/rpc.php:${PORTSDIR}/www/horde NO_BUILD= yes -USE_REINPLACE= yes +USE_APACHE= 1.3+ # needed to test APACHE_VERSION -PLIST_SUB= GOLLEMDIR=${LGOLLEMDIR} +PLIST_SUB= GOLLEMDIR=${LGOLLEMDIR} 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= GOLLEMDIR=${GOLLEMDIR} DOCS= README docs/CHANGES docs/CREDITS docs/INSTALL \ @@ -43,11 +44,17 @@ LGOLLEMDIR?= ${LHORDEDIR}/gollem GOLLEMDIR= ${PREFIX}/${LGOLLEMDIR} CONFDIR= ${GOLLEMDIR}/config +.include <bsd.port.pre.mk> + +.if ${APACHE_VERSION} >= 20 +HORDE_INC= ${LOCALBASE}/etc/apache${APACHE_VERSION:S/20/2/}/Includes +.else HORDE_INC= ${LOCALBASE}/etc/horde +.endif pre-configure: @${SED} -e "s:/home/httpd/html/horde/gollem:${GOLLEMDIR}:g" \ - ${FILESDIR}/httpd.conf.gollem > ${WRKDIR}/httpd.conf.gollem + ${FILESDIR}/httpd.conf.gollem > ${WRKDIR}/httpd-gollem.conf do-install: @${MKDIR} ${GOLLEMDIR} @@ -60,7 +67,7 @@ do-install: .endfor @${CHOWN} -R ${WWWOWN}:${WWWGRP} ${GOLLEMDIR} @${CHMOD} -R o-rwx ${CONFDIR} - @${INSTALL_DATA} ${WRKDIR}/httpd.conf.gollem ${HORDE_INC} + @${INSTALL_DATA} ${WRKDIR}/httpd-gollem.conf ${HORDE_INC} .if !defined(NOPORTDOCS) @${MKDIR} ${DOCSDIR} @${INSTALL_DATA} ${DOCS:S|^|${WRKSRC}/|} ${DOCSDIR} @@ -72,4 +79,4 @@ post-install: @${CAT} ${PKGMESSAGE} @${ECHO_MSG} -.include <bsd.port.mk> +.include <bsd.port.post.mk> diff --git a/ftp/gollem/pkg-deinstall b/ftp/gollem/files/pkg-deinstall.in index c371d1852937..5c399f4c3632 100644 --- a/ftp/gollem/pkg-deinstall +++ b/ftp/gollem/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/gollem/config/*php`; do + for cf in `ls %%GOLLEMDIR%%/config/*php`; 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/ftp/gollem/pkg-plist b/ftp/gollem/pkg-plist index 90aaceaa683d..33866e40f888 100644 --- a/ftp/gollem/pkg-plist +++ b/ftp/gollem/pkg-plist @@ -1,4 +1,4 @@ -etc/horde/httpd.conf.gollem +%%HORDE_INC%%/httpd-gollem.conf %%GOLLEMDIR%%/clipboard.php %%GOLLEMDIR%%/config/backends.php %%GOLLEMDIR%%/config/backends.php.dist diff --git a/ftp/horde-gollem/Makefile b/ftp/horde-gollem/Makefile index 9d68649310d3..017d1c74ccec 100644 --- a/ftp/horde-gollem/Makefile +++ b/ftp/horde-gollem/Makefile @@ -24,11 +24,12 @@ COMMENT= Gollem is the Horde web-based File Manager RUN_DEPENDS= ${LOCALBASE}/${LHORDEDIR}/rpc.php:${PORTSDIR}/www/horde NO_BUILD= yes -USE_REINPLACE= yes +USE_APACHE= 1.3+ # needed to test APACHE_VERSION -PLIST_SUB= GOLLEMDIR=${LGOLLEMDIR} +PLIST_SUB= GOLLEMDIR=${LGOLLEMDIR} 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= GOLLEMDIR=${GOLLEMDIR} DOCS= README docs/CHANGES docs/CREDITS docs/INSTALL \ @@ -43,11 +44,17 @@ LGOLLEMDIR?= ${LHORDEDIR}/gollem GOLLEMDIR= ${PREFIX}/${LGOLLEMDIR} CONFDIR= ${GOLLEMDIR}/config +.include <bsd.port.pre.mk> + +.if ${APACHE_VERSION} >= 20 +HORDE_INC= ${LOCALBASE}/etc/apache${APACHE_VERSION:S/20/2/}/Includes +.else HORDE_INC= ${LOCALBASE}/etc/horde +.endif pre-configure: @${SED} -e "s:/home/httpd/html/horde/gollem:${GOLLEMDIR}:g" \ - ${FILESDIR}/httpd.conf.gollem > ${WRKDIR}/httpd.conf.gollem + ${FILESDIR}/httpd.conf.gollem > ${WRKDIR}/httpd-gollem.conf do-install: @${MKDIR} ${GOLLEMDIR} @@ -60,7 +67,7 @@ do-install: .endfor @${CHOWN} -R ${WWWOWN}:${WWWGRP} ${GOLLEMDIR} @${CHMOD} -R o-rwx ${CONFDIR} - @${INSTALL_DATA} ${WRKDIR}/httpd.conf.gollem ${HORDE_INC} + @${INSTALL_DATA} ${WRKDIR}/httpd-gollem.conf ${HORDE_INC} .if !defined(NOPORTDOCS) @${MKDIR} ${DOCSDIR} @${INSTALL_DATA} ${DOCS:S|^|${WRKSRC}/|} ${DOCSDIR} @@ -72,4 +79,4 @@ post-install: @${CAT} ${PKGMESSAGE} @${ECHO_MSG} -.include <bsd.port.mk> +.include <bsd.port.post.mk> diff --git a/ftp/horde-gollem/pkg-deinstall b/ftp/horde-gollem/files/pkg-deinstall.in index c371d1852937..5c399f4c3632 100644 --- a/ftp/horde-gollem/pkg-deinstall +++ b/ftp/horde-gollem/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/gollem/config/*php`; do + for cf in `ls %%GOLLEMDIR%%/config/*php`; 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/ftp/horde-gollem/pkg-plist b/ftp/horde-gollem/pkg-plist index 90aaceaa683d..33866e40f888 100644 --- a/ftp/horde-gollem/pkg-plist +++ b/ftp/horde-gollem/pkg-plist @@ -1,4 +1,4 @@ -etc/horde/httpd.conf.gollem +%%HORDE_INC%%/httpd-gollem.conf %%GOLLEMDIR%%/clipboard.php %%GOLLEMDIR%%/config/backends.php %%GOLLEMDIR%%/config/backends.php.dist |