diff options
-rw-r--r-- | meta-oe/recipes-support/syslog-ng/files/syslog-ng-tmp.conf | 1 | ||||
-rw-r--r-- | meta-oe/recipes-support/syslog-ng/syslog-ng.inc | 6 | ||||
-rw-r--r-- | meta-oe/recipes-support/syslog-ng/syslog-ng_3.19.1.bb | 10 |
3 files changed, 11 insertions, 6 deletions
diff --git a/meta-oe/recipes-support/syslog-ng/files/syslog-ng-tmp.conf b/meta-oe/recipes-support/syslog-ng/files/syslog-ng-tmp.conf new file mode 100644 index 0000000000..32a7953211 --- /dev/null +++ b/meta-oe/recipes-support/syslog-ng/files/syslog-ng-tmp.conf | |||
@@ -0,0 +1 @@ | |||
d /var/run/syslog-ng 0755 root root | |||
diff --git a/meta-oe/recipes-support/syslog-ng/syslog-ng.inc b/meta-oe/recipes-support/syslog-ng/syslog-ng.inc index b00cb91ee1..4c22d4b0f0 100644 --- a/meta-oe/recipes-support/syslog-ng/syslog-ng.inc +++ b/meta-oe/recipes-support/syslog-ng/syslog-ng.inc | |||
@@ -15,6 +15,8 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=24c0c5cb2c83d9f2ab725481e4df5240" | |||
15 | # util-linux added to get libuuid | 15 | # util-linux added to get libuuid |
16 | DEPENDS = "libpcre flex glib-2.0 openssl util-linux" | 16 | DEPENDS = "libpcre flex glib-2.0 openssl util-linux" |
17 | 17 | ||
18 | # We expect the recipe to add anything specific for that version to these defaults. | ||
19 | # | ||
18 | SRC_URI = "https://github.com/balabit/syslog-ng/releases/download/${BP}/${BP}.tar.gz \ | 20 | SRC_URI = "https://github.com/balabit/syslog-ng/releases/download/${BP}/${BP}.tar.gz \ |
19 | file://syslog-ng.conf.systemd \ | 21 | file://syslog-ng.conf.systemd \ |
20 | file://syslog-ng.conf.sysvinit \ | 22 | file://syslog-ng.conf.sysvinit \ |
@@ -74,8 +76,12 @@ do_install_append() { | |||
74 | install -d ${D}/${sysconfdir}/${BPN} | 76 | install -d ${D}/${sysconfdir}/${BPN} |
75 | install -d ${D}/${sysconfdir}/init.d | 77 | install -d ${D}/${sysconfdir}/init.d |
76 | install -m 755 ${WORKDIR}/initscript ${D}/${sysconfdir}/init.d/syslog | 78 | install -m 755 ${WORKDIR}/initscript ${D}/${sysconfdir}/init.d/syslog |
79 | |||
77 | install -d ${D}/${sysconfdir}/default/volatiles/ | 80 | install -d ${D}/${sysconfdir}/default/volatiles/ |
78 | install -m 755 ${WORKDIR}/volatiles.03_syslog-ng ${D}/${sysconfdir}/default/volatiles/03_syslog-ng | 81 | install -m 755 ${WORKDIR}/volatiles.03_syslog-ng ${D}/${sysconfdir}/default/volatiles/03_syslog-ng |
82 | install -d ${D}/${sysconfdir}/tmpfiles.d/ | ||
83 | install -m 755 ${WORKDIR}/syslog-ng-tmp.conf ${D}/${sysconfdir}/tmpfiles.d/syslog-ng.conf | ||
84 | |||
79 | install -d ${D}/${localstatedir}/lib/${BPN} | 85 | install -d ${D}/${localstatedir}/lib/${BPN} |
80 | # Remove /var/run as it is created on startup | 86 | # Remove /var/run as it is created on startup |
81 | rm -rf ${D}${localstatedir}/run | 87 | rm -rf ${D}${localstatedir}/run |
diff --git a/meta-oe/recipes-support/syslog-ng/syslog-ng_3.19.1.bb b/meta-oe/recipes-support/syslog-ng/syslog-ng_3.19.1.bb index 4eecf6b6a8..852343c239 100644 --- a/meta-oe/recipes-support/syslog-ng/syslog-ng_3.19.1.bb +++ b/meta-oe/recipes-support/syslog-ng/syslog-ng_3.19.1.bb | |||
@@ -1,15 +1,13 @@ | |||
1 | require syslog-ng.inc | 1 | require syslog-ng.inc |
2 | 2 | ||
3 | SRC_URI = "https://github.com/balabit/syslog-ng/releases/download/${BP}/${BP}.tar.gz \ | 3 | # We only want to add stuff we need to the defaults provided in syslog-ng.inc. |
4 | file://syslog-ng.conf.systemd \ | 4 | # |
5 | file://syslog-ng.conf.sysvinit \ | 5 | SRC_URI += " \ |
6 | file://initscript \ | ||
7 | file://volatiles.03_syslog-ng \ | ||
8 | file://configure.ac-add-option-enable-thread-tls-to-manage-.patch \ | ||
9 | file://fix-config-libnet.patch \ | 6 | file://fix-config-libnet.patch \ |
10 | file://fix-invalid-ownership.patch \ | 7 | file://fix-invalid-ownership.patch \ |
11 | file://syslog-ng.service-the-syslog-ng-service.patch \ | 8 | file://syslog-ng.service-the-syslog-ng-service.patch \ |
12 | file://0001-syslog-ng-fix-segment-fault-during-service-start.patch \ | 9 | file://0001-syslog-ng-fix-segment-fault-during-service-start.patch \ |
10 | file://syslog-ng-tmp.conf \ | ||
13 | " | 11 | " |
14 | 12 | ||
15 | SRC_URI[md5sum] = "aa79bc13d9fd925aa5fb9516e87aacd3" | 13 | SRC_URI[md5sum] = "aa79bc13d9fd925aa5fb9516e87aacd3" |