2014-01-29 13:37:32 +00:00
|
|
|
sbin_PROGRAMS = swanctl
|
|
|
|
|
|
|
|
swanctl_SOURCES = \
|
|
|
|
command.c command.h \
|
2017-08-24 15:44:45 +00:00
|
|
|
commands/counters.c \
|
2014-02-10 16:11:42 +00:00
|
|
|
commands/initiate.c \
|
2014-02-11 16:14:51 +00:00
|
|
|
commands/terminate.c \
|
2017-01-24 15:34:32 +00:00
|
|
|
commands/rekey.c \
|
2015-04-28 16:00:01 +00:00
|
|
|
commands/redirect.c \
|
2014-02-13 14:23:16 +00:00
|
|
|
commands/install.c \
|
2014-01-29 16:20:56 +00:00
|
|
|
commands/list_sas.c \
|
2014-02-13 15:13:09 +00:00
|
|
|
commands/list_pols.c \
|
2015-07-14 12:41:27 +00:00
|
|
|
commands/list_authorities.c \
|
2014-02-19 15:48:04 +00:00
|
|
|
commands/list_conns.c \
|
2014-02-24 16:22:30 +00:00
|
|
|
commands/list_certs.c \
|
2014-04-16 10:07:14 +00:00
|
|
|
commands/list_pools.c \
|
2015-11-19 15:01:05 +00:00
|
|
|
commands/list_algs.c \
|
2016-09-08 09:59:02 +00:00
|
|
|
commands/flush_certs.c \
|
2014-08-07 13:22:40 +00:00
|
|
|
commands/load_all.c \
|
2015-07-14 12:41:27 +00:00
|
|
|
commands/load_authorities.h commands/load_authorities.c \
|
2014-08-07 13:22:40 +00:00
|
|
|
commands/load_conns.c commands/load_conns.h \
|
|
|
|
commands/load_creds.c commands/load_creds.h \
|
|
|
|
commands/load_pools.c commands/load_pools.h \
|
2014-03-06 09:56:50 +00:00
|
|
|
commands/log.c \
|
2014-02-19 15:11:57 +00:00
|
|
|
commands/version.c \
|
2014-06-11 14:19:38 +00:00
|
|
|
commands/stats.c \
|
2014-07-17 16:14:34 +00:00
|
|
|
commands/reload_settings.c \
|
2014-02-19 10:09:59 +00:00
|
|
|
swanctl.c swanctl.h
|
2014-01-29 13:37:32 +00:00
|
|
|
|
|
|
|
swanctl_LDADD = \
|
|
|
|
$(top_builddir)/src/libcharon/plugins/vici/libvici.la \
|
2015-11-09 16:17:16 +00:00
|
|
|
$(top_builddir)/src/libstrongswan/libstrongswan.la \
|
2016-06-08 12:46:35 +00:00
|
|
|
$(PTHREADLIB) $(ATOMICLIB) $(DLLIB)
|
2014-01-29 13:37:32 +00:00
|
|
|
|
|
|
|
swanctl.o : $(top_builddir)/config.status
|
|
|
|
|
|
|
|
AM_CPPFLAGS = \
|
|
|
|
-I$(top_srcdir)/src/libstrongswan \
|
|
|
|
-I$(top_srcdir)/src/libcharon/plugins/vici \
|
2014-02-19 10:09:59 +00:00
|
|
|
-DSWANCTLDIR=\""${swanctldir}\"" \
|
2014-01-29 13:37:32 +00:00
|
|
|
-DPLUGINS=\""${s_plugins}\""
|
2014-04-17 16:34:38 +00:00
|
|
|
|
2014-04-17 17:23:48 +00:00
|
|
|
man_MANS = \
|
2014-04-28 14:57:22 +00:00
|
|
|
swanctl.8 \
|
2014-04-17 17:23:48 +00:00
|
|
|
swanctl.conf.5
|
|
|
|
|
2014-04-17 17:15:10 +00:00
|
|
|
BUILT_SOURCES = swanctl.conf swanctl.conf.5.main
|
|
|
|
EXTRA_DIST = swanctl.opt swanctl.conf swanctl.conf.5.main
|
2014-04-17 17:23:48 +00:00
|
|
|
CLEANFILES = $(man_MANS)
|
2014-04-17 16:59:42 +00:00
|
|
|
|
|
|
|
.opt.conf:
|
|
|
|
$(AM_V_GEN) \
|
2014-04-29 10:15:06 +00:00
|
|
|
$(PYTHON) $(top_srcdir)/conf/format-options.py -n -f conf $< > $(srcdir)/$@
|
2014-04-17 16:59:42 +00:00
|
|
|
|
2014-04-17 17:15:10 +00:00
|
|
|
swanctl.conf.5.main: swanctl.opt
|
|
|
|
$(AM_V_GEN) \
|
2015-08-27 10:42:21 +00:00
|
|
|
cd $(srcdir) && $(PYTHON) $(abs_top_srcdir)/conf/format-options.py -n -f man swanctl.opt > $@
|
2014-04-17 17:15:10 +00:00
|
|
|
|
2014-04-17 17:23:48 +00:00
|
|
|
swanctl.conf.5: swanctl.conf.5.head swanctl.conf.5.main swanctl.conf.5.tail
|
|
|
|
$(AM_V_GEN) \
|
|
|
|
cat swanctl.conf.5.head $(srcdir)/swanctl.conf.5.main swanctl.conf.5.tail > $@
|
|
|
|
|
2014-04-17 16:59:42 +00:00
|
|
|
maintainer-clean-local:
|
2014-04-17 17:15:10 +00:00
|
|
|
cd $(srcdir) && rm -f swanctl.conf swanctl.conf.5.main
|
2014-04-17 16:34:38 +00:00
|
|
|
|
|
|
|
install-data-local: swanctl.conf
|
2014-09-19 18:32:22 +00:00
|
|
|
test -e "$(DESTDIR)$(swanctldir)" || $(INSTALL) -d "$(DESTDIR)$(swanctldir)" || true
|
2017-06-29 07:32:25 +00:00
|
|
|
test -e "$(DESTDIR)$(swanctldir)/conf.d" || $(INSTALL) -d "$(DESTDIR)$(swanctldir)/conf.d" || true
|
2014-04-29 14:03:44 +00:00
|
|
|
test -e "$(DESTDIR)$(swanctldir)/x509" || $(INSTALL) -d "$(DESTDIR)$(swanctldir)/x509" || true
|
|
|
|
test -e "$(DESTDIR)$(swanctldir)/x509ca" || $(INSTALL) -d "$(DESTDIR)$(swanctldir)/x509ca" || true
|
|
|
|
test -e "$(DESTDIR)$(swanctldir)/x509aa" || $(INSTALL) -d "$(DESTDIR)$(swanctldir)/x509aa" || true
|
2015-12-05 22:15:47 +00:00
|
|
|
test -e "$(DESTDIR)$(swanctldir)/x509ocsp" || $(INSTALL) -d "$(DESTDIR)$(swanctldir)/x509ocsp" || true
|
2014-04-29 14:03:44 +00:00
|
|
|
test -e "$(DESTDIR)$(swanctldir)/x509crl" || $(INSTALL) -d "$(DESTDIR)$(swanctldir)/x509crl" || true
|
|
|
|
test -e "$(DESTDIR)$(swanctldir)/x509ac" || $(INSTALL) -d "$(DESTDIR)$(swanctldir)/x509ac" || true
|
2015-12-05 22:15:47 +00:00
|
|
|
test -e "$(DESTDIR)$(swanctldir)/pubkey" || $(INSTALL) -d "$(DESTDIR)$(swanctldir)/pubkey" || true
|
2016-09-30 13:16:42 +00:00
|
|
|
test -e "$(DESTDIR)$(swanctldir)/private" || $(INSTALL) -d -m 750 "$(DESTDIR)$(swanctldir)/private" || true
|
2014-04-29 14:03:44 +00:00
|
|
|
test -e "$(DESTDIR)$(swanctldir)/rsa" || $(INSTALL) -d -m 750 "$(DESTDIR)$(swanctldir)/rsa" || true
|
|
|
|
test -e "$(DESTDIR)$(swanctldir)/ecdsa" || $(INSTALL) -d -m 750 "$(DESTDIR)$(swanctldir)/ecdsa" || true
|
2015-12-05 22:15:47 +00:00
|
|
|
test -e "$(DESTDIR)$(swanctldir)/bliss" || $(INSTALL) -d -m 750 "$(DESTDIR)$(swanctldir)/bliss" || true
|
2014-04-29 14:03:44 +00:00
|
|
|
test -e "$(DESTDIR)$(swanctldir)/pkcs8" || $(INSTALL) -d -m 750 "$(DESTDIR)$(swanctldir)/pkcs8" || true
|
2015-03-11 15:23:56 +00:00
|
|
|
test -e "$(DESTDIR)$(swanctldir)/pkcs12" || $(INSTALL) -d -m 750 "$(DESTDIR)$(swanctldir)/pkcs12" || true
|
2014-04-17 16:34:38 +00:00
|
|
|
test -e "$(DESTDIR)$(swanctldir)/swanctl.conf" || $(INSTALL) -m 640 $(srcdir)/swanctl.conf $(DESTDIR)$(swanctldir)/swanctl.conf || true
|