]> git.ipfire.org Git - thirdparty/strongswan.git/blame - conf/Makefile.am
conf: Extend description of charon.plugins.kernel-netlink.xfrm_acq_expires
[thirdparty/strongswan.git] / conf / Makefile.am
CommitLineData
1b98f858
TB
1# make this relative to the location of strongswan.conf
2strongswanconfdir = `dirname $(strongswan_conf)`
3strongswanddir = $(strongswanconfdir)/strongswan.d
4charonconfdir = $(strongswanddir)/charon
7f535b39
TB
5# copy these files also to /usr/share
6templatesdir = $(pkgdatadir)/templates/config
7optionstemplatedir = $(templatesdir)/strongswan.d
8pluginstemplatedir = $(templatesdir)/plugins
c75acc4c 9
1b98f858 10options = \
4d066ef7 11 options/aikgen.opt \
36bf2b1b 12 options/aikpub2.opt \
5ac75787 13 options/attest.opt \
da8b16a1 14 options/charon.opt \
4576f7f9 15 options/charon-logging.opt \
e2d9f27c 16 options/charon-systemd.opt \
bf3f4bf7 17 options/imcv.opt \
79b5a33c 18 options/imv_policy_manager.opt \
ff94fe15
TB
19 options/manager.opt \
20 options/medsrv.opt \
bf3f4bf7 21 options/pacman.opt \
3986c1e3 22 options/pki.opt \
ff94fe15 23 options/pool.opt \
3986c1e3 24 options/scepclient.opt \
ff94fe15 25 options/starter.opt \
38f27e17 26 options/swanctl.opt \
3986c1e3 27 options/tnc.opt
1b98f858
TB
28
29plugins = \
828815b0
TB
30 plugins/android_log.opt \
31 plugins/attr.opt \
32 plugins/attr-sql.opt \
c2aca9ee 33 plugins/bliss.opt \
828815b0
TB
34 plugins/certexpire.opt \
35 plugins/coupling.opt \
36 plugins/dhcp.opt \
37 plugins/dnscert.opt \
38 plugins/duplicheck.opt \
39 plugins/eap-aka.opt \
40 plugins/eap-aka-3ggp2.opt \
41 plugins/eap-dynamic.opt \
42 plugins/eap-gtc.opt \
43 plugins/eap-peap.opt \
44 plugins/eap-radius.opt \
45 plugins/eap-sim.opt \
46 plugins/eap-simaka-sql.opt \
47 plugins/eap-tls.opt \
48 plugins/eap-tnc.opt \
49 plugins/eap-ttls.opt \
50 plugins/error-notify.opt \
b2c1973f 51 plugins/ext-auth.opt \
ed14d3eb 52 plugins/forecast.opt \
828815b0
TB
53 plugins/gcrypt.opt \
54 plugins/ha.opt \
5ac75787 55 plugins/imc-attestation.opt \
6a3d0355 56 plugins/imc-hcd.opt \
bf3f4bf7
TB
57 plugins/imc-os.opt \
58 plugins/imc-scanner.opt \
5ac75787 59 plugins/imc-swid.opt \
bf3f4bf7 60 plugins/imc-test.opt \
5ac75787 61 plugins/imv-attestation.opt \
bf3f4bf7
TB
62 plugins/imv-os.opt \
63 plugins/imv-scanner.opt \
bfd8f8c5 64 plugins/imv-swid.opt \
bf3f4bf7 65 plugins/imv-test.opt \
828815b0
TB
66 plugins/ipseckey.opt \
67 plugins/led.opt \
828815b0
TB
68 plugins/kernel-libipsec.opt \
69 plugins/kernel-netlink.opt \
96e61305 70 plugins/kernel-pfkey.opt \
828815b0
TB
71 plugins/kernel-pfroute.opt \
72 plugins/load-tester.opt \
73 plugins/lookip.opt \
74 plugins/ntru.opt \
75 plugins/openssl.opt \
486d7b26 76 plugins/osx-attr.opt \
276acafa 77 plugins/p-cscf.opt \
828815b0
TB
78 plugins/pkcs11.opt \
79 plugins/radattr.opt \
80 plugins/random.opt \
81 plugins/resolve.opt \
82 plugins/socket-default.opt \
83 plugins/sql.opt \
84 plugins/stroke.opt \
85 plugins/systime-fix.opt \
86 plugins/tnc-ifmap.opt \
4576f7f9
TB
87 plugins/tnc-imc.opt \
88 plugins/tnc-imv.opt \
828815b0 89 plugins/tnc-pdp.opt \
4576f7f9
TB
90 plugins/tnccs-11.opt \
91 plugins/tnccs-20.opt \
828815b0
TB
92 plugins/unbound.opt \
93 plugins/updown.opt \
7dbf9e15 94 plugins/vici.opt \
828815b0
TB
95 plugins/whitelist.opt \
96 plugins/xauth-eap.opt \
97 plugins/xauth-pam.opt
1b98f858
TB
98
99alloptions = $(options) $(plugins)
100
101confsnippets = $(alloptions:opt=conf)
102
103# we only install snippets for enabled plugins
104plugins_install_tmp = $(charon_plugins:%=plugins/%.tmp)
105plugins_install_src = $(charon_plugins:%=plugins/%.conf)
7573a7ed
TB
106# only install snippets for enabled components
107# has to be defined via autoconf as we can't do it with automake conditionals
108options_install_src = $(strongswan_options:%=options/%.conf)
6a2de77f 109
7f535b39
TB
110templates_DATA = strongswan.conf
111optionstemplate_DATA = $(options_install_src)
112pluginstemplate_DATA = $(plugins_install_src)
91cc523c
TB
113man_MANS = \
114 strongswan.conf.5
1b98f858 115
7f62b7d0 116BUILT_SOURCES = default.conf strongswan.conf.5.main $(confsnippets)
1b98f858 117EXTRA_DIST = format-options.py strongswan.conf default.opt \
7f62b7d0 118 default.conf strongswan.conf.5.main $(alloptions) $(confsnippets)
1b98f858 119
91cc523c
TB
120CLEANFILES=$(man_MANS)
121
1b98f858
TB
122.opt.conf:
123 $(AM_V_GEN) \
124 case "$<" in \
125 *plugins/*) \
126 sed \
127 -e "s:\@PLUGIN_NAME\@:`basename $< .opt`:" \
128 $(srcdir)/default.opt | cat - $< | \
129 $(PYTHON) $(srcdir)/format-options.py -f conf -r charon.plugins > $(srcdir)/$@ \
130 ;; \
131 *) \
132 $(PYTHON) $(srcdir)/format-options.py -f conf -r charon.plugins $< > $(srcdir)/$@ \
133 ;; \
134 esac
135
136# we need another implicit rule to generate files from the generic template only
137# if the rules above did not catch it. this requires an intermediate step that
138# generates a copy of the generic config template.
139$(plugins_install_tmp):
d56a23c5
TB
140 @mkdir -p $(builddir)/plugins
141 @cp $(srcdir)/default.conf $(builddir)/$@
1b98f858
TB
142
143.tmp.conf:
144 $(AM_V_GEN) \
145 sed \
146 -e "s:\@PLUGIN_NAME\@:`basename $< .tmp`:" \
d56a23c5 147 $(builddir)/$< > $(builddir)/$@
1b98f858 148
7f62b7d0
TB
149strongswan.conf.5.main: $(alloptions)
150 $(AM_V_GEN) \
bd1c9f1e 151 cd $(srcdir) && $(PYTHON) format-options.py -f man $(alloptions) > $@
7f62b7d0 152
bd1c9f1e 153strongswan.conf.5: strongswan.conf.5.head strongswan.conf.5.main strongswan.conf.5.tail
c4bb26b8 154 $(AM_V_GEN) \
bd1c9f1e 155 cat strongswan.conf.5.head $(srcdir)/strongswan.conf.5.main strongswan.conf.5.tail > $@
c4bb26b8 156
d56a23c5
TB
157clean-local:
158 rm -f plugins/*.conf plugins/*.tmp
159
1b98f858
TB
160maintainer-clean-local:
161 cd $(srcdir) && \
162 rm -f $(confsnippets) default.conf plugins/*.conf plugins/*.tmp
163
6a2de77f 164install-data-local: $(plugins_install_src)
0efea2fd
SL
165 test -e "$(DESTDIR)${strongswanconfdir}" || $(INSTALL) -d "$(DESTDIR)$(strongswanconfdir)" || true
166 test -e "$(DESTDIR)${strongswanddir}" || $(INSTALL) -d "$(DESTDIR)$(strongswanddir)" || true
167 test -e "$(DESTDIR)${charonconfdir}" || $(INSTALL) -d "$(DESTDIR)$(charonconfdir)" || true
efce4559 168 test -e "$(DESTDIR)$(strongswanconfdir)/strongswan.conf" || $(INSTALL) -m 644 $(srcdir)/strongswan.conf $(DESTDIR)$(strongswanconfdir)/strongswan.conf || true
6a2de77f
TB
169 for f in $(options_install_src); do \
170 name=`basename $$f`; \
5645ad29 171 test -f "$(DESTDIR)$(strongswanddir)/$$name" || $(INSTALL) -m 644 "$(srcdir)/$$f" "$(DESTDIR)$(strongswanddir)/$$name" || true; \
6a2de77f
TB
172 done
173 for f in $(plugins_install_src); do \
174 name=`basename $$f`; \
d56a23c5 175 if test -f "$$f"; then dir=; else dir="$(srcdir)/"; fi; \
5645ad29 176 test -f "$(DESTDIR)$(charonconfdir)/$$name" || $(INSTALL) -m 644 "$$dir$$f" "$(DESTDIR)$(charonconfdir)/$$name" || true; \
6a2de77f 177 done