diff options
Diffstat (limited to 'meta-networking/recipes-protocols/quagga/quagga.inc')
-rw-r--r-- | meta-networking/recipes-protocols/quagga/quagga.inc | 78 |
1 files changed, 39 insertions, 39 deletions
diff --git a/meta-networking/recipes-protocols/quagga/quagga.inc b/meta-networking/recipes-protocols/quagga/quagga.inc index 3b7a425bba..b3574a7ff6 100644 --- a/meta-networking/recipes-protocols/quagga/quagga.inc +++ b/meta-networking/recipes-protocols/quagga/quagga.inc | |||
@@ -18,7 +18,7 @@ DEPENDS += "${@bb.utils.contains('DISTRO_FEATURES', 'snmp', 'net-snmp', '', d)}" | |||
18 | SNMP_CONF="${@bb.utils.contains('DISTRO_FEATURES', 'snmp', '--enable-snmp', '', d)}" | 18 | SNMP_CONF="${@bb.utils.contains('DISTRO_FEATURES', 'snmp', '--enable-snmp', '', d)}" |
19 | 19 | ||
20 | # the "ip" command from busybox is not sufficient (flush by protocol flushes all routes) | 20 | # the "ip" command from busybox is not sufficient (flush by protocol flushes all routes) |
21 | RDEPENDS_${PN} += "iproute2" | 21 | RDEPENDS:${PN} += "iproute2" |
22 | 22 | ||
23 | SRC_URI = "https://github.com/Quagga/quagga/releases/download/quagga-${PV}/quagga-${PV}.tar.gz \ | 23 | SRC_URI = "https://github.com/Quagga/quagga/releases/download/quagga-${PV}/quagga-${PV}.tar.gz \ |
24 | file://quagga.init \ | 24 | file://quagga.init \ |
@@ -45,13 +45,13 @@ inherit autotools update-rc.d useradd systemd pkgconfig multilib_header update-a | |||
45 | CFLAGS += "-fcommon" | 45 | CFLAGS += "-fcommon" |
46 | 46 | ||
47 | SYSTEMD_PACKAGES = "${PN} ${PN}-bgpd ${PN}-isisd ${PN}-ospf6d ${PN}-ospfd ${PN}-ripd ${PN}-ripngd" | 47 | SYSTEMD_PACKAGES = "${PN} ${PN}-bgpd ${PN}-isisd ${PN}-ospf6d ${PN}-ospfd ${PN}-ripd ${PN}-ripngd" |
48 | SYSTEMD_SERVICE_${PN}-bgpd = "bgpd.service" | 48 | SYSTEMD_SERVICE:${PN}-bgpd = "bgpd.service" |
49 | SYSTEMD_SERVICE_${PN}-isisd = "isisd.service" | 49 | SYSTEMD_SERVICE:${PN}-isisd = "isisd.service" |
50 | SYSTEMD_SERVICE_${PN}-ospf6d = "ospf6d.service" | 50 | SYSTEMD_SERVICE:${PN}-ospf6d = "ospf6d.service" |
51 | SYSTEMD_SERVICE_${PN}-ospfd = "ospfd.service" | 51 | SYSTEMD_SERVICE:${PN}-ospfd = "ospfd.service" |
52 | SYSTEMD_SERVICE_${PN}-ripd = "ripd.service" | 52 | SYSTEMD_SERVICE:${PN}-ripd = "ripd.service" |
53 | SYSTEMD_SERVICE_${PN}-ripngd = "ripngd.service" | 53 | SYSTEMD_SERVICE:${PN}-ripngd = "ripngd.service" |
54 | SYSTEMD_SERVICE_${PN} = "zebra.service" | 54 | SYSTEMD_SERVICE:${PN} = "zebra.service" |
55 | 55 | ||
56 | EXTRA_OECONF = "--sysconfdir=${sysconfdir}/quagga \ | 56 | EXTRA_OECONF = "--sysconfdir=${sysconfdir}/quagga \ |
57 | --localstatedir=${localstatedir}/run/quagga \ | 57 | --localstatedir=${localstatedir}/run/quagga \ |
@@ -144,8 +144,8 @@ do_install () { | |||
144 | -i ${D}${systemd_unitdir}/system/*.service | 144 | -i ${D}${systemd_unitdir}/system/*.service |
145 | } | 145 | } |
146 | 146 | ||
147 | DEPENDS_append = " ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'systemd-systemctl-native', '', d)}" | 147 | DEPENDS:append = " ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'systemd-systemctl-native', '', d)}" |
148 | pkg_postinst_${PN} () { | 148 | pkg_postinst:${PN} () { |
149 | if ${@bb.utils.contains('DISTRO_FEATURES', 'systemd sysvinit', 'true', 'false', d)}; then | 149 | if ${@bb.utils.contains('DISTRO_FEATURES', 'systemd sysvinit', 'true', 'false', d)}; then |
150 | if [ -n "$D" ]; then | 150 | if [ -n "$D" ]; then |
151 | OPTS="--root=$D" | 151 | OPTS="--root=$D" |
@@ -159,22 +159,22 @@ PACKAGE_BEFORE_PN = "${PN}-ospfd ${PN}-ospf6d ${PN}-bgpd \ | |||
159 | ${PN}-ripd ${PN}-ripngd ${PN}-isisd \ | 159 | ${PN}-ripd ${PN}-ripngd ${PN}-isisd \ |
160 | ${PN}-ospfclient ${@bb.utils.contains('DISTRO_FEATURES', 'sysvinit', '${PN}-watchquagga', '', d)}" | 160 | ${PN}-ospfclient ${@bb.utils.contains('DISTRO_FEATURES', 'sysvinit', '${PN}-watchquagga', '', d)}" |
161 | 161 | ||
162 | RDEPENDS_${PN} += "${PN}-bgpd ${PN}-isisd ${PN}-ospf6d ${PN}-ospfd ${PN}-ripd ${PN}-ripngd" | 162 | RDEPENDS:${PN} += "${PN}-bgpd ${PN}-isisd ${PN}-ospf6d ${PN}-ospfd ${PN}-ripd ${PN}-ripngd" |
163 | 163 | ||
164 | FILES_${PN}-ospfd = "${sbindir}/ospfd ${libdir}/libospf.so.*" | 164 | FILES:${PN}-ospfd = "${sbindir}/ospfd ${libdir}/libospf.so.*" |
165 | FILES_${PN}-ospf6d = "${sbindir}/ospf6d" | 165 | FILES:${PN}-ospf6d = "${sbindir}/ospf6d" |
166 | FILES_${PN}-bgpd = "${sbindir}/bgpd" | 166 | FILES:${PN}-bgpd = "${sbindir}/bgpd" |
167 | FILES_${PN}-ripd = "${sbindir}/ripd" | 167 | FILES:${PN}-ripd = "${sbindir}/ripd" |
168 | FILES_${PN}-ripngd = "${sbindir}/ripngd" | 168 | FILES:${PN}-ripngd = "${sbindir}/ripngd" |
169 | FILES_${PN}-isisd = "${sbindir}/isisd" | 169 | FILES:${PN}-isisd = "${sbindir}/isisd" |
170 | FILES_${PN}-ospfclient = "${sbindir}/ospfclient ${libdir}/libospfapiclient.so.*" | 170 | FILES:${PN}-ospfclient = "${sbindir}/ospfclient ${libdir}/libospfapiclient.so.*" |
171 | FILES_${PN}-watchquagga = "${sbindir}/watchquagga ${sysconfdir}/default/watchquagga \ | 171 | FILES:${PN}-watchquagga = "${sbindir}/watchquagga ${sysconfdir}/default/watchquagga \ |
172 | ${sysconfdir}/init.d/watchquagga" | 172 | ${sysconfdir}/init.d/watchquagga" |
173 | 173 | ||
174 | FILES_${PN} += "${nonarch_libdir}/tmpfiles.d/*.conf" | 174 | FILES:${PN} += "${nonarch_libdir}/tmpfiles.d/*.conf" |
175 | 175 | ||
176 | # Indicate that the default files are configuration files | 176 | # Indicate that the default files are configuration files |
177 | CONFFILES_${PN} = "${sysconfdir}/default/quagga \ | 177 | CONFFILES:${PN} = "${sysconfdir}/default/quagga \ |
178 | ${sysconfdir}/quagga/bgpd.conf \ | 178 | ${sysconfdir}/quagga/bgpd.conf \ |
179 | ${sysconfdir}/quagga/vtysh.conf \ | 179 | ${sysconfdir}/quagga/vtysh.conf \ |
180 | ${sysconfdir}/quagga/isisd.conf \ | 180 | ${sysconfdir}/quagga/isisd.conf \ |
@@ -184,60 +184,60 @@ CONFFILES_${PN} = "${sysconfdir}/default/quagga \ | |||
184 | ${sysconfdir}/quagga/ripd.conf \ | 184 | ${sysconfdir}/quagga/ripd.conf \ |
185 | ${sysconfdir}/quagga/ospf6d.conf \ | 185 | ${sysconfdir}/quagga/ospf6d.conf \ |
186 | " | 186 | " |
187 | CONFFILES_${PN}-watchquagga = "${sysconfdir}/default/watchquagga" | 187 | CONFFILES:${PN}-watchquagga = "${sysconfdir}/default/watchquagga" |
188 | 188 | ||
189 | # Stop the names being rewritten due to the internal shared libraries | 189 | # Stop the names being rewritten due to the internal shared libraries |
190 | DEBIAN_NOAUTONAME_${PN}-ospfd = "1" | 190 | DEBIAN_NOAUTONAME:${PN}-ospfd = "1" |
191 | DEBIAN_NOAUTONAME_${PN}-ospfclient = "1" | 191 | DEBIAN_NOAUTONAME:${PN}-ospfclient = "1" |
192 | 192 | ||
193 | # Main init script starts all deamons | 193 | # Main init script starts all deamons |
194 | # Seperate init script for watchquagga | 194 | # Seperate init script for watchquagga |
195 | INITSCRIPT_PACKAGES = "${PN} ${PN}-watchquagga" | 195 | INITSCRIPT_PACKAGES = "${PN} ${PN}-watchquagga" |
196 | INITSCRIPT_NAME_${PN} = "quagga" | 196 | INITSCRIPT_NAME:${PN} = "quagga" |
197 | INITSCRIPT_PARAMS_${PN} = "defaults 15 85" | 197 | INITSCRIPT_PARAMS:${PN} = "defaults 15 85" |
198 | INITSCRIPT_NAME_${PN}-watchquagga = "watchquagga" | 198 | INITSCRIPT_NAME:${PN}-watchquagga = "watchquagga" |
199 | INITSCRIPT_PARAMS_${PN}-watchquagga = "defaults 90 10" | 199 | INITSCRIPT_PARAMS:${PN}-watchquagga = "defaults 90 10" |
200 | 200 | ||
201 | # Add quagga's user and group | 201 | # Add quagga's user and group |
202 | USERADD_PACKAGES = "${PN}" | 202 | USERADD_PACKAGES = "${PN}" |
203 | GROUPADD_PARAM_${PN} = "--system quagga ; --system quaggavty" | 203 | GROUPADD_PARAM:${PN} = "--system quagga ; --system quaggavty" |
204 | USERADD_PARAM_${PN} = "--system --home ${localstatedir}/run/quagga/ -M -g quagga -G quaggavty --shell /bin/false quagga" | 204 | USERADD_PARAM:${PN} = "--system --home ${localstatedir}/run/quagga/ -M -g quagga -G quaggavty --shell /bin/false quagga" |
205 | 205 | ||
206 | pkg_postinst_${PN} () { | 206 | pkg_postinst:${PN} () { |
207 | if [ -z "$D" ] && [ -e /etc/init.d/populate-volatile.sh ] ; then | 207 | if [ -z "$D" ] && [ -e /etc/init.d/populate-volatile.sh ] ; then |
208 | ${sysconfdir}/init.d/populate-volatile.sh update | 208 | ${sysconfdir}/init.d/populate-volatile.sh update |
209 | fi | 209 | fi |
210 | } | 210 | } |
211 | 211 | ||
212 | # Stop apps before uninstall | 212 | # Stop apps before uninstall |
213 | pkg_prerm_${PN} () { | 213 | pkg_prerm:${PN} () { |
214 | ${sysconfdir}/init.d/quagga stop | 214 | ${sysconfdir}/init.d/quagga stop |
215 | } | 215 | } |
216 | 216 | ||
217 | pkg_prerm_${PN}-ospfd () { | 217 | pkg_prerm:${PN}-ospfd () { |
218 | ${sysconfdir}/init.d/quagga stop ospfd | 218 | ${sysconfdir}/init.d/quagga stop ospfd |
219 | } | 219 | } |
220 | 220 | ||
221 | pkg_prerm_${PN}-ospf6d () { | 221 | pkg_prerm:${PN}-ospf6d () { |
222 | ${sysconfdir}/init.d/quagga stop ospf6d | 222 | ${sysconfdir}/init.d/quagga stop ospf6d |
223 | } | 223 | } |
224 | 224 | ||
225 | pkg_prerm_${PN}-bgpd () { | 225 | pkg_prerm:${PN}-bgpd () { |
226 | ${sysconfdir}/init.d/quagga stop bgpd | 226 | ${sysconfdir}/init.d/quagga stop bgpd |
227 | } | 227 | } |
228 | 228 | ||
229 | pkg_prerm_${PN}-ripd () { | 229 | pkg_prerm:${PN}-ripd () { |
230 | ${sysconfdir}/init.d/quagga stop ripd | 230 | ${sysconfdir}/init.d/quagga stop ripd |
231 | } | 231 | } |
232 | 232 | ||
233 | pkg_prerm_${PN}-ripngd () { | 233 | pkg_prerm:${PN}-ripngd () { |
234 | ${sysconfdir}/init.d/quagga stop ripngd | 234 | ${sysconfdir}/init.d/quagga stop ripngd |
235 | } | 235 | } |
236 | 236 | ||
237 | pkg_prerm_${PN}-isisd () { | 237 | pkg_prerm:${PN}-isisd () { |
238 | ${sysconfdir}/init.d/quagga stop isisd | 238 | ${sysconfdir}/init.d/quagga stop isisd |
239 | } | 239 | } |
240 | 240 | ||
241 | ALTERNATIVE_${PN} = "pimd" | 241 | ALTERNATIVE:${PN} = "pimd" |
242 | ALTERNATIVE_LINK_NAME[pimd] = "${sbindir}/pimd" | 242 | ALTERNATIVE_LINK_NAME[pimd] = "${sbindir}/pimd" |
243 | 243 | ||