aboutsummaryrefslogtreecommitdiffstats
path: root/src/ipsec
diff options
context:
space:
mode:
Diffstat (limited to 'src/ipsec')
-rw-r--r--src/ipsec/Makefile.am9
-rw-r--r--src/ipsec/ipsec.8.in (renamed from src/ipsec/ipsec.8)2
2 files changed, 8 insertions, 3 deletions
diff --git a/src/ipsec/Makefile.am b/src/ipsec/Makefile.am
index f3ca1ca06..e5c53e740 100644
--- a/src/ipsec/Makefile.am
+++ b/src/ipsec/Makefile.am
@@ -1,7 +1,12 @@
sbin_SCRIPTS = ipsec
-CLEANFILES = ipsec
+CLEANFILES = ipsec ipsec.8
dist_man8_MANS = ipsec.8
-EXTRA_DIST = ipsec.in
+EXTRA_DIST = ipsec.in ipsec.8.in
+
+ipsec.8 : ipsec.8.in
+ sed \
+ -e "s:@IPSEC_VERSION@:$(PACKAGE_VERSION):" \
+ $(srcdir)/$@.in > $@
ipsec : ipsec.in
sed \
diff --git a/src/ipsec/ipsec.8 b/src/ipsec/ipsec.8.in
index fdf2ff23c..24a796392 100644
--- a/src/ipsec/ipsec.8
+++ b/src/ipsec/ipsec.8.in
@@ -1,4 +1,4 @@
-.TH IPSEC 8 "2010-05-30"
+.TH IPSEC 8 "2010-05-30" "@IPSEC_VERSION@" "strongSwan"
.SH NAME
ipsec \- invoke IPsec utilities
.SH SYNOPSIS