diff options
author | dirk <dirk@FreeBSD.org> | 2003-01-30 10:05:54 +0000 |
---|---|---|
committer | dirk <dirk@FreeBSD.org> | 2003-01-30 10:05:54 +0000 |
commit | ed1325276c57055e2c23938ba989034bb908a1ac (patch) | |
tree | 5a1b3af1842be69786003011ee685515019868db /deskutils | |
parent | 63961948c46517cb9c7754b2193951065e1f9f97 (diff) | |
download | FreeBSD-ports-ed1325276c57055e2c23938ba989034bb908a1ac.zip FreeBSD-ports-ed1325276c57055e2c23938ba989034bb908a1ac.tar.gz |
- fix isWarning
- fix ftp sites
PR: ports/47418
Submitted by: Thierry Thomas <thierry@pompo.net>
Diffstat (limited to 'deskutils')
-rw-r--r-- | deskutils/horde-kronolith/Makefile | 10 | ||||
-rw-r--r-- | deskutils/horde-kronolith/files/patch-lib_Driver_sql.php | 11 | ||||
-rw-r--r-- | deskutils/horde-kronolith/pkg-deinstall | 27 | ||||
-rw-r--r-- | deskutils/horde-kronolith/pkg-plist | 1 | ||||
-rw-r--r-- | deskutils/horde4-kronolith/Makefile | 10 | ||||
-rw-r--r-- | deskutils/horde4-kronolith/files/patch-lib_Driver_sql.php | 11 | ||||
-rw-r--r-- | deskutils/horde4-kronolith/pkg-deinstall | 27 | ||||
-rw-r--r-- | deskutils/horde4-kronolith/pkg-plist | 1 | ||||
-rw-r--r-- | deskutils/kronolith/Makefile | 10 | ||||
-rw-r--r-- | deskutils/kronolith/files/patch-lib_Driver_sql.php | 11 | ||||
-rw-r--r-- | deskutils/kronolith/pkg-deinstall | 27 | ||||
-rw-r--r-- | deskutils/kronolith/pkg-plist | 1 |
12 files changed, 138 insertions, 9 deletions
diff --git a/deskutils/horde-kronolith/Makefile b/deskutils/horde-kronolith/Makefile index 15cbd73..f6c0fc6 100644 --- a/deskutils/horde-kronolith/Makefile +++ b/deskutils/horde-kronolith/Makefile @@ -7,10 +7,14 @@ PORTNAME= kronolith PORTVERSION= 1.0 -PORTREVISION= 2 +PORTREVISION= 3 CATEGORIES= deskutils www -MASTER_SITES= ftp://ftp.horde.org/pub/kronolith/tarballs/%SUBDIR%/ -MASTER_SITE_SUBDIR= . old +MASTER_SITES= ftp://ftp.horde.org/pub/kronolith/ \ + ftp://ftp.au.horde.org/pub/horde/kronolith/ \ + ftp://ftp.es.horde.org/pub/kronolith/ \ + ftp://ftp.it.horde.org/pub/mirror/horde.org/kronolith/ \ + ftp://ftp.nl.horde.org/mirror/horde-ftp/pub/kronolith/ \ + ftp://ftp.pt.horde.org/pub/horde-ftp/kronolith/ MAINTAINER= thierry@pompo.net diff --git a/deskutils/horde-kronolith/files/patch-lib_Driver_sql.php b/deskutils/horde-kronolith/files/patch-lib_Driver_sql.php new file mode 100644 index 0000000..e831d69 --- /dev/null +++ b/deskutils/horde-kronolith/files/patch-lib_Driver_sql.php @@ -0,0 +1,11 @@ +--- lib/Driver/sql.php.orig Sat May 18 00:58:16 2002 ++++ lib/Driver/sql.php Mon Dec 23 23:12:46 2002 +@@ -61,7 +61,7 @@ + + /* Connect to the SQL server using the supplied parameters. */ + $this->db = &DB::connect($this->params, true); +- if (DB::isError($this->db) || DB::isWarning($this->db)) { ++ if (DB::isError($this->db)) { + Horde::fatal($this->db, __FILE__, __LINE__); + } + diff --git a/deskutils/horde-kronolith/pkg-deinstall b/deskutils/horde-kronolith/pkg-deinstall new file mode 100644 index 0000000..4578da3 --- /dev/null +++ b/deskutils/horde-kronolith/pkg-deinstall @@ -0,0 +1,27 @@ +#!/bin/sh +# +# $FreeBSD$ +# +# Backup Kronolith config files, if needed. + +if [ x$2 != xDEINSTALL ]; then + exit +fi + +if [ -z "${PACKAGE_BUILDING}" ]; then + for cf in `ls ${PKG_PREFIX}/www/horde/kronolith/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/deskutils/horde-kronolith/pkg-plist b/deskutils/horde-kronolith/pkg-plist index c9e158f..d166909 100644 --- a/deskutils/horde-kronolith/pkg-plist +++ b/deskutils/horde-kronolith/pkg-plist @@ -47,6 +47,7 @@ %%KRONOLITHDIR%%/lib/Driver.php %%KRONOLITHDIR%%/lib/Driver/mcal.php %%KRONOLITHDIR%%/lib/Driver/sql.php +%%KRONOLITHDIR%%/lib/Driver/sql.php.orig %%KRONOLITHDIR%%/lib/Event.php %%KRONOLITHDIR%%/lib/Kronolith.php %%KRONOLITHDIR%%/lib/Month.php diff --git a/deskutils/horde4-kronolith/Makefile b/deskutils/horde4-kronolith/Makefile index 15cbd73..f6c0fc6 100644 --- a/deskutils/horde4-kronolith/Makefile +++ b/deskutils/horde4-kronolith/Makefile @@ -7,10 +7,14 @@ PORTNAME= kronolith PORTVERSION= 1.0 -PORTREVISION= 2 +PORTREVISION= 3 CATEGORIES= deskutils www -MASTER_SITES= ftp://ftp.horde.org/pub/kronolith/tarballs/%SUBDIR%/ -MASTER_SITE_SUBDIR= . old +MASTER_SITES= ftp://ftp.horde.org/pub/kronolith/ \ + ftp://ftp.au.horde.org/pub/horde/kronolith/ \ + ftp://ftp.es.horde.org/pub/kronolith/ \ + ftp://ftp.it.horde.org/pub/mirror/horde.org/kronolith/ \ + ftp://ftp.nl.horde.org/mirror/horde-ftp/pub/kronolith/ \ + ftp://ftp.pt.horde.org/pub/horde-ftp/kronolith/ MAINTAINER= thierry@pompo.net diff --git a/deskutils/horde4-kronolith/files/patch-lib_Driver_sql.php b/deskutils/horde4-kronolith/files/patch-lib_Driver_sql.php new file mode 100644 index 0000000..e831d69 --- /dev/null +++ b/deskutils/horde4-kronolith/files/patch-lib_Driver_sql.php @@ -0,0 +1,11 @@ +--- lib/Driver/sql.php.orig Sat May 18 00:58:16 2002 ++++ lib/Driver/sql.php Mon Dec 23 23:12:46 2002 +@@ -61,7 +61,7 @@ + + /* Connect to the SQL server using the supplied parameters. */ + $this->db = &DB::connect($this->params, true); +- if (DB::isError($this->db) || DB::isWarning($this->db)) { ++ if (DB::isError($this->db)) { + Horde::fatal($this->db, __FILE__, __LINE__); + } + diff --git a/deskutils/horde4-kronolith/pkg-deinstall b/deskutils/horde4-kronolith/pkg-deinstall new file mode 100644 index 0000000..4578da3 --- /dev/null +++ b/deskutils/horde4-kronolith/pkg-deinstall @@ -0,0 +1,27 @@ +#!/bin/sh +# +# $FreeBSD$ +# +# Backup Kronolith config files, if needed. + +if [ x$2 != xDEINSTALL ]; then + exit +fi + +if [ -z "${PACKAGE_BUILDING}" ]; then + for cf in `ls ${PKG_PREFIX}/www/horde/kronolith/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/deskutils/horde4-kronolith/pkg-plist b/deskutils/horde4-kronolith/pkg-plist index c9e158f..d166909 100644 --- a/deskutils/horde4-kronolith/pkg-plist +++ b/deskutils/horde4-kronolith/pkg-plist @@ -47,6 +47,7 @@ %%KRONOLITHDIR%%/lib/Driver.php %%KRONOLITHDIR%%/lib/Driver/mcal.php %%KRONOLITHDIR%%/lib/Driver/sql.php +%%KRONOLITHDIR%%/lib/Driver/sql.php.orig %%KRONOLITHDIR%%/lib/Event.php %%KRONOLITHDIR%%/lib/Kronolith.php %%KRONOLITHDIR%%/lib/Month.php diff --git a/deskutils/kronolith/Makefile b/deskutils/kronolith/Makefile index 15cbd73..f6c0fc6 100644 --- a/deskutils/kronolith/Makefile +++ b/deskutils/kronolith/Makefile @@ -7,10 +7,14 @@ PORTNAME= kronolith PORTVERSION= 1.0 -PORTREVISION= 2 +PORTREVISION= 3 CATEGORIES= deskutils www -MASTER_SITES= ftp://ftp.horde.org/pub/kronolith/tarballs/%SUBDIR%/ -MASTER_SITE_SUBDIR= . old +MASTER_SITES= ftp://ftp.horde.org/pub/kronolith/ \ + ftp://ftp.au.horde.org/pub/horde/kronolith/ \ + ftp://ftp.es.horde.org/pub/kronolith/ \ + ftp://ftp.it.horde.org/pub/mirror/horde.org/kronolith/ \ + ftp://ftp.nl.horde.org/mirror/horde-ftp/pub/kronolith/ \ + ftp://ftp.pt.horde.org/pub/horde-ftp/kronolith/ MAINTAINER= thierry@pompo.net diff --git a/deskutils/kronolith/files/patch-lib_Driver_sql.php b/deskutils/kronolith/files/patch-lib_Driver_sql.php new file mode 100644 index 0000000..e831d69 --- /dev/null +++ b/deskutils/kronolith/files/patch-lib_Driver_sql.php @@ -0,0 +1,11 @@ +--- lib/Driver/sql.php.orig Sat May 18 00:58:16 2002 ++++ lib/Driver/sql.php Mon Dec 23 23:12:46 2002 +@@ -61,7 +61,7 @@ + + /* Connect to the SQL server using the supplied parameters. */ + $this->db = &DB::connect($this->params, true); +- if (DB::isError($this->db) || DB::isWarning($this->db)) { ++ if (DB::isError($this->db)) { + Horde::fatal($this->db, __FILE__, __LINE__); + } + diff --git a/deskutils/kronolith/pkg-deinstall b/deskutils/kronolith/pkg-deinstall new file mode 100644 index 0000000..4578da3 --- /dev/null +++ b/deskutils/kronolith/pkg-deinstall @@ -0,0 +1,27 @@ +#!/bin/sh +# +# $FreeBSD$ +# +# Backup Kronolith config files, if needed. + +if [ x$2 != xDEINSTALL ]; then + exit +fi + +if [ -z "${PACKAGE_BUILDING}" ]; then + for cf in `ls ${PKG_PREFIX}/www/horde/kronolith/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/deskutils/kronolith/pkg-plist b/deskutils/kronolith/pkg-plist index c9e158f..d166909 100644 --- a/deskutils/kronolith/pkg-plist +++ b/deskutils/kronolith/pkg-plist @@ -47,6 +47,7 @@ %%KRONOLITHDIR%%/lib/Driver.php %%KRONOLITHDIR%%/lib/Driver/mcal.php %%KRONOLITHDIR%%/lib/Driver/sql.php +%%KRONOLITHDIR%%/lib/Driver/sql.php.orig %%KRONOLITHDIR%%/lib/Event.php %%KRONOLITHDIR%%/lib/Kronolith.php %%KRONOLITHDIR%%/lib/Month.php |