diff options
author | Dirk Froemberg <dirk@FreeBSD.org> | 2003-01-30 09:59:58 +0000 |
---|---|---|
committer | Dirk Froemberg <dirk@FreeBSD.org> | 2003-01-30 09:59:58 +0000 |
commit | ebab97d0e779bb0db3a76787a0ae4db66952a2db (patch) | |
tree | 5fbfce0a38cd024f6887c6d3373874256212d9b7 /mail/horde4-turba | |
parent | Fix dependencies after adding new pear ports and upgrading mod_php4 (diff) |
- backup config files + DB suport moved to Horde
- fix ftp sites
PR: ports/47418
Submitted by: Thierry Thomas <thierry@pompo.net>
Notes
Notes:
svn path=/head/; revision=74266
Diffstat (limited to 'mail/horde4-turba')
-rw-r--r-- | mail/horde4-turba/Makefile | 30 | ||||
-rw-r--r-- | mail/horde4-turba/pkg-deinstall | 27 |
2 files changed, 34 insertions, 23 deletions
diff --git a/mail/horde4-turba/Makefile b/mail/horde4-turba/Makefile index 46f7c46b9be4..f3737c6396c6 100644 --- a/mail/horde4-turba/Makefile +++ b/mail/horde4-turba/Makefile @@ -7,10 +7,14 @@ PORTNAME= turba PORTVERSION= 1.1 -PORTREVISION= 2 +PORTREVISION= 3 CATEGORIES= mail www -MASTER_SITES= ftp://ftp.horde.org/pub/turba/tarballs/%SUBDIR%/ -MASTER_SITE_SUBDIR= . old +MASTER_SITES= ftp://ftp.horde.org/pub/turba/ \ + ftp://ftp.au.horde.org/pub/horde/turba/ \ + ftp://ftp.es.horde.org/pub/turba/ \ + ftp://ftp.it.horde.org/pub/mirror/horde.org/turba/ \ + ftp://ftp.nl.horde.org/mirror/horde-ftp/pub/turba/ \ + ftp://ftp.pt.horde.org/pub/horde-ftp/turba/ MAINTAINER= thierry@pompo.net @@ -60,26 +64,6 @@ CONFDIR= ${TURBADIR}/config HORDE_INC= ${LOCALBASE}/etc/horde pre-install: -# N.B.: database dependencies are binded with mod_php#, neither by Horde nor Turba. -.if !defined(WITHOUT_SUPPORTED_DB) - @if ! ${LDCONFIG} -r | ${GREP} -q -e "mysqlclient.10" ; then \ - if ! ${LDCONFIG} -r | ${GREP} -q -e "pq.3" ; then \ - if ! ${LDCONFIG} -r | ${GREP} -q -e "sybdb.1" ; then \ - if ! ${LDCONFIG} -r | ${GREP} -q -e "ct.0" ; then \ - ${ECHO_MSG} "" ; \ - ${ECHO_MSG} "Please configure PHP with a database support." ; \ - ${ECHO_MSG} "MySQL, PostgreSQL and Sybase (CTLIB or DBLIB)" ; \ - ${ECHO_MSG} "can be used with PHP AND Turba." ; \ - ${ECHO_MSG} "" ; \ - ${ECHO_MSG} "(If everything will run on this machine, do not" ; \ - ${ECHO_MSG} " forget to install the database server-side!)" ; \ - ${ECHO_MSG} "" ; \ - ${FALSE} ; \ - fi ; \ - fi ; \ - fi ; \ - fi -.endif .if !defined(WITHOUT_LDAP) .if defined(WITH_LDAP1) @if ! ${LDCONFIG} -r | ${GREP} -q -e "ldap.1"; then \ diff --git a/mail/horde4-turba/pkg-deinstall b/mail/horde4-turba/pkg-deinstall new file mode 100644 index 000000000000..b0a141eef091 --- /dev/null +++ b/mail/horde4-turba/pkg-deinstall @@ -0,0 +1,27 @@ +#!/bin/sh +# +# $FreeBSD$ +# +# Backup Turba config files, if needed. + +if [ x$2 != xDEINSTALL ]; then + exit +fi + +if [ -z "${PACKAGE_BUILDING}" ]; then + for cf in `ls ${PKG_PREFIX}/www/horde/turba/config/*php`; do + diff -bBqw $cf $cf.dist >/dev/null 2>&1 + case $? in + 0) # original config file, will be deleted by pkg-plist + ;; + 1) # config file has been updated, must be backuped + cp -p $cf $cf.previous + echo "===> Backing-up..." + echo "---> $cf has been saved ***" + echo "---> as $cf.previous ***" + ;; + *) # not found? + ;; + esac + done +fi |