File:  [ELWIX - Embedded LightWeight unIX -] / embedaddon / strongswan / conf / Makefile.am
Revision 1.1.1.2 (vendor branch): download - view: text, annotated - select for diffs - revision graph
Wed Mar 17 00:20:08 2021 UTC (3 years, 3 months ago) by misho
Branches: strongswan, MAIN
CVS tags: v5_9_2p0, HEAD
strongswan 5.9.2

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

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>