fixed sqlite database path
[strongswan.git] / src / _updown / Makefile.am
index 27a467c..d0b7a27 100644 (file)
@@ -1,3 +1,11 @@
-dist_ipsec_SCRIPTS = _updown
+ipsec_SCRIPTS = _updown
+CLEANFILES = _updown
 dist_man8_MANS = _updown.8
+EXTRA_DIST = _updown.in
 
+_updown : _updown.in
+       sed \
+       -e "s:\@IPSEC_ROUTING_TABLE\@:$(IPSEC_ROUTING_TABLE):" \
+       -e "s:\@IPSEC_ROUTING_TABLE_PRIO\@:$(IPSEC_ROUTING_TABLE_PRIO):" \
+       $< > $@
+       chmod +x $@