From c5f0321718c1b51acf6c873f20f874a333e41399 Mon Sep 17 00:00:00 2001 From: jlam Date: Sat, 30 Aug 2003 20:22:49 +0000 Subject: Prepare for pkgviews by making sure that passing VIEW-INSTALL or VIEW-DEINSTALL to the INSTALL/DEINSTALL scripts don't cause errors. --- databases/mysql-server/DEINSTALL | 16 ++++++++++++++++ databases/mysql-server/INSTALL | 10 ++++------ 2 files changed, 20 insertions(+), 6 deletions(-) create mode 100644 databases/mysql-server/DEINSTALL (limited to 'databases/mysql-server') diff --git a/databases/mysql-server/DEINSTALL b/databases/mysql-server/DEINSTALL new file mode 100644 index 00000000000..13231db58b9 --- /dev/null +++ b/databases/mysql-server/DEINSTALL @@ -0,0 +1,16 @@ +# $NetBSD: DEINSTALL,v 1.4 2003/08/30 20:22:51 jlam Exp $ + +MYSQL_DATADIR="@MYSQL_DATADIR@" + +case ${STAGE} in +POST-DEINSTALL) + ${CAT} << EOF +=========================================================================== +If you won't be using ${PKGNAME} any longer, you may want +to remove the following directories: + + ${MYSQL_DATADIR} +=========================================================================== +EOF + ;; +esac diff --git a/databases/mysql-server/INSTALL b/databases/mysql-server/INSTALL index d1cdecf482c..1991dcb0f2e 100644 --- a/databases/mysql-server/INSTALL +++ b/databases/mysql-server/INSTALL @@ -1,12 +1,10 @@ -#!/bin/sh -# -# $NetBSD: INSTALL,v 1.3 2003/08/30 20:05:13 seb Exp $ +# $NetBSD: INSTALL,v 1.4 2003/08/30 20:22:51 jlam Exp $ case ${STAGE} in POST-INSTALL) - echo "-------------------------------" - echo "Initializing MySQL databases..." - echo "-------------------------------" + ${ECHO} "-------------------------------" + ${ECHO} "Initializing MySQL databases..." + ${ECHO} "-------------------------------" ${PKG_PREFIX}/bin/mysql_install_db --force ;; esac -- cgit v1.2.3