# Common utilities for debian laptops
class nodo::utils::laptop::debian {
  package { [ 'cpufrequtils',  'module-assistant',  'wireless-tools', 
              'wpasupplicant', 'ekiga',             'mumble',
              'arp-scan',      'usb-modeswitch',
              'iw',            'wvdial',            'wavemon',
              'btscanner',     'laptop-mode-tools', 'acpi-support',
              'tftp',          'sharutils',         'wireshark',
              'macchanger',    'weplab',            'wpagui',
              'gnokii',        'sslstrip' ]:
    ensure => installed,
  }

  $wicd            = hiera('nodo::utils::laptop::debian::wicd',            'installed')
  $network_manager = hiera('nodo::utils::laptop::debian::network_manager', 'absent')

  # Wicd
  package { [ 'wicd', 'wicd-curses', 'wicd-gtk' ]:
    ensure => $wicd,
  }

  # Network manager
  package { 'network-manager':
    ensure => $::lsbdistcodename ? {
      'squeeze' => absent,
       default  => $network_manager,
    }
  }

  # Squeeze specific packages
  package { [ 'kismet' ]:
    ensure => $::lsbdistcodename ? {
      'squeeze' => installed,
       default  => absent,
    }
  }

}