summaryrefslogtreecommitdiffstats
path: root/meta/recipes-extended/sysklogd/sysklogd.inc
diff options
context:
space:
mode:
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"