From 38f61b10d82fa45073de01925b72f3ad510f72cf Mon Sep 17 00:00:00 2001 From: Hunter Ellett Date: Mon, 25 Sep 2023 08:59:05 -0500 Subject: [PATCH] New package: sysklogd-2.5.2 --- srcpkgs/sysklogd/files/LICENSE | 26 ++++++++++ srcpkgs/sysklogd/files/sysklogd/run | 7 +++ srcpkgs/sysklogd/files/syslog.conf | 76 +++++++++++++++++++++++++++++ srcpkgs/sysklogd/template | 19 ++++++++ 4 files changed, 128 insertions(+) create mode 100644 srcpkgs/sysklogd/files/LICENSE create mode 100644 srcpkgs/sysklogd/files/sysklogd/run create mode 100644 srcpkgs/sysklogd/files/syslog.conf create mode 100644 srcpkgs/sysklogd/template diff --git a/srcpkgs/sysklogd/files/LICENSE b/srcpkgs/sysklogd/files/LICENSE new file mode 100644 index 0000000000000..d8c23351ade63 --- /dev/null +++ b/srcpkgs/sysklogd/files/LICENSE @@ -0,0 +1,26 @@ +Copyright (c) 1983, 1988, 1993 The Regents of the University of California. +All rights reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions +are met: +1. Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. +2. Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. +3. Neither the name of the University nor the names of its contributors + may be used to endorse or promote products derived from this software + without specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS "AS IS" AND +ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE +FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL +DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS +OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) +HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY +OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF +SUCH DAMAGE. diff --git a/srcpkgs/sysklogd/files/sysklogd/run b/srcpkgs/sysklogd/files/sysklogd/run new file mode 100644 index 0000000000000..955f84ccd7ef3 --- /dev/null +++ b/srcpkgs/sysklogd/files/sysklogd/run @@ -0,0 +1,7 @@ +#!/bin/sh +[ -r conf ] && . ./conf +exec 2>&1 +# Launch sysklogd in foreground with secure mode by default +exec syslogd -Fs ${OPTS} + + diff --git a/srcpkgs/sysklogd/files/syslog.conf b/srcpkgs/sysklogd/files/syslog.conf new file mode 100644 index 0000000000000..c4c7525c55cc4 --- /dev/null +++ b/srcpkgs/sysklogd/files/syslog.conf @@ -0,0 +1,76 @@ +# /etc/syslog.conf - Configuration file for syslogd(8) +# +# For information about the format of this file, see syslog.conf(5) +# + +# +# First some standard log files. Log by facility. +# +auth,authpriv.* /var/log/auth.log +*.*;auth,authpriv.none -/var/log/syslog + +#cron.* /var/log/cron.log +#daemon.* -/var/log/daemon.log +kern.* -/var/log/kern.log +#lpr.* -/var/log/lpr.log +mail.* -/var/log/mail.log +#user.* -/var/log/user.log + +# +# Logging for the mail system. Split it up so that +# it is easy to write scripts to parse these files. +# +#mail.info -/var/log/mail.info +#mail.warn -/var/log/mail.warn +mail.err /var/log/mail.err +#mail.*;mail.!=info -/var/log/mail +#mail,news.=info -/var/log/info + +# The tcp wrapper loggs with mail.info, we display all +# the connections on tty12 +# +#mail.=info /dev/tty12 + +# +# Some "catch-all" log files. +# +#*.=debug;\ +# auth,authpriv.none;\ +# news.none;mail.none -/var/log/debug +*.=info;*.=notice;*.=warn;\ + auth,authpriv.none;\ + cron,daemon.none;\ + mail,news.none -/var/log/messages + +# Store all critical eventes, except kernel logs in critical +# +#*.=crit;kern.none /var/log/critical + +# Example of sending events to remote syslog server. +# All events from notice and above, except auth, authpriv +# and any kernel message are sent to server finlandia in +# RFC5424 formatted output. +# +#*.notice;auth,authpriv.none; +# kern.none\ @finlandia ;RFC5424 + +# Emergencies are sent to anyone logged in +# +*.=emerg * + +# Priority alert and above are sent to the operator +# +#*.alert root,joey + +# +# Secure mode, same as -s, none(0), on(1), full(2). When enabled +# only logging to remote syslog server possible, with full secure +# mode, not even that is possible. We default to prevent syslogd +# from opening UDP/514 and receving messages from other systems. +# +secure_mode 1 + +# +# Include all config files in /etc/syslog.d/ +# +include /etc/syslog.d/*.conf diff --git a/srcpkgs/sysklogd/template b/srcpkgs/sysklogd/template new file mode 100644 index 0000000000000..42f2b311850ab --- /dev/null +++ b/srcpkgs/sysklogd/template @@ -0,0 +1,19 @@ +# Template file for 'sysklogd' +pkgname=sysklogd +version=2.5.2 +revision=1 +build_style=gnu-configure +configure_args="--runstatedir=/run --sysconfdir=/etc --sysconfdir=/etc" +hostmakedepends="pkg-config automake autoconf" +short_desc="BSD syslog daemon" +maintainer="Hunter Ellett " +license="BSD-3-Clause" +homepage="https://troglobit.com/sysklogd.html" +distfiles="https://github.com/troglobit/sysklogd/releases/download/v${version}/sysklogd-${version}.tar.gz" +checksum=9da4444285772ce2bfc9c687be8f978b7a9fe7d3937347cd4938eda0c4545e05 + +post_install() { + vsv sysklogd + vconf ${FILESDIR}/syslog.conf + vlicense ${FILESDIR}/LICENSE +}