summaryrefslogtreecommitdiffstats
path: root/meta/recipes-extended/sysklogd/sysklogd.inc
diff options
context:
space:
mode:
authorAlexander Kanavin <alex.kanavin@gmail.com>2019-12-12 19:14:15 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2019-12-18 10:18:06 +0000
commit06a0adbb25b8ee83f64be78a2fb66fed5fa7ecf5 (patch)
tree1dcd99ff8b01a5a5d14059330915bf5a08128cf9 /meta/recipes-extended/sysklogd/sysklogd.inc
parent7e7b066085c2496a259b356c59acda32d444a261 (diff)
downloadpoky-06a0adbb25b8ee83f64be78a2fb66fed5fa7ecf5.tar.gz
sysklogd: update to 2.0.3
Drop all patches as they are no longer necessary with autotools, fix problems that are addressed upstream, or (in case of no-vectorization.patch) don't apply to the old version either, which means no one is using that hw target anymore. Remove custom systemd configs (provided by upstream), and custom syslog config (also provided by upstream but not installed by default). Adjust parselogs to not error out on not being able to find System.map file during boot (that is packaged into kernel-dev and is not normally installed). License-Update: various tweaks; the license terms are the same. (From OE-Core rev: dcf0bd14d78b0848f206eb35355f05bfbd51c02d) Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-extended/sysklogd/sysklogd.inc')
-rw-r--r--meta/recipes-extended/sysklogd/sysklogd.inc46
1 files changed, 12 insertions, 34 deletions
diff --git a/meta/recipes-extended/sysklogd/sysklogd.inc b/meta/recipes-extended/sysklogd/sysklogd.inc
index 749026f853..b90911af2b 100644
--- a/meta/recipes-extended/sysklogd/sysklogd.inc
+++ b/meta/recipes-extended/sysklogd/sysklogd.inc
@@ -6,27 +6,26 @@ SECTION = "base"
6LICENSE = "GPLv2+ & BSD" 6LICENSE = "GPLv2+ & BSD"
7LICENSE_syslogd = "BSD" 7LICENSE_syslogd = "BSD"
8LICENSE_klogd = "GPLv2+" 8LICENSE_klogd = "GPLv2+"
9LIC_FILES_CHKSUM = "file://COPYING;md5=8ca43cbc842c2336e835926c2166c28b \ 9LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263 \
10 file://syslogd.c;beginline=2;endline=15;md5=77ffb2fec48c46d7ca0abb2d5813e7fd \ 10 file://src/syslogd.c;beginline=2;endline=15;md5=a880fecbc04503f071c494a9c0dd4f97 \
11 file://klogd.c;beginline=2;endline=19;md5=7e87ed0ae6142de079bce738c10c899d \ 11 file://src/klogd.c;beginline=2;endline=19;md5=4f5591d04cccbeb0352758ed4a9d7213 \
12 " 12 "
13 13
14inherit update-rc.d update-alternatives systemd 14inherit update-rc.d update-alternatives systemd autotools
15 15
16SRC_URI = "git://github.com/troglobit/sysklogd.git;nobranch=1 \ 16SRC_URI = "git://github.com/troglobit/sysklogd.git;nobranch=1 \
17 file://no-strip-install.patch \
18 file://0001-Fix-build-with-musl.patch \
19 file://0001-fix-problems-that-causes-a-segmentation-fault-under-.patch \
20 file://0002-Make-way-for-respecting-flags-from-environment.patch \
21 file://sysklogd \ 17 file://sysklogd \
22 file://syslog.conf \
23 file://syslogd.service \
24 file://klogd.service \
25 file://tmpfiles.sysklogd.conf \
26 " 18 "
27S = "${WORKDIR}/git" 19S = "${WORKDIR}/git"
28 20
29SRC_URI_append_e500v2 = " file://no-vectorization.patch" 21EXTRA_OECONF = "--with-systemd=${systemd_system_unitdir} --with-klogd --without-logger"
22
23do_install_append () {
24 install -d ${D}${sysconfdir}
25 install -m 644 ${S}/syslog.conf ${D}${sysconfdir}/syslog.conf
26 install -d ${D}${sysconfdir}/init.d
27 install -m 755 ${WORKDIR}/sysklogd ${D}${sysconfdir}/init.d/syslog
28}
30 29
31SYSTEMD_PACKAGES = "${PN}" 30SYSTEMD_PACKAGES = "${PN}"
32SYSTEMD_SERVICE_${PN} = "syslogd.service klogd.service" 31SYSTEMD_SERVICE_${PN} = "syslogd.service klogd.service"
@@ -36,27 +35,6 @@ INITSCRIPT_NAME = "syslog"
36CONFFILES_${PN} = "${sysconfdir}/syslog.conf" 35CONFFILES_${PN} = "${sysconfdir}/syslog.conf"
37RCONFLICTS_${PN} = "rsyslog busybox-syslog syslog-ng" 36RCONFLICTS_${PN} = "rsyslog busybox-syslog syslog-ng"
38 37
39CFLAGS += "-DSYSV -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE"
40
41do_install () {
42 install -d ${D}${mandir}/man8 \
43 ${D}${mandir}/man5 \
44 ${D}${base_sbindir}
45 oe_runmake 'BINDIR=${D}${base_sbindir}' \
46 'MANDIR=${D}${mandir}' install
47 install -d ${D}${sysconfdir}
48 install -m 644 ${WORKDIR}/syslog.conf ${D}${sysconfdir}/syslog.conf
49 install -d ${D}${sysconfdir}/init.d
50 install -m 755 ${WORKDIR}/sysklogd ${D}${sysconfdir}/init.d/syslog
51 install -d ${D}${systemd_unitdir}/system
52 install -m 644 ${WORKDIR}/syslogd.service ${D}${systemd_unitdir}/system
53 install -m 644 ${WORKDIR}/klogd.service ${D}${systemd_unitdir}/system
54 if ${@bb.utils.contains('DISTRO_FEATURES','systemd','true', 'false', d)}; then
55 install -d ${D}${exec_prefix}/lib/tmpfiles.d
56 install -m 644 ${WORKDIR}/tmpfiles.sysklogd.conf ${D}${exec_prefix}/lib/tmpfiles.d/sysklogd.conf
57 fi
58}
59
60FILES_${PN} += "${@bb.utils.contains('DISTRO_FEATURES','systemd','${exec_prefix}/lib/tmpfiles.d/sysklogd.conf', '', d)}" 38FILES_${PN} += "${@bb.utils.contains('DISTRO_FEATURES','systemd','${exec_prefix}/lib/tmpfiles.d/sysklogd.conf', '', d)}"
61 39
62ALTERNATIVE_PRIORITY = "100" 40ALTERNATIVE_PRIORITY = "100"