summaryrefslogtreecommitdiff
path: root/chat/silc-server/files
diff options
context:
space:
mode:
authorhubertf <hubertf@pkgsrc.org>2002-05-03 22:02:49 +0000
committerhubertf <hubertf@pkgsrc.org>2002-05-03 22:02:49 +0000
commited75026f1fd95658603d60a40390c6e81cadf2ae (patch)
tree7851a84c64136d6f8f5dc232bfca8a94b93b2cde /chat/silc-server/files
parent674cbe92f2294f7addad906be8390474818abd5e (diff)
downloadpkgsrc-ed75026f1fd95658603d60a40390c6e81cadf2ae.tar.gz
Update silc-server pkg to 0.8.4. Changes:
changes in silc-server package: =============================== - upgraded to version 0.8.4 - added generic startup script for Solaris and Linux (i can't test it on Darwin/Mac OS X because i don't have any.. please let me know if it works for you. thanks) You will need to copy ${PREFIX}/etc/rc.d/silcd to appropriate location in your system and do neccessary actions to enable it. e.g. Solaris: copy ${PREFIX}/etc/rc.d/silcd to /etc/init.d/ and make links in /etc/rc2.d/, /etc/rc1.d/, /etc/rc0.d/. changes in silc-server since 0.8.1: =================================== * Fixed a bug in library where sending a bogus authentication payload would lead to a crash. * Fixed a bug in the fetch_logging() config callback. * Drop root privileges when started in foreground. Don't drop them if debugging also. * Added better error logging in rekey protocol. * Do not check public key types in SKE during rekey. * Fixed the rekey protocol with PFS, which was totally broken. * Fixed a negative refcount situtuation for the config context. * Fixed memory leaks from config object. * Added support for adding new connections to the server in rehash. After rehash they take effect. * Added support for changing the maximum allowed connections in rehash. The number can grow but going smaller is not supported. * Added preliminary checking during config parsing for a valid public/private key and removed further checks in the code. * Fixed silc_net_gethostbyaddr to correctly resolve by address. * Fixed the notify relaying to client. The HMAC to be used with relayed packets ws wrong and caused decryption failure at the client end. * Fixed the silc_log_quick handling in the logging routines. It didn't log quickly when it was TRUE. Also the flush delay was set even if it was 0 in config file. * Added support for changing key pair of the server in rehash. * Fixed the TOPIC_SET notify to not crash. It changed the topic too early, before getting the channel entry. * Added rehash support. Added function silc_server_rehash() that will perform all the basic tasks of the rehashing procedure. * Added command line option `-x, --hexdump'. This will enable the SILC_LOG_HEXDUMP calls that are no longer enabled with `--debug'. The option `--hexdump' implies `--debug'. * Fixed a bad bug in the logging APIs (silcutil library) where the application would crash after calling silc_log_reset_all(). Contributed by Lubomir Sedlacik <salo@xtrmntr.org> in PR 16612
Diffstat (limited to 'chat/silc-server/files')
-rw-r--r--chat/silc-server/files/silcd.generic82
-rw-r--r--chat/silc-server/files/silcd.sh4
2 files changed, 84 insertions, 2 deletions
diff --git a/chat/silc-server/files/silcd.generic b/chat/silc-server/files/silcd.generic
new file mode 100644
index 00000000000..c8280e49670
--- /dev/null
+++ b/chat/silc-server/files/silcd.generic
@@ -0,0 +1,82 @@
+# $NetBSD: silcd.generic,v 1.1 2002/05/03 22:02:49 hubertf Exp $
+#
+
+KILL="/bin/kill"
+CAT="/bin/cat"
+RM="/bin/rm"
+
+name="silcd"
+confdir="@PKG_SYSCONFDIR@"
+required_files="$confdir/silcd.conf"
+required_dirs="/var/log/silcd"
+pidfile="/var/log/silcd/${name}.pid"
+command="@PREFIX@/sbin/silcd"
+start_precmd="silcd_precmd"
+
+silcd_precmd() {
+ if [ ! -f $confdir/silcd.prv ]; then
+ $command -C $confdir
+ fi
+}
+
+silcd_start() {
+ if [ ! -r $required_files ]; then
+ echo "$0: WARNING: $required_files is not readable."
+ exit 1
+ fi
+ if [ ! -d $required_dirs ]; then
+ echo "$0: WARNING: $required_dirs is not a directory."
+ exit 1
+ fi
+
+ eval $start_precmd
+ return_code=$?
+ if [ $return_code != "0" ]; then
+ exit 1
+ fi
+
+ echo "Starting ${name}."
+ eval $command
+ return_code=$?
+ if [ $return_code != "0" ]; then
+ exit 1
+ fi
+}
+
+
+silcd_stop() {
+ if [ -r $pidfile -a ! -z $pidfile ]; then
+ _pid=`${CAT} ${pidfile}`
+ else
+ echo "${name} not running?"
+ fi
+ if [ ${_pid:=0} -gt 1 -a ! "X$_pid" = "X " ]; then
+ echo "Stopping ${name}."
+ ${KILL} ${_pid}
+ return_code=$?
+ if [ $return_code != "0" ]; then
+ exit 1
+ fi
+ fi
+ ${RM} -f $pidfile
+}
+
+case $1 in
+
+'start')
+ silcd_start
+ ;;
+
+'stop')
+ silcd_stop
+ ;;
+
+'restart')
+ silcd_stop
+ silcd_start
+ ;;
+
+*)
+ echo "Usage: $0 (start|stop|restart)"
+ ;;
+esac
diff --git a/chat/silc-server/files/silcd.sh b/chat/silc-server/files/silcd.sh
index 91ba94bded0..60c255c95b9 100644
--- a/chat/silc-server/files/silcd.sh
+++ b/chat/silc-server/files/silcd.sh
@@ -1,6 +1,6 @@
#!/bin/sh
#
-# $NetBSD: silcd.sh,v 1.3 2002/01/26 14:43:17 hubertf Exp $
+# $NetBSD: silcd.sh,v 1.4 2002/05/03 22:02:49 hubertf Exp $
#
# PROVIDE: silcd
# REQUIRE: DAEMON
@@ -15,7 +15,7 @@ rcvar=$name
confdir="@PKG_SYSCONFDIR@"
required_files="$confdir/silcd.conf"
required_dirs="/var/log/silcd"
-pidfile="/var/run/${name}.pid"
+pidfile="/var/log/silcd/${name}.pid"
command="@PREFIX@/sbin/silcd"
start_precmd="silcd_precmd"
stop_cmd="silcd_stop"