summaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-support/syslog-ng/syslog-ng.inc
diff options
context:
space:
mode:
Diffstat (limited to 'meta-oe/recipes-support/syslog-ng/syslog-ng.inc')
-rw-r--r--meta-oe/recipes-support/syslog-ng/syslog-ng.inc9
1 files changed, 6 insertions, 3 deletions
diff --git a/meta-oe/recipes-support/syslog-ng/syslog-ng.inc b/meta-oe/recipes-support/syslog-ng/syslog-ng.inc
index 4e0f697bc..898e9c2a3 100644
--- a/meta-oe/recipes-support/syslog-ng/syslog-ng.inc
+++ b/meta-oe/recipes-support/syslog-ng/syslog-ng.inc
@@ -60,6 +60,12 @@ do_configure_prepend() {
60 eval "${@bb.utils.contains('DISTRO_FEATURES', 'largefile', '', 'sed -i -e "s/-D_LARGEFILE_SOURCE//" -e "s/-D_FILE_OFFSET_BITS=64//" ${S}/configure.in', d)}" 60 eval "${@bb.utils.contains('DISTRO_FEATURES', 'largefile', '', 'sed -i -e "s/-D_LARGEFILE_SOURCE//" -e "s/-D_FILE_OFFSET_BITS=64//" ${S}/configure.in', d)}"
61} 61}
62 62
63do_install_prepend() {
64 sed -i -e 's,@SBINDIR@,${sbindir},g' ${S}/contrib/systemd/*.service
65 sed -i -e 's,@LOCALSTATEDIR@,${localstatedir},g' ${S}/contrib/systemd/*.service
66 sed -i -e 's,@BASEBINDIR@,${base_bindir},g' ${S}/contrib/systemd/*.service
67}
68
63do_install_append() { 69do_install_append() {
64 install -d ${D}/${sysconfdir}/${BPN} 70 install -d ${D}/${sysconfdir}/${BPN}
65 install ${WORKDIR}/syslog-ng.conf ${D}${sysconfdir}/${BPN}/${BPN}.conf 71 install ${WORKDIR}/syslog-ng.conf ${D}${sysconfdir}/${BPN}/${BPN}.conf
@@ -70,9 +76,6 @@ do_install_append() {
70 install -d ${D}/${localstatedir}/lib/${BPN} 76 install -d ${D}/${localstatedir}/lib/${BPN}
71 # Remove /var/run as it is created on startup 77 # Remove /var/run as it is created on startup
72 rm -rf ${D}${localstatedir}/run 78 rm -rf ${D}${localstatedir}/run
73 sed -i -e 's,@SBINDIR@,${sbindir},g' ${S}/contrib/systemd/*.service
74 sed -i -e 's,@LOCALSTATEDIR@,${localstatedir},g' ${S}/contrib/systemd/*.service
75 sed -i -e 's,@BASEBINDIR@,${base_bindir},g' ${S}/contrib/systemd/*.service
76} 79}
77 80
78FILES_${PN} += "${datadir}/include/scl/ ${datadir}/xsd ${datadir}/tools" 81FILES_${PN} += "${datadir}/include/scl/ ${datadir}/xsd ${datadir}/tools"