aboutsummaryrefslogtreecommitdiff
path: root/mail/imp3
diff options
context:
space:
mode:
authorDirk Froemberg <dirk@FreeBSD.org>2003-01-30 10:01:56 +0000
committerDirk Froemberg <dirk@FreeBSD.org>2003-01-30 10:01:56 +0000
commitc54635d5954c80bf7006d7c1a26bb19a25e27075 (patch)
treef8dad2fb7b2c58224301fb25ca206b94ef009ee8 /mail/imp3
parentebab97d0e779bb0db3a76787a0ae4db66952a2db (diff)
downloadports-c54635d5954c80bf7006d7c1a26bb19a25e27075.tar.gz
ports-c54635d5954c80bf7006d7c1a26bb19a25e27075.zip
Notes
Diffstat (limited to 'mail/imp3')
-rw-r--r--mail/imp3/Makefile10
-rw-r--r--mail/imp3/pkg-deinstall27
2 files changed, 34 insertions, 3 deletions
diff --git a/mail/imp3/Makefile b/mail/imp3/Makefile
index 4345211cea9d..9c3609a57c3f 100644
--- a/mail/imp3/Makefile
+++ b/mail/imp3/Makefile
@@ -7,10 +7,14 @@
PORTNAME= imp
PORTVERSION= 3.1
-PORTREVISION= 2
+PORTREVISION= 3
CATEGORIES= mail www
-MASTER_SITES= ftp://ftp.horde.org/pub/imp/tarballs/%SUBDIR%/
-MASTER_SITE_SUBDIR= . old
+MASTER_SITES= ftp://ftp.horde.org/pub/imp/ \
+ ftp://ftp.au.horde.org/pub/horde/imp/ \
+ ftp://ftp.es.horde.org/pub/imp/ \
+ ftp://ftp.it.horde.org/pub/mirror/horde.org/imp/ \
+ ftp://ftp.nl.horde.org/mirror/horde-ftp/pub/imp/ \
+ ftp://ftp.pt.horde.org/pub/horde-ftp/imp/
MAINTAINER= thierry@pompo.net
diff --git a/mail/imp3/pkg-deinstall b/mail/imp3/pkg-deinstall
new file mode 100644
index 000000000000..cd0aa1e6c6c5
--- /dev/null
+++ b/mail/imp3/pkg-deinstall
@@ -0,0 +1,27 @@
+#!/bin/sh
+#
+# $FreeBSD$
+#
+# Backup IMP config files, if needed.
+
+if [ x$2 != xDEINSTALL ]; then
+ exit
+fi
+
+if [ -z "${PACKAGE_BUILDING}" ]; then
+ for cf in `ls ${PKG_PREFIX}/www/horde/imp/config/*php ${PKG_PREFIX}/www/horde/imp/config/*txt`; 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