summaryrefslogtreecommitdiff
path: root/chat/silc-server/DEINSTALL
diff options
context:
space:
mode:
authorhubertf <hubertf@pkgsrc.org>2002-01-26 14:43:16 +0000
committerhubertf <hubertf@pkgsrc.org>2002-01-26 14:43:16 +0000
commit347bab6e43685d575a0ead82a9a901cbde13f91e (patch)
tree81227656177754a035121422d864d0af1fe55e49 /chat/silc-server/DEINSTALL
parent00a3ccc245e82ef76c9489141036f1431a82574d (diff)
downloadpkgsrc-347bab6e43685d575a0ead82a9a901cbde13f91e.tar.gz
Update silc-server to 0.7.6:
changes in the package since 0.7.3 to 0.7.6: - rewrite of package's Makefile. big parts of INSTALL and DEINSTALL scripts were moved into Makefile itself - silc-server now creates user silcd:silcd who run silcd by default - INSTALL and DEINSTALL files are smaller and contains only neccessary actions which cannot be executed from Makefile - partial rewrite of rc script, added rcvar support, it is neccessary to have silcd=YES in rc.conf now to start silc server (unless force is used) - changed motd.txt to contain BSD daemon ;) - updated patch-aa and patch-ab files changes in the silc-server software since 0.7.3 to 0.7.6: 0.7.4: This version fixes a crash that can occur mainly on normal server. Upgrading is recommended to avoid instability later. This version also fixes the BAN and INVITE commands that were pretty much broken. This version also disallows a situation where the nickname that server sets initially for the client could be a bad nickname (like nick including whitespaces). It used to be possible but now server checks for this. Johnny also introduces a new logging system to this version with log files being open all the time and not opened every time something is logged, and log rotation support. 0.7.5: Hopefully fixed the most nasty bugs. I found bunch of weird bugs that causes server syncing problems. Upgrading is strongly recommended as soon as possible. 0.7.6: Only a minor bugfix release to fix the CUMODE command that allowed non-founder channel users to remove modes of the founder, and to fix GETKEY always return server's public key if it is requested, and to fix the TOPIC_CHANGE notify to not route it twice to router. Patch submitted by Lubomir Sedlacik <salo@Xtrmntr.org> in PR 15373
Diffstat (limited to 'chat/silc-server/DEINSTALL')
-rw-r--r--chat/silc-server/DEINSTALL108
1 files changed, 8 insertions, 100 deletions
diff --git a/chat/silc-server/DEINSTALL b/chat/silc-server/DEINSTALL
index cfbd3fd3c4f..43c66c8d69c 100644
--- a/chat/silc-server/DEINSTALL
+++ b/chat/silc-server/DEINSTALL
@@ -1,107 +1,15 @@
-#!/bin/sh
-#
-# $NetBSD: DEINSTALL,v 1.3 2001/12/21 09:07:09 hubertf Exp $
-
-PKGNAME=$1
-STAGE=$2
-
-CAT="@CAT@"
-CMP="@CMP@"
-RM="@RM@"
-RMDIR="@RMDIR@"
-TRUE="@TRUE@"
-
-SERVERROOT="@SILCD_CONF_DIR@"
-DATADIR=${PKG_PREFIX}/share/silcd
-LOGDIR=/var/log/silcd
-SAMPLECONFDIR=${PKG_PREFIX}/share/doc/silcd
-CONFDIR=${SERVERROOT}
-RCSCRIPT="@CONF_DIR@/rc.d/silcd"
-CONFFILES="silcd.conf motd.txt"
-NONCONFFILES="silcd.pub silcd.prv"
+# $NetBSD: DEINSTALL,v 1.4 2002/01/26 14:43:16 hubertf Exp $
case ${STAGE} in
DEINSTALL)
- # Stop silcd if running
- ${RCSCRIPT} stop >/dev/null 2>&1 || ${TRUE}
-
- # Remove configuration files if they don't differ from the default
- # config file.
- #
- for file in ${CONFFILES}
- do
- FILE=${CONFDIR}/${file}
- SAMPLEFILE=${SAMPLECONFDIR}/${file}.default
- if ${CMP} -s ${FILE} ${SAMPLEFILE}
- then
- ${RM} -f ${FILE}
- fi
- done
- ${RM} -f ${RCSCRIPT}
+ ${ECHO} "==> Try to stop silcd if running."
+ @PREFIX@/etc/rc.d/silcd stop
;;
-
POST-DEINSTALL)
- modified_files=''
- for file in ${CONFFILES} ${NONCONFFILES}
- do
- FILE=${CONFDIR}/${file}
- if [ -f ${FILE} ]
- then
- modified_files="${modified_files} ${FILE}"
- fi
- done
-
- ${RMDIR} ${LOGDIR} 2>/dev/null || ${TRUE}
- ${RMDIR} ${SERVERROOT} 2>/dev/null || ${TRUE}
-
- existing_dirs=''
- for dir in ${CONFDIR} ${LOGDIR}
- do
- if [ -d ${dir} ]
- then
- existing_dirs="${existing_dirs} ${dir}"
- fi
- done
-
- if [ -n "${modified_files}" -o -n "${existing_dirs}" ]
- then
- ${CAT} << EOF
-===========================================================================
-If you won't be using ${PKGNAME} any longer, you may want to remove:
-EOF
- if [ -n "${modified_files}" ]
- then
- ${CAT} << EOF
-
- * the following files:
-
-EOF
- for file in ${modified_files}
- do
- echo " ${file}"
- done
- fi
- if [ -n "${existing_dirs}" ]
- then
- ${CAT} << EOF
-
- * the following directories:
-
-EOF
- for dir in ${existing_dirs}
- do
- echo " ${dir}"
- done
- fi
- ${CAT} << EOF
-===========================================================================
-EOF
- fi
- ;;
-
-*)
- echo "Unexpected argument: ${STAGE}"
- exit 1
+ ${ECHO} ===========================================================================
+ ${ECHO}
+ ${ECHO} "If you won't be using silc-server any longer, you may want to remove"
+ ${ECHO} "your server keys located in @PKG_SYSCONFDIR@."
+ ${ECHO}
;;
esac
-exit 0