2012-06-19 15:12:53 +00:00
|
|
|
sbin_SCRIPTS = _ipsec
|
|
|
|
CLEANFILES = _ipsec _ipsec.8
|
|
|
|
dist_man8_MANS = _ipsec.8
|
2012-07-27 11:39:18 +00:00
|
|
|
EXTRA_DIST = _ipsec.in _ipsec.8.in Android.mk
|
2010-05-30 11:03:04 +00:00
|
|
|
|
2012-07-27 11:39:18 +00:00
|
|
|
_ipsec.8 : _ipsec.8.in
|
2013-04-10 13:35:55 +00:00
|
|
|
$(AM_V_GEN) \
|
2010-05-30 11:03:04 +00:00
|
|
|
sed \
|
|
|
|
-e "s:@IPSEC_VERSION@:$(PACKAGE_VERSION):" \
|
2012-06-19 15:12:53 +00:00
|
|
|
-e "s:@IPSEC_SCRIPT@:$(ipsec_script):g" \
|
|
|
|
-e "s:@IPSEC_SCRIPT_UPPER@:$(ipsec_script_upper):g" \
|
2013-10-29 16:19:57 +00:00
|
|
|
-e "s:@IPSEC_DIR@:$(ipsecdir):" \
|
2012-07-27 11:39:18 +00:00
|
|
|
$(srcdir)/$@.in > $@
|
2006-05-16 14:24:03 +00:00
|
|
|
|
2012-07-27 11:39:18 +00:00
|
|
|
_ipsec : _ipsec.in
|
2013-04-10 13:35:55 +00:00
|
|
|
$(AM_V_GEN) \
|
2006-05-16 14:24:03 +00:00
|
|
|
sed \
|
2011-10-11 14:22:26 +00:00
|
|
|
-e "s:@IPSEC_SHELL@:/bin/sh:" \
|
2006-05-16 14:24:03 +00:00
|
|
|
-e "s:@IPSEC_VERSION@:$(PACKAGE_VERSION):" \
|
|
|
|
-e "s:@IPSEC_NAME@:$(PACKAGE_NAME):" \
|
|
|
|
-e "s:@IPSEC_DISTRO@::" \
|
|
|
|
-e "s:@IPSEC_DIR@:$(ipsecdir):" \
|
2012-06-19 15:12:53 +00:00
|
|
|
-e "s:@IPSEC_SCRIPT@:$(ipsec_script):" \
|
2013-09-13 12:52:14 +00:00
|
|
|
-e "s:@IPSEC_BINDIR@:$(bindir):" \
|
2006-05-16 14:24:03 +00:00
|
|
|
-e "s:@IPSEC_SBINDIR@:$(sbindir):" \
|
2010-05-30 11:07:32 +00:00
|
|
|
-e "s:@IPSEC_CONFDIR@:$(sysconfdir):" \
|
2006-05-16 14:24:03 +00:00
|
|
|
-e "s:@IPSEC_PIDDIR@:$(piddir):" \
|
2012-07-27 11:39:18 +00:00
|
|
|
$(srcdir)/$@.in > $@
|
2006-05-16 14:24:03 +00:00
|
|
|
chmod +x $@
|
2012-06-19 15:12:53 +00:00
|
|
|
|
|
|
|
install-exec-hook:
|
|
|
|
mv $(DESTDIR)$(sbindir)/_ipsec $(DESTDIR)$(sbindir)/$(ipsec_script)
|
|
|
|
|
|
|
|
install-data-hook:
|
|
|
|
mv $(DESTDIR)$(man8dir)/_ipsec.8 $(DESTDIR)$(man8dir)/$(ipsec_script).8
|
|
|
|
|
|
|
|
uninstall-hook:
|
|
|
|
rm -f $(DESTDIR)$(sbindir)/$(ipsec_script)
|
|
|
|
rm -f $(DESTDIR)$(man8dir)/$(ipsec_script).8
|