diff options
author | Chong.Lu@windriver.com <Chong.Lu@windriver.com> | 2014-10-16 14:31:13 +0800 |
---|---|---|
committer | Joe MacDonald <joe_macdonald@mentor.com> | 2014-10-21 14:23:25 -0400 |
commit | d6f4b66e3fdefb309002f5ffc9aa8d7de60501f3 (patch) | |
tree | cd46a888199ebddcc8d38551b2b9293c45c93237 /meta-networking/recipes-protocols/quagga/quagga.inc | |
parent | fd7b22c3f503e677c801d19a7dd1074d6cb66730 (diff) | |
download | meta-openembedded-d6f4b66e3fdefb309002f5ffc9aa8d7de60501f3.tar.gz |
quagga: remove watchquagga when start with systemd
When we start with sysvinit, watchquagga uses quagga init script to
monitor zebra daemon. But we need not do this in systemd environment.
Signed-off-by: Chong Lu <Chong.Lu@windriver.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Joe MacDonald <joe_macdonald@mentor.com>
Diffstat (limited to 'meta-networking/recipes-protocols/quagga/quagga.inc')
-rw-r--r-- | meta-networking/recipes-protocols/quagga/quagga.inc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/meta-networking/recipes-protocols/quagga/quagga.inc b/meta-networking/recipes-protocols/quagga/quagga.inc index 9bdd4d590..2c0817b83 100644 --- a/meta-networking/recipes-protocols/quagga/quagga.inc +++ b/meta-networking/recipes-protocols/quagga/quagga.inc | |||
@@ -62,7 +62,7 @@ EXTRA_OECONF = "--sysconfdir=${sysconfdir}/quagga \ | |||
62 | --enable-exampledir=${docdir}/quagga/examples/ \ | 62 | --enable-exampledir=${docdir}/quagga/examples/ \ |
63 | --enable-vtysh \ | 63 | --enable-vtysh \ |
64 | --enable-isisd \ | 64 | --enable-isisd \ |
65 | --enable-watchquagga \ | 65 | ${@base_contains('DISTRO_FEATURES', 'sysvinit', '--enable-watchquagga', '--disable-watchquagga', d)} \ |
66 | --enable-ospf-te \ | 66 | --enable-ospf-te \ |
67 | --enable-opaque-lsa \ | 67 | --enable-opaque-lsa \ |
68 | --enable-ipv6 \ | 68 | --enable-ipv6 \ |
@@ -135,6 +135,7 @@ do_install () { | |||
135 | # Remove sysinit script if sysvinit is not in DISTRO_FEATURES | 135 | # Remove sysinit script if sysvinit is not in DISTRO_FEATURES |
136 | if ${@bb.utils.contains('DISTRO_FEATURES', 'sysvinit', 'false', 'true', d)}; then | 136 | if ${@bb.utils.contains('DISTRO_FEATURES', 'sysvinit', 'false', 'true', d)}; then |
137 | rm -rf ${D}${sysconfdir}/init.d/ | 137 | rm -rf ${D}${sysconfdir}/init.d/ |
138 | rm -f ${D}${sysconfdir}/default/watchquagga | ||
138 | fi | 139 | fi |
139 | 140 | ||
140 | install -d ${D}${systemd_unitdir}/system | 141 | install -d ${D}${systemd_unitdir}/system |
@@ -160,7 +161,7 @@ pkg_postinst_${PN} () { | |||
160 | # Split into a main package and separate per-protocol packages | 161 | # Split into a main package and separate per-protocol packages |
161 | PACKAGE_BEFORE_PN = "${PN}-ospfd ${PN}-ospf6d ${PN}-babeld ${PN}-bgpd \ | 162 | PACKAGE_BEFORE_PN = "${PN}-ospfd ${PN}-ospf6d ${PN}-babeld ${PN}-bgpd \ |
162 | ${PN}-ripd ${PN}-ripngd ${PN}-isisd \ | 163 | ${PN}-ripd ${PN}-ripngd ${PN}-isisd \ |
163 | ${PN}-ospfclient ${PN}-watchquagga" | 164 | ${PN}-ospfclient ${@base_contains('DISTRO_FEATURES', 'sysvinit', '${PN}-watchquagga', '', d)}" |
164 | 165 | ||
165 | RDEPENDS_${PN} += "${PN}-babeld ${PN}-bgpd ${PN}-isisd ${PN}-ospf6d ${PN}-ospfd ${PN}-ripd ${PN}-ripngd" | 166 | RDEPENDS_${PN} += "${PN}-babeld ${PN}-bgpd ${PN}-isisd ${PN}-ospf6d ${PN}-ospfd ${PN}-ripd ${PN}-ripngd" |
166 | 167 | ||