blob: 73427c0fae09ba5cf787c1a0a7e8bc2797d43940 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
sbin_SCRIPTS = _ipsec
CLEANFILES = _ipsec _ipsec.8
dist_man8_MANS = _ipsec.8
EXTRA_DIST = _ipsec.in _ipsec.8.in Android.mk
_ipsec.8 : _ipsec.8.in
$(AM_V_GEN) \
sed \
-e "s:@IPSEC_VERSION@:$(PACKAGE_VERSION):" \
-e "s:@IPSEC_SCRIPT@:$(ipsec_script):g" \
-e "s:@IPSEC_SCRIPT_UPPER@:$(ipsec_script_upper):g" \
$(srcdir)/$@.in > $@
_ipsec : _ipsec.in
$(AM_V_GEN) \
sed \
-e "s:@IPSEC_SHELL@:/bin/sh:" \
-e "s:@IPSEC_VERSION@:$(PACKAGE_VERSION):" \
-e "s:@IPSEC_NAME@:$(PACKAGE_NAME):" \
-e "s:@IPSEC_DISTRO@::" \
-e "s:@IPSEC_DIR@:$(ipsecdir):" \
-e "s:@IPSEC_SCRIPT@:$(ipsec_script):" \
-e "s:@IPSEC_SBINDIR@:$(sbindir):" \
-e "s:@IPSEC_CONFDIR@:$(sysconfdir):" \
-e "s:@IPSEC_PIDDIR@:$(piddir):" \
$(srcdir)/$@.in > $@
chmod +x $@
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
|