added --with-routing-table= configure option

This commit is contained in:
Martin Willi 2007-08-27 11:15:35 +00:00
parent 98f97433af
commit 4e411c8361
3 changed files with 15 additions and 1 deletions

View File

@ -107,6 +107,13 @@ AC_ARG_WITH(
)
AC_SUBST(LINUX_HEADERS)
AC_ARG_WITH(
[routing-table],
AS_HELP_STRING([--with-routing-table=num],[use routing table for IPsec routes (default: 100)]),
[AC_DEFINE_UNQUOTED(IPSEC_ROUTING_TABLE, $withval) AC_SUBST(IPSEC_ROUTING_TABLE, "$withval")],
[AC_DEFINE_UNQUOTED(IPSEC_ROUTING_TABLE, 100) AC_SUBST(IPSEC_ROUTING_TABLE, "100")]
)
AC_ARG_WITH(
[uid],
AS_HELP_STRING([--with-uid=uid],[change user of the daemons to UID after startup (default is 0).]),

View File

@ -1,3 +1,10 @@
dist_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):" \
$< > $@
chmod +x $@

2
src/_updown/_updown → src/_updown/_updown.in Executable file → Normal file
View File

@ -137,7 +137,7 @@ FAC_PRIO=local0.notice
# must be enabled
#
# special routing table for sourceip routes
SOURCEIP_ROUTING_TABLE=100
SOURCEIP_ROUTING_TABLE=@IPSEC_ROUTING_TABLE@
#
# priority of the sourceip routing table
SOURCEIP_ROUTING_TABLE_PRIO=100