quagga: add subpkgs to RDEPENDS
PATCH 1/2 quagga: add subpkgs to RDEPENDS
We need subpkgs to start quagga, so add them to RDEPENDS.
--- meta-networking/recipes-protocols/quagga/quagga.inc | 2 ++ 1 file changed, 2 insertions(+)
meta-networking/recipes-protocols/quagga/quagga.inc +2 -0
@@ -115,6 +115,8 @@ PACKAGE_BEFORE_PN = "${PN}-ospfd ${PN}-ospf6d ${PN}-babeld ${PN}-bgpd \ ${PN}-ripd ${PN}-ripngd ${PN}-isisd \ ${PN}-ospfclient ${PN}-watchquagga" +RDEPENDS_${PN} += "${PN}-babeld ${PN}-bgpd ${PN}-isisd ${PN}-ospf6d ${PN}-ospfd ${PN}-ripd ${PN}-ripngd" + FILES_${PN}-ospfd = "${sbindir}/ospfd ${libdir}/libospf.so.*" FILES_${PN}-ospf6d = "${sbindir}/ospf6d" FILES_${PN}-babeld = "${sbindir}/babeld"
Signature · 1 line
1.9.1
PATCH 2/2 quagga: add systemd service file
Add systemd service for quagga.
--- .../recipes-protocols/quagga/files/babeld.service | 14 +++++++ .../recipes-protocols/quagga/files/bgpd.service | 14 +++++++ .../recipes-protocols/quagga/files/isisd.service | 14 +++++++ .../recipes-protocols/quagga/files/ospf6d.service | 14 +++++++ .../recipes-protocols/quagga/files/ospfd.service | 14 +++++++ .../recipes-protocols/quagga/files/ripd.service | 14 +++++++ .../recipes-protocols/quagga/files/ripngd.service | 14 +++++++ .../recipes-protocols/quagga/files/zebra.service | 15 +++++++ .../recipes-protocols/quagga/quagga.inc | 49 +++++++++++++++++++++- 9 files changed, 161 insertions(+), 1 deletion(-) create mode 100644 meta-networking/recipes-protocols/quagga/files/babeld.service create mode 100644 meta-networking/recipes-protocols/quagga/files/bgpd.service create mode 100644 meta-networking/recipes-protocols/quagga/files/isisd.service create mode 100644 meta-networking/recipes-protocols/quagga/files/ospf6d.service create mode 100644 meta-networking/recipes-protocols/quagga/files/ospfd.service create mode 100644 meta-networking/recipes-protocols/quagga/files/ripd.service create mode 100644 meta-networking/recipes-protocols/quagga/files/ripngd.service create mode 100644 meta-networking/recipes-protocols/quagga/files/zebra.service
meta-networking/recipes-protocols/quagga/files/babeld.service new file +14 -0
@@ -0,0 +1,14 @@ +[Unit] +Description=Babel routing daemon +BindTo=zebra.service +After=zebra.service +ConditionPathExists=@SYSCONFDIR@/quagga/babeld.conf + +[Service] +Type=forking +EnvironmentFile=-@SYSCONFDIR@/default/quagga +ExecStart=@SBINDIR@/babeld -d $babeld_options -f /etc/quagga/babeld.conf +Restart=on-abort + +[Install] +WantedBy=multi-user.target
meta-networking/recipes-protocols/quagga/files/bgpd.service new file +14 -0
@@ -0,0 +1,14 @@ +[Unit] +Description=BGP routing daemon +BindTo=zebra.service +After=zebra.service +ConditionPathExists=@SYSCONFDIR@/quagga/bgpd.conf + +[Service] +Type=forking +EnvironmentFile=-@SYSCONFDIR@/default/quagga +ExecStart=@SBINDIR@/bgpd -d $bgpd_options -f /etc/quagga/bgpd.conf +Restart=on-abort + +[Install] +WantedBy=multi-user.target
meta-networking/recipes-protocols/quagga/files/isisd.service new file +14 -0
@@ -0,0 +1,14 @@ +[Unit] +Description=IS-IS routing daemon +BindTo=zebra.service +After=zebra.service +ConditionPathExists=@SYSCONFDIR@/quagga/isisd.conf + +[Service] +Type=forking +EnvironmentFile=-@SYSCONFDIR@/default/quagga +ExecStart=@SBINDIR@/isisd -d $isisd_options -f /etc/quagga/isisd.conf +Restart=on-abort + +[Install] +WantedBy=multi-user.target
meta-networking/recipes-protocols/quagga/files/ospf6d.service new file +14 -0
@@ -0,0 +1,14 @@ +[Unit] +Description=OSPF routing daemon for IPv6 +BindTo=zebra.service +After=zebra.service +ConditionPathExists=@SYSCONFDIR@/quagga/ospf6d.conf + +[Service] +Type=forking +EnvironmentFile=-@SYSCONFDIR@/default/quagga +ExecStart=@SBINDIR@/ospf6d -d $ospf6d_options -f /etc/quagga/ospf6d.conf +Restart=on-abort + +[Install] +WantedBy=multi-user.target
meta-networking/recipes-protocols/quagga/files/ospfd.service new file +14 -0
@@ -0,0 +1,14 @@ +[Unit] +Description=OSPF routing daemon +BindTo=zebra.service +After=zebra.service +ConditionPathExists=@SYSCONFDIR@/quagga/ospfd.conf + +[Service] +Type=forking +EnvironmentFile=-@SYSCONFDIR@/default/quagga +ExecStart=@SBINDIR@/ospfd -d $ospfd_options -f /etc/quagga/ospfd.conf +Restart=on-abort + +[Install] +WantedBy=multi-user.target
meta-networking/recipes-protocols/quagga/files/ripd.service new file +14 -0
@@ -0,0 +1,14 @@ +[Unit] +Description=RIP routing daemon +BindTo=zebra.service +After=zebra.service +ConditionPathExists=@SYSCONFDIR@/quagga/ripd.conf + +[Service] +Type=forking +EnvironmentFile=-@SYSCONFDIR@/default/quagga +ExecStart=@SBINDIR@/ripd -d $ripd_options -f /etc/quagga/ripd.conf +Restart=on-abort + +[Install] +WantedBy=multi-user.target
meta-networking/recipes-protocols/quagga/files/ripngd.service new file +14 -0
@@ -0,0 +1,14 @@ +i[Unit] +Description=RIP routing daemon for IPv6 +BindTo=zebra.service +After=zebra.service +ConditionPathExists=@SYSCONFDIR@/quagga/ripngd.conf + +[Service] +Type=forking +EnvironmentFile=-@SYSCONFDIR@/default/quagga +ExecStart=@SBINDIR@/ripngd -d $ripngd_options -f /etc/quagga/ripngd.conf +Restart=on-abort + +[Install] +WantedBy=multi-user.target
meta-networking/recipes-protocols/quagga/files/zebra.service new file +15 -0
@@ -0,0 +1,15 @@ +[Unit] +Description=GNU Zebra routing manager +Wants=network.target +Before=network.target +ConditionPathExists=@SYSCONFDIR@/quagga/zebra.conf + +[Service] +Type=forking +EnvironmentFile=-@SYSCONFDIR@/default/quagga +ExecStartPre=@BASE_SBINDIR@/ip route flush proto zebra +ExecStart=@SBINDIR@/zebra -d $zebra_options -f /etc/quagga/zebra.conf +Restart=on-abort + +[Install] +WantedBy=multi-user.target
meta-networking/recipes-protocols/quagga/quagga.inc +48 -1
67 lines not on this page · raw message
Signature · 1 line
1.9.1
В письме от 29 сентября 2014 09:19:52 пользователь Chong Lu написал:
Quoted 2 lines
+RDEPENDS_${PN} += "${PN}-babeld ${PN}-bgpd ${PN}-isisd ${PN}-ospf6d ${PN}-ospfd ${PN}-ripd ${PN}-ripngd" +
IMO the whole point of split daemon packaging was to be able to choose which protocols you want and which you don't. So forcing an RDEPENDS is wrong if you want to stay with per-daemon packages. I think RRECOMMENDS is better here.
Quoted 6 lines · Roman Khimov
В письме от 29 сентября 2014 09:19:52 пользователь Chong Lu написал:
Quoted 2 lines
+RDEPENDS_${PN} += "${PN}-babeld ${PN}-bgpd ${PN}-isisd ${PN}-ospf6d ${PN}-ospfd ${PN}-ripd ${PN}-ripngd" +
IMO the whole point of split daemon packaging was to be able to choose which protocols you want and which you don't. So forcing an RDEPENDS is wrong if you want to stay with per-daemon packages. I think RRECOMMENDS is better here.
OK. Thanks. I will resend a V2.
Best Regards
Chong