Skip to content

Commit

Permalink
templates: Don't install templates if their modules are not compiled.
Browse files Browse the repository at this point in the history
Signed-off-by: Ben Greear <greearb@candelatech.com>
  • Loading branch information
greearb committed Jun 10, 2010
1 parent cb22659 commit d74773a
Showing 1 changed file with 14 additions and 8 deletions.
22 changes: 14 additions & 8 deletions xorp/etc/templates/SConscript
Expand Up @@ -27,13 +27,9 @@ cmds = [
'host',
'igmp',
'mfea',
'mfea6',
'misc',
'mld',
'ospfv2',
'ospfv3',
'pim',
'pim6',
'policy',
'rib',
]
Expand All @@ -43,12 +39,8 @@ tps = [
'igmp',
'interfaces',
'mfea4',
'mfea6',
'mld',
'ospfv2',
'ospfv3',
'pimsm4',
'pimsm6',
'plumbing',
'policy',
'protocols',
Expand All @@ -61,13 +53,27 @@ tp_raw = [
'fea'
]

if not (env.has_key('disable_ipv6') and env['disable_ipv6']):
cmds.append('mfea6')
tps.append('mfea6')
cmds.append('pim6')
tps.append('pimsm6')

if env['enable_ospf']:
cmds.append('ospfv3')
tps.append('ospfv3')

if not (env.has_key('disable_fw') and env['disable_fw']):
tps.append('firewall')

if env['enable_olsr']:
cmds.append('olsr4')
tps.append('olsr4')

if env['enable_ospf']:
cmds.append('ospfv2')
tps.append('ospfv2')

if env['enable_bgp']:
cmds.append('bgp')
tps.append('bgp')
Expand Down

0 comments on commit d74773a

Please sign in to comment.