- backup config files

- fix ftp sites

PR:		ports/47418
Submitted by:	Thierry Thomas <thierry@pompo.net>
This commit is contained in:
Dirk Froemberg 2003-01-30 10:01:56 +00:00
parent ebab97d0e7
commit c54635d595
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=74267
2 changed files with 34 additions and 3 deletions

View file

@ -7,10 +7,14 @@
PORTNAME= imp PORTNAME= imp
PORTVERSION= 3.1 PORTVERSION= 3.1
PORTREVISION= 2 PORTREVISION= 3
CATEGORIES= mail www CATEGORIES= mail www
MASTER_SITES= ftp://ftp.horde.org/pub/imp/tarballs/%SUBDIR%/ MASTER_SITES= ftp://ftp.horde.org/pub/imp/ \
MASTER_SITE_SUBDIR= . old 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 MAINTAINER= thierry@pompo.net

27
mail/imp3/pkg-deinstall Normal file
View file

@ -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