mirror of
https://gitlab.nic.cz/labs/bird.git
synced 2024-12-21 17:21:53 +00:00
Small change to make BIRD's IPv6 packaging easier
This commit is contained in:
parent
9be1086d29
commit
dc16584ac2
@ -42,11 +42,13 @@ AC_SUBST(srcdir_rel_mf)
|
||||
|
||||
if test "$enable_ipv6" = yes ; then
|
||||
ip=ipv6
|
||||
SUFFIX6=6
|
||||
if test "$with_protocols" = all ; then
|
||||
with_protocols=bgp,pipe,rip,static
|
||||
fi
|
||||
else
|
||||
ip=ipv4
|
||||
SUFFIX6=""
|
||||
if test "$with_protocols" = all ; then
|
||||
with_protocols=bgp,ospf,pipe,rip,static
|
||||
fi
|
||||
@ -208,6 +210,7 @@ if test "$enable_client" = yes ; then
|
||||
fi
|
||||
AC_SUBST(CLIENT)
|
||||
AC_SUBST(CLIENT_LIBS)
|
||||
AC_SUBST(SUFFIX6)
|
||||
|
||||
mkdir -p $objdir/sysdep
|
||||
AC_CONFIG_HEADERS([$objdir/sysdep/autoconf.h:sysdep/autoconf.h.in])
|
||||
|
@ -38,11 +38,11 @@ typedef u16 word;
|
||||
/* Path to configuration file */
|
||||
#ifdef IPV6
|
||||
# ifdef DEBUGGING
|
||||
# define PATH_CONFIG "bird-6.conf"
|
||||
# define PATH_CONTROL_SOCKET "bird-6.ctl"
|
||||
# define PATH_CONFIG "bird6.conf"
|
||||
# define PATH_CONTROL_SOCKET "bird6.ctl"
|
||||
# else
|
||||
# define PATH_CONFIG PATH_CONFIG_DIR "/bird-6.conf"
|
||||
# define PATH_CONTROL_SOCKET PATH_CONTROL_SOCKET_DIR "/bird-6.ctl"
|
||||
# define PATH_CONFIG PATH_CONFIG_DIR "/bird6.conf"
|
||||
# define PATH_CONTROL_SOCKET PATH_CONTROL_SOCKET_DIR "/bird6.ctl"
|
||||
# endif
|
||||
#else
|
||||
# ifdef DEBUGGING
|
||||
|
@ -44,12 +44,12 @@ tags:
|
||||
|
||||
install: all
|
||||
$(INSTALL) -d $(sbindir) $(sysconfdir) $(localstatedir)
|
||||
$(INSTALL_PROGRAM) -s $(exedir)/bird $(sbindir)/
|
||||
$(INSTALL_PROGRAM) -s $(exedir)/bird $(sbindir)/bird@SUFFIX6@
|
||||
if test -n "@CLIENT@" ; then \
|
||||
$(INSTALL_PROGRAM) -s $(exedir)/birdc $(sbindir)/ ; \
|
||||
$(INSTALL_PROGRAM) -s $(exedir)/birdc $(sbindir)/birdc@SUFFIX6@ ; \
|
||||
fi
|
||||
if ! test -f $(sysconfdir)/bird.conf ; then \
|
||||
$(INSTALL_DATA) $(srcdir)/doc/bird.conf.example $(sysconfdir)/bird.conf ; \
|
||||
if ! test -f $(sysconfdir)/bird.@SUFFIX6@conf ; then \
|
||||
$(INSTALL_DATA) $(srcdir)/doc/bird.conf.example $(sysconfdir)/bird@SUFFIX6@.conf ; \
|
||||
else \
|
||||
echo "Not overwriting old bird.conf" ; \
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user