mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-06-05 02:50:46 +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"
|
||||
|
||||
inherit autotools
|
||||
inherit autotools systemd
|
||||
|
||||
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-pcre \
|
||||
--disable-sql \
|
||||
--enable-systemd \
|
||||
--with-systemdsystemunitdir=${base_libdir}/systemd/system \
|
||||
"
|
||||
|
||||
do_configure_prepend() {
|
||||
@@ -42,6 +44,14 @@ do_install_append() {
|
||||
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} \
|
||||
${sysconfdir} ${sharedstatedir} ${localstatedir} \
|
||||
${base_bindir}/* ${base_sbindir}/* \
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
require syslog-ng.inc
|
||||
PR = "${INC_PR}.0"
|
||||
PR = "${INC_PR}.1"
|
||||
|
||||
SRC_URI += " \
|
||||
file://syslog-ng.conf \
|
||||
|
||||
Reference in New Issue
Block a user