pkgsrc/net/spread/files/spread.sh
recht e2741bcd7a Update to 3.17.1
The NetBSD project now has the permission to download the archive from
the official Spread site and to mirror it, so remove the restrictions.

changes:
*) Fix memory corruption and crash with groups of large size.
*) Correct make install so it installs header files.
*) Fix syntax error in build.xml file for Java/Ant.
*) Cleanup prototypes to remove compiler warnings.
*) Fix parser to correctly recognize upper, lower, and mixed case command options.
*) During make install, remove old symlinks.
*) Change setgroups call to be more portable. (fixes MacOSX)
*) Change name of r and s to sprecv and spsend, and add as make targets.
   They can be built by "make testprog" (not built by default).
*) Work on making long group names possible.
*) Increase listen backlog for accepting client connections.
*) Fix Win32 project files to have correct path to source files.
   (note CVS was always ok, but 3.17.0 release had incorrect path)
*) Fix bug where large groups overflow Mess_buf in groups.c.
*) Fix memory corruption bug when a message header is received in
   several separate packets in session.c. Thanks to Ryan Caudy for
   many, many hours tracking this down.
*) Change order of build in Makefile so binaries are built before
   documentation.
*) Fix Java bug where connection objects cannot be disconnected and
   then reconnected, but must be created anew. They can now be reused.
*) Fix compile error on AIX for struct if_info.
*) Fix security issue with buffer checks in the C library.
*) Fix obscure off-by-one buffer error with the parser.
2003-08-09 13:07:40 +00:00

43 lines
885 B
Bash

#!@RCD_SCRIPTS_SHELL@
#
# $NetBSD: spread.sh,v 1.2 2003/08/09 13:07:42 recht Exp $
#
# PROVIDE: spread
# REQUIRE: DAEMON
#
# To start spread at startup, copy this script to /etc/rc.d and set
# spread=YES in /etc/rc.conf.
#
# Addtionally you may set spread_log to a file where to log stuff.
if [ -f /etc/rc.subr ]; then
. /etc/rc.subr
fi
rcd_dir=`@DIRNAME@ $0`
name="spread"
rcvar=$name
command="@PREFIX@/sbin/${name}"
if [ X"${spread_log}" != "X" ] ; then
log=">${spread_log} 2>&1"
else
log=">/dev/null 2>&1"
fi
required_files="@PKG_SYSCONFDIR@/spread.conf"
command_args="${log} </dev/null &"
start_precmd="spread_precmd"
spread_precmd()
{
if [ ! -d @RUNTIME_DIR@ ]
then
@MKDIR@ @RUNTIME_DIR@
@CHMOD@ 0750 @RUNTIME_DIR@
@CHOWN@ @PKG_USERS@ @RUNTIME_DIR@
fi
}
load_rc_config $name
run_rc_command "$1"