1 ###############################################################################
3 # IPFire.org - A linux based firewall #
4 # Copyright (C) 2012-2013 IPFire Network Development Team #
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. #
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. #
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/>. #
19 ###############################################################################
21 ACLOCAL_AMFLAGS = -I m4 ${ACLOCAL_FLAGS}
22 AM_MAKEFLAGS = --no-print-directory
23 AUTOMAKE_OPTIONS = color-tests
25 # remove target it the command fails
28 # keep itermediate files
31 bashcompletiondir= $(datadir)/bash-completion/completions
32 libexecdir = $(prefix)/lib
33 pkgconfigdatadir = $(datadir)/pkgconfig
34 pppdir = $(sysconfdir)/ppp
35 sysctldir = $(prefix)/lib/sysctl.d
36 tmpfilesdir = $(prefix)/lib/tmpfiles.d
37 udevrulesdir = $(udevdir)/rules.d
39 networkdir = $(libexecdir)/network
40 helpersdir = $(networkdir)/helpers
42 macrosdir = $(libexecdir)/firewall/macros
44 hooksdir = $(networkdir)/hooks
45 hooks_configsdir = $(hooksdir)/configs
46 hooks_portsdir = $(hooksdir)/ports
47 hooks_zonesdir = $(hooksdir)/zones
49 triggersdir = $(networkdir)/triggers
51 logdir = $(localestatedir)/log/network
58 UNINSTALL_EXEC_HOOKS =
61 AM_CFLAGS = $(OUR_CFLAGS)
62 AM_CPPFLAGS = $(OUR_CPPFLAGS)
63 AM_LDFLAGS = $(OUR_LDFLAGS)
65 DISTCHECK_CONFIGURE_FLAGS = \
66 --with-systemdsystemunitdir=$$dc_install_base/$(systemdsystemunitdir) \
67 --with-udevdir=$$dc_install_base/$(udevdir)
69 install-directories-hook:
70 $(MKDIR_P) $(addprefix $(DESTDIR),$(INSTALL_DIRS))
72 INSTALL_EXEC_HOOKS += \
73 install-directories-hook
75 # ------------------------------------------------------------------------------
77 AM_V_XSLT = $(AM_V_XSLT_$(V))
78 AM_V_XSLT_ = $(AM_V_XSLT_$(AM_DEFAULT_VERBOSITY))
79 AM_V_XSLT_0 = @echo " XSLT " $@;
81 # ------------------------------------------------------------------------------
95 src/functions/functions
98 src/functions/functions
101 src/functions/functions.in
103 dist_network_SCRIPTS = \
104 src/functions/functions.aiccu \
105 src/functions/functions.at \
106 src/functions/functions.auth \
107 src/functions/functions.batman-adv \
108 src/functions/functions.bonding \
109 src/functions/functions.bridge \
110 src/functions/functions.cli \
111 src/functions/functions.cli.firewall \
112 src/functions/functions.colors \
113 src/functions/functions.config \
114 src/functions/functions.conntrack \
115 src/functions/functions.constants \
116 src/functions/functions.constants-firewall \
117 src/functions/functions.db \
118 src/functions/functions.device \
119 src/functions/functions.dhclient \
120 src/functions/functions.dhcpd \
121 src/functions/functions.distro \
122 src/functions/functions.dns \
123 src/functions/functions.dummy \
124 src/functions/functions.ethernet \
125 src/functions/functions.firewall \
126 src/functions/functions.firewall-policy \
127 src/functions/functions.firewall-zones \
128 src/functions/functions.he \
129 src/functions/functions.hook \
130 src/functions/functions.hostapd \
131 src/functions/functions.hotplug \
132 src/functions/functions.http \
133 src/functions/functions.interrupts \
134 src/functions/functions.ip \
135 src/functions/functions.iptables \
136 src/functions/functions.ip-tunnel \
137 src/functions/functions.ipv4 \
138 src/functions/functions.ipv6 \
139 src/functions/functions.list \
140 src/functions/functions.lock \
141 src/functions/functions.logging \
142 src/functions/functions.macros \
143 src/functions/functions.modem \
144 src/functions/functions.phy \
145 src/functions/functions.ports \
146 src/functions/functions.ppp \
147 src/functions/functions.pppoe-server \
148 src/functions/functions.radvd \
149 src/functions/functions.red \
150 src/functions/functions.route \
151 src/functions/functions.routing \
152 src/functions/functions.serial \
153 src/functions/functions.service \
154 src/functions/functions.settings \
155 src/functions/functions.stp \
156 src/functions/functions.sysctl \
157 src/functions/functions.system \
158 src/functions/functions.triggers \
159 src/functions/functions.usb \
160 src/functions/functions.util \
161 src/functions/functions.vlan \
162 src/functions/functions.wireless \
163 src/functions/functions.wpa_supplicant \
164 src/functions/functions.zone \
165 src/network-radvd-config \
166 src/dhclient-helper \
173 dist_helpers_SCRIPTS = \
175 src/helpers/aiccu-config-helper \
176 src/helpers/bridge-stp \
177 src/helpers/dhcpd-config-helper \
178 src/helpers/firewall-kernel-init \
179 src/helpers/hostapd-config-helper \
180 src/helpers/pppd-angel \
181 src/helpers/wpa_supplicant \
182 src/helpers/wpa_supplicant-config-helper
187 src_inetcalc_SOURCES = \
190 bridge-stp-install-hook: bridge-stp-uninstall-hook
191 ln -svf --relative $(DESTDIR)$(helpersdir)/bridge-stp $(DESTDIR)$(sbindir)/
193 bridge-stp-uninstall-hook:
194 rm -f $(DESTDIR)$(sbindir)/bridge-stp
196 INSTALL_EXEC_HOOKS += bridge-stp-install-hook
197 UNINSTALL_EXEC_HOOKS += bridge-stp-uninstall-hook
199 dist_hooks_configs_SCRIPTS = \
200 src/hooks/configs/ipv4-dhcp \
201 src/hooks/configs/ipv4-static \
202 src/hooks/configs/ipv6-auto \
203 src/hooks/configs/ipv6-dhcp \
204 src/hooks/configs/ipv6-static \
205 src/hooks/configs/pppoe-server
207 dist_hooks_ports_SCRIPTS = \
208 src/hooks/ports/batman-adv \
209 src/hooks/ports/bonding \
210 src/hooks/ports/dummy \
211 src/hooks/ports/ethernet \
212 src/hooks/ports/vlan \
213 src/hooks/ports/wireless-adhoc \
214 src/hooks/ports/wireless-ap
216 dist_hooks_zones_SCRIPTS = \
217 src/hooks/zones/6rd \
218 src/hooks/zones/6to4-tunnel \
219 src/hooks/zones/aiccu \
220 src/hooks/zones/bridge \
221 src/hooks/zones/modem \
222 src/hooks/zones/pppoe \
223 src/hooks/zones/wireless
225 # ------------------------------------------------------------------------------
241 ln -svf ip-updown $(DESTDIR)$(pppdir)/ip-pre-up
242 ln -svf ip-updown $(DESTDIR)$(pppdir)/ip-up
243 ln -svf ip-updown $(DESTDIR)$(pppdir)/ip-down
244 ln -svf ip-updown $(DESTDIR)$(pppdir)/ipv6-up
245 ln -svf ip-updown $(DESTDIR)$(pppdir)/ipv6-down
248 rm -f $(DESTDIR)$(pppdir)/ip-{down,pre-up,up}
249 rm -f $(DESTDIR)$(pppdir)/ipv6-{down,up}
251 INSTALL_EXEC_HOOKS += ppp-install-hook
252 UNINSTALL_EXEC_HOOKS += ppp-uninstall-hook
254 # ------------------------------------------------------------------------------
257 systemdsystemunit_DATA = \
258 src/systemd/firewall4.service \
259 src/systemd/firewall6.service \
260 src/systemd/firewall-init.service \
261 src/systemd/network-init.service \
262 src/systemd/network@.service
265 $(systemdsystemunit_DATA)
268 $(systemdsystemunitdir)
272 src/systemd/firewall4.service.in \
273 src/systemd/firewall6.service.in \
274 src/systemd/firewall-init.service.in \
275 src/systemd/network-init.service.in \
276 src/systemd/network@.service.in
278 # ------------------------------------------------------------------------------
281 src/sysctl/network.conf
283 # ------------------------------------------------------------------------------
285 dist_bashcompletion_SCRIPTS = \
286 src/bash-completion/network
288 # ------------------------------------------------------------------------------
290 dist_tmpfiles_DATA = \
291 src/tmpfiles/network.conf
293 # ------------------------------------------------------------------------------
296 dist_udev_SCRIPTS = \
297 src/udev/network-hotplug \
298 src/udev/network-hotplug-rename \
299 src/udev/network-hotplug-serial
301 dist_udevrules_DATA = \
302 src/udev/rules.d/50-serial-whitelist.rules \
303 src/udev/rules.d/60-net.rules
310 # ------------------------------------------------------------------------------
312 pkgconfigdata_DATA = \
316 $(pkgconfigdata_DATA)
321 # ------------------------------------------------------------------------------
329 # ------------------------------------------------------------------------------
334 # ------------------------------------------------------------------------------
337 man/firewall-settings.8 \
339 man/network-device.8 \
341 man/network-dns-server.8 \
342 man/network-performance-tuning.8 \
344 man/network-port-batman-adv.8 \
345 man/network-port-batman-adv-port.8 \
346 man/network-quick-start.8 \
347 man/network-route.8 \
348 man/network-settings.8 \
350 man/network-zone-6rd.8 \
351 man/network-zone-6to4-tunnel.8 \
352 man/network-zone-aiccu.8 \
353 man/network-zone-bridge.8 \
354 man/network-zone-config-pppoe-server.8 \
355 man/network-zone-modem.8 \
356 man/network-zone-pppoe.8 \
357 man/network-zone-wireless.8
359 MANPAGES_XML = $(patsubst %.8,%.xml,$(MANPAGES))
360 MANPAGES_HTML = $(patsubst %.xml,%.html,$(MANPAGES_XML))
363 man: $(MANPAGES) $(MANPAGES_HTML)
381 --stringparam man.output.quietly 1 \
382 --stringparam funcsynopsis.style ansi \
383 --stringparam man.th.extra1.suppress 1 \
384 --stringparam man.authors.section.enabled 1 \
385 --stringparam man.copyright.section.enabled 1
387 XSLTPROC_COMMAND_MAN = \
388 $(AM_V_XSLT)$(XSLTPROC) -o $@ $(XSLTPROC_FLAGS) \
389 http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl $<
391 XSLTPROC_COMMAND_HTML = \
392 $(AM_V_XSLT)$(XSLTPROC) -o $@ $(XSLTPROC_FLAGS) $(srcdir)/man/custom-html.xsl $<
395 $(XSLTPROC_COMMAND_MAN)
397 man/%.html: man/%.xml man/custom-html.xsl
398 $(XSLTPROC_COMMAND_HTML)
400 # ------------------------------------------------------------------------------
403 '|PACKAGE_NAME=$(PACKAGE_NAME)|' \
404 '|PACKAGE_URL=$(PACKAGE_URL)|' \
405 '|PACKAGE_VERSION=$(PACKAGE_VERSION)|' \
406 '|prefix=$(prefix)|' \
407 '|exec_prefix=$(exec_prefix)|' \
408 '|sbindir=$(sbindir)|' \
409 '|networkdir=$(networkdir)|' \
410 '|helpersdir=$(helpersdir)|'
413 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
414 $(SED) $(subst '|,-e 's|@,$(subst =,\@|,$(subst |',|g',$(substitutions)))) \
417 src/functions/functions: src/functions/functions.in Makefile
420 src/ppp/ip-updown: src/ppp/ip-updown.in Makefile
423 src/systemd/%: src/systemd/%.in Makefile
426 src/%.pc: src/%.pc.in Makefile
432 install-exec-hook: $(INSTALL_EXEC_HOOKS)
434 uninstall-hook: $(UNINSTALL_EXEC_HOOKS)
436 # - testsuite ------------------------------------------------------------------
438 TESTS_ENVIRONMENT = \
439 topdir="$(shell pwd)" \
440 networkdir="$(top_srcdir)/src/functions"
442 dist_check_SCRIPTS = \