summaryrefslogtreecommitdiff
path: root/sysutils/rsyslog3/files
diff options
context:
space:
mode:
Diffstat (limited to 'sysutils/rsyslog3/files')
-rw-r--r--sysutils/rsyslog3/files/patch-syslogd.c22
-rw-r--r--sysutils/rsyslog3/files/pkg-message.in16
-rw-r--r--sysutils/rsyslog3/files/rsyslogd.in92
3 files changed, 0 insertions, 130 deletions
diff --git a/sysutils/rsyslog3/files/patch-syslogd.c b/sysutils/rsyslog3/files/patch-syslogd.c
deleted file mode 100644
index f646cc94c27d..000000000000
--- a/sysutils/rsyslog3/files/patch-syslogd.c
+++ /dev/null
@@ -1,22 +0,0 @@
---- ./syslogd.c.orig 2007-08-25 20:07:21.000000000 +0400
-+++ ./syslogd.c 2007-08-25 20:08:39.000000000 +0400
-@@ -86,7 +86,6 @@
- #include "rsyslog.h"
-
- #ifdef __FreeBSD__
--#define BSD
- #endif
-
- /* change the following setting to e.g. 32768 if you would like to
-@@ -1877,6 +1876,11 @@
- return iRet;
- }
-
-+size_t strnlen (const char *string, size_t maxlen)
-+{
-+ const char *end = memchr (string, '\0', maxlen);
-+ return end ? (size_t) (end - string) : maxlen;
-+}
-
- /* rgerhards, 2005-10-24: crunch_list is called only during option processing. So
- * it is never called once rsyslogd is running (not even when HUPed). This code
diff --git a/sysutils/rsyslog3/files/pkg-message.in b/sysutils/rsyslog3/files/pkg-message.in
deleted file mode 100644
index a6d483ef34f4..000000000000
--- a/sysutils/rsyslog3/files/pkg-message.in
+++ /dev/null
@@ -1,16 +0,0 @@
-===================================================================
-To start using rsyslogd(8), stop syslogd(8) if it's running and
-add the following lines to rc.conf(5):
- syslogd_enable="NO"
- rsyslogd_enable="YES"
-It's recommended to copy syslog.conf(5) to
-%%PREFIX%%/etc/rsyslog.conf and edit it there. Otherwise add
-this:
- rsyslogd_config="/etc/syslog.conf"
-newsyslog(8) has the path of syslogd's pid file hardcoded. To
-make it work seamlessly with rsyslog, add this:
- rsyslogd_pidfile="/var/run/syslog.pid"
-rsyslogd(8) does not support logging /dev/klog. To enable a
-simple logger(1)-based workaround, add this:
- rsyslogd_klog_enable="YES"
-===================================================================
diff --git a/sysutils/rsyslog3/files/rsyslogd.in b/sysutils/rsyslog3/files/rsyslogd.in
deleted file mode 100644
index d33e18b281c4..000000000000
--- a/sysutils/rsyslog3/files/rsyslogd.in
+++ /dev/null
@@ -1,92 +0,0 @@
-#!/bin/sh
-#
-# $FreeBSD$
-#
-
-# PROVIDE: rsyslogd
-# REQUIRE: mountcritremote cleanvar newsyslog ldconfig
-# BEFORE: SERVERS
-
-. %%RC_SUBR%%
-
-name=rsyslogd
-rcvar=`set_rcvar`
-command="%%PREFIX%%/sbin/${name}"
-load_rc_config $name
-: ${rsyslogd_enable:="NO"}
-: ${rsyslogd_pidfile:="/var/run/rsyslogd.pid"}
-: ${rsyslogd_config:="%%PREFIX%%/etc/rsyslog.conf"}
-: ${rsyslogd_klog_enable:="NO"}
-: ${rsyslogd_klog_pidfile:="/var/run/rsyslog-klog.pid"}
-pidfile="${rsyslogd_pidfile}"
-command_args="-i ${pidfile} -f ${rsyslogd_config}"
-required_files="${rsyslogd_config}"
-start_precmd="rsyslogd_precmd"
-stop_precmd="stop_precmd"
-extra_commands="reload"
-
-sockfile="/var/run/rsyslogd.sockets"
-evalargs="rc_flags=\"\`set_socketlist\` \$rc_flags\""
-altlog_proglist="named"
-
-stop_precmd()
-{
- if [ -r ${rsyslogd_klog_pidfile} ]&&[ -s ${rsyslogd_klog_pidfile} ]; then
- kill `cat ${rsyslogd_klog_pidfile}`
- fi
- rm -f ${rsyslogd_klog_pidfile}
-}
-
-rsyslogd_precmd()
-{
- if checkyesno rsyslogd_klog_enable; then
- daemon -cfp ${rsyslogd_klog_pidfile}\
- logger -t kernel -p kern.notice -f /dev/klog
- fi
- local _l _ldir
-
- # Transitional symlink for old binaries
- #
- if [ ! -L /dev/log ]; then
- ln -sf /var/run/log /dev/log
- fi
- rm -f /var/run/log
-
- # Create default list of syslog sockets to watch
- #
- ( umask 022 ; > $sockfile )
-
- # If running named(8) or ntpd(8) chrooted, added appropriate
- # syslog socket to list of sockets to watch.
- #
- for _l in $altlog_proglist; do
- eval _ldir=\$${_l}_chrootdir
- if checkyesno `set_rcvar $_l` && [ -n "$_ldir" ]; then
- echo "${_ldir}/var/run/log" >> $sockfile
- fi
- done
-
- # If other sockets have been provided, change run_rc_command()'s
- # internal copy of $rsyslogd_flags to force use of specific
- # rsyslogd sockets.
- #
- if [ -s $sockfile ]; then
- echo "/var/run/log" >> $sockfile
- eval $evalargs
- fi
-
- return 0
-}
-
-set_socketlist()
-{
- local _s _socketargs
-
- _socketargs=
- for _s in `cat $sockfile | tr '\n' ' '` ; do
- _socketargs="-a $_s $_socketargs"
- done
- echo $_socketargs
-}
-
-run_rc_command "$1"