summaryrefslogtreecommitdiff
path: root/www/horde/pkg/DEINSTALL
diff options
context:
space:
mode:
Diffstat (limited to 'www/horde/pkg/DEINSTALL')
-rw-r--r--www/horde/pkg/DEINSTALL25
1 files changed, 20 insertions, 5 deletions
diff --git a/www/horde/pkg/DEINSTALL b/www/horde/pkg/DEINSTALL
index 2f8c664b4f0..298f4bb423f 100644
--- a/www/horde/pkg/DEINSTALL
+++ b/www/horde/pkg/DEINSTALL
@@ -1,6 +1,6 @@
#!/bin/sh
#
-# $NetBSD: DEINSTALL,v 1.1.1.1 2001/02/12 15:26:05 jlam Exp $
+# $NetBSD: DEINSTALL,v 1.2 2001/04/30 05:53:29 jlam Exp $
PKGNAME=$1
STAGE=$2
@@ -10,18 +10,33 @@ RM="@RM@"
RMDIR="@RMDIR@"
TRUE="@TRUE@"
-CONFDIR=${PKG_PREFIX}/etc/httpd
+APACHE_SYSCONFDIR="@APACHE_SYSCONFDIR@"
+SAMPLECONFDIR=${PKG_PREFIX}/share/examples/horde
+CONFDIR=${APACHE_SYSCONFDIR}
HORDEDIR=${PKG_PREFIX}/@HORDEDIR@
PHPLIBDIR=${PKG_PREFIX}/@PHPLIBDIR@
-CONFFILES="${CONFDIR}/horde.conf ${PHPLIBDIR}/local.inc ${PHPLIBDIR}/prepend.php3 ${HORDEDIR}/config/horde.php3"
-NONCONFFILES="${HORDEDIR}/config/MOTD.html ${HORDEDIR}/config/header.txt ${HORDEDIR}/config/html.php3 ${HORDEDIR}/config/lang.php3 ${HORDEDIR}/config/menu.txt ${HORDEDIR}/config/mime.php3"
+CONFFILES=" ${PHPLIBDIR}/local.inc \
+ ${PHPLIBDIR}/prepend.php3 \
+ ${HORDEDIR}/config/horde.php3"
+NONCONFFILES=" ${HORDEDIR}/config/MOTD.html \
+ ${HORDEDIR}/config/header.txt \
+ ${HORDEDIR}/config/html.php3 \
+ ${HORDEDIR}/config/lang.php3 \
+ ${HORDEDIR}/config/menu.txt \
+ ${HORDEDIR}/config/mime.php3"
case ${STAGE} in
DEINSTALL)
# Remove configuration files if they don't differ from the default
# config file.
#
+ FILE=${CONFDIR}/horde.conf
+ SAMPLEFILE=${SAMPLECONFDIR}/horde.conf
+ if diff -q ${FILE} ${SAMPLEFILE} >/dev/null
+ then
+ ${RM} -f ${FILE}
+ fi
for FILE in ${CONFFILES} ${NONCONFFILES}
do
SAMPLEFILE=${FILE}.dist
@@ -34,7 +49,7 @@ DEINSTALL)
POST-DEINSTALL)
modified_files=''
- for FILE in ${CONFFILES} ${NONCONFFILES}
+ for FILE in ${CONFDIR}/horde.conf ${CONFFILES} ${NONCONFFILES}
do
if [ -f ${FILE} ]
then