* [gentoo-commits] repo/gentoo:master commit in: app-admin/sysklogd/files/, app-admin/sysklogd/
@ 2017-01-17 17:39 Lars Wendler
0 siblings, 0 replies; 7+ messages in thread
From: Lars Wendler @ 2017-01-17 17:39 UTC (permalink / raw
To: gentoo-commits
commit: 5993df809e309937b59d1a545fe7bc9f264b5711
Author: Rodrigo Saboya <saboya <AT> users <DOT> noreply <DOT> github <DOT> com>
AuthorDate: Mon Jan 16 17:48:08 2017 +0000
Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
CommitDate: Tue Jan 17 17:38:57 2017 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5993df80
app-admin/sysklogd: Fixing build issue with Glibc 2.24. bug #604232
Closes: https://github.com/gentoo/gentoo/pull/3508
.../sysklogd/files/sysklogd-1.5-glibc-2.24.patch | 11 ++++
app-admin/sysklogd/sysklogd-1.5.1-r1.ebuild | 62 ++++++++++++++++++++++
2 files changed, 73 insertions(+)
diff --git a/app-admin/sysklogd/files/sysklogd-1.5-glibc-2.24.patch b/app-admin/sysklogd/files/sysklogd-1.5-glibc-2.24.patch
new file mode 100644
index 00000000..fcddb75
--- /dev/null
+++ b/app-admin/sysklogd/files/sysklogd-1.5-glibc-2.24.patch
@@ -0,0 +1,11 @@
+--- sysklogd-1.5.1/syslogd.c
++++ sysklogd-1.5.1/syslogd.c
+@@ -2094,7 +2094,7 @@
+ (void) signal(SIGCHLD, reapchild); /* reset signal handler -ASP */
+ wait ((int *)0);
+ #else
+- union wait status;
++ int status;
+
+ while (wait3(&status, WNOHANG, (struct rusage *) NULL) > 0)
+ ;
diff --git a/app-admin/sysklogd/sysklogd-1.5.1-r1.ebuild b/app-admin/sysklogd/sysklogd-1.5.1-r1.ebuild
new file mode 100644
index 00000000..9fdc76a
--- /dev/null
+++ b/app-admin/sysklogd/sysklogd-1.5.1-r1.ebuild
@@ -0,0 +1,62 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="5"
+
+inherit eutils flag-o-matic toolchain-funcs
+
+DEB_PV="1.5-6"
+DESCRIPTION="Standard log daemons"
+HOMEPAGE="http://www.infodrom.org/projects/sysklogd/"
+SRC_URI="http://www.infodrom.org/projects/sysklogd/download/${P}.tar.gz
+ mirror://debian/pool/main/s/sysklogd/${PN}_${DEB_PV}.diff.gz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86"
+IUSE="logrotate"
+RESTRICT="test"
+
+DEPEND=""
+RDEPEND="dev-lang/perl
+ sys-apps/debianutils"
+
+src_prepare() {
+ epatch "${WORKDIR}"/${PN}_${DEB_PV}.diff
+
+ epatch "${FILESDIR}"/${PN}-1.5-debian-cron.patch
+ epatch "${FILESDIR}"/${PN}-1.5-build.patch
+
+ # CAEN/OWL security patches
+ epatch "${FILESDIR}"/${PN}-1.4.2-caen-owl-syslogd-bind.diff
+ epatch "${FILESDIR}"/${PN}-1.4.2-caen-owl-syslogd-drop-root.diff
+ epatch "${FILESDIR}"/${PN}-1.4.2-caen-owl-klogd-drop-root.diff
+
+ epatch "${FILESDIR}"/${PN}-1.5-syslog-func-collision.patch #342601
+ epatch "${FILESDIR}"/${PN}-1.5-glibc-2.24.patch #604232
+}
+
+src_configure() {
+ append-lfs-flags
+ tc-export CC
+}
+
+src_install() {
+ dosbin syslogd klogd debian/syslog-facility debian/syslogd-listfiles
+ doman *.[1-9] debian/syslogd-listfiles.8
+ insinto /etc
+ doins debian/syslog.conf
+ if use logrotate ; then
+ insinto /etc/logrotate.d
+ newins "${FILESDIR}"/sysklogd.logrotate sysklogd
+ else
+ exeinto /etc/cron.daily
+ newexe debian/cron.daily syslog
+ exeinto /etc/cron.weekly
+ newexe debian/cron.weekly syslog
+ fi
+ dodoc ANNOUNCE CHANGES NEWS README.1st README.linux
+ newinitd "${FILESDIR}"/sysklogd.rc7 sysklogd
+ newconfd "${FILESDIR}"/sysklogd.confd sysklogd
+}
^ permalink raw reply related [flat|nested] 7+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: app-admin/sysklogd/files/, app-admin/sysklogd/
@ 2019-11-20 10:15 Lars Wendler
0 siblings, 0 replies; 7+ messages in thread
From: Lars Wendler @ 2019-11-20 10:15 UTC (permalink / raw
To: gentoo-commits
commit: 0d4daf7b471424a0ef04c3fd66901c606aa2337c
Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
AuthorDate: Wed Nov 20 09:55:27 2019 +0000
Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
CommitDate: Wed Nov 20 10:08:35 2019 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0d4daf7b
app-admin/sysklogd: Use reasonable defaults for syslogd
Respect logrotate USE flag again and inform users about new
built-in log rotation functionality.
Package-Manager: Portage-2.3.79, Repoman-2.3.18
Signed-off-by: Lars Wendler <polynomial-c <AT> gentoo.org>
app-admin/sysklogd/files/sysklogd.confd2 | 6 ++++++
app-admin/sysklogd/sysklogd-2.0.ebuild | 19 ++++++++++++++++---
2 files changed, 22 insertions(+), 3 deletions(-)
diff --git a/app-admin/sysklogd/files/sysklogd.confd2 b/app-admin/sysklogd/files/sysklogd.confd2
new file mode 100644
index 00000000000..077f36bf6b6
--- /dev/null
+++ b/app-admin/sysklogd/files/sysklogd.confd2
@@ -0,0 +1,6 @@
+# Config file for /etc/init.d/sysklogd
+
+SYSLOGD="-m 0 -s -s -r 10M:10"
+# send warnings and above to the console
+KLOGD="-c 3 -2"
+
diff --git a/app-admin/sysklogd/sysklogd-2.0.ebuild b/app-admin/sysklogd/sysklogd-2.0.ebuild
index b1caf749a27..cc3f3615e06 100644
--- a/app-admin/sysklogd/sysklogd-2.0.ebuild
+++ b/app-admin/sysklogd/sysklogd-2.0.ebuild
@@ -36,7 +36,6 @@ src_prepare() {
src_configure() {
local myeconfargs=(
- # we have logger from sys-apps/util-linux
$(use_with klogd)
$(use_with logger)
$(use_with systemd systemd $(systemd_get_systemunitdir))
@@ -51,8 +50,22 @@ src_install() {
doins syslog.conf
keepdir /etc/syslog.d
+ newinitd "${FILESDIR}"/sysklogd.rc8 sysklogd
+ newconfd "${FILESDIR}"/sysklogd.confd2 sysklogd
+
+ if use logrotate ; then
+ insinto /etc/logrotate.d
+ newins "${FILESDIR}"/sysklogd.logrotate sysklogd
+ sed 's@ -r 10M:10@@' -i "${ED}"/etc/conf.d/sysklogd || die
+ fi
+
find "${ED}" -type f \( -name "*.a" -o -name "*.la" \) -delete || die
+}
- newinitd "${FILESDIR}"/sysklogd.rc8 sysklogd
- newconfd "${FILESDIR}"/sysklogd.confd sysklogd
+pkg_postinst() {
+ if ! use logrotate && [[ -n ${REPLACING_VERSIONS} ]] && ver_test ${REPLACING_VERSIONS} -lt 2.0 ; then
+ elog "Starting with version 2.0 syslogd has built in log rotation"
+ elog "functionality that does no longer require a running cron daemon."
+ elog "So we no longer install any log rotation cron files for sysklogd."
+ fi
}
^ permalink raw reply related [flat|nested] 7+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: app-admin/sysklogd/files/, app-admin/sysklogd/
@ 2019-11-24 13:25 Lars Wendler
0 siblings, 0 replies; 7+ messages in thread
From: Lars Wendler @ 2019-11-24 13:25 UTC (permalink / raw
To: gentoo-commits
commit: 0d3159ce3a0ba9d0d7d6daaabd4da6052fbc5784
Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
AuthorDate: Sun Nov 24 13:25:02 2019 +0000
Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
CommitDate: Sun Nov 24 13:25:33 2019 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0d3159ce
app-admin/sysklogd: Revbump to set correct localstatedir path
This is required to not make syslogd bail out on startup if
/var/lib/run directory does not exist.
Reported-by: Holger Hoffstätte <holger <AT> applied-asynchrony.com>
Closes: https://bugs.gentoo.org/701048
Package-Manager: Portage-2.3.79, Repoman-2.3.18
Signed-off-by: Lars Wendler <polynomial-c <AT> gentoo.org>
app-admin/sysklogd/files/sysklogd.rc8 | 2 +-
app-admin/sysklogd/{sysklogd-2.0.ebuild => sysklogd-2.0-r1.ebuild} | 5 +++++
2 files changed, 6 insertions(+), 1 deletion(-)
diff --git a/app-admin/sysklogd/files/sysklogd.rc8 b/app-admin/sysklogd/files/sysklogd.rc8
index a6590d725a6..920ab963326 100644
--- a/app-admin/sysklogd/files/sysklogd.rc8
+++ b/app-admin/sysklogd/files/sysklogd.rc8
@@ -34,7 +34,7 @@ start_daemon() {
ebegin "sysklogd -> start: ${daemon}"
start-stop-daemon --start --exec /usr/sbin/"${daemon}" \
-b -m --pidfile /var/run/"${daemon}".pid \
- -- ${fg_opt} ${options}
+ -- ${options} ${fg_opt}
retval=$?
eend ${retval} "Failed to start ${daemon}"
diff --git a/app-admin/sysklogd/sysklogd-2.0.ebuild b/app-admin/sysklogd/sysklogd-2.0-r1.ebuild
similarity index 87%
rename from app-admin/sysklogd/sysklogd-2.0.ebuild
rename to app-admin/sysklogd/sysklogd-2.0-r1.ebuild
index c69300ca428..d7a07507988 100644
--- a/app-admin/sysklogd/sysklogd-2.0.ebuild
+++ b/app-admin/sysklogd/sysklogd-2.0-r1.ebuild
@@ -41,6 +41,11 @@ src_prepare() {
src_configure() {
local myeconfargs=(
+ # Required for correct pid file location. (bug #701048)
+ # syslogd appends "/run/syslogd.pid" to the localstatedir
+ # path, and tries to write to that file even when being
+ # started in foreground. So we need to pin this to /
+ --localstatedir="${EPREFIX}"/
$(use_with klogd)
$(use_with logger)
$(use_with systemd systemd $(systemd_get_systemunitdir))
^ permalink raw reply related [flat|nested] 7+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: app-admin/sysklogd/files/, app-admin/sysklogd/
@ 2019-12-02 9:23 Lars Wendler
0 siblings, 0 replies; 7+ messages in thread
From: Lars Wendler @ 2019-12-02 9:23 UTC (permalink / raw
To: gentoo-commits
commit: 0204735cb0b35f86ffe40b00154bde10fca79a67
Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
AuthorDate: Mon Dec 2 09:20:16 2019 +0000
Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
CommitDate: Mon Dec 2 09:20:16 2019 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0204735c
app-admin/sysklogd: Bump to version 2.0.3
Package-Manager: Portage-2.3.80, Repoman-2.3.19
Signed-off-by: Lars Wendler <polynomial-c <AT> gentoo.org>
app-admin/sysklogd/Manifest | 1 +
app-admin/sysklogd/files/sysklogd.rc9 | 82 ++++++++++++++++++++++++++++++++
app-admin/sysklogd/sysklogd-2.0.3.ebuild | 68 ++++++++++++++++++++++++++
3 files changed, 151 insertions(+)
diff --git a/app-admin/sysklogd/Manifest b/app-admin/sysklogd/Manifest
index 4c02a5f8dcd..3b9667ba029 100644
--- a/app-admin/sysklogd/Manifest
+++ b/app-admin/sysklogd/Manifest
@@ -1,4 +1,5 @@
DIST sysklogd-1.5.1.tar.gz 90011 BLAKE2B c40bd8d5769f7d3d4141d602c74ac41e05a140743d18c4923d9368da7ba193ccb89a6837173994f0b7a9c290cc23f64513040434d7ab8df81b5d09b73b0263ad SHA512 a72196a1a172d25be1c4791ef6256fe71fa2ba8c1383d230e646e93f8a65c3a57c535189726325da4c792fdb2e9cb119bba43c878816a8e78e78189fd32b12b7
DIST sysklogd-2.0.1.tar.gz 461158 BLAKE2B 2c56ea1b5edb11f6ce75cb34d7cb5778516fbf3cb64986a7dd6063f830e9e8040430a0deb0ac68aeb389435319ede89202b2aa31cb480fe9bd9518ad503ca6ee SHA512 24d82a2db8d7d8fbdf291964d3d42717cf3b62129d1d503986b17a8005ca414eb824c39ed787d73bac966dad5a7cc9b439efce58e218aebed72b765e07134a83
DIST sysklogd-2.0.2.tar.gz 465933 BLAKE2B bc0181e43ca5996cfbf8a8a35d083f332e15f5c83215ec60b406cefc7817bb742d0ce094d6c0d9fe708d345db630a73ce408992d9aade18e5b69414ca4e2b2a6 SHA512 1e5e30162b1091c37801542ae44df3e5d1da09ead02dd74f81e1e35ebb2fea99bab372f00eca621340ca306a41629ccdfb3caa0d46db0fecf46e3030da932473
+DIST sysklogd-2.0.3.tar.gz 466919 BLAKE2B d9ada06dadb5a43ca7102cb24eaffa0494af2743f4714bab7d362cf480835ea9c3fc51ee171e4eb3b90380d63abe78c759bdfc5d946ec4d5bf8fce748cd916b9 SHA512 95ed0465e37b438d624b0a78d74c1194c57d117890492b5773c9ccefa7aa2c1f54ed510e54a29019fb2d7274200370031fe822a9316c154e64a2a01cb912d7a8
DIST sysklogd_1.5-6.diff.gz 25677 BLAKE2B 3cb1f596490998b6002d4656a2321a500ce9941a37737c0b9d4702bbb87d7bc9ba21b68e06d175e3c1714a701adc6b3312e18a556ebc9ef395d8968762830cb5 SHA512 816961a835a43057569f62fd20d9f7b5e0bfcfcb173b68947457708504db3ce47e635956c8a9564f9bd577d8f3c49dfc725d321dfd3370b2de918363c30f838e
diff --git a/app-admin/sysklogd/files/sysklogd.rc9 b/app-admin/sysklogd/files/sysklogd.rc9
new file mode 100644
index 00000000000..b0479f1c175
--- /dev/null
+++ b/app-admin/sysklogd/files/sysklogd.rc9
@@ -0,0 +1,82 @@
+#!/sbin/openrc-run
+# Copyright 1999-2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License, v2 or later
+
+extra_started_commands="reload"
+
+depend() {
+ need clock hostname
+ provide logger
+}
+
+has_klogd() {
+ [ -x "/usr/sbin/klogd" ]
+}
+
+start_daemon() {
+ local retval=0
+ local daemon="$1"
+ local options="$2"
+ local fg_opt=""
+
+ ebegin "sysklogd -> start: ${daemon}"
+ start-stop-daemon --start --exec /usr/sbin/"${daemon}" \
+ -b -m --pidfile /var/run/"${daemon}".pid \
+ -- -F ${options}
+ retval=$?
+ eend ${retval} "Failed to start ${daemon}"
+
+ return ${retval}
+}
+
+stop_daemon() {
+ local retval=0
+ local daemon="$1"
+
+ [ -z "${daemon}" ] && return 1
+
+ ebegin "sysklogd -> stop: ${daemon}"
+ # syslogd can be stubborn some times (--retry 15)...
+ start-stop-daemon --stop --retry 15 --quiet --pidfile /var/run/"${daemon}".pid
+ retval=$?
+ eend ${retval} "Failed to stop ${daemon}"
+
+ return ${retval}
+}
+
+start() {
+ start_daemon "syslogd" "${SYSLOGD}" || return 1
+
+ # klogd do not always start proper if started too early
+ sleep 1
+
+ if has_klogd && ! start_daemon "klogd" "${KLOGD}" ; then
+ stop_daemon "syslogd"
+ return 1
+ fi
+
+ return 0
+}
+
+stop() {
+ if has_klogd ; then
+ stop_daemon "klogd" || return 1
+ fi
+ stop_daemon "syslogd" || return 1
+ return 0
+}
+
+reload() {
+ local ret=0
+
+ ebegin "Reloading configuration"
+
+ start-stop-daemon --signal HUP --pidfile /var/run/syslogd.pid
+ ret=$((${ret} + $?))
+ if has_klogd ; then
+ start-stop-daemon --signal USR1 --pidfile /var/run/klogd.pid
+ ret=$((${ret} + $?))
+ fi
+
+ eend ${ret}
+}
diff --git a/app-admin/sysklogd/sysklogd-2.0.3.ebuild b/app-admin/sysklogd/sysklogd-2.0.3.ebuild
new file mode 100644
index 00000000000..9ebf2a75013
--- /dev/null
+++ b/app-admin/sysklogd/sysklogd-2.0.3.ebuild
@@ -0,0 +1,68 @@
+# Copyright 1999-2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit flag-o-matic systemd toolchain-funcs
+
+DESCRIPTION="Standard log daemons"
+HOMEPAGE="https://troglobit.com/sysklogd.html https://github.com/troglobit/sysklogd"
+SRC_URI="https://github.com/troglobit/sysklogd/releases/download/v${PV}/${P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86"
+IUSE="klogd logger logrotate systemd"
+RESTRICT="test"
+
+DEPEND="
+ logger? (
+ !<sys-apps/util-linux-2.34-r3
+ !>=sys-apps/util-linux-2.34-r3[logger]
+ )
+"
+RDEPEND="${DEPEND}"
+
+DOCS=( ChangeLog.md README.md )
+
+pkg_setup() {
+ append-lfs-flags
+ tc-export CC
+}
+
+src_configure() {
+ local myeconfargs=(
+ --runstatedir="${EPREFIX}"/run
+ $(use_with klogd)
+ $(use_with logger)
+ $(use_with systemd systemd $(systemd_get_systemunitdir))
+ )
+ econf "${myeconfargs[@]}"
+}
+
+src_install() {
+ default
+
+ insinto /etc
+ doins syslog.conf
+ keepdir /etc/syslog.d
+
+ newinitd "${FILESDIR}"/sysklogd.rc9 sysklogd
+ newconfd "${FILESDIR}"/sysklogd.confd2 sysklogd
+
+ if use logrotate ; then
+ insinto /etc/logrotate.d
+ newins "${FILESDIR}"/sysklogd.logrotate sysklogd
+ sed 's@ -r 10M:10@@' -i "${ED}"/etc/conf.d/sysklogd || die
+ fi
+
+ find "${ED}" -type f \( -name "*.a" -o -name "*.la" \) -delete || die
+}
+
+pkg_postinst() {
+ if ! use logrotate && [[ -n ${REPLACING_VERSIONS} ]] && ver_test ${REPLACING_VERSIONS} -lt 2.0 ; then
+ elog "Starting with version 2.0 syslogd has built in log rotation"
+ elog "functionality that does no longer require a running cron daemon."
+ elog "So we no longer install any log rotation cron files for sysklogd."
+ fi
+}
^ permalink raw reply related [flat|nested] 7+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: app-admin/sysklogd/files/, app-admin/sysklogd/
@ 2019-12-09 10:56 Lars Wendler
0 siblings, 0 replies; 7+ messages in thread
From: Lars Wendler @ 2019-12-09 10:56 UTC (permalink / raw
To: gentoo-commits
commit: a195cb3f7ab35db9a071e70b513a893c998a02f7
Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
AuthorDate: Mon Dec 9 10:55:38 2019 +0000
Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
CommitDate: Mon Dec 9 10:56:02 2019 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a195cb3f
app-admin/sysklogd: "Fixed" parallel build issue
Closes: https://bugs.gentoo.org/701894
Package-Manager: Portage-2.3.81, Repoman-2.3.20
Signed-off-by: Lars Wendler <polynomial-c <AT> gentoo.org>
.../files/sysklogd-2.0.3-no_parallel_build.patch | 40 ++++++++++++++++++++++
app-admin/sysklogd/sysklogd-2.0.3.ebuild | 11 +++++-
2 files changed, 50 insertions(+), 1 deletion(-)
diff --git a/app-admin/sysklogd/files/sysklogd-2.0.3-no_parallel_build.patch b/app-admin/sysklogd/files/sysklogd-2.0.3-no_parallel_build.patch
new file mode 100644
index 00000000000..fa0f96ce2c8
--- /dev/null
+++ b/app-admin/sysklogd/files/sysklogd-2.0.3-no_parallel_build.patch
@@ -0,0 +1,40 @@
+From 9cf1f97cef04fed81c2407f7207795d7592ccb96 Mon Sep 17 00:00:00 2001
+From: Joachim Nilsson <troglobit@gmail.com>
+Date: Fri, 6 Dec 2019 18:19:05 +0100
+Subject: [PATCH] Fix nasty parallel build problem reported by Gentoo and
+ Westermo
+
+Independently of each other both the Gentoo project and Westermo found
+an issue with massively parallel builds on monster-core-machines. At
+Westermo there are 40 core Xeon monsters that stumble when building
+sysklogd.
+
+The Gentoo bug report is here:
+
+ https://bugs.gentoo.org/701894
+
+The problem stems from strlcat.c and strlcpy.c being used for both
+the libcompat convenience library built for libsyslog and als for
+syslogd when the system does not have either of the APIs in libc,
+i.e. most Linux systems with GLIBC or musl libc.
+
+I can either rewrite the Makefile.am files to handle dependencies
+better, or we just disable parallel build like this patch. There's
+too few source files to gain anything from parallel build anyway.
+
+Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
+---
+ Makefile.am | 3 +++
+ 1 file changed, 3 insertions(+)
+
+diff --git a/Makefile.am b/Makefile.am
+index c4cc80f..7e2b854 100644
+--- a/Makefile.am
++++ b/Makefile.am
+@@ -46,3 +46,6 @@ release: distcheck
+ # Workaround for systemd unit file duing distcheck
+ DISTCHECK_CONFIGURE_FLAGS = --with-systemd=$$dc_install_base/$(systemd) --with-klogd
+
++# Disable parallel build in top Makefile, we might otherwise get a very
++# bizarre build problem with strlcpy.o in libcompat and for syslogd.
++.NOTPARALLEL:
diff --git a/app-admin/sysklogd/sysklogd-2.0.3.ebuild b/app-admin/sysklogd/sysklogd-2.0.3.ebuild
index 9ebf2a75013..be89e5f845c 100644
--- a/app-admin/sysklogd/sysklogd-2.0.3.ebuild
+++ b/app-admin/sysklogd/sysklogd-2.0.3.ebuild
@@ -3,7 +3,7 @@
EAPI=7
-inherit flag-o-matic systemd toolchain-funcs
+inherit autotools flag-o-matic systemd toolchain-funcs
DESCRIPTION="Standard log daemons"
HOMEPAGE="https://troglobit.com/sysklogd.html https://github.com/troglobit/sysklogd"
@@ -25,11 +25,20 @@ RDEPEND="${DEPEND}"
DOCS=( ChangeLog.md README.md )
+PATCHES=(
+ "${FILESDIR}"/${P}-no_parallel_build.patch #701894
+)
+
pkg_setup() {
append-lfs-flags
tc-export CC
}
+src_prepare() {
+ default
+ eautoreconf
+}
+
src_configure() {
local myeconfargs=(
--runstatedir="${EPREFIX}"/run
^ permalink raw reply related [flat|nested] 7+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: app-admin/sysklogd/files/, app-admin/sysklogd/
@ 2020-01-05 13:17 Lars Wendler
0 siblings, 0 replies; 7+ messages in thread
From: Lars Wendler @ 2020-01-05 13:17 UTC (permalink / raw
To: gentoo-commits
commit: 634ea4fe59e85f2dab3c0aa470248f514da8c5e2
Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
AuthorDate: Sun Jan 5 13:17:30 2020 +0000
Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
CommitDate: Sun Jan 5 13:17:40 2020 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=634ea4fe
app-admin/sysklogd: Removed old
Package-Manager: Portage-2.3.84, Repoman-2.3.20
Signed-off-by: Lars Wendler <polynomial-c <AT> gentoo.org>
app-admin/sysklogd/Manifest | 1 -
app-admin/sysklogd/files/sysklogd.rc8 | 94 --------------------------------
app-admin/sysklogd/sysklogd-2.0.2.ebuild | 68 -----------------------
3 files changed, 163 deletions(-)
diff --git a/app-admin/sysklogd/Manifest b/app-admin/sysklogd/Manifest
index 638df43817e..d6db6b9b5ce 100644
--- a/app-admin/sysklogd/Manifest
+++ b/app-admin/sysklogd/Manifest
@@ -1,5 +1,4 @@
DIST sysklogd-1.5.1.tar.gz 90011 BLAKE2B c40bd8d5769f7d3d4141d602c74ac41e05a140743d18c4923d9368da7ba193ccb89a6837173994f0b7a9c290cc23f64513040434d7ab8df81b5d09b73b0263ad SHA512 a72196a1a172d25be1c4791ef6256fe71fa2ba8c1383d230e646e93f8a65c3a57c535189726325da4c792fdb2e9cb119bba43c878816a8e78e78189fd32b12b7
-DIST sysklogd-2.0.2.tar.gz 465933 BLAKE2B bc0181e43ca5996cfbf8a8a35d083f332e15f5c83215ec60b406cefc7817bb742d0ce094d6c0d9fe708d345db630a73ce408992d9aade18e5b69414ca4e2b2a6 SHA512 1e5e30162b1091c37801542ae44df3e5d1da09ead02dd74f81e1e35ebb2fea99bab372f00eca621340ca306a41629ccdfb3caa0d46db0fecf46e3030da932473
DIST sysklogd-2.0.3.tar.gz 466919 BLAKE2B d9ada06dadb5a43ca7102cb24eaffa0494af2743f4714bab7d362cf480835ea9c3fc51ee171e4eb3b90380d63abe78c759bdfc5d946ec4d5bf8fce748cd916b9 SHA512 95ed0465e37b438d624b0a78d74c1194c57d117890492b5773c9ccefa7aa2c1f54ed510e54a29019fb2d7274200370031fe822a9316c154e64a2a01cb912d7a8
DIST sysklogd-2.1.tar.gz 560611 BLAKE2B 727f78a639d88fd67b5fe6106534a10f9b37717b0675772346b07691481d7d5297963d54d3e36eae7cf14431e8429eaf0da1c551970c7a916f4e6c891c7ad70c SHA512 48fa0eed0013a9ff0a8bae0fe35bb82f46e012d3754da424bce0bcd339b4e016a1cbc93b134c02342f8da6e42721cdcdb3d28c3c71c571748d77a234460cb0c7
DIST sysklogd_1.5-6.diff.gz 25677 BLAKE2B 3cb1f596490998b6002d4656a2321a500ce9941a37737c0b9d4702bbb87d7bc9ba21b68e06d175e3c1714a701adc6b3312e18a556ebc9ef395d8968762830cb5 SHA512 816961a835a43057569f62fd20d9f7b5e0bfcfcb173b68947457708504db3ce47e635956c8a9564f9bd577d8f3c49dfc725d321dfd3370b2de918363c30f838e
diff --git a/app-admin/sysklogd/files/sysklogd.rc8 b/app-admin/sysklogd/files/sysklogd.rc8
deleted file mode 100644
index 920ab963326..00000000000
--- a/app-admin/sysklogd/files/sysklogd.rc8
+++ /dev/null
@@ -1,94 +0,0 @@
-#!/sbin/openrc-run
-# Copyright 1999-2019 Gentoo Authors
-# Distributed under the terms of the GNU General Public License, v2 or later
-
-extra_started_commands="reload"
-
-depend() {
- need clock hostname
- provide logger
-}
-
-has_klogd() {
- [ -x "/usr/sbin/klogd" ]
-}
-
-start_daemon() {
- local retval=0
- local daemon="$1"
- local options="$2"
- local fg_opt=""
-
- case "${daemon}" in
- syslogd)
- fg_opt="-F"
- ;;
- klogd)
- fgopt="-n"
- ;;
- *)
- return 1
- ;;
- esac
-
- ebegin "sysklogd -> start: ${daemon}"
- start-stop-daemon --start --exec /usr/sbin/"${daemon}" \
- -b -m --pidfile /var/run/"${daemon}".pid \
- -- ${options} ${fg_opt}
- retval=$?
- eend ${retval} "Failed to start ${daemon}"
-
- return ${retval}
-}
-
-stop_daemon() {
- local retval=0
- local daemon="$1"
-
- [ -z "${daemon}" ] && return 1
-
- ebegin "sysklogd -> stop: ${daemon}"
- # syslogd can be stubborn some times (--retry 15)...
- start-stop-daemon --stop --retry 15 --quiet --pidfile /var/run/"${daemon}".pid
- retval=$?
- eend ${retval} "Failed to stop ${daemon}"
-
- return ${retval}
-}
-
-start() {
- start_daemon "syslogd" "${SYSLOGD}" || return 1
-
- # klogd do not always start proper if started too early
- sleep 1
-
- if has_klogd && ! start_daemon "klogd" "${KLOGD}" ; then
- stop_daemon "syslogd"
- return 1
- fi
-
- return 0
-}
-
-stop() {
- if has_klogd ; then
- stop_daemon "klogd" || return 1
- fi
- stop_daemon "syslogd" || return 1
- return 0
-}
-
-reload() {
- local ret=0
-
- ebegin "Reloading configuration"
-
- start-stop-daemon --signal HUP --pidfile /var/run/syslogd.pid
- ret=$((${ret} + $?))
- if has_klogd ; then
- start-stop-daemon --signal USR1 --pidfile /var/run/klogd.pid
- ret=$((${ret} + $?))
- fi
-
- eend ${ret}
-}
diff --git a/app-admin/sysklogd/sysklogd-2.0.2.ebuild b/app-admin/sysklogd/sysklogd-2.0.2.ebuild
deleted file mode 100644
index e9298b83532..00000000000
--- a/app-admin/sysklogd/sysklogd-2.0.2.ebuild
+++ /dev/null
@@ -1,68 +0,0 @@
-# Copyright 1999-2019 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=7
-
-inherit flag-o-matic systemd toolchain-funcs
-
-DESCRIPTION="Standard log daemons"
-HOMEPAGE="https://troglobit.com/sysklogd.html https://github.com/troglobit/sysklogd"
-SRC_URI="https://github.com/troglobit/sysklogd/releases/download/v${PV}/${P}.tar.gz"
-
-LICENSE="BSD"
-SLOT="0"
-KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86"
-IUSE="klogd logger logrotate systemd"
-RESTRICT="test"
-
-DEPEND="
- logger? (
- !<sys-apps/util-linux-2.34-r3
- !>=sys-apps/util-linux-2.34-r3[logger]
- )
-"
-RDEPEND="${DEPEND}"
-
-DOCS=( ChangeLog.md README.md )
-
-pkg_setup() {
- append-lfs-flags
- tc-export CC
-}
-
-src_configure() {
- local myeconfargs=(
- --runstatedir="${EPREFIX}"/run
- $(use_with klogd)
- $(use_with logger)
- $(use_with systemd systemd $(systemd_get_systemunitdir))
- )
- econf "${myeconfargs[@]}"
-}
-
-src_install() {
- default
-
- insinto /etc
- doins syslog.conf
- keepdir /etc/syslog.d
-
- newinitd "${FILESDIR}"/sysklogd.rc8 sysklogd
- newconfd "${FILESDIR}"/sysklogd.confd2 sysklogd
-
- if use logrotate ; then
- insinto /etc/logrotate.d
- newins "${FILESDIR}"/sysklogd.logrotate sysklogd
- sed 's@ -r 10M:10@@' -i "${ED}"/etc/conf.d/sysklogd || die
- fi
-
- find "${ED}" -type f \( -name "*.a" -o -name "*.la" \) -delete || die
-}
-
-pkg_postinst() {
- if ! use logrotate && [[ -n ${REPLACING_VERSIONS} ]] && ver_test ${REPLACING_VERSIONS} -lt 2.0 ; then
- elog "Starting with version 2.0 syslogd has built in log rotation"
- elog "functionality that does no longer require a running cron daemon."
- elog "So we no longer install any log rotation cron files for sysklogd."
- fi
-}
^ permalink raw reply related [flat|nested] 7+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: app-admin/sysklogd/files/, app-admin/sysklogd/
@ 2020-05-20 7:49 Lars Wendler
0 siblings, 0 replies; 7+ messages in thread
From: Lars Wendler @ 2020-05-20 7:49 UTC (permalink / raw
To: gentoo-commits
commit: 3a98533232cd1057fd05ce6b1e76a4a9378bdead
Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
AuthorDate: Wed May 20 07:49:11 2020 +0000
Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
CommitDate: Wed May 20 07:49:41 2020 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3a985332
app-admin/sysklogd: Removed old
Package-Manager: Portage-2.3.99, Repoman-2.3.22
Signed-off-by: Lars Wendler <polynomial-c <AT> gentoo.org>
app-admin/sysklogd/Manifest | 4 -
.../sysklogd-1.4.2-caen-owl-klogd-drop-root.diff | 162 ---------------------
.../sysklogd-1.4.2-caen-owl-syslogd-bind.diff | 103 -------------
.../sysklogd-1.4.2-caen-owl-syslogd-drop-root.diff | 118 ---------------
app-admin/sysklogd/files/sysklogd-1.5-build.patch | 20 ---
.../sysklogd/files/sysklogd-1.5-debian-cron.patch | 38 -----
.../sysklogd/files/sysklogd-1.5-glibc-2.24.patch | 11 --
.../files/sysklogd-1.5-syslog-func-collision.patch | 103 -------------
.../files/sysklogd-2.0.3-no_parallel_build.patch | 40 -----
app-admin/sysklogd/files/sysklogd.confd | 6 -
app-admin/sysklogd/files/sysklogd.confd2 | 6 -
app-admin/sysklogd/files/sysklogd.rc7 | 74 ----------
app-admin/sysklogd/files/sysklogd.rc9 | 82 -----------
app-admin/sysklogd/metadata.xml | 1 -
app-admin/sysklogd/sysklogd-1.5.1-r1.ebuild | 69 ---------
app-admin/sysklogd/sysklogd-2.0.3.ebuild | 77 ----------
app-admin/sysklogd/sysklogd-2.1.1.ebuild | 82 -----------
17 files changed, 996 deletions(-)
diff --git a/app-admin/sysklogd/Manifest b/app-admin/sysklogd/Manifest
index d5f116a3906..a7bca40c61a 100644
--- a/app-admin/sysklogd/Manifest
+++ b/app-admin/sysklogd/Manifest
@@ -1,5 +1 @@
-DIST sysklogd-1.5.1.tar.gz 90011 BLAKE2B c40bd8d5769f7d3d4141d602c74ac41e05a140743d18c4923d9368da7ba193ccb89a6837173994f0b7a9c290cc23f64513040434d7ab8df81b5d09b73b0263ad SHA512 a72196a1a172d25be1c4791ef6256fe71fa2ba8c1383d230e646e93f8a65c3a57c535189726325da4c792fdb2e9cb119bba43c878816a8e78e78189fd32b12b7
-DIST sysklogd-2.0.3.tar.gz 466919 BLAKE2B d9ada06dadb5a43ca7102cb24eaffa0494af2743f4714bab7d362cf480835ea9c3fc51ee171e4eb3b90380d63abe78c759bdfc5d946ec4d5bf8fce748cd916b9 SHA512 95ed0465e37b438d624b0a78d74c1194c57d117890492b5773c9ccefa7aa2c1f54ed510e54a29019fb2d7274200370031fe822a9316c154e64a2a01cb912d7a8
-DIST sysklogd-2.1.1.tar.gz 560806 BLAKE2B 576da4c75a5f75f9df438764083d5f4a26a29edce7d8d2ce8e27e35b1b3460289aa366ac5e7e3dd887f0c2bc08fdea8fcca5dedcf5e7c34aaf677ddb5745a0be SHA512 7b486a123b651e9393a4f4d0340e6356e9cf73f344c4a51f84b732134a6d61bf7ee09125d723dda3a2137c3b93c4df156b79193a8111d1ae5c339a668debada3
DIST sysklogd-2.1.2.tar.gz 561286 BLAKE2B f70c2d116740930761677b9fdf715242844a583a59cd93c2e3408f985ce856d1a9eabc3ba736d18af44e8d154cdadec88035fc357db83eb504b4c6f800ea1f1d SHA512 dcd715939b4285e08ead0a1e797d09a8845156f456d3776cfcd0bcff7fbb9a306cb84a2b22731b430e2199d59ba42ab975fed6e675cf9d8a78833575c1490268
-DIST sysklogd_1.5-6.diff.gz 25677 BLAKE2B 3cb1f596490998b6002d4656a2321a500ce9941a37737c0b9d4702bbb87d7bc9ba21b68e06d175e3c1714a701adc6b3312e18a556ebc9ef395d8968762830cb5 SHA512 816961a835a43057569f62fd20d9f7b5e0bfcfcb173b68947457708504db3ce47e635956c8a9564f9bd577d8f3c49dfc725d321dfd3370b2de918363c30f838e
diff --git a/app-admin/sysklogd/files/sysklogd-1.4.2-caen-owl-klogd-drop-root.diff b/app-admin/sysklogd/files/sysklogd-1.4.2-caen-owl-klogd-drop-root.diff
deleted file mode 100644
index 40b8817d4e2..00000000000
--- a/app-admin/sysklogd/files/sysklogd-1.4.2-caen-owl-klogd-drop-root.diff
+++ /dev/null
@@ -1,162 +0,0 @@
-http://cvsweb.openwall.com/cgi/cvsweb.cgi/~checkout~/Owl/packages/sysklogd/sysklogd-1.4.2-caen-owl-klogd-drop-root.diff?rev=1.2;content-type=text%2Fplain
-diff -upk.orig sysklogd-1.4.2.orig/klogd.8 sysklogd-1.4.2/klogd.8
---- sysklogd-1.4.2.orig/klogd.8 2005-03-11 16:12:09 +0000
-+++ sysklogd-1.4.2/klogd.8 2005-08-18 14:37:47 +0000
-@@ -18,6 +19,12 @@ klogd \- Kernel Log Daemon
- .RB [ " \-f "
- .I fname
- ]
-+.RB [ " \-u "
-+.I username
-+]
-+.RB [ " \-j "
-+.I chroot_dir
-+]
- .RB [ " \-iI " ]
- .RB [ " \-n " ]
- .RB [ " \-o " ]
-@@ -53,6 +60,20 @@ stderr.
- .BI "\-f " file
- Log messages to the specified filename rather than to the syslog facility.
- .TP
-+.BI "\-u " username
-+Tells klogd to become the specified user and drop root privileges before
-+starting logging.
-+.TP
-+.BI "\-j " chroot_dir
-+Tells klogd to
-+.BR chroot (2)
-+into this directory after initializing.
-+This option is only valid if the \-u option is also used to run klogd
-+without root privileges.
-+Note that the use of this option will prevent \-i and \-I from working
-+unless you set up the chroot directory in such a way that klogd can still
-+read the kernel module symbols.
-+.TP
- .BI "\-i \-I"
- Signal the currently executing klogd daemon. Both of these switches control
- the loading/reloading of symbol information. The \-i switch signals the
-diff -upk.orig sysklogd-1.4.2.orig/klogd.c sysklogd-1.4.2/klogd.c
---- sysklogd-1.4.2.orig/klogd.c 2005-08-18 12:29:52 +0000
-+++ sysklogd-1.4.2/klogd.c 2005-08-18 14:37:47 +0000
-@@ -261,6 +261,8 @@
- #include <stdarg.h>
- #include <paths.h>
- #include <stdlib.h>
-+#include <pwd.h>
-+#include <grp.h>
- #include "klogd.h"
- #include "ksyms.h"
- #ifndef TESTING
-@@ -315,6 +317,9 @@ static enum LOGSRC {none, proc, kernel}
- int debugging = 0;
- int symbols_twice = 0;
-
-+char *server_user = NULL;
-+char *chroot_dir = NULL;
-+int log_flags = 0;
-
- /* Function prototypes. */
- extern int ksyslog(int type, char *buf, int len);
-@@ -535,8 +540,9 @@ static enum LOGSRC GetKernelLogSrc(void)
- * First do a stat to determine whether or not the proc based
- * file system is available to get kernel messages from.
- */
-- if ( use_syscall ||
-- ((stat(_PATH_KLOG, &sb) < 0) && (errno == ENOENT)) )
-+ if (!server_user &&
-+ (use_syscall ||
-+ ((stat(_PATH_KLOG, &sb) < 0) && (errno == ENOENT))))
- {
- /* Initialize kernel logging. */
- ksyslog(1, NULL, 0);
-@@ -983,6 +989,27 @@ static void LogProcLine(void)
- }
-
-
-+static int drop_root(void)
-+{
-+ struct passwd *pw;
-+
-+ if (!(pw = getpwnam(server_user))) return -1;
-+
-+ if (!pw->pw_uid) return -1;
-+
-+ if (chroot_dir) {
-+ if (chdir(chroot_dir)) return -1;
-+ if (chroot(".")) return -1;
-+ }
-+
-+ if (setgroups(0, NULL)) return -1;
-+ if (setgid(pw->pw_gid)) return -1;
-+ if (setuid(pw->pw_uid)) return -1;
-+
-+ return 0;
-+}
-+
-+
- int main(argc, argv)
-
- int argc;
-@@ -1000,7 +1027,7 @@ int main(argc, argv)
- chdir ("/");
- #endif
- /* Parse the command-line. */
-- while ((ch = getopt(argc, argv, "c:df:iIk:nopsvx2")) != EOF)
-+ while ((ch = getopt(argc, argv, "c:df:u:j:iIk:nopsvx2")) != EOF)
- switch((char)ch)
- {
- case '2': /* Print lines with symbols twice. */
-@@ -1022,6 +1049,10 @@ int main(argc, argv)
- case 'I':
- SignalDaemon(SIGUSR2);
- return(0);
-+ case 'j': /* chroot 'j'ail */
-+ chroot_dir = optarg;
-+ log_flags |= LOG_NDELAY;
-+ break;
- case 'k': /* Kernel symbol file. */
- symfile = optarg;
- break;
-@@ -1037,6 +1068,9 @@ int main(argc, argv)
- case 's': /* Use syscall interface. */
- use_syscall = 1;
- break;
-+ case 'u': /* Run as this user */
-+ server_user = optarg;
-+ break;
- case 'v':
- printf("klogd %s.%s\n", VERSION, PATCHLEVEL);
- exit (1);
-@@ -1045,6 +1079,10 @@ int main(argc, argv)
- break;
- }
-
-+ if (chroot_dir && !server_user) {
-+ fputs("'-j' is only valid with '-u'\n", stderr);
-+ exit(1);
-+ }
-
- /* Set console logging level. */
- if ( log_level != (char *) 0 )
-@@ -1158,7 +1196,7 @@ int main(argc, argv)
- }
- }
- else
-- openlog("kernel", 0, LOG_KERN);
-+ openlog("kernel", log_flags, LOG_KERN);
-
-
- /* Handle one-shot logging. */
-@@ -1191,6 +1229,11 @@ int main(argc, argv)
- }
- }
-
-+ if (server_user && drop_root()) {
-+ syslog(LOG_ALERT, "klogd: failed to drop root");
-+ Terminate();
-+ }
-+
- /* The main loop. */
- while (1)
- {
diff --git a/app-admin/sysklogd/files/sysklogd-1.4.2-caen-owl-syslogd-bind.diff b/app-admin/sysklogd/files/sysklogd-1.4.2-caen-owl-syslogd-bind.diff
deleted file mode 100644
index ad311a512c0..00000000000
--- a/app-admin/sysklogd/files/sysklogd-1.4.2-caen-owl-syslogd-bind.diff
+++ /dev/null
@@ -1,103 +0,0 @@
-http://cvsweb.openwall.com/cgi/cvsweb.cgi/~checkout~/Owl/packages/sysklogd/sysklogd-1.4.2-caen-owl-syslogd-bind.diff?rev=1.1;content-type=text%2Fplain
-diff -upk.orig sysklogd-1.4.2.orig/sysklogd.8 sysklogd-1.4.2/sysklogd.8
---- sysklogd-1.4.2.orig/sysklogd.8 2004-07-09 17:33:32 +0000
-+++ sysklogd-1.4.2/sysklogd.8 2005-08-18 14:40:25 +0000
-@@ -15,6 +15,9 @@ sysklogd \- Linux system logging utiliti
- .I config file
- ]
- .RB [ " \-h " ]
-+.RB [ " \-i "
-+.I IP address
-+]
- .RB [ " \-l "
- .I hostlist
- ]
-@@ -104,6 +107,13 @@ Specifying this switch on the command li
- This can cause syslog loops that fill up hard disks quite fast and
- thus needs to be used with caution.
- .TP
-+.BI "\-i " "IP address"
-+If
-+.B syslogd
-+is configured to accept log input from a UDP port, specify an IP address
-+to bind to, rather than the default of INADDR_ANY. The address must be in
-+dotted quad notation, DNS host names are not allowed.
-+.TP
- .BI "\-l " "hostlist"
- Specify a hostname that should be logged only with its simple hostname
- and not the fqdn. Multiple hosts may be specified using the colon
-diff -upk.orig sysklogd-1.4.2.orig/syslogd.c sysklogd-1.4.2/syslogd.c
---- sysklogd-1.4.2.orig/syslogd.c 2005-08-18 14:33:22 +0000
-+++ sysklogd-1.4.2/syslogd.c 2005-08-18 14:40:25 +0000
-@@ -774,6 +774,8 @@ char **LocalHosts = NULL; /* these hosts
- int NoHops = 1; /* Can we bounce syslog messages through an
- intermediate host. */
-
-+char *bind_addr = NULL; /* bind UDP port to this interface only */
-+
- extern int errno;
-
- /* Function prototypes. */
-@@ -878,7 +880,7 @@ int main(argc, argv)
- funix[i] = -1;
- }
-
-- while ((ch = getopt(argc, argv, "a:dhf:l:m:np:rs:v")) != EOF)
-+ while ((ch = getopt(argc, argv, "a:dhf:i:l:m:np:rs:v")) != EOF)
- switch((char)ch) {
- case 'a':
- if (nfunix < MAXFUNIX)
-@@ -895,9 +897,17 @@ int main(argc, argv)
- case 'h':
- NoHops = 0;
- break;
-+ case 'i':
-+ if (bind_addr) {
-+ fprintf(stderr, "Only one -i argument allowed, "
-+ "the first one is taken.\n");
-+ break;
-+ }
-+ bind_addr = optarg;
-+ break;
- case 'l':
- if (LocalHosts) {
-- fprintf (stderr, "Only one -l argument allowed," \
-+ fprintf(stderr, "Only one -l argument allowed, "
- "the first one is taken.\n");
- break;
- }
-@@ -1244,7 +1254,7 @@ int main(argc, argv)
- int usage()
- {
- fprintf(stderr, "usage: syslogd [-drvh] [-l hostlist] [-m markinterval] [-n] [-p path]\n" \
-- " [-s domainlist] [-f conffile]\n");
-+ " [-s domainlist] [-f conffile] [-i IP address]\n");
- exit(1);
- }
-
-@@ -1286,15 +1296,22 @@ static int create_inet_socket()
- int fd, on = 1;
- struct sockaddr_in sin;
-
-+ memset(&sin, 0, sizeof(sin));
-+ sin.sin_family = AF_INET;
-+ sin.sin_port = LogPort;
-+ if (bind_addr) {
-+ if (!inet_aton(bind_addr, &sin.sin_addr)) {
-+ logerror("syslog: not a valid IP address to bind to.");
-+ return -1;
-+ }
-+ }
-+
- fd = socket(AF_INET, SOCK_DGRAM, 0);
- if (fd < 0) {
- logerror("syslog: Unknown protocol, suspending inet service.");
- return fd;
- }
-
-- memset(&sin, 0, sizeof(sin));
-- sin.sin_family = AF_INET;
-- sin.sin_port = LogPort;
- if (setsockopt(fd, SOL_SOCKET, SO_REUSEADDR, \
- (char *) &on, sizeof(on)) < 0 ) {
- logerror("setsockopt(REUSEADDR), suspending inet");
diff --git a/app-admin/sysklogd/files/sysklogd-1.4.2-caen-owl-syslogd-drop-root.diff b/app-admin/sysklogd/files/sysklogd-1.4.2-caen-owl-syslogd-drop-root.diff
deleted file mode 100644
index 8c3f571f3ca..00000000000
--- a/app-admin/sysklogd/files/sysklogd-1.4.2-caen-owl-syslogd-drop-root.diff
+++ /dev/null
@@ -1,118 +0,0 @@
-http://cvsweb.openwall.com/cgi/cvsweb.cgi/~checkout~/Owl/packages/sysklogd/sysklogd-1.4.2-caen-owl-syslogd-drop-root.diff?rev=1.1;content-type=text%2Fplain
-diff -upk.orig sysklogd-1.4.2.orig/sysklogd.8 sysklogd-1.4.2/sysklogd.8
---- sysklogd-1.4.2.orig/sysklogd.8 2005-08-18 14:40:25 +0000
-+++ sysklogd-1.4.2/sysklogd.8 2005-08-18 14:41:26 +0000
-@@ -32,6 +32,9 @@ sysklogd \- Linux system logging utiliti
- .RB [ " \-s "
- .I domainlist
- ]
-+.RB [ " \-u"
-+.IB username
-+]
- .RB [ " \-v " ]
- .LP
- .SH DESCRIPTION
-@@ -161,6 +164,19 @@ is specified and the host logging resolv
- no domain would be cut, you will have to specify two domains like:
- .BR "\-s north.de:infodrom.north.de" .
- .TP
-+.BI "\-u " "username"
-+This causes the
-+.B syslogd
-+daemon to become the named user before starting up logging.
-+
-+Note that when this option is in use,
-+.B syslogd
-+will open all log files as root when the daemon is first started;
-+however, after a
-+.B SIGHUP
-+the files will be reopened as the non-privileged user. You should
-+take this into account when deciding the ownership of the log files.
-+.TP
- .B "\-v"
- Print version and exit.
- .LP
-diff -upk.orig sysklogd-1.4.2.orig/syslogd.c sysklogd-1.4.2/syslogd.c
---- sysklogd-1.4.2.orig/syslogd.c 2005-08-18 14:40:25 +0000
-+++ sysklogd-1.4.2/syslogd.c 2005-08-18 14:41:26 +0000
-@@ -524,6 +524,10 @@ static char sccsid[] = "@(#)syslogd.c 5.
- #include <arpa/nameser.h>
- #include <arpa/inet.h>
- #include <resolv.h>
-+
-+#include <pwd.h>
-+#include <grp.h>
-+
- #ifndef TESTING
- #include "pidfile.h"
- #endif
-@@ -775,6 +779,7 @@ int NoHops = 1; /* Can we bounce syslog
- intermediate host. */
-
- char *bind_addr = NULL; /* bind UDP port to this interface only */
-+char *server_user = NULL; /* user name to run server as */
-
- extern int errno;
-
-@@ -827,6 +832,21 @@ static int set_nonblock_flag(int desc)
- return fcntl(desc, F_SETFL, flags | O_NONBLOCK);
- }
-
-+static int drop_root(void)
-+{
-+ struct passwd *pw;
-+
-+ if (!(pw = getpwnam(server_user))) return -1;
-+
-+ if (!pw->pw_uid) return -1;
-+
-+ if (initgroups(server_user, pw->pw_gid)) return -1;
-+ if (setgid(pw->pw_gid)) return -1;
-+ if (setuid(pw->pw_uid)) return -1;
-+
-+ return 0;
-+}
-+
- int main(argc, argv)
- int argc;
- char **argv;
-@@ -880,7 +900,7 @@ int main(argc, argv)
- funix[i] = -1;
- }
-
-- while ((ch = getopt(argc, argv, "a:dhf:i:l:m:np:rs:v")) != EOF)
-+ while ((ch = getopt(argc, argv, "a:dhf:i:l:m:np:rs:u:v")) != EOF)
- switch((char)ch) {
- case 'a':
- if (nfunix < MAXFUNIX)
-@@ -933,6 +953,9 @@ int main(argc, argv)
- }
- StripDomains = crunch_list(optarg);
- break;
-+ case 'u':
-+ server_user = optarg;
-+ break;
- case 'v':
- printf("syslogd %s.%s\n", VERSION, PATCHLEVEL);
- exit (0);
-@@ -1100,6 +1123,11 @@ int main(argc, argv)
- kill (ppid, SIGTERM);
- #endif
-
-+ if (server_user && drop_root()) {
-+ dprintf("syslogd: failed to drop root\n");
-+ exit(1);
-+ }
-+
- /* Main loop begins here. */
- for (;;) {
- int nfds;
-@@ -1254,7 +1282,7 @@ int main(argc, argv)
- int usage()
- {
- fprintf(stderr, "usage: syslogd [-drvh] [-l hostlist] [-m markinterval] [-n] [-p path]\n" \
-- " [-s domainlist] [-f conffile] [-i IP address]\n");
-+ " [-s domainlist] [-f conffile] [-i IP address] [-u username]\n");
- exit(1);
- }
-
diff --git a/app-admin/sysklogd/files/sysklogd-1.5-build.patch b/app-admin/sysklogd/files/sysklogd-1.5-build.patch
deleted file mode 100644
index 12f4822cd26..00000000000
--- a/app-admin/sysklogd/files/sysklogd-1.5-build.patch
+++ /dev/null
@@ -1,20 +0,0 @@
-respect env CC/CFLAGS/CPPFLAGS/LDFLAGS
-
---- Makefile
-+++ Makefile
-@@ -17,14 +17,12 @@
- # along with this program; if not, write to the Free Software
- # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
-
--CC= gcc
- #SKFLAGS= -g -DSYSV -Wall
- #LDFLAGS= -g
--SKFLAGS= $(RPM_OPT_FLAGS) -O3 -DSYSV -fomit-frame-pointer -Wall -fno-strength-reduce
-+SKFLAGS= $(CFLAGS) $(CPPFLAGS) -DSYSV -Wall -fno-strength-reduce
- # -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE
- # -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE
- # $(shell getconf LFS_SKFLAGS)
--LDFLAGS= -s
-
- # Look where your install program is.
- INSTALL = /usr/bin/install
diff --git a/app-admin/sysklogd/files/sysklogd-1.5-debian-cron.patch b/app-admin/sysklogd/files/sysklogd-1.5-debian-cron.patch
deleted file mode 100644
index 7f6c2a79b0b..00000000000
--- a/app-admin/sysklogd/files/sysklogd-1.5-debian-cron.patch
+++ /dev/null
@@ -1,38 +0,0 @@
---- debian/cron.daily
-+++ debian/cron.daily
-@@ -20,10 +20,6 @@
- # Written by Martin Schulze <joey@debian.org>.
- # $Id: cron.daily,v 1.14 2007-05-28 16:33:34 joey Exp $
-
--test -x /usr/sbin/syslogd-listfiles || exit 0
--test -x /sbin/syslogd || exit 0
--test -f /usr/share/sysklogd/dummy || exit 0
--
- set -e
-
- cd /var/log
-@@ -41,4 +37,4 @@
-
- # Restart syslogd
- #
--/etc/init.d/sysklogd reload-or-restart > /dev/null
-+/etc/init.d/sysklogd --quiet reload
---- debian/cron.weekly
-+++ debian/cron.weekly
-@@ -19,10 +19,6 @@
- # Written by Ian A. Murdock <imurdock@debian.org>.
- # $Id: cron.weekly,v 1.11 2007-05-28 16:33:34 joey Exp $
-
--test -x /usr/sbin/syslogd-listfiles || exit 0
--test -x /sbin/syslogd || exit 0
--test -f /usr/share/sysklogd/dummy || exit 0
--
- set -e
-
- cd /var/log
-@@ -40,4 +36,4 @@
-
- # Restart syslogd
- #
--/etc/init.d/sysklogd reload-or-restart > /dev/null
-+/etc/init.d/sysklogd --quiet reload
diff --git a/app-admin/sysklogd/files/sysklogd-1.5-glibc-2.24.patch b/app-admin/sysklogd/files/sysklogd-1.5-glibc-2.24.patch
deleted file mode 100644
index fcddb757459..00000000000
--- a/app-admin/sysklogd/files/sysklogd-1.5-glibc-2.24.patch
+++ /dev/null
@@ -1,11 +0,0 @@
---- sysklogd-1.5.1/syslogd.c
-+++ sysklogd-1.5.1/syslogd.c
-@@ -2094,7 +2094,7 @@
- (void) signal(SIGCHLD, reapchild); /* reset signal handler -ASP */
- wait ((int *)0);
- #else
-- union wait status;
-+ int status;
-
- while (wait3(&status, WNOHANG, (struct rusage *) NULL) > 0)
- ;
diff --git a/app-admin/sysklogd/files/sysklogd-1.5-syslog-func-collision.patch b/app-admin/sysklogd/files/sysklogd-1.5-syslog-func-collision.patch
deleted file mode 100644
index 76912a26556..00000000000
--- a/app-admin/sysklogd/files/sysklogd-1.5-syslog-func-collision.patch
+++ /dev/null
@@ -1,103 +0,0 @@
-http://bugs.gentoo.org/342601
-
-rename local "syslog" and "vsyslog" functions to avoid conflicts with glibc's
-
-patch by Dmitriy Matrosov
-
---- sysklogd-1.5/klogd.c
-+++ sysklogd-1.5/klogd.c
-@@ -258,7 +262,6 @@
- #if !defined(__GLIBC__)
- #include <linux/time.h>
- #endif /* __GLIBC__ */
--#include <stdarg.h>
- #include <paths.h>
- #include <stdlib.h>
- #include <pwd.h>
-@@ -637,7 +640,7 @@
- }
- argl += 3;
- }
-- syslog(priority, fmt, argl);
-+ syslog_own(priority, fmt, argl);
- va_end(ap);
- #ifdef TESTING
- putchar('\n');
-@@ -646,7 +649,7 @@
- }
-
- va_start(ap, fmt);
-- vsyslog(priority, fmt, ap);
-+ vsyslog_own(priority, fmt, ap);
- va_end(ap);
- #ifdef TESTING
- printf ("\n");
-@@ -1205,7 +1208,7 @@
- }
-
- if (server_user && drop_root()) {
-- syslog(LOG_ALERT, "klogd: failed to drop root");
-+ syslog_own(LOG_ALERT, "klogd: failed to drop root");
- Terminate();
- }
-
---- sysklogd-1.5/klogd.h
-+++ sysklogd-1.5/klogd.h
-@@ -24,6 +24,7 @@
- #include <stdio.h>
- #include <syslog.h>
- #include <string.h>
-+#include <stdarg.h>
-
-
- /* Function prototypes. */
-@@ -38,3 +43,5 @@
- extern char * ExpandKadds(char *, char *);
- extern void SetParanoiaLevel(int);
- extern void Syslog(int priority, char *fmt, ...);
-+extern void syslog_own(int, const char *, ...);
-+extern void vsyslog_own(int, const char *, va_list);
---- sysklogd-1.5/ksym_mod.c
-+++ sysklogd-1.5/ksym_mod.c
-@@ -95,7 +98,6 @@
- #if !defined(__GLIBC__)
- #include <linux/time.h>
- #endif /* __GLIBC__ */
--#include <stdarg.h>
- #include <paths.h>
- #include <linux/version.h>
-
---- sysklogd-1.5/syslog.c
-+++ sysklogd-1.5/syslog.c
-@@ -75,6 +79,10 @@
-
- #define _PATH_LOGNAME "/dev/log"
-
-+
-+void syslog_own(int, const char *, ...);
-+void vsyslog_own(int, const char *, va_list);
-+
- static int LogFile = -1; /* fd for log */
- static int connected; /* have done connect */
- static int LogStat = 0; /* status bits, set by openlog() */
-@@ -82,17 +90,17 @@
- static int LogFacility = LOG_USER; /* default facility code */
-
- void
--syslog(int pri, const char *fmt, ...)
-+syslog_own(int pri, const char *fmt, ...)
- {
- va_list ap;
-
- va_start(ap, fmt);
-- vsyslog(pri, fmt, ap);
-+ vsyslog_own(pri, fmt, ap);
- va_end(ap);
- }
-
- void
--vsyslog(pri, fmt, ap)
-+vsyslog_own(pri, fmt, ap)
- int pri;
- const char *fmt;
- va_list ap;
diff --git a/app-admin/sysklogd/files/sysklogd-2.0.3-no_parallel_build.patch b/app-admin/sysklogd/files/sysklogd-2.0.3-no_parallel_build.patch
deleted file mode 100644
index fa0f96ce2c8..00000000000
--- a/app-admin/sysklogd/files/sysklogd-2.0.3-no_parallel_build.patch
+++ /dev/null
@@ -1,40 +0,0 @@
-From 9cf1f97cef04fed81c2407f7207795d7592ccb96 Mon Sep 17 00:00:00 2001
-From: Joachim Nilsson <troglobit@gmail.com>
-Date: Fri, 6 Dec 2019 18:19:05 +0100
-Subject: [PATCH] Fix nasty parallel build problem reported by Gentoo and
- Westermo
-
-Independently of each other both the Gentoo project and Westermo found
-an issue with massively parallel builds on monster-core-machines. At
-Westermo there are 40 core Xeon monsters that stumble when building
-sysklogd.
-
-The Gentoo bug report is here:
-
- https://bugs.gentoo.org/701894
-
-The problem stems from strlcat.c and strlcpy.c being used for both
-the libcompat convenience library built for libsyslog and als for
-syslogd when the system does not have either of the APIs in libc,
-i.e. most Linux systems with GLIBC or musl libc.
-
-I can either rewrite the Makefile.am files to handle dependencies
-better, or we just disable parallel build like this patch. There's
-too few source files to gain anything from parallel build anyway.
-
-Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
----
- Makefile.am | 3 +++
- 1 file changed, 3 insertions(+)
-
-diff --git a/Makefile.am b/Makefile.am
-index c4cc80f..7e2b854 100644
---- a/Makefile.am
-+++ b/Makefile.am
-@@ -46,3 +46,6 @@ release: distcheck
- # Workaround for systemd unit file duing distcheck
- DISTCHECK_CONFIGURE_FLAGS = --with-systemd=$$dc_install_base/$(systemd) --with-klogd
-
-+# Disable parallel build in top Makefile, we might otherwise get a very
-+# bizarre build problem with strlcpy.o in libcompat and for syslogd.
-+.NOTPARALLEL:
diff --git a/app-admin/sysklogd/files/sysklogd.confd b/app-admin/sysklogd/files/sysklogd.confd
deleted file mode 100644
index c9735739117..00000000000
--- a/app-admin/sysklogd/files/sysklogd.confd
+++ /dev/null
@@ -1,6 +0,0 @@
-# Config file for /etc/init.d/sysklogd
-
-SYSLOGD="-m 0"
-# send warnings and above to the console
-KLOGD="-c 3 -2"
-
diff --git a/app-admin/sysklogd/files/sysklogd.confd2 b/app-admin/sysklogd/files/sysklogd.confd2
deleted file mode 100644
index 077f36bf6b6..00000000000
--- a/app-admin/sysklogd/files/sysklogd.confd2
+++ /dev/null
@@ -1,6 +0,0 @@
-# Config file for /etc/init.d/sysklogd
-
-SYSLOGD="-m 0 -s -s -r 10M:10"
-# send warnings and above to the console
-KLOGD="-c 3 -2"
-
diff --git a/app-admin/sysklogd/files/sysklogd.rc7 b/app-admin/sysklogd/files/sysklogd.rc7
deleted file mode 100644
index 787fe3d752d..00000000000
--- a/app-admin/sysklogd/files/sysklogd.rc7
+++ /dev/null
@@ -1,74 +0,0 @@
-#!/sbin/openrc-run
-# Copyright 1999-2011 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License, v2 or later
-
-extra_started_commands="reload"
-
-depend() {
- need clock hostname
- provide logger
-}
-
-start_daemon() {
- local retval=0
- local daemon="$1"
- local options="$2"
-
- [ -z "${daemon}" ] && return 1
-
- ebegin "sysklogd -> start: ${daemon}"
- start-stop-daemon --start --exec /usr/sbin/"${daemon}" \
- --pidfile /var/run/"${daemon}".pid -- ${options}
- retval=$?
- eend ${retval} "Failed to start ${daemon}"
-
- return ${retval}
-}
-
-stop_daemon() {
- local retval=0
- local daemon="$1"
-
- [ -z "${daemon}" ] && return 1
-
- ebegin "sysklogd -> stop: ${daemon}"
- # syslogd can be stubborn some times (--retry 15)...
- start-stop-daemon --stop --retry 15 --quiet --pidfile /var/run/"${daemon}".pid
- retval=$?
- eend ${retval} "Failed to stop ${daemon}"
-
- return ${retval}
-}
-
-start() {
- start_daemon "syslogd" "${SYSLOGD}" || return 1
-
- # klogd do not always start proper if started too early
- sleep 1
-
- if ! start_daemon "klogd" "${KLOGD}" ; then
- stop_daemon "syslogd"
- return 1
- fi
-
- return 0
-}
-
-stop() {
- stop_daemon "klogd" || return 1
- stop_daemon "syslogd" || return 1
- return 0
-}
-
-reload() {
- local ret=0
-
- ebegin "Reloading configuration"
-
- start-stop-daemon --signal HUP --pidfile /var/run/syslogd.pid
- ret=$((${ret} + $?))
- start-stop-daemon --signal USR1 --pidfile /var/run/klogd.pid
- ret=$((${ret} + $?))
-
- eend ${ret}
-}
diff --git a/app-admin/sysklogd/files/sysklogd.rc9 b/app-admin/sysklogd/files/sysklogd.rc9
deleted file mode 100644
index b0479f1c175..00000000000
--- a/app-admin/sysklogd/files/sysklogd.rc9
+++ /dev/null
@@ -1,82 +0,0 @@
-#!/sbin/openrc-run
-# Copyright 1999-2019 Gentoo Authors
-# Distributed under the terms of the GNU General Public License, v2 or later
-
-extra_started_commands="reload"
-
-depend() {
- need clock hostname
- provide logger
-}
-
-has_klogd() {
- [ -x "/usr/sbin/klogd" ]
-}
-
-start_daemon() {
- local retval=0
- local daemon="$1"
- local options="$2"
- local fg_opt=""
-
- ebegin "sysklogd -> start: ${daemon}"
- start-stop-daemon --start --exec /usr/sbin/"${daemon}" \
- -b -m --pidfile /var/run/"${daemon}".pid \
- -- -F ${options}
- retval=$?
- eend ${retval} "Failed to start ${daemon}"
-
- return ${retval}
-}
-
-stop_daemon() {
- local retval=0
- local daemon="$1"
-
- [ -z "${daemon}" ] && return 1
-
- ebegin "sysklogd -> stop: ${daemon}"
- # syslogd can be stubborn some times (--retry 15)...
- start-stop-daemon --stop --retry 15 --quiet --pidfile /var/run/"${daemon}".pid
- retval=$?
- eend ${retval} "Failed to stop ${daemon}"
-
- return ${retval}
-}
-
-start() {
- start_daemon "syslogd" "${SYSLOGD}" || return 1
-
- # klogd do not always start proper if started too early
- sleep 1
-
- if has_klogd && ! start_daemon "klogd" "${KLOGD}" ; then
- stop_daemon "syslogd"
- return 1
- fi
-
- return 0
-}
-
-stop() {
- if has_klogd ; then
- stop_daemon "klogd" || return 1
- fi
- stop_daemon "syslogd" || return 1
- return 0
-}
-
-reload() {
- local ret=0
-
- ebegin "Reloading configuration"
-
- start-stop-daemon --signal HUP --pidfile /var/run/syslogd.pid
- ret=$((${ret} + $?))
- if has_klogd ; then
- start-stop-daemon --signal USR1 --pidfile /var/run/klogd.pid
- ret=$((${ret} + $?))
- fi
-
- eend ${ret}
-}
diff --git a/app-admin/sysklogd/metadata.xml b/app-admin/sysklogd/metadata.xml
index be89c65a5ee..e86f25cd136 100644
--- a/app-admin/sysklogd/metadata.xml
+++ b/app-admin/sysklogd/metadata.xml
@@ -6,7 +6,6 @@
<name>Gentoo Base System</name>
</maintainer>
<use>
- <flag name="klogd">Build and install (deprecated) kernel logging daemon</flag>
<flag name="logger">Build the logger program</flag>
<flag name="logrotate">use app-admin/logrotate for rotating logs rather than custom cron scripts</flag>
</use>
diff --git a/app-admin/sysklogd/sysklogd-1.5.1-r1.ebuild b/app-admin/sysklogd/sysklogd-1.5.1-r1.ebuild
deleted file mode 100644
index ac6a9f5aa0c..00000000000
--- a/app-admin/sysklogd/sysklogd-1.5.1-r1.ebuild
+++ /dev/null
@@ -1,69 +0,0 @@
-# Copyright 1999-2020 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=5
-
-inherit eutils flag-o-matic toolchain-funcs
-
-DEB_PV="1.5-6"
-DESCRIPTION="Standard log daemons"
-HOMEPAGE="http://www.infodrom.org/projects/sysklogd/"
-SRC_URI="http://www.infodrom.org/projects/sysklogd/download/${P}.tar.gz
- mirror://debian/pool/main/s/sysklogd/${PN}_${DEB_PV}.diff.gz"
-
-LICENSE="BSD"
-SLOT="0"
-KEYWORDS="~alpha amd64 arm ~arm64 hppa ~ia64 ~mips ppc ppc64 ~s390 sparc x86"
-IUSE="logrotate"
-RESTRICT="test"
-
-DEPEND=""
-RDEPEND="dev-lang/perl
- sys-apps/debianutils"
-
-DOCS=( ANNOUNCE CHANGES NEWS README.1st README.linux )
-
-PATCHES=(
- "${WORKDIR}"/${PN}_${DEB_PV}.diff
-
- "${FILESDIR}"/${PN}-1.5-debian-cron.patch
- "${FILESDIR}"/${PN}-1.5-build.patch
-
- # CAEN/OWL security patches
- "${FILESDIR}"/${PN}-1.4.2-caen-owl-syslogd-bind.diff
- "${FILESDIR}"/${PN}-1.4.2-caen-owl-syslogd-drop-root.diff
- "${FILESDIR}"/${PN}-1.4.2-caen-owl-klogd-drop-root.diff
-
- "${FILESDIR}"/${PN}-1.5-syslog-func-collision.patch #342601
- "${FILESDIR}"/${PN}-1.5-glibc-2.24.patch #604232
-)
-
-src_prepare() {
- epatch "${PATCHES[@]}"
-}
-
-src_configure() {
- append-lfs-flags
- tc-export CC
-}
-
-src_install() {
- dosbin syslogd klogd debian/syslog-facility debian/syslogd-listfiles
- doman *.[1-9] debian/syslogd-listfiles.8
- insinto /etc
- doins debian/syslog.conf
- if use logrotate ; then
- insinto /etc/logrotate.d
- newins "${FILESDIR}"/sysklogd.logrotate sysklogd
- else
- exeinto /etc/cron.daily
- newexe debian/cron.daily syslog
- exeinto /etc/cron.weekly
- newexe debian/cron.weekly syslog
- fi
-
- einstalldocs
-
- newinitd "${FILESDIR}"/sysklogd.rc7 sysklogd
- newconfd "${FILESDIR}"/sysklogd.confd sysklogd
-}
diff --git a/app-admin/sysklogd/sysklogd-2.0.3.ebuild b/app-admin/sysklogd/sysklogd-2.0.3.ebuild
deleted file mode 100644
index 0830400639b..00000000000
--- a/app-admin/sysklogd/sysklogd-2.0.3.ebuild
+++ /dev/null
@@ -1,77 +0,0 @@
-# Copyright 1999-2020 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=7
-
-inherit autotools flag-o-matic systemd toolchain-funcs
-
-DESCRIPTION="Standard log daemons"
-HOMEPAGE="https://troglobit.com/sysklogd.html https://github.com/troglobit/sysklogd"
-SRC_URI="https://github.com/troglobit/sysklogd/releases/download/v${PV}/${P}.tar.gz"
-
-LICENSE="BSD"
-SLOT="0"
-KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86"
-IUSE="klogd logger logrotate systemd"
-RESTRICT="test"
-
-DEPEND="
- logger? (
- !<sys-apps/util-linux-2.34-r3
- !>=sys-apps/util-linux-2.34-r3[logger]
- )
-"
-RDEPEND="${DEPEND}"
-
-DOCS=( ChangeLog.md README.md )
-
-PATCHES=(
- "${FILESDIR}"/${P}-no_parallel_build.patch #701894
-)
-
-pkg_setup() {
- append-lfs-flags
- tc-export CC
-}
-
-src_prepare() {
- default
- eautoreconf
-}
-
-src_configure() {
- local myeconfargs=(
- --runstatedir="${EPREFIX}"/run
- $(use_with klogd)
- $(use_with logger)
- $(use_with systemd systemd $(systemd_get_systemunitdir))
- )
- econf "${myeconfargs[@]}"
-}
-
-src_install() {
- default
-
- insinto /etc
- doins syslog.conf
- keepdir /etc/syslog.d
-
- newinitd "${FILESDIR}"/sysklogd.rc9 sysklogd
- newconfd "${FILESDIR}"/sysklogd.confd2 sysklogd
-
- if use logrotate ; then
- insinto /etc/logrotate.d
- newins "${FILESDIR}"/sysklogd.logrotate sysklogd
- sed 's@ -r 10M:10@@' -i "${ED}"/etc/conf.d/sysklogd || die
- fi
-
- find "${ED}" -type f \( -name "*.a" -o -name "*.la" \) -delete || die
-}
-
-pkg_postinst() {
- if ! use logrotate && [[ -n ${REPLACING_VERSIONS} ]] && ver_test ${REPLACING_VERSIONS} -lt 2.0 ; then
- elog "Starting with version 2.0 syslogd has built in log rotation"
- elog "functionality that does no longer require a running cron daemon."
- elog "So we no longer install any log rotation cron files for sysklogd."
- fi
-}
diff --git a/app-admin/sysklogd/sysklogd-2.1.1.ebuild b/app-admin/sysklogd/sysklogd-2.1.1.ebuild
deleted file mode 100644
index ad19247bad9..00000000000
--- a/app-admin/sysklogd/sysklogd-2.1.1.ebuild
+++ /dev/null
@@ -1,82 +0,0 @@
-# Copyright 1999-2020 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=7
-
-inherit flag-o-matic systemd toolchain-funcs
-
-DESCRIPTION="Standard log daemons"
-HOMEPAGE="https://troglobit.com/sysklogd.html https://github.com/troglobit/sysklogd"
-
-if [[ "${PV}" == *9999 ]] ; then
- inherit autotools git-r3
- EGIT_REPO_URI="https://github.com/troglobit/sysklogd.git"
-else
- SRC_URI="https://github.com/troglobit/sysklogd/releases/download/v${PV}/${P}.tar.gz"
- KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86"
-fi
-
-LICENSE="BSD"
-SLOT="0"
-IUSE="logger logrotate systemd"
-RESTRICT="test"
-
-DEPEND="
- logger? (
- !<sys-apps/util-linux-2.34-r3
- !>=sys-apps/util-linux-2.34-r3[logger]
- )
-"
-RDEPEND="${DEPEND}"
-
-DOCS=( ChangeLog.md README.md )
-
-pkg_setup() {
- append-lfs-flags
- tc-export CC
-}
-
-src_prepare() {
- default
- [[ "${PV}" == *9999 ]] && eautoreconf
-}
-
-src_configure() {
- local myeconfargs=(
- --runstatedir="${EPREFIX}"/run
- $(use_with logger)
- $(use_with systemd systemd $(systemd_get_systemunitdir))
- )
- econf "${myeconfargs[@]}"
-}
-
-src_install() {
- default
-
- insinto /etc
- doins syslog.conf
- keepdir /etc/syslog.d
-
- newinitd "${FILESDIR}"/sysklogd.rc10 sysklogd
- newconfd "${FILESDIR}"/sysklogd.confd3 sysklogd
-
- if use logrotate ; then
- insinto /etc/logrotate.d
- newins "${FILESDIR}"/sysklogd.logrotate sysklogd
- sed 's@ -r 10M:10@@' -i "${ED}"/etc/conf.d/sysklogd || die
- fi
-
- find "${ED}" -type f \( -name "*.a" -o -name "*.la" \) -delete || die
-}
-
-pkg_postinst() {
- if ! use logrotate && [[ -n ${REPLACING_VERSIONS} ]] && ver_test ${REPLACING_VERSIONS} -lt 2.0 ; then
- elog "Starting with version 2.0 syslogd has built in log rotation"
- elog "functionality that does no longer require a running cron daemon."
- elog "So we no longer install any log rotation cron files for sysklogd."
- fi
- if [[ -n ${REPLACING_VERSIONS} ]] && ver_test ${REPLACING_VERSIONS} -lt 2.1 ; then
- elog "Starting with version 2.1 sysklogd no longer provides klogd."
- elog "syslogd now also logs kernel messages."
- fi
-}
^ permalink raw reply related [flat|nested] 7+ messages in thread
end of thread, other threads:[~2020-05-20 7:49 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-12-09 10:56 [gentoo-commits] repo/gentoo:master commit in: app-admin/sysklogd/files/, app-admin/sysklogd/ Lars Wendler
-- strict thread matches above, loose matches on Subject: below --
2020-05-20 7:49 Lars Wendler
2020-01-05 13:17 Lars Wendler
2019-12-02 9:23 Lars Wendler
2019-11-24 13:25 Lars Wendler
2019-11-20 10:15 Lars Wendler
2017-01-17 17:39 Lars Wendler
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox