diff options
author | Martin Jansa <Martin.Jansa@gmail.com> | 2011-12-05 11:49:26 +0100 |
---|---|---|
committer | Martin Jansa <Martin.Jansa@gmail.com> | 2011-12-06 11:21:10 +0100 |
commit | fe86b9e787a474dbe4a085ce88e0546cba740d3a (patch) | |
tree | c7f934363356549dc1ea715cbe4a8ca3cc2a011a /meta-oe/recipes-support/syslog-ng | |
parent | af50ba2d39e55bbf3e603353e73d19953415c267 (diff) | |
download | meta-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.inc | 12 | ||||
-rw-r--r-- | meta-oe/recipes-support/syslog-ng/syslog-ng_3.2.5.bb | 2 |
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 | ||
10 | INC_PR = "r6" | 10 | INC_PR = "r6" |
11 | 11 | ||
12 | inherit autotools | 12 | inherit autotools systemd |
13 | 13 | ||
14 | SRC_URI = "http://www.balabit.com/downloads/files/syslog-ng/sources/${PV}/source/${PN}_${PV}.tar.gz" | 14 | SRC_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 | ||
30 | do_configure_prepend() { | 32 | do_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 | ||
47 | SYSTEMD_PACKAGES = "${PN}-systemd" | ||
48 | SYSTEMD_SERVICE = "${PN}.service" | ||
49 | |||
50 | PACKAGES =+ "${PN}-systemd" | ||
51 | |||
52 | FILES_${PN}-systemd += "${base_libdir}/systemd" | ||
53 | RDEPENDS_${PN}-systemd += "${PN}" | ||
54 | |||
45 | FILES_${PN} = "${bindir}/* ${sbindir}/* ${libexecdir}/* ${libdir}/lib*${SOLIBS} \ | 55 | FILES_${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 @@ | |||
1 | require syslog-ng.inc | 1 | require syslog-ng.inc |
2 | PR = "${INC_PR}.0" | 2 | PR = "${INC_PR}.1" |
3 | 3 | ||
4 | SRC_URI += " \ | 4 | SRC_URI += " \ |
5 | file://syslog-ng.conf \ | 5 | file://syslog-ng.conf \ |