]>
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 \ | |
9e8af30e MT |
335 | src/networkd/port-dummy.c \ |
336 | src/networkd/port-dummy.h \ | |
ff886975 MT |
337 | src/networkd/port-vlan.c \ |
338 | src/networkd/port-vlan.h \ | |
15240e08 MT |
339 | src/networkd/stats-collector.c \ |
340 | src/networkd/stats-collector.h \ | |
e4eebc6e | 341 | src/networkd/string.h \ |
c791afc8 MT |
342 | src/networkd/util.c \ |
343 | src/networkd/util.h \ | |
0c8e7342 MT |
344 | src/networkd/zones.c \ |
345 | src/networkd/zones.h \ | |
e4eebc6e | 346 | src/networkd/zone.c \ |
ed00ef20 MT |
347 | src/networkd/zone.h \ |
348 | src/networkd/zone-bus.c \ | |
349 | src/networkd/zone-bus.h | |
050f4ece MT |
350 | |
351 | networkd_CPPFLAGS = \ | |
5c1452a4 MT |
352 | $(AM_CPPFLAGS) \ |
353 | -DCONFIG_DIR="\"$(configdir)\"" | |
050f4ece MT |
354 | |
355 | networkd_CFLAGS = \ | |
5d326bbb | 356 | $(AM_CFLAGS) \ |
dabf344d | 357 | $(CAP_CFLAGS) \ |
5d326bbb | 358 | $(SYSTEMD_CFLAGS) |
050f4ece MT |
359 | |
360 | networkd_LDFLAGS = \ | |
361 | $(AM_LDFLAGS) | |
362 | ||
5d326bbb | 363 | networkd_LDADD = \ |
b53b186e | 364 | src/libnetwork.la \ |
dabf344d | 365 | $(CAP_LIBS) \ |
5d326bbb MT |
366 | $(SYSTEMD_LIBS) |
367 | ||
d5fab986 MT |
368 | dist_dbuspolicy_DATA += \ |
369 | src/networkd/org.ipfire.network1.conf | |
370 | ||
371 | dist_dbussystembus_DATA += \ | |
063eb4d8 MT |
372 | src/networkd/org.ipfire.network1.service |
373 | ||
bf98bd65 MT |
374 | dist_polkitpolicy_DATA += \ |
375 | src/networkd/org.ipfire.network1.policy | |
376 | ||
5d968c01 MT |
377 | systemdsystemunit_DATA += \ |
378 | src/networkd/networkd.service | |
379 | ||
380 | EXTRA_DIST += \ | |
381 | src/networkd/networkd.service.in | |
382 | ||
383 | CLEANFILES += \ | |
384 | src/networkd/networkd.service | |
385 | ||
050f4ece | 386 | # ------------------------------------------------------------------------------ |
e145b2f3 | 387 | |
840738f6 MT |
388 | bin_PROGRAMS += \ |
389 | networkctl | |
390 | ||
391 | dist_networkctl_SOURCES = \ | |
f3bb976c MT |
392 | src/networkctl/command.c \ |
393 | src/networkctl/command.h \ | |
537fae0b | 394 | src/networkctl/main.c \ |
4c99b8ed MT |
395 | src/networkctl/port.c \ |
396 | src/networkctl/port.h \ | |
537fae0b MT |
397 | src/networkctl/zone.c \ |
398 | src/networkctl/zone.h | |
840738f6 MT |
399 | |
400 | networkctl_CFLAGS = \ | |
401 | $(AM_CFLAGS) \ | |
402 | $(SYSTEMD_CFLAGS) | |
403 | ||
404 | networkctl_LDFLAGS = \ | |
405 | $(AM_LDFLAGS) | |
406 | ||
407 | networkctl_LDADD = \ | |
408 | $(SYSTEMD_LIBS) | |
409 | ||
410 | # ------------------------------------------------------------------------------ | |
411 | ||
e145b2f3 | 412 | util_PROGRAMS = \ |
394cff53 | 413 | src/utils/network-phy-list-channels \ |
2e4e3c88 | 414 | src/utils/network-phy-list-ciphers \ |
b2323e58 MT |
415 | src/utils/network-phy-list-ht-caps \ |
416 | src/utils/network-phy-list-vht-caps | |
e145b2f3 | 417 | |
394cff53 MT |
418 | src_utils_network_phy_list_channels_SOURCES = \ |
419 | src/utils/network-phy-list-channels.c | |
420 | ||
421 | src_utils_network_phy_list_channels_LDADD = \ | |
422 | src/libnetwork.la | |
423 | ||
2e4e3c88 MT |
424 | src_utils_network_phy_list_ciphers_SOURCES = \ |
425 | src/utils/network-phy-list-ciphers.c | |
426 | ||
427 | src_utils_network_phy_list_ciphers_LDADD = \ | |
428 | src/libnetwork.la | |
429 | ||
e145b2f3 MT |
430 | src_utils_network_phy_list_ht_caps_SOURCES = \ |
431 | src/utils/network-phy-list-ht-caps.c | |
432 | ||
433 | src_utils_network_phy_list_ht_caps_LDADD = \ | |
434 | src/libnetwork.la | |
435 | ||
b2323e58 MT |
436 | src_utils_network_phy_list_vht_caps_SOURCES = \ |
437 | src/utils/network-phy-list-vht-caps.c | |
438 | ||
439 | src_utils_network_phy_list_vht_caps_LDADD = \ | |
440 | src/libnetwork.la | |
441 | ||
e145b2f3 | 442 | # ------------------------------------------------------------------------------ |
01f2b2e4 | 443 | |
5ca9dc30 MT |
444 | ppp_SCRIPTS = \ |
445 | src/ppp/ip-updown | |
446 | ||
447 | CLEANFILES += \ | |
448 | src/ppp/ip-updown | |
449 | ||
450 | EXTRA_DIST += \ | |
451 | src/ppp/ip-updown.in | |
452 | ||
453 | INSTALL_DIRS += \ | |
9c9d0585 SS |
454 | $(pppdir) \ |
455 | $(logdir) | |
5ca9dc30 MT |
456 | |
457 | ppp-install-hook: | |
458 | ln -svf ip-updown $(DESTDIR)$(pppdir)/ip-pre-up | |
459 | ln -svf ip-updown $(DESTDIR)$(pppdir)/ip-up | |
460 | ln -svf ip-updown $(DESTDIR)$(pppdir)/ip-down | |
461 | ln -svf ip-updown $(DESTDIR)$(pppdir)/ipv6-up | |
462 | ln -svf ip-updown $(DESTDIR)$(pppdir)/ipv6-down | |
463 | ||
464 | ppp-uninstall-hook: | |
465 | rm -f $(DESTDIR)$(pppdir)/ip-{down,pre-up,up} | |
466 | rm -f $(DESTDIR)$(pppdir)/ipv6-{down,up} | |
467 | ||
468 | INSTALL_EXEC_HOOKS += ppp-install-hook | |
469 | UNINSTALL_EXEC_HOOKS += ppp-uninstall-hook | |
470 | ||
471 | # ------------------------------------------------------------------------------ | |
472 | ||
473 | if HAVE_SYSTEMD | |
5d968c01 | 474 | systemdsystemunit_DATA += \ |
67131768 | 475 | src/systemd/firewall.service \ |
5ca9dc30 MT |
476 | src/systemd/firewall-init.service \ |
477 | src/systemd/network-init.service \ | |
478 | src/systemd/network@.service | |
479 | ||
480 | CLEANFILES += \ | |
481 | $(systemdsystemunit_DATA) | |
482 | ||
483 | INSTALL_DIRS += \ | |
484 | $(systemdsystemunitdir) | |
485 | endif | |
486 | ||
487 | EXTRA_DIST += \ | |
b41f1f86 | 488 | src/systemd/firewall.service.in \ |
5ca9dc30 MT |
489 | src/systemd/firewall-init.service.in \ |
490 | src/systemd/network-init.service.in \ | |
491 | src/systemd/network@.service.in | |
492 | ||
493 | # ------------------------------------------------------------------------------ | |
494 | ||
5e84cd41 MT |
495 | systemconfig_vpndir = $(systemconfigdir)/vpn |
496 | ||
497 | dist_systemconfig_vpn_security_policies_DATA = \ | |
56d5efa7 | 498 | config/vpn/security-policies/performance \ |
5e84cd41 MT |
499 | config/vpn/security-policies/system |
500 | ||
501 | systemconfig_vpn_security_policiesdir = $(systemconfig_vpndir)/security-policies | |
502 | ||
503 | # ------------------------------------------------------------------------------ | |
504 | ||
5ca9dc30 MT |
505 | dist_sysctl_DATA = \ |
506 | src/sysctl/network.conf | |
507 | ||
508 | # ------------------------------------------------------------------------------ | |
509 | ||
ea4abb82 MT |
510 | dist_modprobe_DATA = \ |
511 | src/modprobe.d/no-copybreak.conf | |
512 | ||
513 | # ------------------------------------------------------------------------------ | |
514 | ||
bae37360 MT |
515 | dist_bashcompletion_SCRIPTS = \ |
516 | src/bash-completion/network | |
517 | ||
518 | # ------------------------------------------------------------------------------ | |
519 | ||
5ca9dc30 | 520 | dist_tmpfiles_DATA = \ |
f9dac5a0 | 521 | src/tmpfiles/network.conf |
5ca9dc30 MT |
522 | |
523 | # ------------------------------------------------------------------------------ | |
524 | ||
525 | if HAVE_UDEV | |
526 | dist_udev_SCRIPTS = \ | |
527 | src/udev/network-hotplug \ | |
528 | src/udev/network-hotplug-rename \ | |
529 | src/udev/network-hotplug-serial | |
530 | ||
531 | dist_udevrules_DATA = \ | |
532 | src/udev/rules.d/50-serial-whitelist.rules \ | |
533 | src/udev/rules.d/60-net.rules | |
534 | ||
535 | INSTALL_DIRS += \ | |
536 | $(udevdir) \ | |
537 | $(udevrulesdir) | |
538 | endif | |
539 | ||
540 | # ------------------------------------------------------------------------------ | |
541 | ||
01f2b2e4 | 542 | pkgconfig_DATA = \ |
5ca9dc30 MT |
543 | src/network.pc |
544 | ||
545 | CLEANFILES += \ | |
01f2b2e4 | 546 | $(pkgconfig_DATA) |
5ca9dc30 MT |
547 | |
548 | EXTRA_DIST += \ | |
549 | src/network.pc.in | |
550 | ||
551 | # ------------------------------------------------------------------------------ | |
552 | ||
553 | dist_macros_DATA = \ | |
554 | src/macros/DHCP \ | |
555 | src/macros/HTTP \ | |
556 | src/macros/HTTPS \ | |
557 | src/macros/WWW | |
558 | ||
559 | # ------------------------------------------------------------------------------ | |
560 | ||
ec3fe5b7 | 561 | INSTALL_DIRS += \ |
de3cecef MT |
562 | $(triggersdir) |
563 | ||
564 | # ------------------------------------------------------------------------------ | |
565 | ||
5ca9dc30 | 566 | MANPAGES = \ |
2b0ff832 | 567 | man/firewall-settings.8 \ |
5ca9dc30 | 568 | man/network.8 \ |
5ca9dc30 | 569 | man/network-device.8 \ |
427f5ae2 | 570 | man/network-dhcp.8 \ |
5ca9dc30 | 571 | man/network-dns-server.8 \ |
de72bd91 | 572 | man/network-performance-tuning.8 \ |
7a302fa7 | 573 | man/network-port.8 \ |
94eab754 | 574 | man/network-quick-start.8 \ |
5ca9dc30 | 575 | man/network-route.8 \ |
e023191b | 576 | man/network-route-static.8 \ |
2b0ff832 | 577 | man/network-settings.8 \ |
bec94f95 | 578 | man/network-vpn.8 \ |
2612a6f4 | 579 | man/network-vpn-ipsec.8 \ |
bec94f95 | 580 | man/network-vpn-security-policies.8 \ |
5ca9dc30 | 581 | man/network-zone.8 \ |
5ca9dc30 MT |
582 | man/network-zone-bridge.8 \ |
583 | man/network-zone-config-pppoe-server.8 \ | |
bd767a3e | 584 | man/network-zone-ip-tunnel.8 \ |
7a302fa7 | 585 | man/network-zone-modem.8 \ |
2fb7ae4d MT |
586 | man/network-zone-pppoe.8 \ |
587 | man/network-zone-wireless.8 | |
5ca9dc30 | 588 | |
ff435238 MT |
589 | EXTRA_DIST += \ |
590 | man/include-color.txt \ | |
591 | man/include-description.txt | |
592 | ||
8f591cfc | 593 | MANPAGES_TXT = $(patsubst %.8,%.txt,$(MANPAGES)) |
d746901b MT |
594 | MANPAGES_HTML = $(patsubst %.txt,%.html,$(MANPAGES_TXT)) |
595 | MANPAGES_XML = $(patsubst %.txt,%.xml,$(MANPAGES_TXT)) | |
5ca9dc30 MT |
596 | |
597 | .PHONY: man | |
598 | man: $(MANPAGES) $(MANPAGES_HTML) | |
599 | ||
dbe28a05 | 600 | if ENABLE_MANPAGES |
5ca9dc30 MT |
601 | man_MANS = \ |
602 | $(MANPAGES) | |
dbe28a05 | 603 | endif |
5ca9dc30 | 604 | |
5ca9dc30 | 605 | CLEANFILES += \ |
dbe28a05 | 606 | $(MANPAGES) \ |
d746901b MT |
607 | $(MANPAGES_HTML) \ |
608 | $(MANPAGES_XML) | |
5ca9dc30 MT |
609 | |
610 | EXTRA_DIST += \ | |
5d881996 | 611 | man/asciidoc.conf \ |
a7d2fef7 | 612 | $(MANPAGES_TXT) |
5ca9dc30 MT |
613 | |
614 | XSLTPROC_FLAGS = \ | |
615 | --nonet \ | |
616 | --stringparam man.output.quietly 1 \ | |
617 | --stringparam funcsynopsis.style ansi \ | |
618 | --stringparam man.th.extra1.suppress 1 \ | |
619 | --stringparam man.authors.section.enabled 1 \ | |
620 | --stringparam man.copyright.section.enabled 1 | |
621 | ||
622 | XSLTPROC_COMMAND_MAN = \ | |
5d881996 MT |
623 | $(AM_V_XSLT)$(MKDIR_P) $(dir $@) && \ |
624 | $(XSLTPROC) -o $@ $(XSLTPROC_FLAGS) \ | |
5ca9dc30 MT |
625 | http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl $< |
626 | ||
baf429f1 | 627 | man/%.xml: man/%.txt man/asciidoc.conf |
5d881996 MT |
628 | $(AM_V_ASCIIDOC)$(MKDIR_P) $(dir $@) && \ |
629 | $(ASCIIDOC) \ | |
630 | -f $(abs_srcdir)/man/asciidoc.conf \ | |
baf429f1 | 631 | -d manpage -b docbook -o $@ $< |
8f591cfc | 632 | |
5ca9dc30 MT |
633 | man/%.8: man/%.xml |
634 | $(XSLTPROC_COMMAND_MAN) | |
635 | ||
baf429f1 | 636 | man/%.html: man/%.txt man/asciidoc.conf |
5d881996 MT |
637 | $(AM_V_ASCIIDOC)$(MKDIR_P) $(dir $@) && \ |
638 | $(ASCIIDOC) \ | |
639 | -f $(abs_srcdir)/man/asciidoc.conf \ | |
baf429f1 | 640 | -b html5 -a icons -a theme=flask -o $@ $< |
5ca9dc30 | 641 | |
2d2e9626 MT |
642 | .PHONY: upload-man |
643 | upload-man: $(MANPAGES_HTML) | |
644 | rsync -avHz --delete --progress $(MANPAGES_HTML) ms@people.ipfire.org:/pub/man-pages/$(PACKAGE_NAME)/ | |
645 | ||
5ca9dc30 MT |
646 | # ------------------------------------------------------------------------------ |
647 | ||
648 | substitutions = \ | |
649 | '|PACKAGE_NAME=$(PACKAGE_NAME)|' \ | |
650 | '|PACKAGE_URL=$(PACKAGE_URL)|' \ | |
651 | '|PACKAGE_VERSION=$(PACKAGE_VERSION)|' \ | |
a35f416c | 652 | '|builddir=$(abs_builddir)|' \ |
5ca9dc30 MT |
653 | '|prefix=$(prefix)|' \ |
654 | '|exec_prefix=$(exec_prefix)|' \ | |
840738f6 | 655 | '|bindir=$(bindir)|' \ |
5ca9dc30 | 656 | '|sbindir=$(sbindir)|' \ |
c6525a63 | 657 | '|networkdir=$(networkdir)|' \ |
96275aa1 | 658 | '|helpersdir=$(helpersdir)|' \ |
c4966dd6 MT |
659 | '|utildir=$(utildir)|' \ |
660 | '|VIRTUAL_ENVIRONMENT_IMAGES_DIR=$(VIRTUAL_ENVIRONMENT_IMAGES_DIR)|' | |
5ca9dc30 MT |
661 | |
662 | SED_PROCESS = \ | |
663 | $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \ | |
664 | $(SED) $(subst '|,-e 's|@,$(subst =,\@|,$(subst |',|g',$(substitutions)))) \ | |
665 | < $< > $@ | |
666 | ||
3431f712 | 667 | %: %.in Makefile |
5ca9dc30 MT |
668 | $(SED_PROCESS) |
669 | ||
670 | INSTALL_DIRS += \ | |
671 | $(sbindir) | |
672 | ||
673 | install-exec-hook: $(INSTALL_EXEC_HOOKS) | |
674 | ||
675 | uninstall-hook: $(UNINSTALL_EXEC_HOOKS) | |
676 | ||
677 | # - testsuite ------------------------------------------------------------------ | |
678 | ||
679 | TESTS_ENVIRONMENT = \ | |
071d3416 | 680 | LD_LIBRARY_PATH=$(top_builddir)/src/.libs:$(LD_LIBRARY_PATH) \ |
8744a476 MT |
681 | PATH=$(top_builddir)/src:$(PATH) \ |
682 | functions=$(abs_builddir)/src/functions/functions \ | |
683 | networkdir=$(abs_srcdir)/src/functions \ | |
684 | testdir=$(top_srcdir)/test | |
685 | ||
686 | dist_check_DATA = \ | |
ee86c73f MT |
687 | test/constants.sh \ |
688 | test/test-functions | |
5ca9dc30 MT |
689 | |
690 | dist_check_SCRIPTS = \ | |
8744a476 | 691 | $(TESTS) |
5ca9dc30 MT |
692 | |
693 | TESTS = \ | |
bb8304ec | 694 | test/load-library \ |
bb8304ec | 695 | test/functions/ip/ip_detect_protocol \ |
bb8304ec | 696 | test/functions/ip/ip_get_prefix \ |
8b0958b2 | 697 | test/functions/ip/ip_net_is_valid \ |
b7fd8067 | 698 | test/functions/ip/ip_is_valid \ |
b862734c | 699 | test/functions/ip/ip_network_is_subnet_of \ |
b7fd8067 MT |
700 | test/functions/ip/ip_prefix_is_valid \ |
701 | test/functions/ip/ip_protocol_is_supported \ | |
702 | test/functions/ip/ip_split_prefix | |
1908d2b3 MT |
703 | |
704 | # - NITSI tests ---------------------------------------------------------------- | |
705 | ||
232d01c8 | 706 | # Files for the virtual environment |
c4966dd6 | 707 | VIRTUAL_ENVIRONMENT_FILES = \ |
232d01c8 MT |
708 | test/nitsi/virtual-environment/basic/machines/alice/machine.xml \ |
709 | test/nitsi/virtual-environment/basic/machines/alice/snapshot.xml \ | |
710 | test/nitsi/virtual-environment/basic/machines/bob/machine.xml \ | |
711 | test/nitsi/virtual-environment/basic/machines/bob/snapshot.xml \ | |
712 | test/nitsi/virtual-environment/basic/network/network1/network.xml \ | |
713 | test/nitsi/virtual-environment/basic/network/network2/network.xml \ | |
714 | test/nitsi/virtual-environment/basic/network/network3/network.xml \ | |
715 | test/nitsi/virtual-environment/basic/network/network4/network.xml \ | |
232d01c8 MT |
716 | test/nitsi/virtual-environment/basic/settings |
717 | ||
c4966dd6 MT |
718 | EXTRA_DIST += \ |
719 | test/nitsi/virtual-environment/basic/machines/alice/machine.xml.in \ | |
720 | test/nitsi/virtual-environment/basic/machines/alice/snapshot.xml.in \ | |
721 | test/nitsi/virtual-environment/basic/machines/bob/machine.xml.in \ | |
43d82e80 JS |
722 | test/nitsi/virtual-environment/basic/machines/bob/snapshot.xml.in \ |
723 | test/nitsi/virtual-environment/basic/settings.in | |
c4966dd6 MT |
724 | |
725 | CLEANFILES += \ | |
726 | test/nitsi/virtual-environment/basic/machines/alice/machine.xml \ | |
727 | test/nitsi/virtual-environment/basic/machines/alice/snapshot.xml \ | |
728 | test/nitsi/virtual-environment/basic/machines/bob/machine.xml \ | |
43d82e80 JS |
729 | test/nitsi/virtual-environment/basic/machines/bob/snapshot.xml \ |
730 | test/nitsi/virtual-environment/basic/settings | |
c4966dd6 MT |
731 | |
732 | # Virtual Machine Images | |
733 | VIRTUAL_ENVIRONMENT_IMAGES = \ | |
734 | $(VIRTUAL_ENVIRONMENT_IMAGES_DIR)/ipfire-alice-2.qcow2 \ | |
735 | $(VIRTUAL_ENVIRONMENT_IMAGES_DIR)/ipfire-bob.qcow2 | |
736 | ||
737 | DISTCLEANFILES += \ | |
738 | $(VIRTUAL_ENVIRONMENT_IMAGES) | |
739 | ||
740 | VIRTUAL_ENVIRONMENT_IMAGES_DIR = $(abs_builddir)/test/nitsi/virtual-environment/.images | |
741 | VIRTUAL_ENVIRONMENT_IMAGES_DOWNLOAD_URL = \ | |
742 | https://people.ipfire.org/~jschlag/nitsi-ipfire/virtual-environment/basic/ | |
743 | ||
60dbefba | 744 | NITSI_INCLUDE_RECIPES = \ |
fb99a6c7 | 745 | test/nitsi/include/setup |
60dbefba JS |
746 | |
747 | EXTRA_DIST += \ | |
fb99a6c7 | 748 | test/nitsi/include/setup.in |
60dbefba JS |
749 | |
750 | CLEANFILES += \ | |
fb99a6c7 | 751 | test/nitsi/include/setup |
60dbefba | 752 | |
1908d2b3 | 753 | NITSI_TESTS = \ |
4c769bb2 | 754 | test/nitsi/test/make-check \ |
ae7a79da | 755 | test/nitsi/test/phase1 \ |
7808dbf2 | 756 | test/nitsi/test/pppoe \ |
07c82cd3 | 757 | test/nitsi/test/raw-device-get-by-mac \ |
9c8ff8de | 758 | test/nitsi/test/zone-new-bridge \ |
283ad5b0 | 759 | test/nitsi/test/zone-port-attach-bridge \ |
8c929286 MT |
760 | test/nitsi/test/zone/ip-tunnel/gre6 \ |
761 | test/nitsi/test/zone/ip-tunnel/gre4 \ | |
60b6dd44 JS |
762 | test/nitsi/test/vpn/ipsec/n2n/vti/ipv4-via-ipv4 \ |
763 | test/nitsi/test/vpn/ipsec/n2n/vti/ipv4-via-ipv6 \ | |
764 | test/nitsi/test/vpn/ipsec/n2n/vti/ipv6-via-ipv4 \ | |
765 | test/nitsi/test/vpn/ipsec/n2n/vti/ipv6-via-ipv6 \ | |
766 | test/nitsi/test/vpn/ipsec/n2n/vti/ipv64-via-ipv4 \ | |
767 | test/nitsi/test/vpn/ipsec/n2n/vti/ipv64-via-ipv6 \ | |
87ad62bc | 768 | test/nitsi/test/port-vlan |
1908d2b3 MT |
769 | |
770 | EXTRA_DIST += \ | |
91ee6559 | 771 | test/nitsi/test/settings.in \ |
a35f416c | 772 | test/nitsi/test/make-check/recipe.in \ |
07c82cd3 JS |
773 | test/nitsi/test/make-check/settings.in \ |
774 | test/nitsi/test/raw-device-get-by-mac/recipe \ | |
775 | test/nitsi/test/raw-device-get-by-mac/settings.in \ | |
776 | test/nitsi/test/zone-new-bridge/recipe \ | |
9c8ff8de JS |
777 | test/nitsi/test/zone-new-bridge/settings.in \ |
778 | test/nitsi/test/zone-port-attach-bridge/recipe \ | |
283ad5b0 | 779 | test/nitsi/test/zone-port-attach-bridge/settings.in \ |
8c929286 MT |
780 | test/nitsi/test/zone/ip-tunnel/gre6/recipe \ |
781 | test/nitsi/test/zone/ip-tunnel/gre6/settings \ | |
782 | test/nitsi/test/zone/ip-tunnel/gre4/recipe \ | |
783 | test/nitsi/test/zone/ip-tunnel/gre4/settings \ | |
60b6dd44 JS |
784 | test/nitsi/test/vpn/ipsec/n2n/vti/ipv4-via-ipv4/recipe \ |
785 | test/nitsi/test/vpn/ipsec/n2n/vti/ipv4-via-ipv4/settings \ | |
786 | test/nitsi/test/vpn/ipsec/n2n/vti/ipv4-via-ipv6/recipe \ | |
787 | test/nitsi/test/vpn/ipsec/n2n/vti/ipv4-via-ipv6/settings \ | |
788 | test/nitsi/test/vpn/ipsec/n2n/vti/ipv6-via-ipv4/recipe \ | |
789 | test/nitsi/test/vpn/ipsec/n2n/vti/ipv6-via-ipv4/settings \ | |
790 | test/nitsi/test/vpn/ipsec/n2n/vti/ipv6-via-ipv6/recipe \ | |
791 | test/nitsi/test/vpn/ipsec/n2n/vti/ipv6-via-ipv6/settings \ | |
792 | test/nitsi/test/vpn/ipsec/n2n/vti/ipv64-via-ipv4/recipe \ | |
793 | test/nitsi/test/vpn/ipsec/n2n/vti/ipv64-via-ipv4/settings \ | |
794 | test/nitsi/test/vpn/ipsec/n2n/vti/ipv64-via-ipv6/recipe \ | |
795 | test/nitsi/test/vpn/ipsec/n2n/vti/ipv64-via-ipv6/settings \ | |
796 | test/nitsi/test/port-vlan/recipe \ | |
797 | test/nitsi/test/port-vlan/settings | |
a35f416c MT |
798 | |
799 | CLEANFILES += \ | |
91ee6559 | 800 | test/nitsi/test/settings \ |
a35f416c | 801 | test/nitsi/test/make-check/recipe \ |
4c769bb2 | 802 | test/nitsi/test/make-check/settings \ |
07c82cd3 | 803 | test/nitsi/test/raw-device-get-by-mac/settings \ |
9c8ff8de | 804 | test/nitsi/test/zone-new-bridge/settings \ |
9b01a925 | 805 | test/nitsi/test/zone-port-attach-bridge/settings |
1908d2b3 MT |
806 | |
807 | NITSI_ENVIRONMENT = | |
808 | ||
809 | .PHONY: $(NITSI_TESTS) | |
59281a53 | 810 | $(NITSI_TESTS): % : dist %/recipe %/settings test/nitsi/test/settings $(VIRTUAL_ENVIRONMENT_FILES) $(VIRTUAL_ENVIRONMENT_IMAGES) $(NITSI_INCLUDE_RECIPES) |
91ee6559 | 811 | $(AM_V_NITSI) $(NITSI_ENVIRONMENT) $(NITSI) --log-level error run-test -d $@ \ |
e3e44ab6 | 812 | --default-settings $(abs_builddir)/test/nitsi/test/settings --interactive-error-handling |
1908d2b3 MT |
813 | |
814 | .PHONY: nitsi | |
59281a53 | 815 | nitsi: $(NITSI_TESTS) |
c4966dd6 MT |
816 | |
817 | # Downloads a virtual image file and extracts it | |
818 | $(VIRTUAL_ENVIRONMENT_IMAGES): | |
819 | $(AM_V_DOWNLOAD)$(MKDIR_P) $(dir $@) && \ | |
820 | $(WGET) -qO - $(VIRTUAL_ENVIRONMENT_IMAGES_DOWNLOAD_URL)/$(notdir $@).xz | xz -qd > $@ |