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
56 UNINSTALL_EXEC_HOOKS =
59 AM_CFLAGS = $(OUR_CFLAGS)
60 AM_CPPFLAGS = $(OUR_CPPFLAGS)
61 AM_LDFLAGS = $(OUR_LDFLAGS)
63 DISTCHECK_CONFIGURE_FLAGS = \
64 --with-systemdsystemunitdir=$$dc_install_base/$(systemdsystemunitdir) \
65 --with-udevdir=$$dc_install_base/$(udevdir)
67 install-directories-hook:
68 $(MKDIR_P) $(addprefix $(DESTDIR),$(INSTALL_DIRS))
70 INSTALL_EXEC_HOOKS += \
71 install-directories-hook
73 # ------------------------------------------------------------------------------
75 AM_V_XSLT = $(AM_V_XSLT_$(V))
76 AM_V_XSLT_ = $(AM_V_XSLT_$(AM_DEFAULT_VERBOSITY))
77 AM_V_XSLT_0 = @echo " XSLT " $@;
79 # ------------------------------------------------------------------------------
93 src/functions/functions
96 src/functions/functions
99 src/functions/functions.in
101 dist_network_SCRIPTS = \
102 src/functions/functions.aiccu \
103 src/functions/functions.at \
104 src/functions/functions.auth \
105 src/functions/functions.batman-adv \
106 src/functions/functions.bonding \
107 src/functions/functions.bridge \
108 src/functions/functions.cli \
109 src/functions/functions.cli.firewall \
110 src/functions/functions.colors \
111 src/functions/functions.config \
112 src/functions/functions.conntrack \
113 src/functions/functions.constants \
114 src/functions/functions.constants-firewall \
115 src/functions/functions.db \
116 src/functions/functions.device \
117 src/functions/functions.dhclient \
118 src/functions/functions.dhcpd \
119 src/functions/functions.distro \
120 src/functions/functions.dns \
121 src/functions/functions.dummy \
122 src/functions/functions.ethernet \
123 src/functions/functions.firewall \
124 src/functions/functions.firewall-policy \
125 src/functions/functions.firewall-zones \
126 src/functions/functions.he \
127 src/functions/functions.hook \
128 src/functions/functions.hostapd \
129 src/functions/functions.hotplug \
130 src/functions/functions.http \
131 src/functions/functions.ip \
132 src/functions/functions.iptables \
133 src/functions/functions.ip-tunnel \
134 src/functions/functions.ipv4 \
135 src/functions/functions.ipv6 \
136 src/functions/functions.list \
137 src/functions/functions.lock \
138 src/functions/functions.logging \
139 src/functions/functions.macros \
140 src/functions/functions.modem \
141 src/functions/functions.phy \
142 src/functions/functions.ports \
143 src/functions/functions.ppp \
144 src/functions/functions.pppoe-server \
145 src/functions/functions.radvd \
146 src/functions/functions.red \
147 src/functions/functions.route \
148 src/functions/functions.routing \
149 src/functions/functions.serial \
150 src/functions/functions.service \
151 src/functions/functions.settings \
152 src/functions/functions.stp \
153 src/functions/functions.sysctl \
154 src/functions/functions.triggers \
155 src/functions/functions.usb \
156 src/functions/functions.util \
157 src/functions/functions.vlan \
158 src/functions/functions.wireless \
159 src/functions/functions.wpa_supplicant \
160 src/functions/functions.zone \
161 src/network-radvd-config \
162 src/dhclient-helper \
169 dist_helpers_SCRIPTS = \
171 src/helpers/aiccu-config-helper \
172 src/helpers/bridge-stp \
173 src/helpers/dhcpd-config-helper \
174 src/helpers/firewall-kernel-init \
175 src/helpers/hostapd-config-helper \
176 src/helpers/pppd-angel \
177 src/helpers/wpa_supplicant \
178 src/helpers/wpa_supplicant-config-helper
183 src_inetcalc_SOURCES = \
186 bridge-stp-install-hook: bridge-stp-uninstall-hook
187 ln -svf --relative $(DESTDIR)$(helpersdir)/bridge-stp $(DESTDIR)$(sbindir)/
189 bridge-stp-uninstall-hook:
190 rm -f $(DESTDIR)$(sbindir)/bridge-stp
192 INSTALL_EXEC_HOOKS += bridge-stp-install-hook
193 UNINSTALL_EXEC_HOOKS += bridge-stp-uninstall-hook
195 dist_hooks_configs_SCRIPTS = \
196 src/hooks/configs/ipv4-dhcp \
197 src/hooks/configs/ipv4-static \
198 src/hooks/configs/ipv6-auto \
199 src/hooks/configs/ipv6-dhcp \
200 src/hooks/configs/ipv6-static \
201 src/hooks/configs/pppoe-server
203 dist_hooks_ports_SCRIPTS = \
204 src/hooks/ports/batman-adv \
205 src/hooks/ports/bonding \
206 src/hooks/ports/dummy \
207 src/hooks/ports/ethernet \
208 src/hooks/ports/vlan \
209 src/hooks/ports/wireless-adhoc \
210 src/hooks/ports/wireless-ap
212 dist_hooks_zones_SCRIPTS = \
213 src/hooks/zones/6rd \
214 src/hooks/zones/6to4-tunnel \
215 src/hooks/zones/aiccu \
216 src/hooks/zones/bridge \
217 src/hooks/zones/modem \
218 src/hooks/zones/pppoe \
219 src/hooks/zones/wireless
221 # ------------------------------------------------------------------------------
236 ln -svf ip-updown $(DESTDIR)$(pppdir)/ip-pre-up
237 ln -svf ip-updown $(DESTDIR)$(pppdir)/ip-up
238 ln -svf ip-updown $(DESTDIR)$(pppdir)/ip-down
239 ln -svf ip-updown $(DESTDIR)$(pppdir)/ipv6-up
240 ln -svf ip-updown $(DESTDIR)$(pppdir)/ipv6-down
243 rm -f $(DESTDIR)$(pppdir)/ip-{down,pre-up,up}
244 rm -f $(DESTDIR)$(pppdir)/ipv6-{down,up}
246 INSTALL_EXEC_HOOKS += ppp-install-hook
247 UNINSTALL_EXEC_HOOKS += ppp-uninstall-hook
249 # ------------------------------------------------------------------------------
252 systemdsystemunit_DATA = \
253 src/systemd/firewall4.service \
254 src/systemd/firewall6.service \
255 src/systemd/firewall-init.service \
256 src/systemd/network-init.service \
257 src/systemd/network@.service
260 $(systemdsystemunit_DATA)
263 $(systemdsystemunitdir)
267 src/systemd/firewall4.service.in \
268 src/systemd/firewall6.service.in \
269 src/systemd/firewall-init.service.in \
270 src/systemd/network-init.service.in \
271 src/systemd/network@.service.in
273 # ------------------------------------------------------------------------------
276 src/sysctl/network.conf
278 # ------------------------------------------------------------------------------
280 dist_bashcompletion_SCRIPTS = \
281 src/bash-completion/network
283 # ------------------------------------------------------------------------------
285 dist_tmpfiles_DATA = \
288 # ------------------------------------------------------------------------------
291 dist_udev_SCRIPTS = \
292 src/udev/network-hotplug \
293 src/udev/network-hotplug-rename \
294 src/udev/network-hotplug-serial
296 dist_udevrules_DATA = \
297 src/udev/rules.d/50-serial-whitelist.rules \
298 src/udev/rules.d/60-net.rules
305 # ------------------------------------------------------------------------------
307 pkgconfigdata_DATA = \
311 $(pkgconfigdata_DATA)
316 # ------------------------------------------------------------------------------
324 # ------------------------------------------------------------------------------
329 # ------------------------------------------------------------------------------
332 man/firewall-settings.8 \
334 man/network-device.8 \
335 man/network-dns-server.8 \
337 man/network-port-batman-adv.8 \
338 man/network-port-batman-adv-port.8 \
339 man/network-quick-start.8 \
340 man/network-route.8 \
341 man/network-settings.8 \
343 man/network-zone-6rd.8 \
344 man/network-zone-6to4-tunnel.8 \
345 man/network-zone-aiccu.8 \
346 man/network-zone-bridge.8 \
347 man/network-zone-config-pppoe-server.8 \
348 man/network-zone-modem.8 \
349 man/network-zone-pppoe.8 \
350 man/network-zone-wireless.8
352 MANPAGES_XML = $(patsubst %.8,%.xml,$(MANPAGES))
353 MANPAGES_HTML = $(patsubst %.xml,%.html,$(MANPAGES_XML))
356 man: $(MANPAGES) $(MANPAGES_HTML)
374 --stringparam man.output.quietly 1 \
375 --stringparam funcsynopsis.style ansi \
376 --stringparam man.th.extra1.suppress 1 \
377 --stringparam man.authors.section.enabled 1 \
378 --stringparam man.copyright.section.enabled 1
380 XSLTPROC_COMMAND_MAN = \
381 $(AM_V_XSLT)$(XSLTPROC) -o $@ $(XSLTPROC_FLAGS) \
382 http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl $<
384 XSLTPROC_COMMAND_HTML = \
385 $(AM_V_XSLT)$(XSLTPROC) -o $@ $(XSLTPROC_FLAGS) $(srcdir)/man/custom-html.xsl $<
388 $(XSLTPROC_COMMAND_MAN)
390 man/%.html: man/%.xml man/custom-html.xsl
391 $(XSLTPROC_COMMAND_HTML)
393 # ------------------------------------------------------------------------------
396 '|PACKAGE_NAME=$(PACKAGE_NAME)|' \
397 '|PACKAGE_URL=$(PACKAGE_URL)|' \
398 '|PACKAGE_VERSION=$(PACKAGE_VERSION)|' \
399 '|prefix=$(prefix)|' \
400 '|exec_prefix=$(exec_prefix)|' \
401 '|sbindir=$(sbindir)|' \
402 '|networkdir=$(networkdir)|' \
403 '|helpersdir=$(helpersdir)|'
406 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
407 $(SED) $(subst '|,-e 's|@,$(subst =,\@|,$(subst |',|g',$(substitutions)))) \
410 src/functions/functions: src/functions/functions.in Makefile
413 src/ppp/ip-updown: src/ppp/ip-updown.in Makefile
416 src/systemd/%: src/systemd/%.in Makefile
419 src/%.pc: src/%.pc.in Makefile
425 install-exec-hook: $(INSTALL_EXEC_HOOKS)
427 uninstall-hook: $(UNINSTALL_EXEC_HOOKS)
429 # - testsuite ------------------------------------------------------------------
431 TESTS_ENVIRONMENT = \
432 topdir="$(shell pwd)" \
433 networkdir="$(top_srcdir)/src/functions"
435 dist_check_SCRIPTS = \