freebsd-ports/devel/subversion-devel/pkg-deinstall
Bruce A. Mah 8c1e5ddc35 Update port to subversion-0.24.2.
Users upgrading from 0.23.0 or earlier should note that several
incompatible changes were made to the ra_svn protocol; client
and server machines using the ra_svn protocol all needed to be
upgraded at the same time.  ra_dav is not affected.

If the WITH_MOD_DAV_SVN Makefile variable is defined at port build
time, the experimental mod_authz_svn.so module for apache2 is
installed, but not enabled.

Stop install the old svn-design info documents; they're really only
good for historical interest.

Take maintainership.  [1]

Approved by:	rodrigc@attbi.com (former MAINTAINER) [1]
2003-06-19 16:40:42 +00:00

60 lines
1.2 KiB
Bash

#!/bin/sh
#
# Try to de-activate mod_dav_svn in the installed httpd.conf and warn
# if this fails.
#
# $FreeBSD$
#
if [ "$2" != "POST-DEINSTALL" ]; then
exit 0
fi
TMPDIR=${TMPDIR:=/tmp}
PKG_TMPDIR=${PKG_TMPDIR:=${TMPDIR}}
apxscmd=${PKG_PREFIX}/sbin/apxs
tmpdir=${PKG_TMPDIR}/deinstmod_dav_svn.$$
if [ ! -x ${apxscmd} ]; then
echo Can\'t find the apxs program: ${apxscmd}.
exit 1
fi
confdir=`${apxscmd} -q SYSCONFDIR`
if [ ! -d ${confdir} ]; then
echo Can\'t find Apache conf dir: ${confdir}
exit 1
fi
if [ -f ${confdir}/httpd.conf ]; then
conffile=httpd.conf
fi
if [ -f ${confdir}/httpd.conf.default ]; then
conffile="${conffile} httpd.conf.default"
fi
if [ -z "${conffile}" ]; then
echo Can\'t find either of ${confdir}/httpd.conf or
echo ${confdir}/httpd.conf.default.
exit 1
fi
if ! mkdir ${tmpdir}; then
echo Can\'t create temporary directory: ${tmpdir}
exit 1
fi
for i in ${conffile}; do
awk '{if (!/^LoadModule dav_svn_module/ &&
!/^AddModule mod_dav_svn.c/ &&\
!/^LoadModule authz_svn_module/ &&\
!/^AddModule mod_authz_svn.c/ ) \
print $0}' < ${confdir}/$i > ${tmpdir}/$i
echo Removing dav_svn_module and authz_svn_module from $i in config dir: ${confdir}
cat ${tmpdir}/$i > ${confdir}/$i
done
rm -rf ${tmpdir}
exit 0