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