diff options
author | Lennart Poettering <lennart@poettering.net> | 2015-01-13 13:44:30 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2015-01-13 13:55:15 +0100 |
commit | 76917807eb50ccde58901e8bec7ed3d408d1cc22 (patch) | |
tree | f4de29f757a3257dd2190a744ea373e87e81612d /Makefile.am | |
parent | 6cb7fa17b3d89741a5fd3ac807775a3022c7d891 (diff) |
shared: add minimal firewall manipulation helpers for establishing NAT rules, using libiptc
Diffstat (limited to 'Makefile.am')
-rw-r--r-- | Makefile.am | 33 |
1 files changed, 32 insertions, 1 deletions
diff --git a/Makefile.am b/Makefile.am index 7f9dc26085..205dafafce 100644 --- a/Makefile.am +++ b/Makefile.am @@ -982,6 +982,24 @@ libsystemd_label_la_LIBADD = \ # ----------------------------------------------------------------------------- +if HAVE_LIBIPTC +noinst_LTLIBRARIES += \ + libsystemd-fw.la + +libsystemd_fw_la_SOURCES = \ + src/shared/fw-util.h \ + src/shared/fw-util.c + +libsystemd_fw_la_CFLAGS = \ + $(AM_CFLAGS) \ + $(LIBIPTC_CFLAGS) + +libsystemd_fw_la_LIBADD = \ + $(LIBIPTC_LIBS) +endif + +# ----------------------------------------------------------------------------- + if ENABLE_LDCONFIG dist_systemunit_DATA += \ units/ldconfig.service @@ -1334,7 +1352,8 @@ manual_tests += \ test-watchdog \ test-log \ test-ipcrm \ - test-btrfs + test-btrfs \ + test-fw-util if HAVE_KMOD manual_tests += \ @@ -1815,6 +1834,18 @@ test_btrfs_LDADD = \ libsystemd-label.la \ libsystemd-shared.la +test_fw_util_SOURCES = \ + src/test/test-fw-util.c + +test_fw_util_CFLAGS = \ + $(AM_CFLAGS) \ + $(LIBIPTC_CFLAGS) + +test_fw_util_LDADD = \ + libsystemd-fw.la \ + libsystemd-shared.la \ + $(LIBIPTC_LIBS) + test_rtnl_manual_SOURCES = \ src/test/test-rtnl-manual.c |