freebsd-ports/net/openldap24-server/pkg-deinstall
Oliver Eikemeier df15f5fedf ** NOTICE: **
* OpenLDAP 2.0 is no longer actively maintained by the OpenLDAP Project.
* You are strongly encouraged to update to OpenLDAP 2.1
* Port maintainers: Please respect the default in bsd.port.mk
* I plan to remove OpenLDAP 2.0 from the FreeBSD ports tree May 2004

- Update net/openldap21-client and net/openldap21-server to version 2.1.23
- Update net/openldap22-client and net/openldap22-server to version 2.2.2.b,
  fix ITS#2747 from CVS
- some fixes for net/openldap20-server from CVS, seems like there won't be
  a 2.0.28 release anymore
- remove conflict with deleted port net/openldap12
- use PORTDOCS
- use USE_OPENSSL
- don't use _REENTRANT
- add a deinstall message

PR:		58278
Submitted by:	me
Approved by:	marcus (mentor)
2003-11-14 03:57:13 +00:00

33 lines
867 B
Bash

#!/bin/sh
#
# $FreeBSD$
#
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