triggersdir = $(networkdir)/triggers
+logdir = $(localestatedir)/log/network
+
CLEANFILES =
DISTCLEANFILES =
EXTRA_DIST =
UNINSTALL_EXEC_HOOKS =
noinst_DATA =
+AM_CFLAGS = $(OUR_CFLAGS)
+AM_CPPFLAGS = $(OUR_CPPFLAGS)
+AM_LDFLAGS = $(OUR_LDFLAGS)
+
DISTCHECK_CONFIGURE_FLAGS = \
--with-systemdsystemunitdir=$$dc_install_base/$(systemdsystemunitdir) \
--with-udevdir=$$dc_install_base/$(udevdir)
src/functions/functions.in
dist_network_SCRIPTS = \
- src/functions/functions.aiccu \
src/functions/functions.at \
src/functions/functions.auth \
src/functions/functions.batman-adv \
src/functions/functions.constants \
src/functions/functions.constants-firewall \
src/functions/functions.db \
+ src/functions/functions.description \
src/functions/functions.device \
src/functions/functions.dhclient \
src/functions/functions.dhcpd \
src/functions/functions.distro \
src/functions/functions.dns \
src/functions/functions.dummy \
+ src/functions/functions.editor \
src/functions/functions.ethernet \
src/functions/functions.firewall \
src/functions/functions.firewall-policy \
src/functions/functions.hostapd \
src/functions/functions.hotplug \
src/functions/functions.http \
+ src/functions/functions.interrupts \
src/functions/functions.ip \
src/functions/functions.iptables \
src/functions/functions.ip-tunnel \
src/functions/functions.settings \
src/functions/functions.stp \
src/functions/functions.sysctl \
+ src/functions/functions.system \
src/functions/functions.triggers \
src/functions/functions.usb \
src/functions/functions.util \
src/ppp/pppoe-server
dist_helpers_SCRIPTS = \
- src/helpers/aiccu-config-helper \
src/helpers/bridge-stp \
src/helpers/dhcpd-config-helper \
src/helpers/firewall-kernel-init \
src/helpers/wpa_supplicant \
src/helpers/wpa_supplicant-config-helper
+bin_PROGRAMS = \
+ src/inetcalc
+
+src_inetcalc_SOURCES = \
+ src/inetcalc.c
+
bridge-stp-install-hook: bridge-stp-uninstall-hook
ln -svf --relative $(DESTDIR)$(helpersdir)/bridge-stp $(DESTDIR)$(sbindir)/
UNINSTALL_EXEC_HOOKS += bridge-stp-uninstall-hook
dist_hooks_configs_SCRIPTS = \
- src/hooks/configs/ipv4-dhcp \
+ src/hooks/configs/dhcp \
src/hooks/configs/ipv4-static \
src/hooks/configs/ipv6-auto \
- src/hooks/configs/ipv6-dhcp \
src/hooks/configs/ipv6-static \
src/hooks/configs/pppoe-server
src/hooks/ports/wireless-ap
dist_hooks_zones_SCRIPTS = \
- src/hooks/zones/6rd \
src/hooks/zones/6to4-tunnel \
- src/hooks/zones/aiccu \
src/hooks/zones/bridge \
src/hooks/zones/modem \
src/hooks/zones/pppoe \
src/ppp/ip-updown.in
INSTALL_DIRS += \
- $(pppdir)
+ $(pppdir) \
+ $(logdir)
ppp-install-hook:
ln -svf ip-updown $(DESTDIR)$(pppdir)/ip-pre-up
# ------------------------------------------------------------------------------
dist_tmpfiles_DATA = \
- src/tmpfiles/network
+ src/tmpfiles/network.conf
# ------------------------------------------------------------------------------
# ------------------------------------------------------------------------------
-INSTALL_DIRS = \
+INSTALL_DIRS += \
$(triggersdir)
# ------------------------------------------------------------------------------
MANPAGES = \
man/firewall-settings.8 \
man/network.8 \
+ man/network-color.8 \
+ man/network-description.8 \
man/network-device.8 \
+ man/network-dhcp.8 \
man/network-dns-server.8 \
+ man/network-performance-tuning.8 \
+ man/network-port.8 \
man/network-port-batman-adv.8 \
man/network-port-batman-adv-port.8 \
+ man/network-quick-start.8 \
man/network-route.8 \
+ man/network-route-static.8 \
man/network-settings.8 \
man/network-zone.8 \
- man/network-zone-6rd.8 \
man/network-zone-6to4-tunnel.8 \
- man/network-zone-aiccu.8 \
man/network-zone-bridge.8 \
man/network-zone-config-pppoe-server.8 \
- man/network-zone-pppoe.8
+ man/network-zone-modem.8 \
+ man/network-zone-pppoe.8 \
+ man/network-zone-wireless.8
MANPAGES_XML = $(patsubst %.8,%.xml,$(MANPAGES))
MANPAGES_HTML = $(patsubst %.xml,%.html,$(MANPAGES_XML))
# - testsuite ------------------------------------------------------------------
TESTS_ENVIRONMENT = \
- topdir="$(shell pwd)" \
- networkdir="$(top_srcdir)/src/functions"
+ PATH=$(top_builddir)/src:$(PATH) \
+ functions=$(abs_builddir)/src/functions/functions \
+ networkdir=$(abs_srcdir)/src/functions \
+ testdir=$(top_srcdir)/test
+
+dist_check_DATA = \
+ test/constants.sh \
+ test/test-functions
dist_check_SCRIPTS = \
- test/load-library
+ $(TESTS)
TESTS = \
- test/load-library
+ test/load-library \
+ test/functions/ip/ip_detect_protocol \
+ test/functions/ip/ip_get_prefix \
+ test/functions/ip/ip_net_is_valid \
+ test/functions/ip/ip_is_valid \
+ test/functions/ip/ip_network_is_subnet_of \
+ test/functions/ip/ip_prefix_is_valid \
+ test/functions/ip/ip_protocol_is_supported \
+ test/functions/ip/ip_split_prefix