]>
Commit | Line | Data |
---|---|---|
1 | ############################################################################### | |
2 | # # | |
3 | # IPFire.org - A linux based firewall # | |
4 | # Copyright (C) 2012-2013 IPFire Network Development Team # | |
5 | # # | |
6 | # This program is free software: you can redistribute it and/or modify # | |
7 | # it under the terms of the GNU General Public License as published by # | |
8 | # the Free Software Foundation, either version 3 of the License, or # | |
9 | # (at your option) any later version. # | |
10 | # # | |
11 | # This program is distributed in the hope that it will be useful, # | |
12 | # but WITHOUT ANY WARRANTY; without even the implied warranty of # | |
13 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # | |
14 | # GNU General Public License for more details. # | |
15 | # # | |
16 | # You should have received a copy of the GNU General Public License # | |
17 | # along with this program. If not, see <http://www.gnu.org/licenses/>. # | |
18 | # # | |
19 | ############################################################################### | |
20 | ||
21 | ACLOCAL_AMFLAGS = -I m4 ${ACLOCAL_FLAGS} | |
22 | AM_MAKEFLAGS = --no-print-directory | |
23 | AUTOMAKE_OPTIONS = color-tests | |
24 | ||
25 | # remove target it the command fails | |
26 | .DELETE_ON_ERROR: | |
27 | ||
28 | # keep itermediate files | |
29 | .SECONDARY: | |
30 | ||
31 | configdir = $(sysconfdir)/network | |
32 | bashcompletiondir= $(datadir)/bash-completion/completions | |
33 | libexecdir = $(prefix)/lib | |
34 | pkgconfigdir = $(libdir)/pkgconfig | |
35 | pppdir = $(sysconfdir)/ppp | |
36 | systemconfigdir = $(datadir)/network | |
37 | sysctldir = $(prefix)/lib/sysctl.d | |
38 | tmpfilesdir = $(prefix)/lib/tmpfiles.d | |
39 | udevrulesdir = $(udevdir)/rules.d | |
40 | ||
41 | networkdir = $(libexecdir)/network | |
42 | helpersdir = $(networkdir)/helpers | |
43 | ||
44 | macrosdir = $(libexecdir)/firewall/macros | |
45 | ||
46 | hooksdir = $(networkdir)/hooks | |
47 | hooks_configsdir = $(hooksdir)/configs | |
48 | hooks_portsdir = $(hooksdir)/ports | |
49 | hooks_zonesdir = $(hooksdir)/zones | |
50 | ||
51 | triggersdir = $(networkdir)/triggers | |
52 | ||
53 | logdir = $(localestatedir)/log/network | |
54 | utildir = $(networkdir) | |
55 | ||
56 | CLEANFILES = | |
57 | DISTCLEANFILES = | |
58 | EXTRA_DIST = | |
59 | INSTALL_DIRS = | |
60 | INSTALL_EXEC_HOOKS = | |
61 | UNINSTALL_EXEC_HOOKS = | |
62 | noinst_DATA = | |
63 | ||
64 | AM_CPPFLAGS = \ | |
65 | $(OUR_CPPFLAGS) \ | |
66 | -include $(top_builddir)/config.h \ | |
67 | -I${top_srcdir}/src/libnetwork | |
68 | ||
69 | AM_CFLAGS = \ | |
70 | $(OUR_CFLAGS) \ | |
71 | -fvisibility=hidden \ | |
72 | -ffunction-sections \ | |
73 | -fdata-sections | |
74 | ||
75 | AM_LDFLAGS = \ | |
76 | $(OUR_LDFLAGS) \ | |
77 | -Wl,--gc-sections \ | |
78 | -Wl,--as-needed | |
79 | ||
80 | DISTCHECK_CONFIGURE_FLAGS = \ | |
81 | --with-systemdsystemunitdir=$$dc_install_base/$(systemdsystemunitdir) \ | |
82 | --with-udevdir=$$dc_install_base/$(udevdir) | |
83 | ||
84 | install-directories-hook: | |
85 | $(MKDIR_P) $(addprefix $(DESTDIR),$(INSTALL_DIRS)) | |
86 | ||
87 | INSTALL_EXEC_HOOKS += \ | |
88 | install-directories-hook | |
89 | ||
90 | # ------------------------------------------------------------------------------ | |
91 | ||
92 | AM_V_DOWNLOAD = $(AM_V_DOWNLOAD_$(V)) | |
93 | AM_V_DOWNLOAD_ = $(AM_V_DOWNLOAD_$(AM_DEFAULT_VERBOSITY)) | |
94 | AM_V_DOWNLOAD_0 = @echo " LOAD " $@; | |
95 | ||
96 | AM_V_NITSI = $(AM_V_NITSI_$(V)) | |
97 | AM_V_NITSI_ = $(AM_V_NITSI_$(AM_DEFAULT_VERBOSITY)) | |
98 | AM_V_NITSI_0 = @echo " NITSI " $@; | |
99 | ||
100 | AM_V_XSLT = $(AM_V_XSLT_$(V)) | |
101 | AM_V_XSLT_ = $(AM_V_XSLT_$(AM_DEFAULT_VERBOSITY)) | |
102 | AM_V_XSLT_0 = @echo " XSLT " $@; | |
103 | ||
104 | # ------------------------------------------------------------------------------ | |
105 | ||
106 | dist_doc_DATA = \ | |
107 | README \ | |
108 | docs/CODING_STYLE \ | |
109 | docs/COPYING | |
110 | ||
111 | dist_sbin_SCRIPTS = \ | |
112 | src/dhclient-script \ | |
113 | src/firewall-config \ | |
114 | src/firewall4 \ | |
115 | src/firewall6 \ | |
116 | src/network | |
117 | ||
118 | network_DATA = \ | |
119 | src/functions/functions | |
120 | ||
121 | CLEANFILES += \ | |
122 | src/functions/functions | |
123 | ||
124 | EXTRA_DIST += \ | |
125 | src/functions/functions.in | |
126 | ||
127 | dist_network_DATA = \ | |
128 | src/functions/functions.at \ | |
129 | src/functions/functions.auth \ | |
130 | src/functions/functions.bonding \ | |
131 | src/functions/functions.bridge \ | |
132 | src/functions/functions.cli \ | |
133 | src/functions/functions.cli.firewall \ | |
134 | src/functions/functions.colors \ | |
135 | src/functions/functions.config \ | |
136 | src/functions/functions.conntrack \ | |
137 | src/functions/functions.constants \ | |
138 | src/functions/functions.constants-firewall \ | |
139 | src/functions/functions.db \ | |
140 | src/functions/functions.description \ | |
141 | src/functions/functions.device \ | |
142 | src/functions/functions.dhclient \ | |
143 | src/functions/functions.dhcpd \ | |
144 | src/functions/functions.distro \ | |
145 | src/functions/functions.dns \ | |
146 | src/functions/functions.dummy \ | |
147 | src/functions/functions.editor \ | |
148 | src/functions/functions.firewall \ | |
149 | src/functions/functions.firewall-policy \ | |
150 | src/functions/functions.firewall-zones \ | |
151 | src/functions/functions.he \ | |
152 | src/functions/functions.hook \ | |
153 | src/functions/functions.hostapd \ | |
154 | src/functions/functions.hotplug \ | |
155 | src/functions/functions.http \ | |
156 | src/functions/functions.interrupts \ | |
157 | src/functions/functions.ip \ | |
158 | src/functions/functions.ipsec \ | |
159 | src/functions/functions.ipsec-pool \ | |
160 | src/functions/functions.iptables \ | |
161 | src/functions/functions.ip-tunnel \ | |
162 | src/functions/functions.ipv4 \ | |
163 | src/functions/functions.ipv6 \ | |
164 | src/functions/functions.list \ | |
165 | src/functions/functions.lock \ | |
166 | src/functions/functions.logging \ | |
167 | src/functions/functions.macros \ | |
168 | src/functions/functions.modem \ | |
169 | src/functions/functions.phy \ | |
170 | src/functions/functions.ports \ | |
171 | src/functions/functions.ppp \ | |
172 | src/functions/functions.pppoe-server \ | |
173 | src/functions/functions.radvd \ | |
174 | src/functions/functions.route \ | |
175 | src/functions/functions.routing \ | |
176 | src/functions/functions.serial \ | |
177 | src/functions/functions.service \ | |
178 | src/functions/functions.settings \ | |
179 | src/functions/functions.stp \ | |
180 | src/functions/functions.sysctl \ | |
181 | src/functions/functions.system \ | |
182 | src/functions/functions.triggers \ | |
183 | src/functions/functions.usb \ | |
184 | src/functions/functions.util \ | |
185 | src/functions/functions.vlan \ | |
186 | src/functions/functions.vpn \ | |
187 | src/functions/functions.vpn-security-policies \ | |
188 | src/functions/functions.wireless \ | |
189 | src/functions/functions.wireless-mesh \ | |
190 | src/functions/functions.wireless-networks \ | |
191 | src/functions/functions.wpa_supplicant \ | |
192 | src/functions/functions.zone \ | |
193 | src/network-radvd-config \ | |
194 | src/header-config \ | |
195 | src/header-port \ | |
196 | src/header-zone \ | |
197 | src/ppp/dialer \ | |
198 | src/ppp/pppoe-server | |
199 | ||
200 | dist_network_SCRIPTS = \ | |
201 | src/dhclient-helper | |
202 | ||
203 | dist_helpers_SCRIPTS = \ | |
204 | src/helpers/dhcpd-config-helper \ | |
205 | src/helpers/firewall-kernel-init \ | |
206 | src/helpers/hostapd-config-helper \ | |
207 | src/helpers/ipsec-updown \ | |
208 | src/helpers/pppd-angel \ | |
209 | src/helpers/wpa_supplicant | |
210 | ||
211 | bin_PROGRAMS = \ | |
212 | src/inetcalc | |
213 | ||
214 | src_inetcalc_SOURCES = \ | |
215 | src/inetcalc.c | |
216 | ||
217 | src_inetcalc_LDADD = \ | |
218 | src/libnetwork.la | |
219 | ||
220 | dist_hooks_configs_SCRIPTS = \ | |
221 | src/hooks/configs/dhcp \ | |
222 | src/hooks/configs/ipv6-auto \ | |
223 | src/hooks/configs/pppoe-server \ | |
224 | src/hooks/configs/static | |
225 | ||
226 | dist_hooks_ports_SCRIPTS = \ | |
227 | src/hooks/ports/bonding \ | |
228 | src/hooks/ports/dummy \ | |
229 | src/hooks/ports/ethernet \ | |
230 | src/hooks/ports/vlan \ | |
231 | src/hooks/ports/wireless-ap \ | |
232 | src/hooks/ports/wireless-mesh | |
233 | ||
234 | dist_hooks_zones_SCRIPTS = \ | |
235 | src/hooks/zones/6to4-tunnel \ | |
236 | src/hooks/zones/bridge \ | |
237 | src/hooks/zones/modem \ | |
238 | src/hooks/zones/pppoe \ | |
239 | src/hooks/zones/wireless | |
240 | ||
241 | INSTALL_DIRS += \ | |
242 | $(configdir) \ | |
243 | $(configdir)/ports \ | |
244 | $(configdir)/vpn \ | |
245 | $(configdir)/vpn/ipsec/connections \ | |
246 | $(configdir)/vpn/security-policies \ | |
247 | $(configdir)/wireless \ | |
248 | $(configdir)/wireless/networks \ | |
249 | $(configdir)/zones | |
250 | ||
251 | # ------------------------------------------------------------------------------ | |
252 | ||
253 | LIBNETWORK_CURRENT=0 | |
254 | LIBNETWORK_REVISION=0 | |
255 | LIBNETWORK_AGE=0 | |
256 | ||
257 | pkginclude_HEADERS = \ | |
258 | src/libnetwork/network/interface.h \ | |
259 | src/libnetwork/network/libnetwork.h \ | |
260 | src/libnetwork/network/logging.h \ | |
261 | src/libnetwork/network/phy.h | |
262 | ||
263 | lib_LTLIBRARIES = \ | |
264 | src/libnetwork.la | |
265 | ||
266 | src_libnetwork_la_SOURCES = \ | |
267 | src/libnetwork/interface.c \ | |
268 | src/libnetwork/libnetwork-private.h \ | |
269 | src/libnetwork/libnetwork.c \ | |
270 | src/libnetwork/phy.c | |
271 | ||
272 | src_libnetwork_la_LIBADD = \ | |
273 | $(LIBNL_LIBS) | |
274 | ||
275 | src_libnetwork_la_CPPFLAGS = \ | |
276 | $(AM_CPPFLAGS) \ | |
277 | $(LIBNL_CPPFLAGS) \ | |
278 | -D_GNU_SOURCE \ | |
279 | -DNETWORK_PRIVATE | |
280 | ||
281 | src_libnetwork_la_CFLAGS = \ | |
282 | $(AM_CFLAGS) \ | |
283 | $(LIBNL_CFLAGS) | |
284 | ||
285 | src_libnetwork_la_LDFLAGS = \ | |
286 | $(AM_LDFLAGS) \ | |
287 | -version-info $(LIBNETWORK_CURRENT):$(LIBNETWORK_REVISION):$(LIBNETWORK_AGE) \ | |
288 | -Wl,--version-script=$(top_srcdir)/src/libnetwork/libnetwork.sym | |
289 | ||
290 | src_libnetwork_la_DEPENDENCIES = \ | |
291 | src/libnetwork/libnetwork.sym | |
292 | ||
293 | EXTRA_DIST += \ | |
294 | src/libnetwork/libnetwork.sym | |
295 | ||
296 | # ------------------------------------------------------------------------------ | |
297 | ||
298 | util_PROGRAMS = \ | |
299 | src/utils/network-phy-list-ht-caps | |
300 | ||
301 | src_utils_network_phy_list_ht_caps_SOURCES = \ | |
302 | src/utils/network-phy-list-ht-caps.c | |
303 | ||
304 | src_utils_network_phy_list_ht_caps_LDADD = \ | |
305 | src/libnetwork.la | |
306 | ||
307 | # ------------------------------------------------------------------------------ | |
308 | ||
309 | ppp_SCRIPTS = \ | |
310 | src/ppp/ip-updown | |
311 | ||
312 | CLEANFILES += \ | |
313 | src/ppp/ip-updown | |
314 | ||
315 | EXTRA_DIST += \ | |
316 | src/ppp/ip-updown.in | |
317 | ||
318 | INSTALL_DIRS += \ | |
319 | $(pppdir) \ | |
320 | $(logdir) | |
321 | ||
322 | ppp-install-hook: | |
323 | ln -svf ip-updown $(DESTDIR)$(pppdir)/ip-pre-up | |
324 | ln -svf ip-updown $(DESTDIR)$(pppdir)/ip-up | |
325 | ln -svf ip-updown $(DESTDIR)$(pppdir)/ip-down | |
326 | ln -svf ip-updown $(DESTDIR)$(pppdir)/ipv6-up | |
327 | ln -svf ip-updown $(DESTDIR)$(pppdir)/ipv6-down | |
328 | ||
329 | ppp-uninstall-hook: | |
330 | rm -f $(DESTDIR)$(pppdir)/ip-{down,pre-up,up} | |
331 | rm -f $(DESTDIR)$(pppdir)/ipv6-{down,up} | |
332 | ||
333 | INSTALL_EXEC_HOOKS += ppp-install-hook | |
334 | UNINSTALL_EXEC_HOOKS += ppp-uninstall-hook | |
335 | ||
336 | # ------------------------------------------------------------------------------ | |
337 | ||
338 | if HAVE_SYSTEMD | |
339 | systemdsystemunit_DATA = \ | |
340 | src/systemd/firewall4.service \ | |
341 | src/systemd/firewall6.service \ | |
342 | src/systemd/firewall-init.service \ | |
343 | src/systemd/network-init.service \ | |
344 | src/systemd/network@.service | |
345 | ||
346 | CLEANFILES += \ | |
347 | $(systemdsystemunit_DATA) | |
348 | ||
349 | INSTALL_DIRS += \ | |
350 | $(systemdsystemunitdir) | |
351 | endif | |
352 | ||
353 | EXTRA_DIST += \ | |
354 | src/systemd/firewall4.service.in \ | |
355 | src/systemd/firewall6.service.in \ | |
356 | src/systemd/firewall-init.service.in \ | |
357 | src/systemd/network-init.service.in \ | |
358 | src/systemd/network@.service.in | |
359 | ||
360 | # ------------------------------------------------------------------------------ | |
361 | ||
362 | systemconfig_vpndir = $(systemconfigdir)/vpn | |
363 | ||
364 | dist_systemconfig_vpn_security_policies_DATA = \ | |
365 | config/vpn/security-policies/performance \ | |
366 | config/vpn/security-policies/system | |
367 | ||
368 | systemconfig_vpn_security_policiesdir = $(systemconfig_vpndir)/security-policies | |
369 | ||
370 | # ------------------------------------------------------------------------------ | |
371 | ||
372 | dist_sysctl_DATA = \ | |
373 | src/sysctl/network.conf | |
374 | ||
375 | # ------------------------------------------------------------------------------ | |
376 | ||
377 | dist_bashcompletion_SCRIPTS = \ | |
378 | src/bash-completion/network | |
379 | ||
380 | # ------------------------------------------------------------------------------ | |
381 | ||
382 | dist_tmpfiles_DATA = \ | |
383 | src/tmpfiles/network.conf | |
384 | ||
385 | # ------------------------------------------------------------------------------ | |
386 | ||
387 | if HAVE_UDEV | |
388 | dist_udev_SCRIPTS = \ | |
389 | src/udev/network-hotplug \ | |
390 | src/udev/network-hotplug-rename \ | |
391 | src/udev/network-hotplug-serial | |
392 | ||
393 | dist_udevrules_DATA = \ | |
394 | src/udev/rules.d/50-serial-whitelist.rules \ | |
395 | src/udev/rules.d/60-net.rules | |
396 | ||
397 | INSTALL_DIRS += \ | |
398 | $(udevdir) \ | |
399 | $(udevrulesdir) | |
400 | endif | |
401 | ||
402 | # ------------------------------------------------------------------------------ | |
403 | ||
404 | pkgconfig_DATA = \ | |
405 | src/network.pc | |
406 | ||
407 | CLEANFILES += \ | |
408 | $(pkgconfig_DATA) | |
409 | ||
410 | EXTRA_DIST += \ | |
411 | src/network.pc.in | |
412 | ||
413 | # ------------------------------------------------------------------------------ | |
414 | ||
415 | dist_macros_DATA = \ | |
416 | src/macros/DHCP \ | |
417 | src/macros/HTTP \ | |
418 | src/macros/HTTPS \ | |
419 | src/macros/WWW | |
420 | ||
421 | # ------------------------------------------------------------------------------ | |
422 | ||
423 | INSTALL_DIRS += \ | |
424 | $(triggersdir) | |
425 | ||
426 | # ------------------------------------------------------------------------------ | |
427 | ||
428 | MANPAGES = \ | |
429 | man/firewall-settings.8 \ | |
430 | man/network.8 \ | |
431 | man/network-color.8 \ | |
432 | man/network-description.8 \ | |
433 | man/network-device.8 \ | |
434 | man/network-dhcp.8 \ | |
435 | man/network-dns-server.8 \ | |
436 | man/network-performance-tuning.8 \ | |
437 | man/network-port.8 \ | |
438 | man/network-quick-start.8 \ | |
439 | man/network-route.8 \ | |
440 | man/network-route-static.8 \ | |
441 | man/network-settings.8 \ | |
442 | man/network-vpn.8 \ | |
443 | man/network-vpn-security-policies.8 \ | |
444 | man/network-zone.8 \ | |
445 | man/network-zone-6to4-tunnel.8 \ | |
446 | man/network-zone-bridge.8 \ | |
447 | man/network-zone-config-pppoe-server.8 \ | |
448 | man/network-zone-modem.8 \ | |
449 | man/network-zone-pppoe.8 \ | |
450 | man/network-zone-wireless.8 | |
451 | ||
452 | MANPAGES_XML = $(patsubst %.8,%.xml,$(MANPAGES)) | |
453 | MANPAGES_HTML = $(patsubst %.xml,%.html,$(MANPAGES_XML)) | |
454 | ||
455 | .PHONY: man | |
456 | man: $(MANPAGES) $(MANPAGES_HTML) | |
457 | ||
458 | man_MANS = \ | |
459 | $(MANPAGES) | |
460 | ||
461 | noinst_DATA += \ | |
462 | $(MANPAGES_HTML) | |
463 | ||
464 | CLEANFILES += \ | |
465 | $(man_MANS) \ | |
466 | $(MANPAGES_HTML) | |
467 | ||
468 | EXTRA_DIST += \ | |
469 | $(MANPAGES_XML) \ | |
470 | man/custom-html.xsl | |
471 | ||
472 | XSLTPROC_FLAGS = \ | |
473 | --nonet \ | |
474 | --stringparam man.output.quietly 1 \ | |
475 | --stringparam funcsynopsis.style ansi \ | |
476 | --stringparam man.th.extra1.suppress 1 \ | |
477 | --stringparam man.authors.section.enabled 1 \ | |
478 | --stringparam man.copyright.section.enabled 1 | |
479 | ||
480 | XSLTPROC_COMMAND_MAN = \ | |
481 | $(AM_V_XSLT)$(XSLTPROC) -o $@ $(XSLTPROC_FLAGS) \ | |
482 | http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl $< | |
483 | ||
484 | XSLTPROC_COMMAND_HTML = \ | |
485 | $(AM_V_XSLT)$(XSLTPROC) -o $@ $(XSLTPROC_FLAGS) $(srcdir)/man/custom-html.xsl $< | |
486 | ||
487 | man/%.8: man/%.xml | |
488 | $(XSLTPROC_COMMAND_MAN) | |
489 | ||
490 | man/%.html: man/%.xml man/custom-html.xsl | |
491 | $(XSLTPROC_COMMAND_HTML) | |
492 | ||
493 | # ------------------------------------------------------------------------------ | |
494 | ||
495 | substitutions = \ | |
496 | '|PACKAGE_NAME=$(PACKAGE_NAME)|' \ | |
497 | '|PACKAGE_URL=$(PACKAGE_URL)|' \ | |
498 | '|PACKAGE_VERSION=$(PACKAGE_VERSION)|' \ | |
499 | '|builddir=$(abs_builddir)|' \ | |
500 | '|prefix=$(prefix)|' \ | |
501 | '|exec_prefix=$(exec_prefix)|' \ | |
502 | '|sbindir=$(sbindir)|' \ | |
503 | '|networkdir=$(networkdir)|' \ | |
504 | '|helpersdir=$(helpersdir)|' \ | |
505 | '|utildir=$(utildir)|' \ | |
506 | '|VIRTUAL_ENVIRONMENT_IMAGES_DIR=$(VIRTUAL_ENVIRONMENT_IMAGES_DIR)|' | |
507 | ||
508 | SED_PROCESS = \ | |
509 | $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \ | |
510 | $(SED) $(subst '|,-e 's|@,$(subst =,\@|,$(subst |',|g',$(substitutions)))) \ | |
511 | < $< > $@ | |
512 | ||
513 | %: %.in Makefile | |
514 | $(SED_PROCESS) | |
515 | ||
516 | INSTALL_DIRS += \ | |
517 | $(sbindir) | |
518 | ||
519 | install-exec-hook: $(INSTALL_EXEC_HOOKS) | |
520 | ||
521 | uninstall-hook: $(UNINSTALL_EXEC_HOOKS) | |
522 | ||
523 | # - testsuite ------------------------------------------------------------------ | |
524 | ||
525 | TESTS_ENVIRONMENT = \ | |
526 | LD_LIBRARY_PATH=$(top_builddir)/src/.libs:$(LD_LIBRARY_PATH) \ | |
527 | PATH=$(top_builddir)/src:$(PATH) \ | |
528 | functions=$(abs_builddir)/src/functions/functions \ | |
529 | networkdir=$(abs_srcdir)/src/functions \ | |
530 | testdir=$(top_srcdir)/test | |
531 | ||
532 | dist_check_DATA = \ | |
533 | test/constants.sh \ | |
534 | test/test-functions | |
535 | ||
536 | dist_check_SCRIPTS = \ | |
537 | $(TESTS) | |
538 | ||
539 | TESTS = \ | |
540 | test/load-library \ | |
541 | test/functions/ip/ip_detect_protocol \ | |
542 | test/functions/ip/ip_get_prefix \ | |
543 | test/functions/ip/ip_net_is_valid \ | |
544 | test/functions/ip/ip_is_valid \ | |
545 | test/functions/ip/ip_network_is_subnet_of \ | |
546 | test/functions/ip/ip_prefix_is_valid \ | |
547 | test/functions/ip/ip_protocol_is_supported \ | |
548 | test/functions/ip/ip_split_prefix | |
549 | ||
550 | # - NITSI tests ---------------------------------------------------------------- | |
551 | ||
552 | # Files for the virtual environment | |
553 | VIRTUAL_ENVIRONMENT_FILES = \ | |
554 | test/nitsi/virtual-environment/basic/machines/alice/machine.xml \ | |
555 | test/nitsi/virtual-environment/basic/machines/alice/snapshot.xml \ | |
556 | test/nitsi/virtual-environment/basic/machines/bob/machine.xml \ | |
557 | test/nitsi/virtual-environment/basic/machines/bob/snapshot.xml \ | |
558 | test/nitsi/virtual-environment/basic/network/network1/network.xml \ | |
559 | test/nitsi/virtual-environment/basic/network/network2/network.xml \ | |
560 | test/nitsi/virtual-environment/basic/network/network3/network.xml \ | |
561 | test/nitsi/virtual-environment/basic/network/network4/network.xml \ | |
562 | test/nitsi/virtual-environment/basic/settings | |
563 | ||
564 | EXTRA_DIST += \ | |
565 | test/nitsi/virtual-environment/basic/machines/alice/machine.xml.in \ | |
566 | test/nitsi/virtual-environment/basic/machines/alice/snapshot.xml.in \ | |
567 | test/nitsi/virtual-environment/basic/machines/bob/machine.xml.in \ | |
568 | test/nitsi/virtual-environment/basic/machines/bob/snapshot.xml.in \ | |
569 | test/nitsi/virtual-environment/basic/settings.in | |
570 | ||
571 | CLEANFILES += \ | |
572 | test/nitsi/virtual-environment/basic/machines/alice/machine.xml \ | |
573 | test/nitsi/virtual-environment/basic/machines/alice/snapshot.xml \ | |
574 | test/nitsi/virtual-environment/basic/machines/bob/machine.xml \ | |
575 | test/nitsi/virtual-environment/basic/machines/bob/snapshot.xml \ | |
576 | test/nitsi/virtual-environment/basic/settings | |
577 | ||
578 | # Virtual Machine Images | |
579 | VIRTUAL_ENVIRONMENT_IMAGES = \ | |
580 | $(VIRTUAL_ENVIRONMENT_IMAGES_DIR)/ipfire-alice-2.qcow2 \ | |
581 | $(VIRTUAL_ENVIRONMENT_IMAGES_DIR)/ipfire-bob.qcow2 | |
582 | ||
583 | DISTCLEANFILES += \ | |
584 | $(VIRTUAL_ENVIRONMENT_IMAGES) | |
585 | ||
586 | VIRTUAL_ENVIRONMENT_IMAGES_DIR = $(abs_builddir)/test/nitsi/virtual-environment/.images | |
587 | VIRTUAL_ENVIRONMENT_IMAGES_DOWNLOAD_URL = \ | |
588 | https://people.ipfire.org/~jschlag/nitsi-ipfire/virtual-environment/basic/ | |
589 | ||
590 | NITSI_INCLUDE_RECIPES = \ | |
591 | test/nitsi/include/setup | |
592 | ||
593 | EXTRA_DIST += \ | |
594 | test/nitsi/include/setup.in | |
595 | ||
596 | CLEANFILES += \ | |
597 | test/nitsi/include/setup | |
598 | ||
599 | NITSI_TESTS = \ | |
600 | test/nitsi/test/make-check \ | |
601 | test/nitsi/test/phase1 \ | |
602 | test/nitsi/test/raw-device-get-by-mac \ | |
603 | test/nitsi/test/zone-new-bridge \ | |
604 | test/nitsi/test/zone-port-attach-bridge | |
605 | ||
606 | EXTRA_DIST += \ | |
607 | test/nitsi/test/settings.in \ | |
608 | test/nitsi/test/make-check/recipe.in \ | |
609 | test/nitsi/test/make-check/settings.in \ | |
610 | test/nitsi/test/raw-device-get-by-mac/recipe \ | |
611 | test/nitsi/test/raw-device-get-by-mac/settings.in \ | |
612 | test/nitsi/test/zone-new-bridge/recipe \ | |
613 | test/nitsi/test/zone-new-bridge/settings.in \ | |
614 | test/nitsi/test/zone-port-attach-bridge/recipe \ | |
615 | test/nitsi/test/zone-port-attach-bridge/settings.in | |
616 | ||
617 | CLEANFILES += \ | |
618 | test/nitsi/test/settings \ | |
619 | test/nitsi/test/make-check/recipe \ | |
620 | test/nitsi/test/make-check/settings \ | |
621 | test/nitsi/test/raw-device-get-by-mac/settings \ | |
622 | test/nitsi/test/zone-new-bridge/settings \ | |
623 | test/nitsi/test/zone-port-attach-bridge/settings | |
624 | ||
625 | NITSI_ENVIRONMENT = | |
626 | ||
627 | .PHONY: $(NITSI_TESTS) | |
628 | $(NITSI_TESTS): % : %/recipe %/settings test/nitsi/test/settings $(VIRTUAL_ENVIRONMENT_FILES) $(VIRTUAL_ENVIRONMENT_IMAGES) $(NITSI_INCLUDE_RECIPES) | |
629 | $(AM_V_NITSI) $(NITSI_ENVIRONMENT) $(NITSI) --log-level error run-test -d $@ \ | |
630 | --default-settings $(abs_builddir)/test/nitsi/test/settings | |
631 | ||
632 | .PHONY: nitsi | |
633 | nitsi: dist $(NITSI_TESTS) | |
634 | ||
635 | # Downloads a virtual image file and extracts it | |
636 | $(VIRTUAL_ENVIRONMENT_IMAGES): | |
637 | $(AM_V_DOWNLOAD)$(MKDIR_P) $(dir $@) && \ | |
638 | $(WGET) -qO - $(VIRTUAL_ENVIRONMENT_IMAGES_DOWNLOAD_URL)/$(notdir $@).xz | xz -qd > $@ |