# Common utilities for laptop
class utils::laptop {
  case $::operatingsystem {
    debian: { 
      include utils::laptop::debian
    }
    default: { }
  }
}

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

  # Wheezy specific packages
  package { 'network-manager':
    ensure => $::lsbdistcodename ? {
      'squeeze' => absent,
       default  => installed,
    }
  }

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

}