1 |
commit: 2fafe2b8969030d2170ebf24aa7df1e82e529956 |
2 |
Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Jan 5 13:16:03 2020 +0000 |
4 |
Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Jan 5 13:17:40 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2fafe2b8 |
7 |
|
8 |
app-admin/sysklogd: Bump to version 2.1 |
9 |
|
10 |
Package-Manager: Portage-2.3.84, Repoman-2.3.20 |
11 |
Signed-off-by: Lars Wendler <polynomial-c <AT> gentoo.org> |
12 |
|
13 |
app-admin/sysklogd/Manifest | 1 + |
14 |
app-admin/sysklogd/files/sysklogd.confd3 | 3 ++ |
15 |
app-admin/sysklogd/files/sysklogd.rc10 | 20 +++++++++ |
16 |
app-admin/sysklogd/sysklogd-2.1.ebuild | 71 ++++++++++++++++++++++++++++++++ |
17 |
4 files changed, 95 insertions(+) |
18 |
|
19 |
diff --git a/app-admin/sysklogd/Manifest b/app-admin/sysklogd/Manifest |
20 |
index 753a5c48a67..638df43817e 100644 |
21 |
--- a/app-admin/sysklogd/Manifest |
22 |
+++ b/app-admin/sysklogd/Manifest |
23 |
@@ -1,4 +1,5 @@ |
24 |
DIST sysklogd-1.5.1.tar.gz 90011 BLAKE2B c40bd8d5769f7d3d4141d602c74ac41e05a140743d18c4923d9368da7ba193ccb89a6837173994f0b7a9c290cc23f64513040434d7ab8df81b5d09b73b0263ad SHA512 a72196a1a172d25be1c4791ef6256fe71fa2ba8c1383d230e646e93f8a65c3a57c535189726325da4c792fdb2e9cb119bba43c878816a8e78e78189fd32b12b7 |
25 |
DIST sysklogd-2.0.2.tar.gz 465933 BLAKE2B bc0181e43ca5996cfbf8a8a35d083f332e15f5c83215ec60b406cefc7817bb742d0ce094d6c0d9fe708d345db630a73ce408992d9aade18e5b69414ca4e2b2a6 SHA512 1e5e30162b1091c37801542ae44df3e5d1da09ead02dd74f81e1e35ebb2fea99bab372f00eca621340ca306a41629ccdfb3caa0d46db0fecf46e3030da932473 |
26 |
DIST sysklogd-2.0.3.tar.gz 466919 BLAKE2B d9ada06dadb5a43ca7102cb24eaffa0494af2743f4714bab7d362cf480835ea9c3fc51ee171e4eb3b90380d63abe78c759bdfc5d946ec4d5bf8fce748cd916b9 SHA512 95ed0465e37b438d624b0a78d74c1194c57d117890492b5773c9ccefa7aa2c1f54ed510e54a29019fb2d7274200370031fe822a9316c154e64a2a01cb912d7a8 |
27 |
+DIST sysklogd-2.1.tar.gz 560611 BLAKE2B 727f78a639d88fd67b5fe6106534a10f9b37717b0675772346b07691481d7d5297963d54d3e36eae7cf14431e8429eaf0da1c551970c7a916f4e6c891c7ad70c SHA512 48fa0eed0013a9ff0a8bae0fe35bb82f46e012d3754da424bce0bcd339b4e016a1cbc93b134c02342f8da6e42721cdcdb3d28c3c71c571748d77a234460cb0c7 |
28 |
DIST sysklogd_1.5-6.diff.gz 25677 BLAKE2B 3cb1f596490998b6002d4656a2321a500ce9941a37737c0b9d4702bbb87d7bc9ba21b68e06d175e3c1714a701adc6b3312e18a556ebc9ef395d8968762830cb5 SHA512 816961a835a43057569f62fd20d9f7b5e0bfcfcb173b68947457708504db3ce47e635956c8a9564f9bd577d8f3c49dfc725d321dfd3370b2de918363c30f838e |
29 |
|
30 |
diff --git a/app-admin/sysklogd/files/sysklogd.confd3 b/app-admin/sysklogd/files/sysklogd.confd3 |
31 |
new file mode 100644 |
32 |
index 00000000000..d897c9e2528 |
33 |
--- /dev/null |
34 |
+++ b/app-admin/sysklogd/files/sysklogd.confd3 |
35 |
@@ -0,0 +1,3 @@ |
36 |
+# Config file for /etc/init.d/sysklogd |
37 |
+ |
38 |
+SYSLOGD="-m 0 -s -s -r 10M:10" |
39 |
|
40 |
diff --git a/app-admin/sysklogd/files/sysklogd.rc10 b/app-admin/sysklogd/files/sysklogd.rc10 |
41 |
new file mode 100644 |
42 |
index 00000000000..749f87f08be |
43 |
--- /dev/null |
44 |
+++ b/app-admin/sysklogd/files/sysklogd.rc10 |
45 |
@@ -0,0 +1,20 @@ |
46 |
+#!/sbin/openrc-run |
47 |
+# Copyright 1999-2020 Gentoo Authors |
48 |
+# Distributed under the terms of the GNU General Public License, v2 or later |
49 |
+ |
50 |
+extra_started_commands="reload" |
51 |
+pidfile="/run/${RC_SVCNAME}.pid" |
52 |
+command="/usr/sbin/syslogd" |
53 |
+command_background="true" |
54 |
+command_args="-F ${SYSLOGD}" |
55 |
+ |
56 |
+depend() { |
57 |
+ need clock hostname |
58 |
+ provide logger |
59 |
+} |
60 |
+ |
61 |
+reload() { |
62 |
+ ebegin "Reloading configuration" |
63 |
+ start-stop-daemon --signal HUP --pidfile ${pidfile} |
64 |
+ eend $? |
65 |
+} |
66 |
|
67 |
diff --git a/app-admin/sysklogd/sysklogd-2.1.ebuild b/app-admin/sysklogd/sysklogd-2.1.ebuild |
68 |
new file mode 100644 |
69 |
index 00000000000..fba04a0bc31 |
70 |
--- /dev/null |
71 |
+++ b/app-admin/sysklogd/sysklogd-2.1.ebuild |
72 |
@@ -0,0 +1,71 @@ |
73 |
+# Copyright 1999-2020 Gentoo Authors |
74 |
+# Distributed under the terms of the GNU General Public License v2 |
75 |
+ |
76 |
+EAPI=7 |
77 |
+ |
78 |
+inherit flag-o-matic systemd toolchain-funcs |
79 |
+ |
80 |
+DESCRIPTION="Standard log daemons" |
81 |
+HOMEPAGE="https://troglobit.com/sysklogd.html https://github.com/troglobit/sysklogd" |
82 |
+SRC_URI="https://github.com/troglobit/sysklogd/releases/download/v${PV}/${P}.tar.gz" |
83 |
+ |
84 |
+LICENSE="BSD" |
85 |
+SLOT="0" |
86 |
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86" |
87 |
+IUSE="logger logrotate systemd" |
88 |
+RESTRICT="test" |
89 |
+ |
90 |
+DEPEND=" |
91 |
+ logger? ( |
92 |
+ !<sys-apps/util-linux-2.34-r3 |
93 |
+ !>=sys-apps/util-linux-2.34-r3[logger] |
94 |
+ ) |
95 |
+" |
96 |
+RDEPEND="${DEPEND}" |
97 |
+ |
98 |
+DOCS=( ChangeLog.md README.md ) |
99 |
+ |
100 |
+pkg_setup() { |
101 |
+ append-lfs-flags |
102 |
+ tc-export CC |
103 |
+} |
104 |
+ |
105 |
+src_configure() { |
106 |
+ local myeconfargs=( |
107 |
+ --runstatedir="${EPREFIX}"/run |
108 |
+ $(use_with logger) |
109 |
+ $(use_with systemd systemd $(systemd_get_systemunitdir)) |
110 |
+ ) |
111 |
+ econf "${myeconfargs[@]}" |
112 |
+} |
113 |
+ |
114 |
+src_install() { |
115 |
+ default |
116 |
+ |
117 |
+ insinto /etc |
118 |
+ doins syslog.conf |
119 |
+ keepdir /etc/syslog.d |
120 |
+ |
121 |
+ newinitd "${FILESDIR}"/sysklogd.rc10 sysklogd |
122 |
+ newconfd "${FILESDIR}"/sysklogd.confd3 sysklogd |
123 |
+ |
124 |
+ if use logrotate ; then |
125 |
+ insinto /etc/logrotate.d |
126 |
+ newins "${FILESDIR}"/sysklogd.logrotate sysklogd |
127 |
+ sed 's@ -r 10M:10@@' -i "${ED}"/etc/conf.d/sysklogd || die |
128 |
+ fi |
129 |
+ |
130 |
+ find "${ED}" -type f \( -name "*.a" -o -name "*.la" \) -delete || die |
131 |
+} |
132 |
+ |
133 |
+pkg_postinst() { |
134 |
+ if ! use logrotate && [[ -n ${REPLACING_VERSIONS} ]] && ver_test ${REPLACING_VERSIONS} -lt 2.0 ; then |
135 |
+ elog "Starting with version 2.0 syslogd has built in log rotation" |
136 |
+ elog "functionality that does no longer require a running cron daemon." |
137 |
+ elog "So we no longer install any log rotation cron files for sysklogd." |
138 |
+ fi |
139 |
+ if [[ -n ${REPLACING_VERSIONS} ]] && ver_test ${REPLACING_VERSIONS} -lt 2.1 ; then |
140 |
+ elog "Starting with version 2.1 sysklogd no longer provides klogd." |
141 |
+ elog "syslogd now also logs kernel messages." |
142 |
+ fi |
143 |
+} |