summaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-support/syslog-ng
diff options
context:
space:
mode:
authorMartin Jansa <Martin.Jansa@gmail.com>2011-12-05 11:49:26 +0100
committerMartin Jansa <Martin.Jansa@gmail.com>2011-12-06 11:21:10 +0100
commitfe86b9e787a474dbe4a085ce88e0546cba740d3a (patch)
treec7f934363356549dc1ea715cbe4a8ca3cc2a011a /meta-oe/recipes-support/syslog-ng
parentaf50ba2d39e55bbf3e603353e73d19953415c267 (diff)
downloadmeta-openembedded-fe86b9e787a474dbe4a085ce88e0546cba740d3a.tar.gz
syslog-ng: enable systemd support
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Diffstat (limited to 'meta-oe/recipes-support/syslog-ng')
-rw-r--r--meta-oe/recipes-support/syslog-ng/syslog-ng.inc12
-rw-r--r--meta-oe/recipes-support/syslog-ng/syslog-ng_3.2.5.bb2
2 files changed, 12 insertions, 2 deletions
diff --git a/meta-oe/recipes-support/syslog-ng/syslog-ng.inc b/meta-oe/recipes-support/syslog-ng/syslog-ng.inc
index c57c5abf7..3bbebec71 100644
--- a/meta-oe/recipes-support/syslog-ng/syslog-ng.inc
+++ b/meta-oe/recipes-support/syslog-ng/syslog-ng.inc
@@ -9,7 +9,7 @@ RDEPENDS_${PN} += " ${@base_conditional("ONLINE_PACKAGE_MANAGEMENT", "none", "",
9 9
10INC_PR = "r6" 10INC_PR = "r6"
11 11
12inherit autotools 12inherit autotools systemd
13 13
14SRC_URI = "http://www.balabit.com/downloads/files/syslog-ng/sources/${PV}/source/${PN}_${PV}.tar.gz" 14SRC_URI = "http://www.balabit.com/downloads/files/syslog-ng/sources/${PV}/source/${PN}_${PV}.tar.gz"
15 15
@@ -25,6 +25,8 @@ EXTRA_OECONF = " \
25 --disable-linux-caps \ 25 --disable-linux-caps \
26 --disable-pcre \ 26 --disable-pcre \
27 --disable-sql \ 27 --disable-sql \
28 --enable-systemd \
29 --with-systemdsystemunitdir=${base_libdir}/systemd/system \
28" 30"
29 31
30do_configure_prepend() { 32do_configure_prepend() {
@@ -42,6 +44,14 @@ do_install_append() {
42 install -m 755 ${WORKDIR}/initscript ${D}/${sysconfdir}/init.d/syslog.${PN} 44 install -m 755 ${WORKDIR}/initscript ${D}/${sysconfdir}/init.d/syslog.${PN}
43} 45}
44 46
47SYSTEMD_PACKAGES = "${PN}-systemd"
48SYSTEMD_SERVICE = "${PN}.service"
49
50PACKAGES =+ "${PN}-systemd"
51
52FILES_${PN}-systemd += "${base_libdir}/systemd"
53RDEPENDS_${PN}-systemd += "${PN}"
54
45FILES_${PN} = "${bindir}/* ${sbindir}/* ${libexecdir}/* ${libdir}/lib*${SOLIBS} \ 55FILES_${PN} = "${bindir}/* ${sbindir}/* ${libexecdir}/* ${libdir}/lib*${SOLIBS} \
46 ${sysconfdir} ${sharedstatedir} ${localstatedir} \ 56 ${sysconfdir} ${sharedstatedir} ${localstatedir} \
47 ${base_bindir}/* ${base_sbindir}/* \ 57 ${base_bindir}/* ${base_sbindir}/* \
diff --git a/meta-oe/recipes-support/syslog-ng/syslog-ng_3.2.5.bb b/meta-oe/recipes-support/syslog-ng/syslog-ng_3.2.5.bb
index ff1e2479e..62faa83b2 100644
--- a/meta-oe/recipes-support/syslog-ng/syslog-ng_3.2.5.bb
+++ b/meta-oe/recipes-support/syslog-ng/syslog-ng_3.2.5.bb
@@ -1,5 +1,5 @@
1require syslog-ng.inc 1require syslog-ng.inc
2PR = "${INC_PR}.0" 2PR = "${INC_PR}.1"
3 3
4SRC_URI += " \ 4SRC_URI += " \
5 file://syslog-ng.conf \ 5 file://syslog-ng.conf \