diff options
Diffstat (limited to 'meta/recipes-extended/sysklogd/sysklogd_2.7.2.bb')
| -rw-r--r-- | meta/recipes-extended/sysklogd/sysklogd_2.7.2.bb | 56 |
1 files changed, 56 insertions, 0 deletions
diff --git a/meta/recipes-extended/sysklogd/sysklogd_2.7.2.bb b/meta/recipes-extended/sysklogd/sysklogd_2.7.2.bb new file mode 100644 index 0000000000..ba69a7a8b8 --- /dev/null +++ b/meta/recipes-extended/sysklogd/sysklogd_2.7.2.bb | |||
| @@ -0,0 +1,56 @@ | |||
| 1 | SUMMARY = "System Log Daemons" | ||
| 2 | DESCRIPTION = "The sysklogd package implements system log daemons: syslogd" | ||
| 3 | HOMEPAGE = "http://www.infodrom.org/projects/sysklogd/" | ||
| 4 | SECTION = "base" | ||
| 5 | |||
| 6 | LICENSE = "BSD-3-Clause" | ||
| 7 | LIC_FILES_CHKSUM = "file://LICENSE;md5=5b4be4b2549338526758ef479c040943 \ | ||
| 8 | file://src/syslogd.c;beginline=2;endline=15;md5=a880fecbc04503f071c494a9c0dd4f97 \ | ||
| 9 | " | ||
| 10 | |||
| 11 | inherit update-rc.d update-alternatives systemd autotools | ||
| 12 | |||
| 13 | SRC_URI = "git://github.com/troglobit/sysklogd.git;branch=master;protocol=https;tag=v${PV} \ | ||
| 14 | file://sysklogd \ | ||
| 15 | " | ||
| 16 | |||
| 17 | SRCREV = "5fb314cb9060afa3bd4eed2f0be3200f02f729e9" | ||
| 18 | |||
| 19 | S = "${WORKDIR}/git" | ||
| 20 | |||
| 21 | EXTRA_OECONF = "--with-systemd=${systemd_system_unitdir} --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 ${UNPACKDIR}/sysklogd ${D}${sysconfdir}/init.d/syslog | ||
| 28 | } | ||
| 29 | |||
| 30 | SYSTEMD_PACKAGES = "${PN}" | ||
| 31 | SYSTEMD_SERVICE:${PN} = "syslogd.service" | ||
| 32 | SYSTEMD_AUTO_ENABLE = "enable" | ||
| 33 | |||
| 34 | INITSCRIPT_NAME = "syslog" | ||
| 35 | CONFFILES:${PN} = "${sysconfdir}/syslog.conf" | ||
| 36 | RCONFLICTS:${PN} = "rsyslog busybox-syslog syslog-ng" | ||
| 37 | |||
| 38 | FILES:${PN} += "${@bb.utils.contains('DISTRO_FEATURES','systemd','${exec_prefix}/lib/tmpfiles.d/sysklogd.conf', '', d)}" | ||
| 39 | |||
| 40 | ALTERNATIVE_PRIORITY = "100" | ||
| 41 | |||
| 42 | ALTERNATIVE:${PN}-doc = "syslogd.8" | ||
| 43 | ALTERNATIVE_LINK_NAME[syslogd.8] = "${mandir}/man8/syslogd.8" | ||
| 44 | |||
| 45 | pkg_prerm:${PN} () { | ||
| 46 | if test "x$D" = "x"; then | ||
| 47 | if test "$1" = "upgrade" -o "$1" = "remove"; then | ||
| 48 | /etc/init.d/syslog stop || : | ||
| 49 | fi | ||
| 50 | fi | ||
| 51 | } | ||
| 52 | |||
| 53 | python () { | ||
| 54 | if not bb.utils.contains('DISTRO_FEATURES', 'sysvinit', True, False, d): | ||
| 55 | d.setVar("INHIBIT_UPDATERCD_BBCLASS", "1") | ||
| 56 | } | ||
