mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-07-16 16:27:27 +00:00
syslog-ng: enable systemd support
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
This commit is contained in:
@@ -9,7 +9,7 @@ RDEPENDS_${PN} += " ${@base_conditional("ONLINE_PACKAGE_MANAGEMENT", "none", "",
|
|||||||
|
|
||||||
INC_PR = "r6"
|
INC_PR = "r6"
|
||||||
|
|
||||||
inherit autotools
|
inherit autotools systemd
|
||||||
|
|
||||||
SRC_URI = "http://www.balabit.com/downloads/files/syslog-ng/sources/${PV}/source/${PN}_${PV}.tar.gz"
|
SRC_URI = "http://www.balabit.com/downloads/files/syslog-ng/sources/${PV}/source/${PN}_${PV}.tar.gz"
|
||||||
|
|
||||||
@@ -25,6 +25,8 @@ EXTRA_OECONF = " \
|
|||||||
--disable-linux-caps \
|
--disable-linux-caps \
|
||||||
--disable-pcre \
|
--disable-pcre \
|
||||||
--disable-sql \
|
--disable-sql \
|
||||||
|
--enable-systemd \
|
||||||
|
--with-systemdsystemunitdir=${base_libdir}/systemd/system \
|
||||||
"
|
"
|
||||||
|
|
||||||
do_configure_prepend() {
|
do_configure_prepend() {
|
||||||
@@ -42,6 +44,14 @@ do_install_append() {
|
|||||||
install -m 755 ${WORKDIR}/initscript ${D}/${sysconfdir}/init.d/syslog.${PN}
|
install -m 755 ${WORKDIR}/initscript ${D}/${sysconfdir}/init.d/syslog.${PN}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
SYSTEMD_PACKAGES = "${PN}-systemd"
|
||||||
|
SYSTEMD_SERVICE = "${PN}.service"
|
||||||
|
|
||||||
|
PACKAGES =+ "${PN}-systemd"
|
||||||
|
|
||||||
|
FILES_${PN}-systemd += "${base_libdir}/systemd"
|
||||||
|
RDEPENDS_${PN}-systemd += "${PN}"
|
||||||
|
|
||||||
FILES_${PN} = "${bindir}/* ${sbindir}/* ${libexecdir}/* ${libdir}/lib*${SOLIBS} \
|
FILES_${PN} = "${bindir}/* ${sbindir}/* ${libexecdir}/* ${libdir}/lib*${SOLIBS} \
|
||||||
${sysconfdir} ${sharedstatedir} ${localstatedir} \
|
${sysconfdir} ${sharedstatedir} ${localstatedir} \
|
||||||
${base_bindir}/* ${base_sbindir}/* \
|
${base_bindir}/* ${base_sbindir}/* \
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
require syslog-ng.inc
|
require syslog-ng.inc
|
||||||
PR = "${INC_PR}.0"
|
PR = "${INC_PR}.1"
|
||||||
|
|
||||||
SRC_URI += " \
|
SRC_URI += " \
|
||||||
file://syslog-ng.conf \
|
file://syslog-ng.conf \
|
||||||
|
|||||||
Reference in New Issue
Block a user