diff options
Diffstat (limited to 'meta/recipes-extended/sysklogd/sysklogd.inc')
-rw-r--r-- | meta/recipes-extended/sysklogd/sysklogd.inc | 46 |
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" | |||
6 | LICENSE = "GPLv2+ & BSD" | 6 | LICENSE = "GPLv2+ & BSD" |
7 | LICENSE_syslogd = "BSD" | 7 | LICENSE_syslogd = "BSD" |
8 | LICENSE_klogd = "GPLv2+" | 8 | LICENSE_klogd = "GPLv2+" |
9 | LIC_FILES_CHKSUM = "file://COPYING;md5=8ca43cbc842c2336e835926c2166c28b \ | 9 | LIC_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 | ||
14 | inherit update-rc.d update-alternatives systemd | 14 | inherit update-rc.d update-alternatives systemd autotools |
15 | 15 | ||
16 | SRC_URI = "git://github.com/troglobit/sysklogd.git;nobranch=1 \ | 16 | SRC_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 | " |
27 | S = "${WORKDIR}/git" | 19 | S = "${WORKDIR}/git" |
28 | 20 | ||
29 | SRC_URI_append_e500v2 = " file://no-vectorization.patch" | 21 | EXTRA_OECONF = "--with-systemd=${systemd_system_unitdir} --with-klogd --without-logger" |
22 | |||
23 | do_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 | ||
31 | SYSTEMD_PACKAGES = "${PN}" | 30 | SYSTEMD_PACKAGES = "${PN}" |
32 | SYSTEMD_SERVICE_${PN} = "syslogd.service klogd.service" | 31 | SYSTEMD_SERVICE_${PN} = "syslogd.service klogd.service" |
@@ -36,27 +35,6 @@ INITSCRIPT_NAME = "syslog" | |||
36 | CONFFILES_${PN} = "${sysconfdir}/syslog.conf" | 35 | CONFFILES_${PN} = "${sysconfdir}/syslog.conf" |
37 | RCONFLICTS_${PN} = "rsyslog busybox-syslog syslog-ng" | 36 | RCONFLICTS_${PN} = "rsyslog busybox-syslog syslog-ng" |
38 | 37 | ||
39 | CFLAGS += "-DSYSV -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE" | ||
40 | |||
41 | do_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 | |||
60 | FILES_${PN} += "${@bb.utils.contains('DISTRO_FEATURES','systemd','${exec_prefix}/lib/tmpfiles.d/sysklogd.conf', '', d)}" | 38 | FILES_${PN} += "${@bb.utils.contains('DISTRO_FEATURES','systemd','${exec_prefix}/lib/tmpfiles.d/sysklogd.conf', '', d)}" |
61 | 39 | ||
62 | ALTERNATIVE_PRIORITY = "100" | 40 | ALTERNATIVE_PRIORITY = "100" |