mirror of
git://git.openembedded.org/meta-openembedded
synced 2026-01-01 13:58:06 +00:00
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>
This commit is contained in:
parent
b27938bc7a
commit
4594d24bc0
|
|
@ -60,6 +60,12 @@ do_configure_prepend() {
|
|||
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)}"
|
||||
}
|
||||
|
||||
do_install_prepend() {
|
||||
sed -i -e 's,@SBINDIR@,${sbindir},g' ${S}/contrib/systemd/*.service
|
||||
sed -i -e 's,@LOCALSTATEDIR@,${localstatedir},g' ${S}/contrib/systemd/*.service
|
||||
sed -i -e 's,@BASEBINDIR@,${base_bindir},g' ${S}/contrib/systemd/*.service
|
||||
}
|
||||
|
||||
do_install_append() {
|
||||
install -d ${D}/${sysconfdir}/${BPN}
|
||||
install ${WORKDIR}/syslog-ng.conf ${D}${sysconfdir}/${BPN}/${BPN}.conf
|
||||
|
|
@ -70,9 +76,6 @@ do_install_append() {
|
|||
install -d ${D}/${localstatedir}/lib/${BPN}
|
||||
# Remove /var/run as it is created on startup
|
||||
rm -rf ${D}${localstatedir}/run
|
||||
sed -i -e 's,@SBINDIR@,${sbindir},g' ${S}/contrib/systemd/*.service
|
||||
sed -i -e 's,@LOCALSTATEDIR@,${localstatedir},g' ${S}/contrib/systemd/*.service
|
||||
sed -i -e 's,@BASEBINDIR@,${base_bindir},g' ${S}/contrib/systemd/*.service
|
||||
}
|
||||
|
||||
FILES_${PN} += "${datadir}/include/scl/ ${datadir}/xsd ${datadir}/tools"
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user