diff options
author | Roy.Li <rongqing.li@windriver.com> | 2013-08-16 10:23:59 +0800 |
---|---|---|
committer | Joe MacDonald <joe@deserted.net> | 2013-08-16 11:00:19 -0400 |
commit | d4571b3d94d999ad54d8965f0d049dcfd34da504 (patch) | |
tree | cb6751906d2e182a7f18db7e4e72065a74de02e6 /meta-networking | |
parent | 813368a9274727591c2d7c4bddac1975df64464c (diff) | |
download | meta-openembedded-d4571b3d94d999ad54d8965f0d049dcfd34da504.tar.gz |
quagga: two fixes
1. quagga should depend on iproute2, since ip from busybox is not sufficient
2. fix a typOS(should chmod, not chown)
Signed-off-by: Roy.Li <rongqing.li@windriver.com>
Signed-off-by: Joe MacDonald <joe@deserted.net>
Diffstat (limited to 'meta-networking')
-rw-r--r-- | meta-networking/recipes-protocols/quagga/quagga.inc | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/meta-networking/recipes-protocols/quagga/quagga.inc b/meta-networking/recipes-protocols/quagga/quagga.inc index f5489c692..89b9f7a3c 100644 --- a/meta-networking/recipes-protocols/quagga/quagga.inc +++ b/meta-networking/recipes-protocols/quagga/quagga.inc | |||
@@ -5,7 +5,7 @@ Unix platforms, particularly FreeBSD, Linux, Solaris and NetBSD. \ | |||
5 | Quagga is a fork of GNU Zebra which was developed by Kunihiro \ | 5 | Quagga is a fork of GNU Zebra which was developed by Kunihiro \ |
6 | Ishiguro. The Quagga tree aims to build a more involved community \ | 6 | Ishiguro. The Quagga tree aims to build a more involved community \ |
7 | around Quagga than the current centralised model of GNU Zebra." | 7 | around Quagga than the current centralised model of GNU Zebra." |
8 | HOMEPAGE = "http://www.quagga.net/" | 8 | HOMEPAGE = "http://www.nongnu.org/quagga/" |
9 | SECTION = "network" | 9 | SECTION = "network" |
10 | LICENSE = "GPL-2.0 & LGPL-2.0" | 10 | LICENSE = "GPL-2.0 & LGPL-2.0" |
11 | DEPENDS = "readline ncurses perl-native" | 11 | DEPENDS = "readline ncurses perl-native" |
@@ -17,6 +17,9 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=8ca43cbc842c2336e835926c2166c28b \ | |||
17 | 17 | ||
18 | INC_PR = "r2" | 18 | INC_PR = "r2" |
19 | 19 | ||
20 | # the "ip" command from busybox is not sufficient (flush by protocol flushes all routes) | ||
21 | RDEPENDS_${PN} += "iproute2" | ||
22 | |||
20 | QUAGGASUBDIR = "" | 23 | QUAGGASUBDIR = "" |
21 | # ${QUAGGASUBDIR} is deal with old versions. Set to "/attic" for old | 24 | # ${QUAGGASUBDIR} is deal with old versions. Set to "/attic" for old |
22 | # versions and leave it empty for recent versions. | 25 | # versions and leave it empty for recent versions. |
@@ -128,11 +131,11 @@ pkg_postinst_${PN} () { | |||
128 | if [ "x$D" != "x" ] ; then | 131 | if [ "x$D" != "x" ] ; then |
129 | exit 1 | 132 | exit 1 |
130 | fi | 133 | fi |
131 | for f in bgpd babeld isisd ospfd ripngd zebra ripd ospf6d; do touch ${sysconfdir}/quagga/$f.conf; done | 134 | for f in bgpd vtysh babeld isisd ospfd ripngd zebra ripd ospf6d; do touch ${sysconfdir}/quagga/$f.conf; done |
132 | chown quagga:quaggavty ${sysconfdir}/quagga | 135 | chown quagga:quaggavty ${sysconfdir}/quagga |
133 | chown quagga:quagga ${sysconfdir}/quagga/*.conf | 136 | chown quagga:quagga ${sysconfdir}/quagga/*.conf |
134 | chmod 750 ${sysconfdir}/quagga | 137 | chmod 750 ${sysconfdir}/quagga |
135 | chown 640 ${sysconfdir}/quagga/*.conf | 138 | chmod 640 ${sysconfdir}/quagga/*.conf |
136 | if [ -z "$D" ] && [ -e /etc/init.d/populate-volatile.sh ] ; then | 139 | if [ -z "$D" ] && [ -e /etc/init.d/populate-volatile.sh ] ; then |
137 | ${sysconfdir}/init.d/populate-volatile.sh update | 140 | ${sysconfdir}/init.d/populate-volatile.sh update |
138 | fi | 141 | fi |