summaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-support/syslog-ng
diff options
context:
space:
mode:
authorIan Ray <ian.ray@ge.com>2016-05-30 13:59:28 +0300
committerMartin Jansa <Martin.Jansa@gmail.com>2016-06-08 14:55:28 +0200
commit4594d24bc082d326993e7fd545ca4ac722749953 (patch)
tree1944d22969e9be8c458d7f1639c152b137e0397e /meta-oe/recipes-support/syslog-ng
parentb27938bc7ac6ab9eb2c31db15ec787c7b4a5a55d (diff)
downloadmeta-openembedded-4594d24bc082d326993e7fd545ca4ac722749953.tar.gz
syslog-ng: expand service file @variables@ earlier
Move variable expansion of @SBINDIR@, @LOCALSTATEDIR@, and @BASEBINDIR@ earlier during install, to before the systemd service file is installed by an automake rule. Signed-off-by: Ian Ray <ian.ray@ge.com>
Diffstat (limited to 'meta-oe/recipes-support/syslog-ng')
-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"