diff options
| author | Ian Ray <ian.ray@ge.com> | 2016-05-30 13:59:28 +0300 |
|---|---|---|
| committer | Armin Kuster <akuster808@gmail.com> | 2016-11-03 08:15:57 -0700 |
| commit | 5882ba7f378acc75385e8a3ab00a6bdbc7a0ef93 (patch) | |
| tree | 74f137f88c69484f0dcb771872ff6c6bd5e5f2a5 /meta-oe | |
| parent | 851a064b53dca3b14dd33eaaaca9573b1a36bf0e (diff) | |
| download | meta-openembedded-5882ba7f378acc75385e8a3ab00a6bdbc7a0ef93.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>
Signed-off-by: Denys Dmytriyenko <denys@ti.com>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Diffstat (limited to 'meta-oe')
| -rw-r--r-- | meta-oe/recipes-support/syslog-ng/syslog-ng.inc | 9 |
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 4e0f697bce..898e9c2a35 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 | ||
| 63 | do_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 | |||
| 63 | do_install_append() { | 69 | do_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 | ||
| 78 | FILES_${PN} += "${datadir}/include/scl/ ${datadir}/xsd ${datadir}/tools" | 81 | FILES_${PN} += "${datadir}/include/scl/ ${datadir}/xsd ${datadir}/tools" |
