From 0fde8562ff7b6dcdf1b861872ea4ac09a1bf2ddd Mon Sep 17 00:00:00 2001 From: dirk Date: Thu, 30 Jan 2003 09:59:58 +0000 Subject: - backup config files + DB suport moved to Horde - fix ftp sites PR: ports/47418 Submitted by: Thierry Thomas --- mail/horde-turba/Makefile | 30 +++++++----------------------- mail/horde-turba/pkg-deinstall | 27 +++++++++++++++++++++++++++ mail/horde4-turba/Makefile | 30 +++++++----------------------- mail/horde4-turba/pkg-deinstall | 27 +++++++++++++++++++++++++++ mail/turba/Makefile | 30 +++++++----------------------- mail/turba/pkg-deinstall | 27 +++++++++++++++++++++++++++ 6 files changed, 102 insertions(+), 69 deletions(-) create mode 100644 mail/horde-turba/pkg-deinstall create mode 100644 mail/horde4-turba/pkg-deinstall create mode 100644 mail/turba/pkg-deinstall (limited to 'mail') diff --git a/mail/horde-turba/Makefile b/mail/horde-turba/Makefile index 46f7c46b9be4..f3737c6396c6 100644 --- a/mail/horde-turba/Makefile +++ b/mail/horde-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/horde-turba/pkg-deinstall b/mail/horde-turba/pkg-deinstall new file mode 100644 index 000000000000..b0a141eef091 --- /dev/null +++ b/mail/horde-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 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 diff --git a/mail/turba/Makefile b/mail/turba/Makefile index 46f7c46b9be4..f3737c6396c6 100644 --- a/mail/turba/Makefile +++ b/mail/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/turba/pkg-deinstall b/mail/turba/pkg-deinstall new file mode 100644 index 000000000000..b0a141eef091 --- /dev/null +++ b/mail/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 -- cgit