diff options
author | dirk <dirk@FreeBSD.org> | 2003-01-30 18:05:54 +0800 |
---|---|---|
committer | dirk <dirk@FreeBSD.org> | 2003-01-30 18:05:54 +0800 |
commit | ed1325276c57055e2c23938ba989034bb908a1ac (patch) | |
tree | 5a1b3af1842be69786003011ee685515019868db /deskutils/horde-kronolith | |
parent | 63961948c46517cb9c7754b2193951065e1f9f97 (diff) | |
download | freebsd-ports-gnome-ed1325276c57055e2c23938ba989034bb908a1ac.tar.gz freebsd-ports-gnome-ed1325276c57055e2c23938ba989034bb908a1ac.tar.zst freebsd-ports-gnome-ed1325276c57055e2c23938ba989034bb908a1ac.zip |
- fix isWarning
- fix ftp sites
PR: ports/47418
Submitted by: Thierry Thomas <thierry@pompo.net>
Diffstat (limited to 'deskutils/horde-kronolith')
-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 |
4 files changed, 46 insertions, 3 deletions
diff --git a/deskutils/horde-kronolith/Makefile b/deskutils/horde-kronolith/Makefile index 15cbd738af4f..f6c0fc658ace 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 000000000000..e831d6991901 --- /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 000000000000..4578da3f26fe --- /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 c9e158fcff18..d1669099a291 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 |