freebsd-ports/net/openldap23-server/files/pkg-deinstall.in
Xin LI c173260165 Updates, cleanups and improvements over the openldap23-* ports:
- Make sure that PKGNAMESUFFIX and COMMENT are correctly set when
   building slave ports. [1]
 - Remove RCORDER feature which is now deprecated.
 - Move PORTREVISION related stuff to before bsd.port.pre.mk in
   order to get the revisions actually work.
 - Depend on CLIENT_ONLY and WITH_SASL to determine the package
   name suffix.
 - Make use of USE_OPENLDAP instead of rolling our own.
 - Use WITH_RC_SUBR correctly rather than just specifying "yes"
 - Depend on bsd.database.mk to determine the Berkeley DB name,
   which makes it possible to use versions available from the
   ports collection rather than making decision our own. [2]
 - Disable threading as suggested by openldap developers if
   BACK_SHELL is enabled.  Indicate the fact when showing options.
 - Update to 2.3.23

PR:	 	91902[1], 96752 [2]
Submitted by:	Gyorgy TEUBEL <tgyurci freemail hu> [1]
		Sunpoet Po-Chuan Hsieh <sunpoet sunpoet net> [2]
Approved by:	sem (mentor)

Other changes, blames and all bugs are mine.
2006-05-18 15:03:48 +00:00

33 lines
968 B
Bash

#!/bin/sh
#
# $FreeBSD: /tmp/pcvs/ports/net/openldap23-server/files/pkg-deinstall.in,v 1.1 2006-05-18 15:03:48 delphij Exp $
#
ECHO_CMD=echo
case $2 in
POST-DEINSTALL)
${ECHO_CMD}
${ECHO_CMD} "The OpenLDAP server package has been deleted."
${ECHO_CMD} "If you're *not* upgrading and won't be using"
${ECHO_CMD} "it any longer, you may want to issue the"
${ECHO_CMD} "following commands:"
${ECHO_CMD}
if [ -d %%DATABASEDIR%% ]; then
${ECHO_CMD} "- to delete the OpenLDAP database permanently (losing all data):"
${ECHO_CMD} " rm -Rf %%DATABASEDIR%%"
${ECHO_CMD}
fi
if [ -d %%SLURPDIR%% ]; then
${ECHO_CMD} "- to remove the OpenLDAP replication directory:"
${ECHO_CMD} " rm -Rf %%SLURPDIR%%"
${ECHO_CMD}
fi
${ECHO_CMD} "- to remove the OpenLDAP user:"
${ECHO_CMD} " pw userdel ldap"
${ECHO_CMD}
${ECHO_CMD} "If you are upgrading, don't forget to restart"
${ECHO_CMD} "slapd and slurpd."
${ECHO_CMD}
;;
esac