Github messages for voidlinux
 help / color / mirror / Atom feed
* [PR PATCH] New package: sysklogd-2.5.2
@ 2023-09-25 14:20 hunter2k01
  2023-09-25 14:24 ` [PR PATCH] [Updated] " hunter2k01
  2023-10-05 23:37 ` [PR PATCH] [Closed]: " hunter2k01
  0 siblings, 2 replies; 3+ messages in thread
From: hunter2k01 @ 2023-09-25 14:20 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1257 bytes --]

There is a new pull request by hunter2k01 against master on the void-packages repository

https://github.com/hunter2k01/void-packages sysklogd
https://github.com/void-linux/void-packages/pull/46247

New package: sysklogd-2.5.2
<!-- Uncomment relevant sections and delete options which are not applicable -->

#### Testing the changes
- I tested the changes in this PR: **YES**|**briefly**|**NO**


#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**

<!-- Note: If the build is likely to take more than 2 hours, please add ci skip tag as described in
https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->

#### Local build testing
- I built this PR locally for my native architecture, (ARCH-LIBC)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
  - armv6l-musl
  - armv6l
  - x86_64-musl
  - x86_64-glibc


A patch file from https://github.com/void-linux/void-packages/pull/46247.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-sysklogd-46247.patch --]
[-- Type: text/x-diff, Size: 5825 bytes --]

From be1e4f227f341832fd30cfefea02c2d4dbac9699 Mon Sep 17 00:00:00 2001
From: Hunter Ellett <hunter2k1@disroot.org>
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..4b88e518ff0a5
--- /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 --runstatedir=/run --sysconfdir=/etc"
+hostmakedepends="pkg-config automake autoconf"
+short_desc="BSD syslog daemon"
+maintainer="Hunter Ellett <hunter2k1@disroot.org>"
+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
+}

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PR PATCH] [Updated] New package: sysklogd-2.5.2
  2023-09-25 14:20 [PR PATCH] New package: sysklogd-2.5.2 hunter2k01
@ 2023-09-25 14:24 ` hunter2k01
  2023-10-05 23:37 ` [PR PATCH] [Closed]: " hunter2k01
  1 sibling, 0 replies; 3+ messages in thread
From: hunter2k01 @ 2023-09-25 14:24 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1244 bytes --]

There is an updated pull request by hunter2k01 against master on the void-packages repository

https://github.com/hunter2k01/void-packages sysklogd
https://github.com/void-linux/void-packages/pull/46247

New package: sysklogd-2.5.2
<!-- Uncomment relevant sections and delete options which are not applicable -->

#### Testing the changes
- I tested the changes in this PR: **YES**


#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**

<!-- Note: If the build is likely to take more than 2 hours, please add ci skip tag as described in
https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->

#### Local build testing
- I built this PR locally for my native architecture, x86_64-glibc
- I built this PR locally for these architectures (if supported. mark crossbuilds):
  - armv6l-musl
  - armv6l
  - x86_64-musl
  - x86_64-glibc


A patch file from https://github.com/void-linux/void-packages/pull/46247.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-sysklogd-46247.patch --]
[-- Type: text/x-diff, Size: 5806 bytes --]

From 38f61b10d82fa45073de01925b72f3ad510f72cf Mon Sep 17 00:00:00 2001
From: Hunter Ellett <hunter2k1@disroot.org>
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 <hunter2k1@disroot.org>"
+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
+}

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PR PATCH] [Closed]: New package: sysklogd-2.5.2
  2023-09-25 14:20 [PR PATCH] New package: sysklogd-2.5.2 hunter2k01
  2023-09-25 14:24 ` [PR PATCH] [Updated] " hunter2k01
@ 2023-10-05 23:37 ` hunter2k01
  1 sibling, 0 replies; 3+ messages in thread
From: hunter2k01 @ 2023-10-05 23:37 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1081 bytes --]

There's a closed pull request on the void-packages repository

New package: sysklogd-2.5.2
https://github.com/void-linux/void-packages/pull/46247

Description:
<!-- Uncomment relevant sections and delete options which are not applicable -->

#### Testing the changes
- I tested the changes in this PR: **YES**


#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**

<!-- Note: If the build is likely to take more than 2 hours, please add ci skip tag as described in
https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->

#### Local build testing
- I built this PR locally for my native architecture, x86_64-glibc
- I built this PR locally for these architectures (if supported. mark crossbuilds):
  - armv6l-musl
  - armv6l
  - x86_64-musl
  - x86_64-glibc


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2023-10-05 23:37 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-09-25 14:20 [PR PATCH] New package: sysklogd-2.5.2 hunter2k01
2023-09-25 14:24 ` [PR PATCH] [Updated] " hunter2k01
2023-10-05 23:37 ` [PR PATCH] [Closed]: " hunter2k01

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).