]>
Commit | Line | Data |
---|---|---|
5ca9dc30 MT |
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 | ||
f166708b | 31 | configdir = $(sysconfdir)/network |
bae37360 | 32 | bashcompletiondir= $(datadir)/bash-completion/completions |
5ca9dc30 | 33 | libexecdir = $(prefix)/lib |
ea4abb82 | 34 | modprobedir = $(prefix)/lib/modprobe.d |
01f2b2e4 | 35 | pkgconfigdir = $(libdir)/pkgconfig |
5ca9dc30 | 36 | pppdir = $(sysconfdir)/ppp |
5e84cd41 | 37 | systemconfigdir = $(datadir)/network |
5ca9dc30 MT |
38 | sysctldir = $(prefix)/lib/sysctl.d |
39 | tmpfilesdir = $(prefix)/lib/tmpfiles.d | |
40 | udevrulesdir = $(udevdir)/rules.d | |
41 | ||
42 | networkdir = $(libexecdir)/network | |
43 | helpersdir = $(networkdir)/helpers | |
44 | ||
45 | macrosdir = $(libexecdir)/firewall/macros | |
46 | ||
47 | hooksdir = $(networkdir)/hooks | |
7d2cb6d3 | 48 | hooks_configsdir = $(hooksdir)/configs |
5ca9dc30 MT |
49 | hooks_portsdir = $(hooksdir)/ports |
50 | hooks_zonesdir = $(hooksdir)/zones | |
51 | ||
de3cecef MT |
52 | triggersdir = $(networkdir)/triggers |
53 | ||
9c9d0585 | 54 | logdir = $(localestatedir)/log/network |
e145b2f3 | 55 | utildir = $(networkdir) |
9c9d0585 | 56 | |
5ca9dc30 MT |
57 | CLEANFILES = |
58 | DISTCLEANFILES = | |
59 | EXTRA_DIST = | |
60 | INSTALL_DIRS = | |
61 | INSTALL_EXEC_HOOKS = | |
62 | UNINSTALL_EXEC_HOOKS = | |
63 | noinst_DATA = | |
050f4ece | 64 | sbin_PROGRAMS = |
5ca9dc30 | 65 | |
01f2b2e4 MT |
66 | AM_CPPFLAGS = \ |
67 | $(OUR_CPPFLAGS) \ | |
68 | -include $(top_builddir)/config.h \ | |
69 | -I${top_srcdir}/src/libnetwork | |
70 | ||
71 | AM_CFLAGS = \ | |
72 | $(OUR_CFLAGS) \ | |
73 | -fvisibility=hidden \ | |
74 | -ffunction-sections \ | |
75 | -fdata-sections | |
76 | ||
77 | AM_LDFLAGS = \ | |
78 | $(OUR_LDFLAGS) \ | |
79 | -Wl,--gc-sections \ | |
80 | -Wl,--as-needed | |
e708653f | 81 | |
5ca9dc30 MT |
82 | DISTCHECK_CONFIGURE_FLAGS = \ |
83 | --with-systemdsystemunitdir=$$dc_install_base/$(systemdsystemunitdir) \ | |
84 | --with-udevdir=$$dc_install_base/$(udevdir) | |
85 | ||
86 | install-directories-hook: | |
87 | $(MKDIR_P) $(addprefix $(DESTDIR),$(INSTALL_DIRS)) | |
88 | ||
89 | INSTALL_EXEC_HOOKS += \ | |
90 | install-directories-hook | |
91 | ||
92 | # ------------------------------------------------------------------------------ | |
93 | ||
8f591cfc MT |
94 | AM_V_ASCIIDOC = $(AM_V_ASCIIDOC_$(V)) |
95 | AM_V_ASCIIDOC_ = $(AM_V_ASCIIDOC_$(AM_DEFAULT_VERBOSITY)) | |
96 | AM_V_ASCIIDOC_0 = @echo " ASCIIDOC" $@; | |
97 | ||
c4966dd6 MT |
98 | AM_V_DOWNLOAD = $(AM_V_DOWNLOAD_$(V)) |
99 | AM_V_DOWNLOAD_ = $(AM_V_DOWNLOAD_$(AM_DEFAULT_VERBOSITY)) | |
100 | AM_V_DOWNLOAD_0 = @echo " LOAD " $@; | |
101 | ||
1908d2b3 MT |
102 | AM_V_NITSI = $(AM_V_NITSI_$(V)) |
103 | AM_V_NITSI_ = $(AM_V_NITSI_$(AM_DEFAULT_VERBOSITY)) | |
104 | AM_V_NITSI_0 = @echo " NITSI " $@; | |
105 | ||
5ca9dc30 MT |
106 | AM_V_XSLT = $(AM_V_XSLT_$(V)) |
107 | AM_V_XSLT_ = $(AM_V_XSLT_$(AM_DEFAULT_VERBOSITY)) | |
108 | AM_V_XSLT_0 = @echo " XSLT " $@; | |
109 | ||
110 | # ------------------------------------------------------------------------------ | |
111 | ||
112 | dist_doc_DATA = \ | |
1337eee2 | 113 | README \ |
dd46582c | 114 | docs/CODING_STYLE \ |
1337eee2 | 115 | docs/COPYING |
5ca9dc30 MT |
116 | |
117 | dist_sbin_SCRIPTS = \ | |
118 | src/dhclient-script \ | |
0c5d22de | 119 | src/firewall \ |
5ca9dc30 MT |
120 | src/network |
121 | ||
a62e991a | 122 | network_DATA = \ |
5ca9dc30 MT |
123 | src/functions/functions |
124 | ||
125 | CLEANFILES += \ | |
126 | src/functions/functions | |
127 | ||
128 | EXTRA_DIST += \ | |
129 | src/functions/functions.in | |
130 | ||
a62e991a | 131 | dist_network_DATA = \ |
5ca9dc30 MT |
132 | src/functions/functions.at \ |
133 | src/functions/functions.auth \ | |
6a1b0fb1 | 134 | src/functions/functions.bird \ |
5ca9dc30 MT |
135 | src/functions/functions.bonding \ |
136 | src/functions/functions.bridge \ | |
137 | src/functions/functions.cli \ | |
138 | src/functions/functions.cli.firewall \ | |
139 | src/functions/functions.colors \ | |
140 | src/functions/functions.config \ | |
141 | src/functions/functions.conntrack \ | |
142 | src/functions/functions.constants \ | |
143 | src/functions/functions.constants-firewall \ | |
144 | src/functions/functions.db \ | |
5ccc7299 | 145 | src/functions/functions.description \ |
5ca9dc30 MT |
146 | src/functions/functions.device \ |
147 | src/functions/functions.dhclient \ | |
148 | src/functions/functions.dhcpd \ | |
149 | src/functions/functions.distro \ | |
150 | src/functions/functions.dns \ | |
151 | src/functions/functions.dummy \ | |
e524986c | 152 | src/functions/functions.editor \ |
5ca9dc30 MT |
153 | src/functions/functions.firewall \ |
154 | src/functions/functions.firewall-policy \ | |
155 | src/functions/functions.firewall-zones \ | |
156 | src/functions/functions.he \ | |
157 | src/functions/functions.hook \ | |
158 | src/functions/functions.hostapd \ | |
b8026986 | 159 | src/functions/functions.hotplug \ |
5ca9dc30 | 160 | src/functions/functions.http \ |
de72bd91 | 161 | src/functions/functions.interrupts \ |
5ca9dc30 | 162 | src/functions/functions.ip \ |
be844b7b | 163 | src/functions/functions.ipsec \ |
4e78b7ad | 164 | src/functions/functions.ipsec-pool \ |
5ca9dc30 MT |
165 | src/functions/functions.iptables \ |
166 | src/functions/functions.ip-tunnel \ | |
167 | src/functions/functions.ipv4 \ | |
168 | src/functions/functions.ipv6 \ | |
208f7452 | 169 | src/functions/functions.leds \ |
5ca9dc30 MT |
170 | src/functions/functions.list \ |
171 | src/functions/functions.lock \ | |
172 | src/functions/functions.logging \ | |
173 | src/functions/functions.macros \ | |
5ca9dc30 | 174 | src/functions/functions.modem \ |
3608f641 | 175 | src/functions/functions.offloading \ |
5ca9dc30 MT |
176 | src/functions/functions.phy \ |
177 | src/functions/functions.ports \ | |
178 | src/functions/functions.ppp \ | |
179 | src/functions/functions.pppoe-server \ | |
5ca9dc30 MT |
180 | src/functions/functions.route \ |
181 | src/functions/functions.routing \ | |
182 | src/functions/functions.serial \ | |
183 | src/functions/functions.service \ | |
e9df08ad | 184 | src/functions/functions.settings \ |
5ca9dc30 | 185 | src/functions/functions.stp \ |
5ca9dc30 | 186 | src/functions/functions.sysctl \ |
de72bd91 | 187 | src/functions/functions.system \ |
de3cecef | 188 | src/functions/functions.triggers \ |
5ca9dc30 MT |
189 | src/functions/functions.usb \ |
190 | src/functions/functions.util \ | |
191 | src/functions/functions.vlan \ | |
2da98f56 | 192 | src/functions/functions.vpn \ |
3eae7bed | 193 | src/functions/functions.vpn-security-policies \ |
5ca9dc30 | 194 | src/functions/functions.wireless \ |
81bf9898 | 195 | src/functions/functions.wireless-mesh \ |
49958b8c | 196 | src/functions/functions.wireless-networks \ |
5ca9dc30 MT |
197 | src/functions/functions.wpa_supplicant \ |
198 | src/functions/functions.zone \ | |
5ca9dc30 MT |
199 | src/header-config \ |
200 | src/header-port \ | |
f9217f83 | 201 | src/header-zone |
5ca9dc30 | 202 | |
b719b3f7 | 203 | dist_network_SCRIPTS = \ |
f9217f83 MT |
204 | src/dhclient-helper \ |
205 | src/ppp/dialer \ | |
206 | src/ppp/pppoe-server | |
b719b3f7 | 207 | |
5ca9dc30 | 208 | dist_helpers_SCRIPTS = \ |
5ca9dc30 | 209 | src/helpers/dhcpd-config-helper \ |
5ca9dc30 | 210 | src/helpers/hostapd-config-helper \ |
67baa452 | 211 | src/helpers/ipsec-updown \ |
5ca9dc30 | 212 | src/helpers/pppd-angel \ |
02807ad2 | 213 | src/helpers/wpa_supplicant |
5ca9dc30 | 214 | |
13a6e69f MT |
215 | bin_PROGRAMS = \ |
216 | src/inetcalc | |
217 | ||
218 | src_inetcalc_SOURCES = \ | |
219 | src/inetcalc.c | |
220 | ||
01f2b2e4 MT |
221 | src_inetcalc_LDADD = \ |
222 | src/libnetwork.la | |
223 | ||
7d2cb6d3 | 224 | dist_hooks_configs_SCRIPTS = \ |
9353a4e4 | 225 | src/hooks/configs/dhcp \ |
b73e9d43 | 226 | src/hooks/configs/ipv6-auto \ |
46a28dcd MT |
227 | src/hooks/configs/pppoe-server \ |
228 | src/hooks/configs/static | |
7d2cb6d3 | 229 | |
5ca9dc30 | 230 | dist_hooks_ports_SCRIPTS = \ |
5ca9dc30 MT |
231 | src/hooks/ports/bonding \ |
232 | src/hooks/ports/dummy \ | |
233 | src/hooks/ports/ethernet \ | |
8032884d | 234 | src/hooks/ports/ip-tunnel \ |
5ca9dc30 | 235 | src/hooks/ports/vlan \ |
727248f0 MT |
236 | src/hooks/ports/wireless-ap \ |
237 | src/hooks/ports/wireless-mesh | |
5ca9dc30 MT |
238 | |
239 | dist_hooks_zones_SCRIPTS = \ | |
5ca9dc30 | 240 | src/hooks/zones/bridge \ |
85de251d | 241 | src/hooks/zones/ip-tunnel \ |
5ca9dc30 MT |
242 | src/hooks/zones/modem \ |
243 | src/hooks/zones/pppoe \ | |
5ca9dc30 MT |
244 | src/hooks/zones/wireless |
245 | ||
f166708b MT |
246 | INSTALL_DIRS += \ |
247 | $(configdir) \ | |
248 | $(configdir)/ports \ | |
249 | $(configdir)/vpn \ | |
250 | $(configdir)/vpn/ipsec/connections \ | |
251 | $(configdir)/vpn/security-policies \ | |
252 | $(configdir)/wireless \ | |
253 | $(configdir)/wireless/networks \ | |
254 | $(configdir)/zones | |
255 | ||
5ca9dc30 MT |
256 | # ------------------------------------------------------------------------------ |
257 | ||
01f2b2e4 MT |
258 | LIBNETWORK_CURRENT=0 |
259 | LIBNETWORK_REVISION=0 | |
260 | LIBNETWORK_AGE=0 | |
261 | ||
262 | pkginclude_HEADERS = \ | |
248629ae | 263 | src/libnetwork/network/interface.h \ |
6f4814db | 264 | src/libnetwork/network/libnetwork.h \ |
9cb2f0c0 MT |
265 | src/libnetwork/network/logging.h \ |
266 | src/libnetwork/network/phy.h | |
01f2b2e4 MT |
267 | |
268 | lib_LTLIBRARIES = \ | |
269 | src/libnetwork.la | |
270 | ||
271 | src_libnetwork_la_SOURCES = \ | |
248629ae | 272 | src/libnetwork/interface.c \ |
01f2b2e4 | 273 | src/libnetwork/libnetwork-private.h \ |
9cb2f0c0 MT |
274 | src/libnetwork/libnetwork.c \ |
275 | src/libnetwork/phy.c | |
01f2b2e4 | 276 | |
db0a2d76 MT |
277 | src_libnetwork_la_LIBADD = \ |
278 | $(LIBNL_LIBS) | |
279 | ||
6f4814db MT |
280 | src_libnetwork_la_CPPFLAGS = \ |
281 | $(AM_CPPFLAGS) \ | |
db0a2d76 | 282 | $(LIBNL_CPPFLAGS) \ |
6f4814db MT |
283 | -D_GNU_SOURCE \ |
284 | -DNETWORK_PRIVATE | |
285 | ||
db0a2d76 MT |
286 | src_libnetwork_la_CFLAGS = \ |
287 | $(AM_CFLAGS) \ | |
288 | $(LIBNL_CFLAGS) | |
289 | ||
01f2b2e4 MT |
290 | src_libnetwork_la_LDFLAGS = \ |
291 | $(AM_LDFLAGS) \ | |
292 | -version-info $(LIBNETWORK_CURRENT):$(LIBNETWORK_REVISION):$(LIBNETWORK_AGE) \ | |
293 | -Wl,--version-script=$(top_srcdir)/src/libnetwork/libnetwork.sym | |
294 | ||
295 | src_libnetwork_la_DEPENDENCIES = \ | |
296 | src/libnetwork/libnetwork.sym | |
297 | ||
298 | EXTRA_DIST += \ | |
299 | src/libnetwork/libnetwork.sym | |
300 | ||
301 | # ------------------------------------------------------------------------------ | |
050f4ece MT |
302 | |
303 | sbin_PROGRAMS += \ | |
304 | networkd | |
305 | ||
306 | dist_networkd_SOURCES = \ | |
112358f3 MT |
307 | src/networkd/daemon.c \ |
308 | src/networkd/daemon.h \ | |
050f4ece MT |
309 | src/networkd/main.c |
310 | ||
311 | networkd_CPPFLAGS = \ | |
312 | $(AM_CPPFLAGS) | |
313 | ||
314 | networkd_CFLAGS = \ | |
5d326bbb MT |
315 | $(AM_CFLAGS) \ |
316 | $(SYSTEMD_CFLAGS) | |
050f4ece MT |
317 | |
318 | networkd_LDFLAGS = \ | |
319 | $(AM_LDFLAGS) | |
320 | ||
5d326bbb MT |
321 | networkd_LDADD = \ |
322 | $(SYSTEMD_LIBS) | |
323 | ||
050f4ece | 324 | # ------------------------------------------------------------------------------ |
e145b2f3 MT |
325 | |
326 | util_PROGRAMS = \ | |
394cff53 | 327 | src/utils/network-phy-list-channels \ |
2e4e3c88 | 328 | src/utils/network-phy-list-ciphers \ |
b2323e58 MT |
329 | src/utils/network-phy-list-ht-caps \ |
330 | src/utils/network-phy-list-vht-caps | |
e145b2f3 | 331 | |
394cff53 MT |
332 | src_utils_network_phy_list_channels_SOURCES = \ |
333 | src/utils/network-phy-list-channels.c | |
334 | ||
335 | src_utils_network_phy_list_channels_LDADD = \ | |
336 | src/libnetwork.la | |
337 | ||
2e4e3c88 MT |
338 | src_utils_network_phy_list_ciphers_SOURCES = \ |
339 | src/utils/network-phy-list-ciphers.c | |
340 | ||
341 | src_utils_network_phy_list_ciphers_LDADD = \ | |
342 | src/libnetwork.la | |
343 | ||
e145b2f3 MT |
344 | src_utils_network_phy_list_ht_caps_SOURCES = \ |
345 | src/utils/network-phy-list-ht-caps.c | |
346 | ||
347 | src_utils_network_phy_list_ht_caps_LDADD = \ | |
348 | src/libnetwork.la | |
349 | ||
b2323e58 MT |
350 | src_utils_network_phy_list_vht_caps_SOURCES = \ |
351 | src/utils/network-phy-list-vht-caps.c | |
352 | ||
353 | src_utils_network_phy_list_vht_caps_LDADD = \ | |
354 | src/libnetwork.la | |
355 | ||
e145b2f3 | 356 | # ------------------------------------------------------------------------------ |
01f2b2e4 | 357 | |
5ca9dc30 MT |
358 | ppp_SCRIPTS = \ |
359 | src/ppp/ip-updown | |
360 | ||
361 | CLEANFILES += \ | |
362 | src/ppp/ip-updown | |
363 | ||
364 | EXTRA_DIST += \ | |
365 | src/ppp/ip-updown.in | |
366 | ||
367 | INSTALL_DIRS += \ | |
9c9d0585 SS |
368 | $(pppdir) \ |
369 | $(logdir) | |
5ca9dc30 MT |
370 | |
371 | ppp-install-hook: | |
372 | ln -svf ip-updown $(DESTDIR)$(pppdir)/ip-pre-up | |
373 | ln -svf ip-updown $(DESTDIR)$(pppdir)/ip-up | |
374 | ln -svf ip-updown $(DESTDIR)$(pppdir)/ip-down | |
375 | ln -svf ip-updown $(DESTDIR)$(pppdir)/ipv6-up | |
376 | ln -svf ip-updown $(DESTDIR)$(pppdir)/ipv6-down | |
377 | ||
378 | ppp-uninstall-hook: | |
379 | rm -f $(DESTDIR)$(pppdir)/ip-{down,pre-up,up} | |
380 | rm -f $(DESTDIR)$(pppdir)/ipv6-{down,up} | |
381 | ||
382 | INSTALL_EXEC_HOOKS += ppp-install-hook | |
383 | UNINSTALL_EXEC_HOOKS += ppp-uninstall-hook | |
384 | ||
385 | # ------------------------------------------------------------------------------ | |
386 | ||
387 | if HAVE_SYSTEMD | |
388 | systemdsystemunit_DATA = \ | |
67131768 | 389 | src/systemd/firewall.service \ |
5ca9dc30 MT |
390 | src/systemd/firewall-init.service \ |
391 | src/systemd/network-init.service \ | |
392 | src/systemd/network@.service | |
393 | ||
394 | CLEANFILES += \ | |
395 | $(systemdsystemunit_DATA) | |
396 | ||
397 | INSTALL_DIRS += \ | |
398 | $(systemdsystemunitdir) | |
399 | endif | |
400 | ||
401 | EXTRA_DIST += \ | |
b41f1f86 | 402 | src/systemd/firewall.service.in \ |
5ca9dc30 MT |
403 | src/systemd/firewall-init.service.in \ |
404 | src/systemd/network-init.service.in \ | |
405 | src/systemd/network@.service.in | |
406 | ||
407 | # ------------------------------------------------------------------------------ | |
408 | ||
5e84cd41 MT |
409 | systemconfig_vpndir = $(systemconfigdir)/vpn |
410 | ||
411 | dist_systemconfig_vpn_security_policies_DATA = \ | |
56d5efa7 | 412 | config/vpn/security-policies/performance \ |
5e84cd41 MT |
413 | config/vpn/security-policies/system |
414 | ||
415 | systemconfig_vpn_security_policiesdir = $(systemconfig_vpndir)/security-policies | |
416 | ||
417 | # ------------------------------------------------------------------------------ | |
418 | ||
5ca9dc30 MT |
419 | dist_sysctl_DATA = \ |
420 | src/sysctl/network.conf | |
421 | ||
422 | # ------------------------------------------------------------------------------ | |
423 | ||
ea4abb82 MT |
424 | dist_modprobe_DATA = \ |
425 | src/modprobe.d/no-copybreak.conf | |
426 | ||
427 | # ------------------------------------------------------------------------------ | |
428 | ||
bae37360 MT |
429 | dist_bashcompletion_SCRIPTS = \ |
430 | src/bash-completion/network | |
431 | ||
432 | # ------------------------------------------------------------------------------ | |
433 | ||
5ca9dc30 | 434 | dist_tmpfiles_DATA = \ |
f9dac5a0 | 435 | src/tmpfiles/network.conf |
5ca9dc30 MT |
436 | |
437 | # ------------------------------------------------------------------------------ | |
438 | ||
439 | if HAVE_UDEV | |
440 | dist_udev_SCRIPTS = \ | |
441 | src/udev/network-hotplug \ | |
442 | src/udev/network-hotplug-rename \ | |
443 | src/udev/network-hotplug-serial | |
444 | ||
445 | dist_udevrules_DATA = \ | |
446 | src/udev/rules.d/50-serial-whitelist.rules \ | |
447 | src/udev/rules.d/60-net.rules | |
448 | ||
449 | INSTALL_DIRS += \ | |
450 | $(udevdir) \ | |
451 | $(udevrulesdir) | |
452 | endif | |
453 | ||
454 | # ------------------------------------------------------------------------------ | |
455 | ||
01f2b2e4 | 456 | pkgconfig_DATA = \ |
5ca9dc30 MT |
457 | src/network.pc |
458 | ||
459 | CLEANFILES += \ | |
01f2b2e4 | 460 | $(pkgconfig_DATA) |
5ca9dc30 MT |
461 | |
462 | EXTRA_DIST += \ | |
463 | src/network.pc.in | |
464 | ||
465 | # ------------------------------------------------------------------------------ | |
466 | ||
467 | dist_macros_DATA = \ | |
468 | src/macros/DHCP \ | |
469 | src/macros/HTTP \ | |
470 | src/macros/HTTPS \ | |
471 | src/macros/WWW | |
472 | ||
473 | # ------------------------------------------------------------------------------ | |
474 | ||
ec3fe5b7 | 475 | INSTALL_DIRS += \ |
de3cecef MT |
476 | $(triggersdir) |
477 | ||
478 | # ------------------------------------------------------------------------------ | |
479 | ||
5ca9dc30 | 480 | MANPAGES = \ |
2b0ff832 | 481 | man/firewall-settings.8 \ |
5ca9dc30 | 482 | man/network.8 \ |
5ca9dc30 | 483 | man/network-device.8 \ |
427f5ae2 | 484 | man/network-dhcp.8 \ |
5ca9dc30 | 485 | man/network-dns-server.8 \ |
de72bd91 | 486 | man/network-performance-tuning.8 \ |
7a302fa7 | 487 | man/network-port.8 \ |
94eab754 | 488 | man/network-quick-start.8 \ |
5ca9dc30 | 489 | man/network-route.8 \ |
e023191b | 490 | man/network-route-static.8 \ |
2b0ff832 | 491 | man/network-settings.8 \ |
bec94f95 | 492 | man/network-vpn.8 \ |
2612a6f4 | 493 | man/network-vpn-ipsec.8 \ |
bec94f95 | 494 | man/network-vpn-security-policies.8 \ |
5ca9dc30 | 495 | man/network-zone.8 \ |
5ca9dc30 MT |
496 | man/network-zone-bridge.8 \ |
497 | man/network-zone-config-pppoe-server.8 \ | |
bd767a3e | 498 | man/network-zone-ip-tunnel.8 \ |
7a302fa7 | 499 | man/network-zone-modem.8 \ |
2fb7ae4d MT |
500 | man/network-zone-pppoe.8 \ |
501 | man/network-zone-wireless.8 | |
5ca9dc30 | 502 | |
ff435238 MT |
503 | EXTRA_DIST += \ |
504 | man/include-color.txt \ | |
505 | man/include-description.txt | |
506 | ||
8f591cfc | 507 | MANPAGES_TXT = $(patsubst %.8,%.txt,$(MANPAGES)) |
d746901b MT |
508 | MANPAGES_HTML = $(patsubst %.txt,%.html,$(MANPAGES_TXT)) |
509 | MANPAGES_XML = $(patsubst %.txt,%.xml,$(MANPAGES_TXT)) | |
5ca9dc30 MT |
510 | |
511 | .PHONY: man | |
512 | man: $(MANPAGES) $(MANPAGES_HTML) | |
513 | ||
dbe28a05 | 514 | if ENABLE_MANPAGES |
5ca9dc30 MT |
515 | man_MANS = \ |
516 | $(MANPAGES) | |
dbe28a05 | 517 | endif |
5ca9dc30 | 518 | |
5ca9dc30 | 519 | CLEANFILES += \ |
dbe28a05 | 520 | $(MANPAGES) \ |
d746901b MT |
521 | $(MANPAGES_HTML) \ |
522 | $(MANPAGES_XML) | |
5ca9dc30 MT |
523 | |
524 | EXTRA_DIST += \ | |
5d881996 | 525 | man/asciidoc.conf \ |
a7d2fef7 | 526 | $(MANPAGES_TXT) |
5ca9dc30 MT |
527 | |
528 | XSLTPROC_FLAGS = \ | |
529 | --nonet \ | |
530 | --stringparam man.output.quietly 1 \ | |
531 | --stringparam funcsynopsis.style ansi \ | |
532 | --stringparam man.th.extra1.suppress 1 \ | |
533 | --stringparam man.authors.section.enabled 1 \ | |
534 | --stringparam man.copyright.section.enabled 1 | |
535 | ||
536 | XSLTPROC_COMMAND_MAN = \ | |
5d881996 MT |
537 | $(AM_V_XSLT)$(MKDIR_P) $(dir $@) && \ |
538 | $(XSLTPROC) -o $@ $(XSLTPROC_FLAGS) \ | |
5ca9dc30 MT |
539 | http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl $< |
540 | ||
baf429f1 | 541 | man/%.xml: man/%.txt man/asciidoc.conf |
5d881996 MT |
542 | $(AM_V_ASCIIDOC)$(MKDIR_P) $(dir $@) && \ |
543 | $(ASCIIDOC) \ | |
544 | -f $(abs_srcdir)/man/asciidoc.conf \ | |
baf429f1 | 545 | -d manpage -b docbook -o $@ $< |
8f591cfc | 546 | |
5ca9dc30 MT |
547 | man/%.8: man/%.xml |
548 | $(XSLTPROC_COMMAND_MAN) | |
549 | ||
baf429f1 | 550 | man/%.html: man/%.txt man/asciidoc.conf |
5d881996 MT |
551 | $(AM_V_ASCIIDOC)$(MKDIR_P) $(dir $@) && \ |
552 | $(ASCIIDOC) \ | |
553 | -f $(abs_srcdir)/man/asciidoc.conf \ | |
baf429f1 | 554 | -b html5 -a icons -a theme=flask -o $@ $< |
5ca9dc30 | 555 | |
2d2e9626 MT |
556 | .PHONY: upload-man |
557 | upload-man: $(MANPAGES_HTML) | |
558 | rsync -avHz --delete --progress $(MANPAGES_HTML) ms@people.ipfire.org:/pub/man-pages/$(PACKAGE_NAME)/ | |
559 | ||
5ca9dc30 MT |
560 | # ------------------------------------------------------------------------------ |
561 | ||
562 | substitutions = \ | |
563 | '|PACKAGE_NAME=$(PACKAGE_NAME)|' \ | |
564 | '|PACKAGE_URL=$(PACKAGE_URL)|' \ | |
565 | '|PACKAGE_VERSION=$(PACKAGE_VERSION)|' \ | |
a35f416c | 566 | '|builddir=$(abs_builddir)|' \ |
5ca9dc30 MT |
567 | '|prefix=$(prefix)|' \ |
568 | '|exec_prefix=$(exec_prefix)|' \ | |
569 | '|sbindir=$(sbindir)|' \ | |
c6525a63 | 570 | '|networkdir=$(networkdir)|' \ |
96275aa1 | 571 | '|helpersdir=$(helpersdir)|' \ |
c4966dd6 MT |
572 | '|utildir=$(utildir)|' \ |
573 | '|VIRTUAL_ENVIRONMENT_IMAGES_DIR=$(VIRTUAL_ENVIRONMENT_IMAGES_DIR)|' | |
5ca9dc30 MT |
574 | |
575 | SED_PROCESS = \ | |
576 | $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \ | |
577 | $(SED) $(subst '|,-e 's|@,$(subst =,\@|,$(subst |',|g',$(substitutions)))) \ | |
578 | < $< > $@ | |
579 | ||
3431f712 | 580 | %: %.in Makefile |
5ca9dc30 MT |
581 | $(SED_PROCESS) |
582 | ||
583 | INSTALL_DIRS += \ | |
584 | $(sbindir) | |
585 | ||
586 | install-exec-hook: $(INSTALL_EXEC_HOOKS) | |
587 | ||
588 | uninstall-hook: $(UNINSTALL_EXEC_HOOKS) | |
589 | ||
590 | # - testsuite ------------------------------------------------------------------ | |
591 | ||
592 | TESTS_ENVIRONMENT = \ | |
071d3416 | 593 | LD_LIBRARY_PATH=$(top_builddir)/src/.libs:$(LD_LIBRARY_PATH) \ |
8744a476 MT |
594 | PATH=$(top_builddir)/src:$(PATH) \ |
595 | functions=$(abs_builddir)/src/functions/functions \ | |
596 | networkdir=$(abs_srcdir)/src/functions \ | |
597 | testdir=$(top_srcdir)/test | |
598 | ||
599 | dist_check_DATA = \ | |
ee86c73f MT |
600 | test/constants.sh \ |
601 | test/test-functions | |
5ca9dc30 MT |
602 | |
603 | dist_check_SCRIPTS = \ | |
8744a476 | 604 | $(TESTS) |
5ca9dc30 MT |
605 | |
606 | TESTS = \ | |
bb8304ec | 607 | test/load-library \ |
bb8304ec | 608 | test/functions/ip/ip_detect_protocol \ |
bb8304ec | 609 | test/functions/ip/ip_get_prefix \ |
8b0958b2 | 610 | test/functions/ip/ip_net_is_valid \ |
b7fd8067 | 611 | test/functions/ip/ip_is_valid \ |
b862734c | 612 | test/functions/ip/ip_network_is_subnet_of \ |
b7fd8067 MT |
613 | test/functions/ip/ip_prefix_is_valid \ |
614 | test/functions/ip/ip_protocol_is_supported \ | |
615 | test/functions/ip/ip_split_prefix | |
1908d2b3 MT |
616 | |
617 | # - NITSI tests ---------------------------------------------------------------- | |
618 | ||
232d01c8 | 619 | # Files for the virtual environment |
c4966dd6 | 620 | VIRTUAL_ENVIRONMENT_FILES = \ |
232d01c8 MT |
621 | test/nitsi/virtual-environment/basic/machines/alice/machine.xml \ |
622 | test/nitsi/virtual-environment/basic/machines/alice/snapshot.xml \ | |
623 | test/nitsi/virtual-environment/basic/machines/bob/machine.xml \ | |
624 | test/nitsi/virtual-environment/basic/machines/bob/snapshot.xml \ | |
625 | test/nitsi/virtual-environment/basic/network/network1/network.xml \ | |
626 | test/nitsi/virtual-environment/basic/network/network2/network.xml \ | |
627 | test/nitsi/virtual-environment/basic/network/network3/network.xml \ | |
628 | test/nitsi/virtual-environment/basic/network/network4/network.xml \ | |
232d01c8 MT |
629 | test/nitsi/virtual-environment/basic/settings |
630 | ||
c4966dd6 MT |
631 | EXTRA_DIST += \ |
632 | test/nitsi/virtual-environment/basic/machines/alice/machine.xml.in \ | |
633 | test/nitsi/virtual-environment/basic/machines/alice/snapshot.xml.in \ | |
634 | test/nitsi/virtual-environment/basic/machines/bob/machine.xml.in \ | |
43d82e80 JS |
635 | test/nitsi/virtual-environment/basic/machines/bob/snapshot.xml.in \ |
636 | test/nitsi/virtual-environment/basic/settings.in | |
c4966dd6 MT |
637 | |
638 | CLEANFILES += \ | |
639 | test/nitsi/virtual-environment/basic/machines/alice/machine.xml \ | |
640 | test/nitsi/virtual-environment/basic/machines/alice/snapshot.xml \ | |
641 | test/nitsi/virtual-environment/basic/machines/bob/machine.xml \ | |
43d82e80 JS |
642 | test/nitsi/virtual-environment/basic/machines/bob/snapshot.xml \ |
643 | test/nitsi/virtual-environment/basic/settings | |
c4966dd6 MT |
644 | |
645 | # Virtual Machine Images | |
646 | VIRTUAL_ENVIRONMENT_IMAGES = \ | |
647 | $(VIRTUAL_ENVIRONMENT_IMAGES_DIR)/ipfire-alice-2.qcow2 \ | |
648 | $(VIRTUAL_ENVIRONMENT_IMAGES_DIR)/ipfire-bob.qcow2 | |
649 | ||
650 | DISTCLEANFILES += \ | |
651 | $(VIRTUAL_ENVIRONMENT_IMAGES) | |
652 | ||
653 | VIRTUAL_ENVIRONMENT_IMAGES_DIR = $(abs_builddir)/test/nitsi/virtual-environment/.images | |
654 | VIRTUAL_ENVIRONMENT_IMAGES_DOWNLOAD_URL = \ | |
655 | https://people.ipfire.org/~jschlag/nitsi-ipfire/virtual-environment/basic/ | |
656 | ||
60dbefba | 657 | NITSI_INCLUDE_RECIPES = \ |
fb99a6c7 | 658 | test/nitsi/include/setup |
60dbefba JS |
659 | |
660 | EXTRA_DIST += \ | |
fb99a6c7 | 661 | test/nitsi/include/setup.in |
60dbefba JS |
662 | |
663 | CLEANFILES += \ | |
fb99a6c7 | 664 | test/nitsi/include/setup |
60dbefba | 665 | |
1908d2b3 | 666 | NITSI_TESTS = \ |
4c769bb2 | 667 | test/nitsi/test/make-check \ |
ae7a79da | 668 | test/nitsi/test/phase1 \ |
7808dbf2 | 669 | test/nitsi/test/pppoe \ |
07c82cd3 | 670 | test/nitsi/test/raw-device-get-by-mac \ |
9c8ff8de | 671 | test/nitsi/test/zone-new-bridge \ |
283ad5b0 | 672 | test/nitsi/test/zone-port-attach-bridge \ |
8c929286 MT |
673 | test/nitsi/test/zone/ip-tunnel/gre6 \ |
674 | test/nitsi/test/zone/ip-tunnel/gre4 \ | |
60b6dd44 JS |
675 | test/nitsi/test/vpn/ipsec/n2n/vti/ipv4-via-ipv4 \ |
676 | test/nitsi/test/vpn/ipsec/n2n/vti/ipv4-via-ipv6 \ | |
677 | test/nitsi/test/vpn/ipsec/n2n/vti/ipv6-via-ipv4 \ | |
678 | test/nitsi/test/vpn/ipsec/n2n/vti/ipv6-via-ipv6 \ | |
679 | test/nitsi/test/vpn/ipsec/n2n/vti/ipv64-via-ipv4 \ | |
680 | test/nitsi/test/vpn/ipsec/n2n/vti/ipv64-via-ipv6 \ | |
87ad62bc | 681 | test/nitsi/test/port-vlan |
1908d2b3 MT |
682 | |
683 | EXTRA_DIST += \ | |
91ee6559 | 684 | test/nitsi/test/settings.in \ |
a35f416c | 685 | test/nitsi/test/make-check/recipe.in \ |
07c82cd3 JS |
686 | test/nitsi/test/make-check/settings.in \ |
687 | test/nitsi/test/raw-device-get-by-mac/recipe \ | |
688 | test/nitsi/test/raw-device-get-by-mac/settings.in \ | |
689 | test/nitsi/test/zone-new-bridge/recipe \ | |
9c8ff8de JS |
690 | test/nitsi/test/zone-new-bridge/settings.in \ |
691 | test/nitsi/test/zone-port-attach-bridge/recipe \ | |
283ad5b0 | 692 | test/nitsi/test/zone-port-attach-bridge/settings.in \ |
8c929286 MT |
693 | test/nitsi/test/zone/ip-tunnel/gre6/recipe \ |
694 | test/nitsi/test/zone/ip-tunnel/gre6/settings \ | |
695 | test/nitsi/test/zone/ip-tunnel/gre4/recipe \ | |
696 | test/nitsi/test/zone/ip-tunnel/gre4/settings \ | |
60b6dd44 JS |
697 | test/nitsi/test/vpn/ipsec/n2n/vti/ipv4-via-ipv4/recipe \ |
698 | test/nitsi/test/vpn/ipsec/n2n/vti/ipv4-via-ipv4/settings \ | |
699 | test/nitsi/test/vpn/ipsec/n2n/vti/ipv4-via-ipv6/recipe \ | |
700 | test/nitsi/test/vpn/ipsec/n2n/vti/ipv4-via-ipv6/settings \ | |
701 | test/nitsi/test/vpn/ipsec/n2n/vti/ipv6-via-ipv4/recipe \ | |
702 | test/nitsi/test/vpn/ipsec/n2n/vti/ipv6-via-ipv4/settings \ | |
703 | test/nitsi/test/vpn/ipsec/n2n/vti/ipv6-via-ipv6/recipe \ | |
704 | test/nitsi/test/vpn/ipsec/n2n/vti/ipv6-via-ipv6/settings \ | |
705 | test/nitsi/test/vpn/ipsec/n2n/vti/ipv64-via-ipv4/recipe \ | |
706 | test/nitsi/test/vpn/ipsec/n2n/vti/ipv64-via-ipv4/settings \ | |
707 | test/nitsi/test/vpn/ipsec/n2n/vti/ipv64-via-ipv6/recipe \ | |
708 | test/nitsi/test/vpn/ipsec/n2n/vti/ipv64-via-ipv6/settings \ | |
709 | test/nitsi/test/port-vlan/recipe \ | |
710 | test/nitsi/test/port-vlan/settings | |
a35f416c MT |
711 | |
712 | CLEANFILES += \ | |
91ee6559 | 713 | test/nitsi/test/settings \ |
a35f416c | 714 | test/nitsi/test/make-check/recipe \ |
4c769bb2 | 715 | test/nitsi/test/make-check/settings \ |
07c82cd3 | 716 | test/nitsi/test/raw-device-get-by-mac/settings \ |
9c8ff8de | 717 | test/nitsi/test/zone-new-bridge/settings \ |
9b01a925 | 718 | test/nitsi/test/zone-port-attach-bridge/settings |
1908d2b3 MT |
719 | |
720 | NITSI_ENVIRONMENT = | |
721 | ||
722 | .PHONY: $(NITSI_TESTS) | |
59281a53 | 723 | $(NITSI_TESTS): % : dist %/recipe %/settings test/nitsi/test/settings $(VIRTUAL_ENVIRONMENT_FILES) $(VIRTUAL_ENVIRONMENT_IMAGES) $(NITSI_INCLUDE_RECIPES) |
91ee6559 | 724 | $(AM_V_NITSI) $(NITSI_ENVIRONMENT) $(NITSI) --log-level error run-test -d $@ \ |
e3e44ab6 | 725 | --default-settings $(abs_builddir)/test/nitsi/test/settings --interactive-error-handling |
1908d2b3 MT |
726 | |
727 | .PHONY: nitsi | |
59281a53 | 728 | nitsi: $(NITSI_TESTS) |
c4966dd6 MT |
729 | |
730 | # Downloads a virtual image file and extracts it | |
731 | $(VIRTUAL_ENVIRONMENT_IMAGES): | |
732 | $(AM_V_DOWNLOAD)$(MKDIR_P) $(dir $@) && \ | |
733 | $(WGET) -qO - $(VIRTUAL_ENVIRONMENT_IMAGES_DOWNLOAD_URL)/$(notdir $@).xz | xz -qd > $@ |