head	1.6;
access;
symbols
	RELEASE_5_3_0:1.5
	RELEASE_4_10_0:1.5
	RELEASE_5_2_1:1.5
	RELEASE_5_2_0:1.5
	RELEASE_4_9_0:1.5
	RELEASE_5_1_0:1.5
	RELEASE_4_8_0:1.5
	RELEASE_5_0_0:1.3
	RELEASE_4_7_0:1.3
	RELEASE_4_6_2:1.2
	RELEASE_4_6_1:1.2
	RELEASE_4_6_0:1.2
	old_RELEASE_5_0_DP1:1.2
	old_RELEASE_4_5_0:1.2;
locks; strict;
comment	@# @;


1.6
date	2004.12.26.10.33.21;	author thierry;	state dead;
branches;
next	1.5;

1.5
date	2003.02.15.23.47.35;	author leeym;	state Exp;
branches;
next	1.4;

1.4
date	2003.01.30.09.28.41;	author dirk;	state Exp;
branches;
next	1.3;

1.3
date	2002.06.26.03.54.08;	author ijliao;	state Exp;
branches;
next	1.2;

1.2
date	2001.12.12.20.08.28;	author ijliao;	state Exp;
branches;
next	1.1;

1.1
date	2001.12.03.02.36.06;	author steve;	state Exp;
branches;
next	;


desc
@@


1.6
log
@Remove www/horde2 & mail/imp3 and resurrect www/horde & mail/imp.

PR:		ports/75434
Submitted by:	/me.
@
text
@#!/bin/sh
#
# $FreeBSD: ports/www/horde2/pkg-deinstall,v 1.5 2003/02/15 23:47:35 leeym Exp $
#
# Try to restore httpd.conf when deinstalling Horde

if [ x$2 != xDEINSTALL ]; then
    exit
fi

if [ -f ${PKG_PREFIX}/etc/apache/httpd.conf.beforeHorde ] ; then
	echo "Restoring httpd.conf..."
	cp ${PKG_PREFIX}/etc/apache/httpd.conf ${PKG_PREFIX}/etc/apache/httpd.conf.deinstHorde
	sed -i.tmp -e "s:Include ${PKG_PREFIX}/etc/horde:# Include ${PKG_PREFIX}/etc/horde:g" \
		${PKG_PREFIX}/etc/apache/httpd.conf
	rm ${PKG_PREFIX}/etc/apache/httpd.conf.tmp
fi

# Backup Horde config files, if needed.

if [ -z "${PACKAGE_BUILDING}" ]; then
  for cf in `ls ${PKG_PREFIX}/www/horde/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
@


1.5
log
@update to horde-2.2.1

PR:		47977
Submitted by:	Thierry Thomas <thierry@@pompo.net>
@
text
@d3 1
a3 1
# $FreeBSD: ports/www/horde2/pkg-deinstall,v 1.4 2003/01/30 09:28:41 dirk Exp $
@


1.4
log
@Upgrade to 2.2.

PR:		ports/47229
Submitted by:	Thierry Thomas <thierry@@pompo.net>
@
text
@d3 1
a3 1
# $FreeBSD$
d14 1
a14 1
	sed_inplace -i.tmp -e "s:Include ${PKG_PREFIX}/etc/horde:# Include ${PKG_PREFIX}/etc/horde:g" \
@


1.3
log
@${PERL} -> ${REINPLACE_CMD}

PR:		39856
Submitted by:	maintainer
@
text
@d2 3
d17 20
@


1.2
log
@upgrade to RC3

PR:		32516
Submitted by:	maintainer
@
text
@d11 1
a11 1
	perl -pi -e "s:Include ${PKG_PREFIX}/etc/horde:# Include ${PKG_PREFIX}/etc/horde:g" \
d13 1
@


1.1
log
@Adding horde version 2.0.
A common code-base used by Horde applications, written in PHP.

PR:		32088, 32145
Submitted by:	Thierry Thomas <thierry@@thomas.as>
@
text
@d11 2
a12 1
	mv ${PKG_PREFIX}/etc/apache/httpd.conf.beforeHorde ${PKG_PREFIX}/etc/apache/httpd.conf
@

