Add a libpttls providing NEA PT-TLS / TNC IF-T for TLS transport layer
[strongswan.git] / src / ipsec / Makefile.am
1 sbin_SCRIPTS = _ipsec
2 CLEANFILES = _ipsec _ipsec.8
3 dist_man8_MANS = _ipsec.8
4 EXTRA_DIST = _ipsec.in _ipsec.8.in Android.mk
5
6 _ipsec.8 : _ipsec.8.in
7         sed \
8         -e "s:@IPSEC_VERSION@:$(PACKAGE_VERSION):" \
9         -e "s:@IPSEC_SCRIPT@:$(ipsec_script):g" \
10         -e "s:@IPSEC_SCRIPT_UPPER@:$(ipsec_script_upper):g" \
11         $(srcdir)/$@.in > $@
12
13 _ipsec : _ipsec.in
14         sed \
15         -e "s:@IPSEC_SHELL@:/bin/sh:" \
16         -e "s:@IPSEC_VERSION@:$(PACKAGE_VERSION):" \
17         -e "s:@IPSEC_NAME@:$(PACKAGE_NAME):" \
18         -e "s:@IPSEC_DISTRO@::" \
19         -e "s:@IPSEC_DIR@:$(ipsecdir):" \
20         -e "s:@IPSEC_SCRIPT@:$(ipsec_script):" \
21         -e "s:@IPSEC_SBINDIR@:$(sbindir):" \
22         -e "s:@IPSEC_CONFDIR@:$(sysconfdir):" \
23         -e "s:@IPSEC_PIDDIR@:$(piddir):" \
24         $(srcdir)/$@.in > $@
25         chmod +x $@
26
27 install-exec-hook:
28         mv $(DESTDIR)$(sbindir)/_ipsec $(DESTDIR)$(sbindir)/$(ipsec_script)
29
30 install-data-hook:
31         mv $(DESTDIR)$(man8dir)/_ipsec.8 $(DESTDIR)$(man8dir)/$(ipsec_script).8
32
33 uninstall-hook:
34         rm -f $(DESTDIR)$(sbindir)/$(ipsec_script)
35         rm -f $(DESTDIR)$(man8dir)/$(ipsec_script).8