1 |
commit: 8b49ddf2ebac23a8ec90055d04d5569ef5677b5d |
2 |
Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Nov 28 13:11:29 2021 +0000 |
4 |
Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Nov 28 13:11:47 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8b49ddf2 |
7 |
|
8 |
app-admin/sysklogd: Bump to version 2.3.0 |
9 |
|
10 |
Signed-off-by: Lars Wendler <polynomial-c <AT> gentoo.org> |
11 |
|
12 |
app-admin/sysklogd/Manifest | 1 + |
13 |
app-admin/sysklogd/sysklogd-2.3.0.ebuild | 84 ++++++++++++++++++++++++++++++++ |
14 |
2 files changed, 85 insertions(+) |
15 |
|
16 |
diff --git a/app-admin/sysklogd/Manifest b/app-admin/sysklogd/Manifest |
17 |
index 0bd24841887a..e564278af209 100644 |
18 |
--- a/app-admin/sysklogd/Manifest |
19 |
+++ b/app-admin/sysklogd/Manifest |
20 |
@@ -1 +1,2 @@ |
21 |
DIST sysklogd-2.2.3.tar.gz 441630 BLAKE2B e23b95aea9d98effc6a88dd14c4fafa358274ea839e7a07ab51bd0257fe0398a1ba6b629c4711d679fffaf03f04c177454f536bdd78dcad2b9f2ae36ff91138e SHA512 db1675256f0f0b0874e2e6a68fb086294bef1d6d3f3e9a6470f8d797ae504b2ab03ed23dc2753c8108a230c3f617e67c4a71e099a2ffeb7ffc8a0efdd07e8d17 |
22 |
+DIST sysklogd-2.3.0.tar.gz 441168 BLAKE2B fa2ec9975d51bcb26d7acc88ab02e211453fc7e6d722ec6d38543a20833ae9c49b9a274d323e7a32deb82ca9c38025947e25b15424084a0ce345410a2e686a4d SHA512 7a16dd3f45a71015ad055e64aa62f4f94b0a8aa739f407c03376241cbc16ff764a768a698362cb428d150b169934798b774622b330903b287f9af5dd846775fc |
23 |
|
24 |
diff --git a/app-admin/sysklogd/sysklogd-2.3.0.ebuild b/app-admin/sysklogd/sysklogd-2.3.0.ebuild |
25 |
new file mode 100644 |
26 |
index 000000000000..fcf8b445d160 |
27 |
--- /dev/null |
28 |
+++ b/app-admin/sysklogd/sysklogd-2.3.0.ebuild |
29 |
@@ -0,0 +1,84 @@ |
30 |
+# Copyright 1999-2021 Gentoo Authors |
31 |
+# Distributed under the terms of the GNU General Public License v2 |
32 |
+ |
33 |
+EAPI=7 |
34 |
+ |
35 |
+inherit flag-o-matic systemd toolchain-funcs |
36 |
+ |
37 |
+DESCRIPTION="Standard log daemons" |
38 |
+HOMEPAGE="https://troglobit.com/sysklogd.html https://github.com/troglobit/sysklogd" |
39 |
+ |
40 |
+if [[ "${PV}" == *9999 ]] ; then |
41 |
+ inherit autotools git-r3 |
42 |
+ EGIT_REPO_URI="https://github.com/troglobit/sysklogd.git" |
43 |
+else |
44 |
+ SRC_URI="https://github.com/troglobit/sysklogd/releases/download/v${PV}/${P}.tar.gz" |
45 |
+ KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86" |
46 |
+fi |
47 |
+ |
48 |
+LICENSE="BSD" |
49 |
+SLOT="0" |
50 |
+IUSE="logger logrotate systemd" |
51 |
+RESTRICT="test" |
52 |
+ |
53 |
+DEPEND=" |
54 |
+ logger? ( |
55 |
+ !<sys-apps/util-linux-2.34-r3 |
56 |
+ !>=sys-apps/util-linux-2.34-r3[logger] |
57 |
+ ) |
58 |
+" |
59 |
+RDEPEND="${DEPEND} |
60 |
+ logrotate? ( app-admin/logrotate )" |
61 |
+ |
62 |
+DOCS=( ChangeLog.md README.md ) |
63 |
+ |
64 |
+pkg_setup() { |
65 |
+ append-lfs-flags |
66 |
+ tc-export CC |
67 |
+} |
68 |
+ |
69 |
+src_prepare() { |
70 |
+ default |
71 |
+ [[ "${PV}" == *9999 ]] && eautoreconf |
72 |
+} |
73 |
+ |
74 |
+src_configure() { |
75 |
+ local myeconfargs=( |
76 |
+ --disable-static |
77 |
+ --runstatedir="${EPREFIX}"/run |
78 |
+ $(use_with logger) |
79 |
+ $(use_with systemd systemd $(systemd_get_systemunitdir)) |
80 |
+ ) |
81 |
+ econf "${myeconfargs[@]}" |
82 |
+} |
83 |
+ |
84 |
+src_install() { |
85 |
+ default |
86 |
+ |
87 |
+ insinto /etc |
88 |
+ doins syslog.conf |
89 |
+ keepdir /etc/syslog.d |
90 |
+ |
91 |
+ newinitd "${FILESDIR}"/sysklogd.rc10 sysklogd |
92 |
+ newconfd "${FILESDIR}"/sysklogd.confd3 sysklogd |
93 |
+ |
94 |
+ if use logrotate ; then |
95 |
+ insinto /etc/logrotate.d |
96 |
+ newins "${FILESDIR}"/sysklogd.logrotate sysklogd |
97 |
+ sed 's@ -r 10M:10@@' -i "${ED}"/etc/conf.d/sysklogd || die |
98 |
+ fi |
99 |
+ |
100 |
+ find "${ED}" -type f -name "*.la" -delete || die |
101 |
+} |
102 |
+ |
103 |
+pkg_postinst() { |
104 |
+ if ! use logrotate && [[ -n ${REPLACING_VERSIONS} ]] && ver_test ${REPLACING_VERSIONS} -lt 2.0 ; then |
105 |
+ elog "Starting with version 2.0 syslogd has built in log rotation" |
106 |
+ elog "functionality that does no longer require a running cron daemon." |
107 |
+ elog "So we no longer install any log rotation cron files for sysklogd." |
108 |
+ fi |
109 |
+ if [[ -n ${REPLACING_VERSIONS} ]] && ver_test ${REPLACING_VERSIONS} -lt 2.1 ; then |
110 |
+ elog "Starting with version 2.1 sysklogd no longer provides klogd." |
111 |
+ elog "syslogd now also logs kernel messages." |
112 |
+ fi |
113 |
+} |