Gentoo Archives: gentoo-commits

From: Lars Wendler <polynomial-c@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-admin/sysklogd/, app-admin/sysklogd/files/
Date: Thu, 28 Nov 2019 16:34:02
Message-Id: 1574958827.10de0ebe904e51a4fa17305480c9f74803cd1bc0.polynomial-c@gentoo
1 commit: 10de0ebe904e51a4fa17305480c9f74803cd1bc0
2 Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
3 AuthorDate: Thu Nov 28 16:33:47 2019 +0000
4 Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
5 CommitDate: Thu Nov 28 16:33:47 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=10de0ebe
7
8 app-admin/sysklogd: Removed old
9
10 Package-Manager: Portage-2.3.80, Repoman-2.3.19
11 Signed-off-by: Lars Wendler <polynomial-c <AT> gentoo.org>
12
13 app-admin/sysklogd/Manifest | 1 -
14 .../files/sysklogd-2.0-optional_logger.patch | 101 ---------------------
15 app-admin/sysklogd/sysklogd-2.0-r1.ebuild | 81 -----------------
16 3 files changed, 183 deletions(-)
17
18 diff --git a/app-admin/sysklogd/Manifest b/app-admin/sysklogd/Manifest
19 index 3743cb2733e..4c02a5f8dcd 100644
20 --- a/app-admin/sysklogd/Manifest
21 +++ b/app-admin/sysklogd/Manifest
22 @@ -1,5 +1,4 @@
23 DIST sysklogd-1.5.1.tar.gz 90011 BLAKE2B c40bd8d5769f7d3d4141d602c74ac41e05a140743d18c4923d9368da7ba193ccb89a6837173994f0b7a9c290cc23f64513040434d7ab8df81b5d09b73b0263ad SHA512 a72196a1a172d25be1c4791ef6256fe71fa2ba8c1383d230e646e93f8a65c3a57c535189726325da4c792fdb2e9cb119bba43c878816a8e78e78189fd32b12b7
24 DIST sysklogd-2.0.1.tar.gz 461158 BLAKE2B 2c56ea1b5edb11f6ce75cb34d7cb5778516fbf3cb64986a7dd6063f830e9e8040430a0deb0ac68aeb389435319ede89202b2aa31cb480fe9bd9518ad503ca6ee SHA512 24d82a2db8d7d8fbdf291964d3d42717cf3b62129d1d503986b17a8005ca414eb824c39ed787d73bac966dad5a7cc9b439efce58e218aebed72b765e07134a83
25 DIST sysklogd-2.0.2.tar.gz 465933 BLAKE2B bc0181e43ca5996cfbf8a8a35d083f332e15f5c83215ec60b406cefc7817bb742d0ce094d6c0d9fe708d345db630a73ce408992d9aade18e5b69414ca4e2b2a6 SHA512 1e5e30162b1091c37801542ae44df3e5d1da09ead02dd74f81e1e35ebb2fea99bab372f00eca621340ca306a41629ccdfb3caa0d46db0fecf46e3030da932473
26 -DIST sysklogd-2.0.tar.gz 465822 BLAKE2B 030ce2e65287d215d376937aec590715abcac06dffef735038c31ee102eb00d5c616bfd2f3d378e53ef6ae4aa062e9802aaaca84a6f5598b43da35ee722d37ac SHA512 25b55b8ea47280c11959e03d5a8c592e1b02764b4aeb722ef9782d84116475f1bbba96d6db8c291b694d99c7970e2e7615e7cd48b8fef6dff4f9ae825e18d030
27 DIST sysklogd_1.5-6.diff.gz 25677 BLAKE2B 3cb1f596490998b6002d4656a2321a500ce9941a37737c0b9d4702bbb87d7bc9ba21b68e06d175e3c1714a701adc6b3312e18a556ebc9ef395d8968762830cb5 SHA512 816961a835a43057569f62fd20d9f7b5e0bfcfcb173b68947457708504db3ce47e635956c8a9564f9bd577d8f3c49dfc725d321dfd3370b2de918363c30f838e
28
29 diff --git a/app-admin/sysklogd/files/sysklogd-2.0-optional_logger.patch b/app-admin/sysklogd/files/sysklogd-2.0-optional_logger.patch
30 deleted file mode 100644
31 index 4e5580b0422..00000000000
32 --- a/app-admin/sysklogd/files/sysklogd-2.0-optional_logger.patch
33 +++ /dev/null
34 @@ -1,101 +0,0 @@
35 -From 227008ec0f59eecf3a962ebd9fbc27a0e475a4df Mon Sep 17 00:00:00 2001
36 -From: Lars Wendler <polynomial-c@g.o>
37 -Date: Mon, 18 Nov 2019 12:08:26 +0100
38 -Subject: [PATCH] build: make logger and its man page optional
39 -
40 -There are other packages that provide a logger program like util-linux
41 -We should respekt that
42 -
43 -Signed-off-by: Lars Wendler <polynomial-c@g.o>
44 ----
45 - configure.ac | 10 ++++++++++
46 - man/Makefile.am | 6 +++++-
47 - src/Makefile.am | 8 +++++++-
48 - 3 files changed, 22 insertions(+), 2 deletions(-)
49 -
50 -diff --git a/configure.ac b/configure.ac
51 -index 37c0bd4..e7acad7 100644
52 ---- a/configure.ac
53 -+++ b/configure.ac
54 -@@ -65,6 +65,10 @@ AC_ARG_WITH(systemd,
55 - [AS_HELP_STRING([--with-systemd=DIR], [Directory for systemd service files])],,
56 - [with_systemd=auto])
57 -
58 -+AC_ARG_WITH(logger,
59 -+ AS_HELP_STRING([--without-logger], [Do not build/install logger binary and man page, default: enabled]),
60 -+ [logger=$withval], [logger='yes'])
61 -+
62 - AS_IF([test "x$klogd" != "xno"],
63 - with_klogd="yes"
64 - AC_DEFINE(KLOGD, 1, [Build with klogd, default: built-in /dev/kmsg support in syslogd]),
65 -@@ -97,6 +101,12 @@ AS_IF([test "x$with_systemd" != "xno"],
66 - [AC_SUBST([systemddir], [$with_systemd])])
67 - AM_CONDITIONAL([HAVE_SYSTEMD], [test "x$with_systemd" != "xno"])
68 -
69 -+AS_IF([test "x$logger" != "xno"], [
70 -+ with_logger="yes"
71 -+ AC_DEFINE(LOGGER, 1, [Build with logger])],
72 -+ with_logger="no")
73 -+AM_CONDITIONAL([ENABLE_LOGGER], [test "x$with_logger" != "xno"])
74 -+
75 - # Expand $sbindir early, into $SBINDIR, for systemd unit file
76 - # NOTE: This does *not* take prefix/exec_prefix override at "make
77 - # install" into account, unfortunately.
78 -diff --git a/man/Makefile.am b/man/Makefile.am
79 -index 8ee7064..8ccad31 100644
80 ---- a/man/Makefile.am
81 -+++ b/man/Makefile.am
82 -@@ -1,4 +1,4 @@
83 --dist_man1_MANS = logger.1
84 -+dist_man1_MANS =
85 - dist_man3_MANS = syslogp.3
86 - dist_man5_MANS = syslog.conf.5
87 - dist_man8_MANS = syslogd.8
88 -@@ -6,3 +6,7 @@ dist_man8_MANS = syslogd.8
89 - if ENABLE_KLOGD
90 - dist_man8_MANS += klogd.8
91 - endif
92 -+
93 -+if ENABLE_LOGGER
94 -+dist_man1_MANS += logger.1
95 -+endif
96 -diff --git a/src/Makefile.am b/src/Makefile.am
97 -index 85f747b..849e49b 100644
98 ---- a/src/Makefile.am
99 -+++ b/src/Makefile.am
100 -@@ -16,7 +16,7 @@
101 - # with this program; if not, write to the Free Software Foundation, Inc.,
102 - # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
103 -
104 --bin_PROGRAMS = logger
105 -+bin_PROGRAMS =
106 - sbin_PROGRAMS = syslogd
107 - lib_LTLIBRARIES = libsyslog.la
108 - noinst_LTLIBRARIES = libcompat.la
109 -@@ -25,6 +25,10 @@ if ENABLE_KLOGD
110 - sbin_PROGRAMS += klogd
111 - endif
112 -
113 -+if ENABLE_LOGGER
114 -+bin_PROGRAMS += logger
115 -+endif
116 -+
117 - AM_CFLAGS = -W -Wall -Wextra
118 - AM_CFLAGS += -Wno-unused-result -Wno-unused-parameter -fno-strict-aliasing
119 - AM_CPPFLAGS = -DSYSCONFDIR=\"@sysconfdir@\" -DLOCALSTATEDIR=\"@localstatedir@\"
120 -@@ -39,10 +43,12 @@ klogd_CPPFLAGS = $(AM_CPPFLAGS)
121 - klogd_LDADD = $(LIBS) $(LIBOBJS)
122 - klogd_LDADD += libsyslog.la
123 -
124 -+if ENABLE_LOGGER
125 - logger_SOURCES = logger.c syslog.h
126 - logger_CPPFLAGS = $(AM_CPPFLAGS) -D_XOPEN_SOURCE=600
127 - logger_LDADD = $(LIBS) $(LIBOBJS)
128 - logger_LDADD += libsyslog.la
129 -+endif
130 -
131 - # Convenience library for libsyslog instead of linking with $(LTLIBOBJS),
132 - # which would pull in pidfile() and other (strong) symbols as well.
133 ---
134 -2.24.0
135 -
136
137 diff --git a/app-admin/sysklogd/sysklogd-2.0-r1.ebuild b/app-admin/sysklogd/sysklogd-2.0-r1.ebuild
138 deleted file mode 100644
139 index d7a07507988..00000000000
140 --- a/app-admin/sysklogd/sysklogd-2.0-r1.ebuild
141 +++ /dev/null
142 @@ -1,81 +0,0 @@
143 -# Copyright 1999-2019 Gentoo Authors
144 -# Distributed under the terms of the GNU General Public License v2
145 -
146 -EAPI=7
147 -
148 -inherit autotools flag-o-matic systemd toolchain-funcs
149 -
150 -DESCRIPTION="Standard log daemons"
151 -HOMEPAGE="https://troglobit.com/sysklogd.html https://github.com/troglobit/sysklogd"
152 -SRC_URI="https://github.com/troglobit/sysklogd/releases/download/v$(ver_cut 1-2)/${P}.tar.gz"
153 -
154 -LICENSE="BSD"
155 -SLOT="0"
156 -KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86"
157 -IUSE="klogd logger logrotate systemd"
158 -RESTRICT="test"
159 -
160 -DEPEND="
161 - logger? (
162 - !<sys-apps/util-linux-2.34-r3
163 - !>=sys-apps/util-linux-2.34-r3[logger]
164 - )
165 -"
166 -RDEPEND="${DEPEND}"
167 -
168 -DOCS=( ChangeLog.md README.md )
169 -
170 -PATCHES=(
171 - "${FILESDIR}/${PN}-2.0-optional_logger.patch"
172 -)
173 -
174 -pkg_setup() {
175 - append-lfs-flags
176 - tc-export CC
177 -}
178 -
179 -src_prepare() {
180 - default
181 - eautoreconf
182 -}
183 -
184 -src_configure() {
185 - local myeconfargs=(
186 - # Required for correct pid file location. (bug #701048)
187 - # syslogd appends "/run/syslogd.pid" to the localstatedir
188 - # path, and tries to write to that file even when being
189 - # started in foreground. So we need to pin this to /
190 - --localstatedir="${EPREFIX}"/
191 - $(use_with klogd)
192 - $(use_with logger)
193 - $(use_with systemd systemd $(systemd_get_systemunitdir))
194 - )
195 - econf "${myeconfargs[@]}"
196 -}
197 -
198 -src_install() {
199 - default
200 -
201 - insinto /etc
202 - doins syslog.conf
203 - keepdir /etc/syslog.d
204 -
205 - newinitd "${FILESDIR}"/sysklogd.rc8 sysklogd
206 - newconfd "${FILESDIR}"/sysklogd.confd2 sysklogd
207 -
208 - if use logrotate ; then
209 - insinto /etc/logrotate.d
210 - newins "${FILESDIR}"/sysklogd.logrotate sysklogd
211 - sed 's@ -r 10M:10@@' -i "${ED}"/etc/conf.d/sysklogd || die
212 - fi
213 -
214 - find "${ED}" -type f \( -name "*.a" -o -name "*.la" \) -delete || die
215 -}
216 -
217 -pkg_postinst() {
218 - if ! use logrotate && [[ -n ${REPLACING_VERSIONS} ]] && ver_test ${REPLACING_VERSIONS} -lt 2.0 ; then
219 - elog "Starting with version 2.0 syslogd has built in log rotation"
220 - elog "functionality that does no longer require a running cron daemon."
221 - elog "So we no longer install any log rotation cron files for sysklogd."
222 - fi
223 -}