aboutsummaryrefslogtreecommitdiffstats
path: root/mail
diff options
context:
space:
mode:
authordirk <dirk@FreeBSD.org>2003-01-30 17:59:58 +0800
committerdirk <dirk@FreeBSD.org>2003-01-30 17:59:58 +0800
commit0fde8562ff7b6dcdf1b861872ea4ac09a1bf2ddd (patch)
tree1f21f1b91a4be11e4c6801b125bc83c9e6cb790b /mail
parent2024599b17782ae972fc601af48270ce99c5e8aa (diff)
downloadfreebsd-ports-gnome-0fde8562ff7b6dcdf1b861872ea4ac09a1bf2ddd.tar.gz
freebsd-ports-gnome-0fde8562ff7b6dcdf1b861872ea4ac09a1bf2ddd.tar.zst
freebsd-ports-gnome-0fde8562ff7b6dcdf1b861872ea4ac09a1bf2ddd.zip
- backup config files + DB suport moved to Horde
- fix ftp sites PR: ports/47418 Submitted by: Thierry Thomas <thierry@pompo.net>
Diffstat (limited to 'mail')
-rw-r--r--mail/horde-turba/Makefile30
-rw-r--r--mail/horde-turba/pkg-deinstall27
-rw-r--r--mail/horde4-turba/Makefile30
-rw-r--r--mail/horde4-turba/pkg-deinstall27
-rw-r--r--mail/turba/Makefile30
-rw-r--r--mail/turba/pkg-deinstall27
6 files changed, 102 insertions, 69 deletions
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